We know how to find the distance along a straight line, but how do we measure distance along a curve? Let's find the length L along the curve y=32x23 from x=0 to x=3.
Let's start with a straight segment, from (0,0) to (4,3). Its rise is the slope 43 times the run 4, so in the Pythagorean theorem we can factor the run out.
42+(43⋅4)2=1+(43)2⋅4=45⋅4=5
So for any straight line, the length is the run multiplied by one fixed stretch factor, 1+slope2. On a curve, the slope f′(x) changes from point to point, so there's no single factor. Instead, we zoom in until a tiny piece of the curve looks nearly straight, and call its length ds.
x
y
ds
dx
dy
Find the formula for the length of a curve from x=a to x=b
1
2
3
1
2
3
x
y
0
y=32x23
Text solution
One tiny pieceThe piece has run dx and rise dy, and from linear approximation, the rise is the slope times the run.
ds=dx2+dy2
dy=f′(x)dx
Factor out dxBoth terms under the square root have dx2. What's left is the same stretch factor, with the slope at that piece.
ds=dx2+f′(x)2dx2
ds=1+f′(x)2dx
Adding up all the tiny pieces ds from x=a to x=b gives the length of the curve.
Arc length
L=∫abds=∫ab1+f′(x)2dx
Because f′(x)2 is never negative, the stretch factor 1+f′(x)2 is always at least 1. So the length of the curve is always at least b−a, and equals b−a only if the slope is 0 the whole way. Now let's go back to our curve.
Find the length of y=32x23 from x=0 to x=3
1
2
1
2
3
x
y
y=32x23
0
3
Text solution
Square the derivativeSquaring x21 gets rid of its square root.
f′(x)=x21,f′(x)2=x
IntegrateSubstituting u=1+x gives the antiderivative.
L=∫031+xdx=32(1+x)2303
=32(8−1)=314
Compare with the straight segmentThe segment from (0,0) to (3,23) has length 32+(23)2=21, and the curve should be a little longer. It is.
(314)2=9196>9189=21
How can an area under another graph measure arc length?
2
Why arc-length problems use strange functions
Let's see what happens if we try a simple curve like y=x3 from x=0 to x=1.
y=x3:f′(x)2=9x4,L=∫011+9x4dx
y=x3:f′(x)2=9x4,L=∫011+9x4dx
There's no x3 outside the square root to give du, and in fact there's no antiderivative we can write down, so we'd have to leave the integral as it is or use a calculator. Most simple curves give an integral like this. So problems we can do by hand often use a function chosen so that 1+f′(x)2 turns into a perfect square, which gets rid of the square root. Let's see how that works on y=6x3+2x1.
Its derivative is a difference of two terms, and when we square it, the key is the middle term. The x2 in 2x2 and 2x21 cancels, so there's no x left in it at all.
f′(x)=2x2−2x21
2⋅2x2⋅2x21=21
f′(x)2=4x4−21+4x41
Adding 1 changes the −21 to +21, and the squared difference becomes a squared sum.
1+f′(x)2=4x4+21+4x41=(2x2+2x21)2
Find the length of y=6x3+2x1 from x=1 to x=2
1
x
y
0
y=6x3+2x1
1
2
Text solution
Take the square rootBetween 1 and 2, both 2x2 and 2x21 are positive, so the square root just undoes the square.
1+f′(x)2=2x2+2x21
Integrate the powers of x
L=∫12(2x2+2x21)dx=[6x3−2x1]12
=(34−41)−(61−21)=1217
Trig identities can remove the square root the same way. For y=ln(cosx), the derivative is −tanx, so 1+f′(x)2 becomes sec2x, and where cosx>0, the square root is just secx.
y=ln(cosx):f′(x)=−tanx,1+tan2x=sec2x
y=ln(cosx):f′(x)=−tanx,1+tan2x=sec2x
3
Integrating with respect to y
Now let's find the length of y=x32 from (0,0) to (8,4). Its derivative, 32x−31, goes to infinity as x approaches 0 from the right, so the tangent line at the origin is vertical.
x
y
y=x32
(0,0)
(8,4)
0
4
Near (0,0), the curve is nearly vertical, so in each tiny piece the rise dy is much larger than the run dx. The slope dxdy approaches infinity, but its reciprocal dydx approaches 0. So instead of factoring out dx2, we factor out dy2 from under the square root.
x
y
ds
dx
dy
ds=dx2+dy2=(dydx)2dy2+dy2=1+(dydx)2dy
Find the length of y=x32 from (0,0) to (8,4)
2
4
6
8
2
4
x
y
y=x32
(0,0)
(8,4)
Text solution
Why dx is hard hereIn the dx integral, the square root goes to infinity as x approaches 0.
L=∫081+9x324dx
Write x in terms of yRaising both sides of y=x32 to the 23 power gives x=y23. Then dydx is 0 at y=0 and 3 at y=4, finite the whole way.
dydx=23y21
(dydx)2=49y
Integrate from y=0 to y=4The bounds are the y-coordinates of the endpoints, and u=1+49y finishes it.
L=∫041+49ydy=94∫110u21du
=278(1010−1)
Notice that the letter on the bottom of the derivative matches the variable we integrate in. With dxdy, we integrate with dx and the bounds are x-coordinates. With dydx, we integrate with dy and the bounds are y-coordinates.
Which variable makes the arc-length integral easier here?
Summary
The length of a curve
ds
dx
dy
One small piece
ds=dx2+dy2=1+f′(x)2dx
Total length
L=∫ab1+f′(x)2dx
Each small piece of a curve is the hypotenuse of a right triangle with run dx and rise dy=f′(x)dx. The length of that piece is ds=1+f′(x)2dx, and integrating from a to b adds up all the pieces. If you just integrate dx from a to b, you get b−a, which is only the horizontal run. The square root is always 1 or greater, so multiplying the run by it includes the extra length from the slope.
Making 1+f′(x)2 a perfect square
The middle term changes sign
1+(2x2−2x21)2=(2x2+2x21)2
Using a trig identity
1+tan2x=sec2x
Most arc-length integrals must be left as integrals or evaluated with a calculator. An arc-length integral works out by hand when 1+f′(x)2 becomes a perfect square, so we can take the square root. When f′(x) is a difference of two terms that multiply to 41, the middle term of f′(x)2 is −21, and adding 1 turns it into +21, so 1+f′(x)2 is the square of their sum. Trig identities like 1+tan2x=sec2x can remove the square root the same way.
Integrating with respect to y
L=∫cd1+(dydx)2dy
At a vertical tangent, dxdy goes to positive or negative infinity, but dydx is 0. Write x as a function of y, if it isn't already, and integrate with respect to y. The bounds c and d are the y-coordinates of the endpoints.
4
Practice
Give exact values with no units.
1
Which integral gives the length of the curve y=sinx from x=0 to x=π?
The arc length formula has 1+f′(x)2. What is the derivative of sinx, and what do we get when we square it?
If you got ∫0π1+sin2xdx Under the square root, we need the square of the derivative f′(x), not the square of the original function f(x).
If you got ∫0π1+cosxdx Check the derivative term under the square root. The formula uses f′(x)2, so cosx must be squared.
If you got ∫0π(1+cosx)dx The square root of a sum isn't the sum of the square roots, so 1+cos2x can't be simplified to 1+cosx.
The derivative of sinx is cosx, and squaring it gives cos2x.
f′(x)=cosx,f′(x)2=cos2x
We put 1+f′(x)2 under the square root and integrate from 0 to π.
L=∫0π1+cos2xdx
2
Find the length of the curve y=8x2−lnx from x=1 to x=e.
Differentiate to find f′(x)=4x−x1. What do the two terms multiply to?
If you got 8e2−9 Since e2<9, this answer is negative, but a length must be positive. The square root of (4x+x1)2 is the sum 4x+x1, not the difference.
Find the derivativeDifferentiating gives f′(x)=4x−x1, and the two terms multiply to the constant 41.
f′(x)=4x−x1,4x⋅x1=41
Complete the squareWhen we square f′(x), the middle term is −2(41)=−21. Adding 1 changes that middle term to +21, so 1+f′(x)2 factors into a perfect square.
IntegrateBecause x is between 1 and e, both 4x and x1 are positive, so taking the square root gives their sum.
L=∫1e(4x+x1)dx=[8x2+lnx]1e=8e2+1−81=8e2+7
3
Find the length of the curve y=4−x2 from x=0 to x=1.
Finding the derivative gives f′(x)=4−x2−x, so f′(x)2=4−x2x2. What do you get when you write 1+4−x2x2 over the common denominator 4−x2?
If you got 6π Check the numerator when you take the square root of 4−x24. The square root of 4 is 2.
Find the derivativeBy the chain rule, f′(x) is 4−x2−x, so squaring it gives 4−x2x2.
f′(x)=4−x2−x,f′(x)2=4−x2x2
Common denominatorWriting 1 with the common denominator 4−x2 cancels the x2 terms, and taking the square root gives 4−x22.
1+4−x2x2=4−x24−x2+x2=4−x24,4−x24=4−x22
IntegrateThe antiderivative of 4−x21 is arcsin2x.
L=∫014−x22dx=2[arcsin2x]01=2⋅6π=3π
Geometric checkThe curve is an arc of the circle x2+y2=4, which has radius 2. The angle between the radii to the endpoints is 6π, so multiplying the radius by the angle gives the same length.
(0,2) at angle 2π,(1,3) at angle 3π:2⋅(2π−3π)=2⋅6π=3π
4
Find the length of the curve x=31(y2+2)23 from the point (322,0) to the point (3,1).
Since x is given in terms of y, integrate with respect to y. Which coordinates of the two points give the bounds?
If you got 23−81702 Check your bounds. The integral is in y, so use the y-coordinates 0 and 1, not the x-coordinates.If you got 3−322 Check what's under the square root. Leaving out the 1 only finds the horizontal distance between the points, not the arc length.
Differentiate with respect to yDifferentiating x with respect to y using the chain rule gives yy2+2.
dydx=31⋅23(y2+2)21⋅2y=yy2+2
Complete the squareSquaring dydx gives y4+2y2, and adding 1 forms the perfect square (y2+1)2.
(dydx)2=y4+2y2,1+y4+2y2=(y2+1)2
Find the boundsBecause we integrate with respect to y, the bounds are the y-coordinates of the two points.
(322,0)→y=0,(3,1)→y=1
IntegrateThe square root of (y2+1)2 is y2+1, and integrating from y=0 to y=1 gives 34.
L=∫01(y2+1)dy=[3y3+y]01=34
5
The length of the curve y=f(x) from x=1 to x=4 is ∫141+9x4dx, and the curve passes through the point (1,6). Which of these could be the curve?
Compare 1+9x4 with the arc length formula 1+f′(x)2. What does that make f′(x)2?
If you got y=59x5+5219x4 is f′(x)2, not f′(x). Take the square root of 9x4 before finding the antiderivative.
If you got y=3x2+33x2 is the derivative f′(x), so integrate it to find f(x).
If you got y=x3+6 Check the point (1,6). Plugging x=1 into x3+6 gives 7, not 6.
Find the derivativeMatching 1+9x4 with 1+f′(x)2 gives f′(x)2=9x4, so f′(x) could be 3x2 or −3x2. Let's take the positive choice to find one possible curve.
1+f′(x)2=1+9x4→f′(x)2=9x4→f′(x)=±3x2
Find the curveThe antiderivative of 3x2 is x3+C, and plugging in (1,6) gives C=5.
f(x)=x3+C,f(1)=1+C=6→C=5→y=x3+5
6
Find the length of the curve y=x2 from x=0 to x=21. (Challenge)
Under the square root, 1+4x2 is 1+(2x)2. What substitution uses 1+tan2θ=sec2θ?
When x=21, we have 2x=1. What angle θ has tanθ=1?
Use ∫sec3θdθ=21(secθtanθ+ln∣secθ+tanθ∣)+C.
If you got 21(2+ln(1+2)) Check the substitution for dx. Differentiating 2x=tanθ gives 2dx=sec2θdθ, so dx=21sec2θdθ.If you got 41(sec21tan21+ln(sec21+tan21)) Remember to change the bounds from x to θ. When x=21,tanθ=1, so θ=4π.
Set up the integralThe derivative is 2x, so squaring it gives 4x2 under the square root.
f′(x)=2x,L=∫0211+4x2dx
Trig substitution and boundsSince 4x2=(2x)2, the substitution 2x=tanθ turns the square root into secθ, and x=21 gives θ=4π.
2x=tanθ,dx=21sec2θdθ,1+4x2=secθ
x=0→θ=0,x=21→tanθ=1→θ=4π
Substitute into the integralSubstituting dx=21sec2θdθ gives 21∫sec3θdθ.