Back to homeMathematics · AP Calculus BC · Change subject
Start for free
Advanced Integration and Models (BC) · Integration Techniques (BC)

Mateo's hiking app shows two numbers for every hike: "straight-line distance" and "trail distance." They only match when the trail is perfectly straight. If you have a formula for the trail, say $y = f(x)$, how can calculus produce the trail distance? And why is that number always at least as big as the straight-line one?

From Tiny Segments to an Integral

A straight segment is easy to measure: use the distance formula. A curve is not. The idea is the same one you used for area. Replace the curve by pieces you can handle, then let the pieces get tiny.

Here, the pieces are straight chords. Add up their lengths and you get an approximation of the curve's length.

Four straight chords join five points on the curve y = x² between a and b. The sum of their lengths approximates the length of the curve, and gets better as the chords get shorter. Chords approximate the curve a b Four straight chords join five points on the curve y = x² between a and b. The sum of their lengths approximates the length of the curve, and gets better as the chords get shorter.

Now zoom in on one chord. Its horizontal run is $\Delta x$ and its vertical rise is $\Delta y$. By the Pythagorean Theorem its length is

$$\sqrt{(\Delta x)^2 + (\Delta y)^2} = \sqrt{1 + \left(\frac{\Delta y}{\Delta x}\right)^2}\,\Delta x.$$

By the Mean Value Theorem, $\frac{\Delta y}{\Delta x}$ equals $f'(x_i)$ for some $x_i$ inside that piece. So the sum of all the chord lengths is a Riemann sum for $\sqrt{1 + (f'(x))^2}$. As the pieces shrink, the sum becomes an integral.

A tiny right triangle on the curve: legs dx (horizontal) and dy (vertical), hypotenuse ds. By the Pythagorean theorem, ds = √(dx² + dy²); adding up all the ds gives the arc length. dx dy ds ds = √(dx² + dy²) A tiny right triangle on the curve: legs dx (horizontal) and dy (vertical), hypotenuse ds. By the Pythagorean theorem, ds = √(dx² + dy²); adding up all the ds gives the arc length.

Why does it work? The piece $ds = \sqrt{dx^2 + dy^2}$ is an infinitely small hypotenuse. Writing $dy = f'(x)\,dx$ and factoring out $dx$ gives the integrand.

Use the slider below to make the parabola steeper on the same $x$-interval. Does the curve get longer or shorter?

Unsure about the theory?Ask about anything you don't understand in this section and the AI will explain it using these notes.
Practice★☆☆Not started
Write, but do not evaluate, a definite integral for the length of the curve $y = x^2$ from $x=0$ to $x=1$. Write the formula for arc length first, then substitute.

Write, but do not evaluate, a definite integral for the length of the curve $y = x^2$ from $x=0$ to $x=1$. Write the formula for arc length first, then substitute.

Solve
Practice★☆☆Not started
Use the arc length formula to find the length of the line $y = 2x+1$ from $x=0$ to $x=3$. Then confirm your answer with the distance formula between the two endpoints.

Use the arc length formula to find the length of the line $y = 2x+1$ from $x=0$ to $x=3$. Then confirm your answer with the distance formula between the two endpoints.

Solve

Perfect Squares Under the Root

The square root makes most arc length integrals impossible to do by hand. Problems that ask for an exact answer are built so the root disappears. Two patterns show up again and again.

Pattern A: the radicand is linear. For $y = kx^{3/2}$, the derivative is a multiple of $x^{1/2}$, so $(y')^2$ is a multiple of $x$. Then $1 + (y')^2$ is a linear expression, and a $u$-substitution finishes the job.

