Arc Length

Pythagoras on a tiny piece of curve.

A small piece is almost straight

Zoom in on a short piece of a smooth curve and it looks straight. Across the piece x changes by dx and y by dy, so the piece is the hypotenuse of a right triangle with legs dx and dy.

By Pythagoras its length ds satisfies ds² = dx² + dy², so ds = √(dx² + dy²).

dydxds

A short piece of curve, ds, as the hypotenuse of a right triangle with legs dx across and dy up.

Take dx out of the root

Factor dx² out of the root: √(dx² + dy²) = √(1 + (dy/dx)²) dx. Adding every piece from x = a to x = b is integrating, so the length of the curve is L = ∫ √(1 + (dy/dx)²) dx from a to b.

A straight line checks it. For y = 4x/3 from 0 to 3, dy/dx = 4/3, so the root is √(1 + 16/9) = √(25/9) = 5/3 at every x, and L = 5/3 × 3 = 5: the hypotenuse of a 3, 4, 5 triangle.

chord sum 6.876true length 6.977

each chord is √(Δx² + Δy²), and the sum climbs toward the integral as the chords multiply; the shortfall is 0.101

Add chords until the sum is within 0.01 of the true length

The parabola y = (x − 2)² / 1.5 from 0 to 4, followed by 4 straight chords, each √(Δx² + Δy²). The chords add to 6.876, short of the true length 6.977, because each chord cuts across a bend. Add chords and the sum climbs: 8 give 6.951, and 13 come within 0.01.

A curve that integrates exactly

Take y = ⅔x√x from x = 0 to 3. Its gradient is dy/dx = √x, so 1 + (dy/dx)² = 1 + x, and L is the integral of √(1 + x) from 0 to 3.

An antiderivative is ⅔(1 + x)√(1 + x). At x = 3 that is ⅔ × 4 × 2 = 16/3, and at x = 0 it is ⅔, so L = 16/3 − 2/3 = 14/3, about 4.667.

The straight chord between the ends, (0, 0) and (3, 2√3), is √(9 + 12) = √21, about 4.583. The curve is a little longer, as any curve between two points must be.

xy

y = ⅔x√x from (0, 0) to (3, 2√3), with the straight chord between the ends. The curve is 14/3 long, about 4.667, and the chord is √21, about 4.583.

Most lengths are found numerically

For most curves the root √(1 + (dy/dx)²) has no simple antiderivative, and the length is found numerically, by adding many short chords as the figure above does.

For y = x² from 0 to 1, dy/dx = 2x and L is the integral of √(1 + 4x²) from 0 to 1, which comes to about 1.479. Two bounds check it: the chord from (0, 0) to (1, 1) is √2, about 1.414, and the path 1 across and then 1 up is 2, so the curve’s length lies between them.

This one does have an exact value, through the substitution 2x = sinh u: √5/2 + ¼ arsinh 2, which is the same 1.479.

A curve given by a parameter

When x and y are both given in terms of a parameter t, take dt out of the root instead: ds = √((dx/dt)² + (dy/dt)²) dt, and L is its integral between the two values of t.

A circle checks it. With x = r cos t and y = r sin t, dx/dt = −r sin t and dy/dt = r cos t, so the root is √(r²sin²t + r²cos²t) = r. From t = 0 to 2π the length is 2πr, the circumference.

For x = t² and y = t³ from t = 0 to 1, dx/dt = 2t and dy/dt = 3t², so the root is √(4t² + 9t⁴) = t√(4 + 9t²). An antiderivative is (4 + 9t²)√(4 + 9t²)/27, so L = (13√13 − 8)/27, about 1.440. The chord from (0, 0) to (1, 1) is √2, about 1.414.

The usual mistakes

Integrating dy/dx. That adds up the rises and gives the change in y, not the length.

Dropping the 1 under the root. The 1 is the dx side of the triangle; without it the integral again measures only the rise.

Giving the chord. The straight distance between the ends is shorter than the curve.

Using dy/dx for a curve given by a parameter. Take dt out of the root, so that both dx/dt and dy/dt are squared and added.

A roller coaster

In the application below, a roller coaster’s first drop has gradient √(x/96), so 1 + (dy/dx)² = 1 + x/96 and the root integrates exactly. The integral of the gradient alone gives how far the track drops, and the straight ramp is the chord.

Worked example: A Roller Coaster's First Drop: The Length of the Graded Track Against the Straight Line Under It

