Math Core

Lesson 4.2 · Applications of Integration

Arc length

How long is a curve? A ruler only measures straight segments, but calculus lets you break a curve into tiny pieces that are almost straight, measure each piece with the Pythagorean theorem, and add them up. Arc length is a BC-only topic, and the same idea returns in the next unit for parametric and polar curves.

Building the formula

Suppose y=f(x)y = f(x) has a continuous derivative on [a,b][a, b]. Zoom in on a tiny piece of the curve. It looks like the hypotenuse of a right triangle with horizontal leg dxdx and vertical leg dydy, so its length is

ds=(dx)2+(dy)2.ds = \sqrt{(dx)^2 + (dy)^2}.

Factor (dx)2(dx)^2 out of the square root:

ds=1+(dydx)2 dx.ds = \sqrt{1 + \left(\frac{dy}{dx}\right)^2}\,dx.

Adding all the pieces from x=ax = a to x=bx = b gives the length of the whole curve.

Arc length

If f′f' is continuous on [a,b][a, b], the length of the curve y=f(x)y = f(x) from x=ax = a to x=bx = b is

L=∫ab1+(f′(x))2 dx.L = \int_a^b \sqrt{1 + \big(f'(x)\big)^2}\,dx.

If the curve is given as x=g(y)x = g(y) for c≤y≤dc \le y \le d, the length is

L=∫cd1+(g′(y))2 dy.L = \int_c^d \sqrt{1 + \big(g'(y)\big)^2}\,dy.

A quick check: for a line y=mx+by = mx + b, the integrand is the constant 1+m2\sqrt{1 + m^2}, so the length from x=ax = a to x=bx = b is (b−a)1+m2(b - a)\sqrt{1 + m^2}. That is exactly the distance formula, which is a good sign the formula is right.

When can you integrate by hand?

The square root makes most arc length integrals impossible to find with elementary antiderivatives. Even y=x2y = x^2 from 00 to 11 gives ∫011+4x2 dx\int_0^1 \sqrt{1 + 4x^2}\,dx, which needs a trig substitution. On the AP exam, arc length appears in two ways:

  • Calculator questions: set up the integral and evaluate it numerically.
  • Hand questions: the function is chosen so that 1+(f′)21 + (f')^2 is a perfect square, or so a simple uu-substitution works.

The perfect-square trick shows up often. If f′(x)=A−Bf'(x) = A - B where 4AB=14AB = 1, then

1+(A−B)2=A2−2AB+B2+1=A2+2AB+B2=(A+B)2,1 + (A - B)^2 = A^2 - 2AB + B^2 + 1 = A^2 + 2AB + B^2 = (A + B)^2,

and the square root disappears.

The curve y = (2/3)x^(3/2) from (0, 0) to (3, 2√3). Its length is 14/3 ≈ 4.67, a bit more than the straight-line distance √21 ≈ 4.58.Open in grapher →

Worked example: A u-substitution

Find the length of y=23x3/2y = \tfrac{2}{3}x^{3/2} from x=0x = 0 to x=3x = 3.

Here y′=x1/2y' = x^{1/2}, so 1+(y′)2=1+x1 + (y')^2 = 1 + x.

L=∫031+x dx=[23(1+x)3/2]03=23(8−1)=143.L = \int_0^3 \sqrt{1 + x}\,dx = \left[\tfrac{2}{3}(1 + x)^{3/2}\right]_0^3 = \tfrac{2}{3}\big(8 - 1\big) = \tfrac{14}{3}.

Worked example: A perfect square

Find the length of y=x36+12xy = \dfrac{x^3}{6} + \dfrac{1}{2x} from x=1x = 1 to x=2x = 2.

y′=x22−12x2.y' = \frac{x^2}{2} - \frac{1}{2x^2}.

With A=x22A = \dfrac{x^2}{2} and B=12x2B = \dfrac{1}{2x^2}, we have 4AB=14AB = 1. So

1+(y′)2=(x22+12x2)2.1 + (y')^2 = \left(\frac{x^2}{2} + \frac{1}{2x^2}\right)^2.

L=∫12(x22+12x2)dx=[x36−12x]12=(43−14)−(16−12)=1312+13=1712.L = \int_1^2 \left(\frac{x^2}{2} + \frac{1}{2x^2}\right)dx = \left[\frac{x^3}{6} - \frac{1}{2x}\right]_1^2 = \left(\frac{4}{3} - \frac{1}{4}\right) - \left(\frac{1}{6} - \frac{1}{2}\right) = \frac{13}{12} + \frac{1}{3} = \frac{17}{12}.

Worked example: A trig identity

Find the length of y=ln⁡(cos⁡x)y = \ln(\cos x) from x=0x = 0 to x=π4x = \dfrac{\pi}{4}.

y′=−sin⁡xcos⁡x=−tan⁡x,1+(y′)2=1+tan⁡2x=sec⁡2x.y' = \frac{-\sin x}{\cos x} = -\tan x, \qquad 1 + (y')^2 = 1 + \tan^2 x = \sec^2 x.

On [0,π4]\left[0, \tfrac{\pi}{4}\right], sec⁡x>0\sec x > 0, so sec⁡2x=sec⁡x\sqrt{\sec^2 x} = \sec x.

L=∫0π/4sec⁡x dx=[ln⁡∣sec⁡x+tan⁡x∣]0π/4=ln⁡(2+1)−ln⁡1=ln⁡(2+1).L = \int_0^{\pi/4} \sec x\,dx = \Big[\ln|\sec x + \tan x|\Big]_0^{\pi/4} = \ln\big(\sqrt{2} + 1\big) - \ln 1 = \ln\big(\sqrt{2} + 1\big).

Worked example: Calculator active

Find the length of y=x2y = x^2 from x=0x = 0 to x=1x = 1, to three decimal places.

L=∫011+(2x)2 dx=∫011+4x2 dx≈1.479.L = \int_0^1 \sqrt{1 + (2x)^2}\,dx = \int_0^1 \sqrt{1 + 4x^2}\,dx \approx 1.479.

On a calculator question, the setup is worth as much as the number. Write the integral, then evaluate.

Common mistake

The most common mistake is forgetting to square the derivative, or forgetting the 11. The integrand is 1+(f′)2\sqrt{1 + (f')^2}, not 1+f′\sqrt{1 + f'} and not (f′)2\sqrt{(f')^2}. Another slip is taking the square root of 1+(f′)21 + (f')^2 term by term: 1+u2\sqrt{1 + u^2} is not 1+u1 + u.

Tip

Arc length is always at least the straight-line distance between the endpoints. If your answer is shorter than the chord, something is wrong.

Curves given as x = g(y)

Sometimes xx is the easier function. For example, the curve x=12y2x = \tfrac{1}{2}y^2 from y=0y = 0 to y=1y = 1 has dxdy=y\dfrac{dx}{dy} = y, so its length is ∫011+y2 dy\int_0^1 \sqrt{1 + y^2}\,dy. Use whichever variable makes the derivative simpler, and make sure the limits match the variable you integrate in.

Practice

Practice 1

Use the arc length formula to find the length of y=3x+1y = 3x + 1 from x=0x = 0 to x=2x = 2.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 2

Which integral gives the length of the curve y=sin⁡xy = \sin x from x=0x = 0 to x=πx = \pi?

Practice 3

Find the exact length of y=x3/2y = x^{3/2} from x=0x = 0 to x=4x = 4.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 4

Find the length of y=x48+14x2y = \dfrac{x^4}{8} + \dfrac{1}{4x^2} from x=1x = 1 to x=2x = 2.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 5

Find the length of the curve x=23(y−1)3/2x = \tfrac{2}{3}(y - 1)^{3/2} from y=1y = 1 to y=9y = 9.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 6

Calculator allowed. Find the length of y=exy = e^x from x=0x = 0 to x=1x = 1. Round to three decimal places.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 7

Find the exact length of y=ln⁡(1−x2)y = \ln(1 - x^2) from x=0x = 0 to x=12x = \tfrac{1}{2}.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 8

The length of a curve y=f(x)y = f(x) from x=1x = 1 to x=4x = 4 is given by ∫141+9x2 dx\displaystyle\int_1^4 \sqrt{1 + \frac{9}{x^2}}\,dx. Which could be f(x)f(x)?