Pattern B: the radicand is a perfect square. The curve is chosen so that $1 + (y')^2 = (\text{something})^2$.

Unsure about the theory?Ask about anything you don't understand in this section and the AI will explain it using these notes.
Practice★☆☆Not started
Find the length of the curve $y = \dfrac{2}{3}x^{3/2}$ from $x=0$ to $x=3$. Show that the expression under the square root simplifies so the integral can be done by hand.

Find the length of the curve $y = \dfrac{2}{3}x^{3/2}$ from $x=0$ to $x=3$. Show that the expression under the square root simplifies so the integral can be done by hand.

Solve
Practice★★☆Not started
Let $y = \dfrac{x^3}{3} + \dfrac{1}{4x}$ for $1 \le x \le 2$. Show that $1 + (y')^2$ is a perfect square, and use this to find the exact length of the curve.

Let $y = \dfrac{x^3}{3} + \dfrac{1}{4x}$ for $1 \le x \le 2$. Show that $1 + (y')^2$ is a perfect square, and use this to find the exact length of the curve.

Solve

Exponential Curves and Hanging Cables

A cable hanging between two towers does not hang in a parabola. It hangs in a catenary, built from $e^{x}$ and $e^{-x}$. These curves have a perfect square waiting for you, thanks to one fact: $e^{x/a}\cdot e^{-x/a} = 1$.

Why? Square the derivative: $(y')^2 = \dfrac{e^{2x/a} - 2 + e^{-2x/a}}{4}$, because the cross term is $-2e^{x/a}e^{-x/a} = -2$. Adding $1 = \dfrac{4}{4}$ turns the $-2$ into $+2$, and the numerator becomes $\left(e^{x/a} + e^{-x/a}\right)^2$.

Unsure about the theory?Ask about anything you don't understand in this section and the AI will explain it using these notes.
Practice★★☆Not started
Find the exact length of the curve $y = \dfrac{e^x+e^{-x}}{2}$ from $x=0$ to $x=\ln 2$. Show that $1+(y')^2 = \left(\dfrac{e^x+e^{-x}}{2}\right)^2$.

Find the exact length of the curve $y = \dfrac{e^x+e^{-x}}{2}$ from $x=0$ to $x=\ln 2$. Show that $1+(y')^2 = \left(\dfrac{e^x+e^{-x}}{2}\right)^2$.

Solve
Practice★★★Not started
A cable hangs between two towers 40 feet apart. With the origin at ground level midway between the towers, the cable is modeled by…

A cable hangs between two towers 40 feet apart. With the origin at ground level midway between the towers, the cable is modeled by $y = 10\left(e^{x/20}+e^{-x/20}\right)$ for $-20 \le x \le 20$, in feet.

(a) Show that $\sqrt{1+(y')^2} = \dfrac{e^{x/20}+e^{-x/20}}{2}$.

(b) Find the exact length of the cable, and then approximate it to the nearest tenth of a foot.

Solve

When the Calculator Does the Work

Most curves have no neat perfect square. For $y = x^3$ on $[0, 1]$ the formula gives

$$L = \int_0^1 \sqrt{1 + 9x^4}\,dx.$$

This integrand has no elementary antiderivative. No combination of polynomials, roots, exponentials, logs, and trig functions differentiates to it. That does not mean the length does not exist. It means you evaluate the integral numerically.

On a calculator-active problem, do this:

  1. Find $y'$ by hand and write the integral with its limits and $dx$. On the AP exam, this setup is what earns the credit.

  2. Enter the integrand and limits into your calculator (fnInt( on a TI-84, or an integral in Desmos).

  3. Report the value to three decimal places, with units if the problem has them.

For $y = x^3$ on $[0, 1]$ the result is $L \approx 1.548$. That is bigger than the chord length $\sqrt{1^2 + 1^2} \approx 1.414$, as it should be.

When a problem asks "by what percent is the length longer than the horizontal distance," compare with the horizontal run $b - a$:

$$\text{percent longer} = \frac{L - (b - a)}{b - a}\times 100\%.$$
Unsure about the theory?Ask about anything you don't understand in this section and the AI will explain it using these notes.
Practice★☆☆Not started
(Calculator active) Write an integral for the length of one arch of $y=\sin x$ from $x=0$ to $x=\pi$. Explain why it cannot be evaluated with elementary antiderivatives,…

(Calculator active) Write an integral for the length of one arch of $y=\sin x$ from $x=0$ to $x=\pi$. Explain why it cannot be evaluated with elementary antiderivatives, then use your calculator to evaluate it to three decimal places.

Solve
Practice★★☆Not started
(Calculator active) A bike path is modeled by $y = e^x$ for $0 \le x \le 1$, where $x$ and $y$ are in miles. Write an integral for the length of the path and use your…

(Calculator active) A bike path is modeled by $y = e^x$ for $0 \le x \le 1$, where $x$ and $y$ are in miles. Write an integral for the length of the path and use your calculator to evaluate it to three decimal places. Include units.

Solve
Practice★★★Not started
(Calculator active) A section of roller coaster track is modeled by $y = 30\sin\left(\dfrac{\pi x}{60}\right)$ for $0\le x\le 60$, with $x$ and $y$ in feet. (a) Write an…

(Calculator active) A section of roller coaster track is modeled by $y = 30\sin\left(\dfrac{\pi x}{60}\right)$ for $0\le x\le 60$, with $x$ and $y$ in feet.

(a) Write an integral for the length of the track.

(b) Evaluate it with your calculator to the nearest tenth of a foot.

(c) By what percent is the track longer than the 60-foot horizontal distance it covers? Round to the nearest percent.

Solve

Arc Length from a Table

Sometimes you do not know $f$ at all. You only know the slope $f'$ at a few points, say from a GPS log. The arc length integral still makes sense:

$$L = \int_a^b g(x)\,dx, \quad\text{where } g(x) = \sqrt{1 + (f'(x))^2}.$$

Compute $g$ at each table value, then apply a trapezoidal sum with the table's subintervals:

$$L \approx \sum \tfrac{1}{2}\left[g(x_i) + g(x_{i+1})\right]\,\Delta x_i.$$

The subintervals do not have to be equal. Use the actual width of each one.

Unsure about the theory?Ask about anything you don't understand in this section and the AI will explain it using these notes.
Practice★★☆Not started
A hiking trail is modeled by $y=f(x)$ for $0\le x\le 4$, where $x$ and $y$ are in miles. The derivative $f'$ is differentiable, and its values are given in the table. |…

A hiking trail is modeled by $y=f(x)$ for $0\le x\le 4$, where $x$ and $y$ are in miles. The derivative $f'$ is differentiable, and its values are given in the table.

$x$ 0 1 2 3 4
$f'(x)$ 0 0.5 1 1.5 2

Write an integral for the length of the trail. Then use a trapezoidal sum with the four subintervals of the table to approximate it, rounding to three decimal places.

Solve

Arc Length vs. Straight-Line Distance

A straight line is the shortest path between two points. So the arc length of any curve is at least the distance between its endpoints. The formula says the same thing in its own way: the integrand $\sqrt{1 + (f'(x))^2}$ is always at least $1$, so $L \ge b - a$.

The dashed chord is the straight-line distance between the two endpoints of the curve; the arc length (thick curve) covers more ground, so L ≥ b − a. chord: straight-line distance arc length (curve) The dashed chord is the straight-line distance between the two endpoints of the curve; the arc length (thick curve) covers more ground, so L ≥ b − a.

Now, the most common wrong setups. Each one has a quick way to catch it.

Back to Mateo's app: the trail distance is the integral of $\sqrt{1 + (f'(x))^2}$, and it is never less than the straight-line distance. The two numbers are equal only when the trail is a straight line.

Unsure about the theory?Ask about anything you don't understand in this section and the AI will explain it using these notes.
Practice★★★Not started
(Calculator active) Let $f(x) = \dfrac{x^2}{2} - \dfrac{\ln x}{4}$ for $1 \le x \le e$. (a) Show that $1+(f'(x))^2$ is a perfect square and find the exact arc length of…

(Calculator active) Let $f(x) = \dfrac{x^2}{2} - \dfrac{\ln x}{4}$ for $1 \le x \le e$.

(a) Show that $1+(f'(x))^2$ is a perfect square and find the exact arc length of the graph.

(b) Find the straight-line distance between the endpoints of the graph and compare it with your answer from (a). Explain why the arc length must be at least as large as the distance.

Solve
Practice★★★Not started
(Calculator active) A student writes the length of $y=x^2$ from $x=0$ to $x=2$ as $\int_0^2\sqrt{1+x^4}\,dx$. (a) Identify the student's error and write the correct…

(Calculator active) A student writes the length of $y=x^2$ from $x=0$ to $x=2$ as $\int_0^2\sqrt{1+x^4}\,dx$.

(a) Identify the student's error and write the correct integral.

(b) Without evaluating either integral, explain why the student's value is smaller than the correct one. Compare $x^4$ and $4x^2$ on $(0,2)$.

(c) Evaluate the correct integral to three decimal places.

Solve

Summary

Can't find your problem here?

The AI checks one of your exercises: paste the problem with your answer or take a photo of it.

See all the exercises in this section