Question A roller coaster's first drop is graded so that, x meters from the crest, it falls with gradient √x96: level as it leaves the crest, and steepening all the way down. The graded track runs 54 meters from the crest. (a) Find the length of the graded surface. (b) Find how far the track drops over that run, and how much longer the graded surface is than a straight ramp between the same two points.

  1. 1.A short piece of the surface has horizontal side dx and vertical side dydxdx, so by Pythagoras' theorem its length is √1 + (dydx)2 dx. Here (dydx)2 = x96, so the length is L = ∫054√1 + x96 dx.

    −27−18−900183654x, meters from the crestmeters fallena short piecethe gradient squared is x/96
    −27−18−900183654x, meters from the crestmeters fallena short piecethe gradient squared is x/96
    A short piece of the track has sides dx and dydxdx, so its length is √1 + x96 dx.
  2. 2.Integrate: ∫√1 + x96 dx = 96 × 23(1 + x96)32 = 64(1 + x96)32.

    −27−18−900183654x, meters from the crestmeters fallenthe gradient squared is x/96the integral is 64(1 + x/96)3/2
    −27−18−900183654x, meters from the crestmeters fallenthe gradient squared is x/96the integral is 64(1 + x/96)3/2
    An antiderivative is 96 × 23(1 + x96)32 = 64(1 + x96)32.
  3. 3.(a) At x = 54, 1 + 5496 = 2516, whose three-halves power is 12564, so the bracket is 64 × 12564 = 125; at x = 0 it is 64. The graded surface is 125 − 64 = 61 meters long.

    −27−18−900183654x, meters from the crestmeters fallen61 m of surfacethe gradient squared is x/96the integral is 64(1 + x/96)3/2(a) 125 − 64 = 61 m of graded surface
    −27−18−900183654x, meters from the crestmeters fallen61 m of surfacethe gradient squared is x/96the integral is 64(1 + x/96)3/2(a) 125 − 64 = 61 m of graded surface
    (a) At x = 54 the bracket is 2516, so the value is 125, against 64 at x = 0: the surface is 61 meters.
  4. 4.(b) The drop is the integral of the gradient itself: ∫054√x96 dx = 23 × 5432√96 = 23 × 54 × √5496 = 23 × 54 × 34 = 27 meters.

    −27−18−900183654x, meters from the crestmeters fallen61 m of surfacedrop 27the gradient squared is x/96the integral is 64(1 + x/96)3/2(a) 125 − 64 = 61 m of graded surfacethe drop is 27 m over a run of 54 m
    −27−18−900183654x, meters from the crestmeters fallen61 m of surfacedrop 27the gradient squared is x/96the integral is 64(1 + x/96)3/2(a) 125 − 64 = 61 m of graded surfacethe drop is 27 m over a run of 54 m
    The drop is the integral of the gradient itself, ∫054√x96 dx = 23 × 54 × 34 = 27 meters.
  5. 5.A straight ramp from the lip to the landing point is √542 + 272 = √3645 = 27√5 = 60.37 meters, so the graded surface is 61 − 60.37 = 0.63 meters longer. Check: the gradient nowhere exceeds 34, so the surface cannot be longer than 54 × √1 + 916 = 54 × 1.25 = 67.5 meters, nor shorter than the straight ramp, and 61 lies between.

    −27−18−900183654x, meters from the crestmeters fallen61 m of surfacedrop 27ramp 60.37 mthe gradient squared is x/96the integral is 64(1 + x/96)3/2(a) 125 − 64 = 61 m of graded surfacethe drop is 27 m over a run of 54 m(b) straight ramp 27√5= 60.37 mso the surface is 0.63 m longer
    −27−18−900183654x, meters from the crestmeters fallen61 m of surfacedrop 27ramp 60.37 mthe gradient squared is x/96the integral is 64(1 + x/96)3/2(a) 125 − 64 = 61 m of graded surfacethe drop is 27 m over a run of 54 m(b) straight ramp 27√5= 60.37 mso the surface is 0.63 m longer
    (b) A straight ramp is √542 + 272 = 27√5 = 60.37 meters, so the graded surface is 0.63 meters longer.

Answer: (a) the graded surface is 61 meters long; (b) it drops 27 meters, and a straight ramp between the same two points is 27√5 = 60.37 meters, so the graded surface is only 0.63 meters longer

Common mistakes

  • Answering part (a) with the straight distance √542 + 272 = 60.37 meters. That is the chord from the lip to the landing point and runs under the hill the whole way; the graded surface bends away from it and is 61 meters.
  • Integrating the gradient instead of the element of length, ∫054√x96 dx = 27. That number is the drop, not the length: the 1 under the root is the horizontal side of the little triangle, and dropping it throws the horizontal run away.

More using integration problems, worked step by step →

Practice Arc Length in the app