Calculus · Applications of the definite integral

Arc Length: Measuring a Curve with a Ruler

How long is a curved path? A ruler only measures straight segments, so we do what surveyors do: replace the curve by many short straight pieces, measure those, and add them up. In the limit, Pythagoras' theorem turns into an integral. This post derives the three arc-length formulas (for \(y = f(x)\), for parametric curves and for polar curves) from that one picture, and works through the classic curves.

1. The idea: Pythagoras on a tiny scale

Mark points \(M_0, M_1, \dots, M_n\) along the curve and join them by straight segments. The length of this inscribed polygon approximates the length of the curve. As the points get denser, the polygon hugs the curve more and more closely, and the arc length is defined as the limit of the polygon's length (when the longest segment tends to zero).

Each short segment is the hypotenuse of a small right triangle with legs \(\Delta x\) and \(\Delta y\), so its length is \( \sqrt{\Delta x^2 + \Delta y^2} \). In the limit this becomes the arc-length differential:

\[ ds = \sqrt{dx^2 + dy^2}. \]

Every formula in this post is this one line, written in different variables.

x y Δx Δy M₀ Mₙ
Figure 1. A curve approximated by an inscribed polygon (red). Each segment is the hypotenuse of a small triangle with legs \(\Delta x\), \(\Delta y\) (enlarged on one segment), so its length is \(\sqrt{\Delta x^2 + \Delta y^2}\).

2. Arc length of \(y = f(x)\)

Formula 1° The length \(s\) of the arc of the curve \( y = f(x) \) between the points with abscissas \( x = a \) and \( x = b \) (\(a < b\)) is \[ s = \int_a^b\sqrt{1 + y'^2}\,dx, \] provided \( f' \) is continuous on \([a, b]\).

Derivation. Factor \(dx\) out of the root: \( ds = \sqrt{dx^2 + dy^2} = \sqrt{1 + \big(\frac{dy}{dx}\big)^2}\,dx \). More carefully, by Lagrange's mean value theorem each segment of the polygon satisfies \( \Delta y_k = f'(\xi_k)\Delta x_k \), so its length is exactly \( \sqrt{1 + f'(\xi_k)^2}\,\Delta x_k \). The polygon's length is therefore a Riemann sum of \( \sqrt{1 + f'^2} \), and it converges to the integral.

Reading the formula: the factor \( \sqrt{1 + y'^2} \ge 1 \) is the "stretch" of the curve compared to its shadow on the \(x\)-axis. Where the curve is flat (\(y' = 0\)), arc length and \(dx\) agree; where it is steep, the curve is much longer than its projection. In particular \( s \ge b - a \): the straight segment is the shortest.

Example 1 · Semicubical parabola \( y = x^{3/2} \), \( 0 \le x \le 4 \): \( y' = \frac32x^{1/2} \), \( 1 + y'^2 = 1 + \frac94x \): \[ s = \int_0^4\Big(1 + \frac94x\Big)^{1/2}dx = \frac{8}{27}\Big[\Big(1 + \frac94x\Big)^{3/2}\Big]_0^4 = \frac{8}{27}\big(10\sqrt{10} - 1\big) \approx 9.073. \] For comparison, the straight line from \((0, 0)\) to \((4, 8)\) has length \( \sqrt{80} \approx 8.944 \).
Example 2 · The catenary The shape of a hanging chain is \( y = \cosh x \). Since \( 1 + \sinh^2 x = \cosh^2 x \), the root disappears: \[ s = \int_0^a\cosh x\,dx = \sinh a. \] Curves for which \(1 + y'^2\) is a perfect square are exactly the ones whose arc length is easy; they are rarer than one would like.
Example 3 · A parabola \( y = \frac{x^2}{2} \), \( 0 \le x \le 1 \): \( s = \int_0^1\sqrt{1 + x^2}\,dx \). This is the integral of Section 5 of the post on irrational functions: \[ s = \frac12\Big[x\sqrt{1 + x^2} + \ln\big(x + \sqrt{1 + x^2}\big)\Big]_0^1 = \frac12\Big(\sqrt2 + \ln\big(1 + \sqrt2\big)\Big) \approx 1.148. \]

3. Parametric curves

Formula 2° If the curve is given parametrically by \( x = \varphi(t) \), \( y = \psi(t) \), \( t_1 \le t \le t_2 \), then \[ s = \int_{t_1}^{t_2}\sqrt{\varphi'^2(t) + \psi'^2(t)}\,dt, \] provided \(\varphi'\), \(\psi'\) are continuous and the arc is traced once as \(t\) increases from \(t_1\) to \(t_2\).

Derivation: \( dx = \varphi'(t)\,dt \), \( dy = \psi'(t)\,dt \), so \( ds = \sqrt{\varphi'^2 + \psi'^2}\,dt \). Physically, if \(t\) is time, \( \sqrt{\varphi'^2 + \psi'^2} \) is the speed of a point moving along the curve, and the formula says: distance travelled = integral of speed. Formula 1° is the special case \( x = t \), \( y = f(t) \).

Example 4 · The circle \( x = r\cos t \), \( y = r\sin t \), \( 0 \le t \le 2\pi \): \( \sqrt{r^2\sin^2 t + r^2\cos^2 t} = r \), so \( s = 2\pi r \). The definition of \(\pi\) is recovered, as it must be.
Example 5 · One arch of the cycloid A point on the rim of a rolling wheel of radius \(a\) traces the cycloid \( x = a(t - \sin t) \), \( y = a(1 - \cos t) \). One arch: \( 0 \le t \le 2\pi \). \[ x'^2 + y'^2 = a^2\big[(1 - \cos t)^2 + \sin^2 t\big] = 2a^2(1 - \cos t) = 4a^2\sin^2\frac t2, \] \[ s = \int_0^{2\pi}2a\sin\frac t2\,dt = \Big[-4a\cos\frac t2\Big]_0^{2\pi} = 8a. \] The arch is exactly four times the diameter of the wheel, a fact discovered by Christopher Wren in 1658. (Note that \( \sin\frac t2 \ge 0 \) on \([0, 2\pi]\), so the root is \( 2a\sin\frac t2 \) without an absolute value.)
P a 0 2πa s = 8a
Figure 2. One arch of the cycloid, traced by a point \(P\) on a wheel of radius \(a\). Its length is \(8a\), while the wheel travels \(2\pi a \approx 6.28a\).
Example 6 · Astroid \( x = a\cos^3 t \), \( y = a\sin^3 t \). Then \( x'^2 + y'^2 = 9a^2\cos^2 t\sin^2 t\,(\cos^2 t + \sin^2 t) \), so \( ds = 3a|\sin t\cos t|\,dt \). By symmetry, the whole length is four times the first quadrant: \[ s = 4\int_0^{\pi/2}3a\sin t\cos t\,dt = 12a\cdot\frac12 = 6a. \]

4. Polar curves

Formula 3° If the curve is given by \( \rho = f(\varphi) \), the length of its arc between the points \( (\varphi_1, f(\varphi_1)) \) and \( (\varphi_2, f(\varphi_2)) \), \( \varphi_1 < \varphi_2 \), is \[ s = \int_{\varphi_1}^{\varphi_2}\sqrt{\rho^2 + \rho'^2}\,d\varphi, \qquad \rho' = \frac{d\rho}{d\varphi}. \]

Derivation. A polar curve is a parametric curve with parameter \(\varphi\): \( x = \rho\cos\varphi \), \( y = \rho\sin\varphi \). Then

\[ x' = \rho'\cos\varphi - \rho\sin\varphi, \qquad y' = \rho'\sin\varphi + \rho\cos\varphi, \] \[ x'^2 + y'^2 = \rho'^2(\cos^2\varphi + \sin^2\varphi) + \rho^2(\sin^2\varphi + \cos^2\varphi) = \rho^2 + \rho'^2, \]

since the mixed terms cancel. Geometrically: a small step along the curve has a "radial" component \(d\rho\) and a "turning" component \(\rho\,d\varphi\) (an arc of a circle of radius \(\rho\)), at right angles to each other, so \( ds^2 = d\rho^2 + \rho^2\,d\varphi^2 \).

Example 7 · Cardioid \( \rho = a(1 + \cos\varphi) \): \( \rho^2 + \rho'^2 = a^2\big[(1 + \cos\varphi)^2 + \sin^2\varphi\big] = 2a^2(1 + \cos\varphi) = 4a^2\cos^2\frac\varphi2 \). Using symmetry (the upper half, \(0 \le \varphi \le \pi\), where \(\cos\frac\varphi2 \ge 0\)): \[ s = 2\int_0^\pi2a\cos\frac\varphi2\,d\varphi = 8a\Big[\sin\frac\varphi2\Big]_0^\pi = 8a. \]
Example 8 · A spiral of infinite turns and finite length The logarithmic spiral \( \rho = e^\varphi \): \( \rho' = e^\varphi \), so \( \sqrt{\rho^2 + \rho'^2} = \sqrt2\,e^\varphi \). Going from \(\varphi = 0\) inward, towards \(\varphi \to -\infty\): \[ s = \int_{-\infty}^0\sqrt2\,e^\varphi\,d\varphi = \sqrt2. \] The spiral winds around the pole infinitely many times, yet its total length is finite: the turns shrink fast enough (an improper integral that converges).

5. Why arc length is often hard

The square root is the enemy Area formulas integrate \(f\) itself; arc-length formulas integrate \( \sqrt{1 + f'^2} \). That root rarely simplifies, so most arc-length integrals are not elementary. The famous example is the ellipse \( x = a\cos t \), \( y = b\sin t \): \[ s = \int_0^{2\pi}\sqrt{a^2\sin^2 t + b^2\cos^2 t}\,dt, \] an elliptic integral (the name comes from exactly this problem) with no formula in elementary functions. For \(a = 2\), \(b = 1\), numerical integration gives \(9.6884\). Ramanujan's approximation \( \pi(a + b)\Big(1 + \frac{3h}{10 + \sqrt{4 - 3h}}\Big) \), \( h = \big(\frac{a - b}{a + b}\big)^2 \), gives \(9.6884\) too.

That is why textbook examples use special curves (cycloid, astroid, cardioid, catenary) where \(1 + y'^2\) or \(\rho^2 + \rho'^2\) is a perfect square. In practice, arc length is computed numerically, e.g. with Simpson's rule.

6. Summary

CurveArc-length element \(ds\)Length
\( y = f(x) \)\( \sqrt{1 + y'^2}\,dx \)\( \int_a^b\sqrt{1 + y'^2}\,dx \)
\( x = \varphi(t),\ y = \psi(t) \)\( \sqrt{\varphi'^2 + \psi'^2}\,dt \)\( \int_{t_1}^{t_2}\sqrt{\varphi'^2 + \psi'^2}\,dt \)
\( \rho = f(\varphi) \)\( \sqrt{\rho^2 + \rho'^2}\,d\varphi \)\( \int_{\varphi_1}^{\varphi_2}\sqrt{\rho^2 + \rho'^2}\,d\varphi \)
All three come from \( ds^2 = dx^2 + dy^2 \).
CurveLength
Circle of radius \(r\)\(2\pi r\)
One arch of the cycloid\(8a\)
Astroid\(6a\)
Cardioid \(\rho = a(1 + \cos\varphi)\)\(8a\)
Catenary \(y = \cosh x\), \(0 \le x \le a\)\(\sinh a\)

7. Practice problems

Try each one before opening the solution. More solved problems from this topic are in Applications of Definite Integrals.

Problem 1: Find the length of \( y = \ln\cos x \), \( 0 \le x \le \frac\pi4 \).

\( y' = -\tan x \), \( \sqrt{1 + \tan^2 x} = \frac{1}{\cos x} \). So \( s = \int_0^{\pi/4}\frac{dx}{\cos x} = \Big[\ln\tan\Big(\frac x2 + \frac\pi4\Big)\Big]_0^{\pi/4} = \ln\tan\frac{3\pi}{8} = \ln\big(1 + \sqrt2\big) \approx 0.881 \).

Problem 2: Check the length of a straight segment with formula 1°.

\( y = kx \), \( 0 \le x \le a \): \( s = \int_0^a\sqrt{1 + k^2}\,dx = a\sqrt{1 + k^2} \), which is \( \sqrt{a^2 + (ka)^2} \) by Pythagoras.

Problem 3: Find the length of the circle \( \rho = 2a\cos\varphi \) with formula 3°.

\( \rho^2 + \rho'^2 = 4a^2(\cos^2\varphi + \sin^2\varphi) = 4a^2 \); the circle is traced once for \( -\frac\pi2 \le \varphi \le \frac\pi2 \): \( s = 2a\cdot\pi = 2\pi a \).

Problem 4: Find the length of the first turn of the spiral of Archimedes \( \rho = a\varphi \), \( 0 \le \varphi \le 2\pi \) (set up the integral and evaluate).

\( s = a\int_0^{2\pi}\sqrt{\varphi^2 + 1}\,d\varphi = \frac a2\Big[\varphi\sqrt{\varphi^2 + 1} + \ln\big(\varphi + \sqrt{\varphi^2 + 1}\big)\Big]_0^{2\pi} \approx 21.256\,a \).

Problem 5: A point moves by \( x = t^2 \), \( y = \frac23t^3 \). How far does it travel from \(t = 0\) to \(t = \sqrt3\)?

\( x'^2 + y'^2 = 4t^2 + 4t^4 = 4t^2(1 + t^2) \), \( ds = 2t\sqrt{1 + t^2}\,dt \). \( s = \Big[\frac23(1 + t^2)^{3/2}\Big]_0^{\sqrt3} = \frac23(8 - 1) = \frac{14}{3} \).

Problem 6: Why do we need \( \sin\frac t2 \ge 0 \) in the cycloid example?

Because \( \sqrt{4a^2\sin^2\frac t2} = 2a\big|\sin\frac t2\big| \). Forgetting the absolute value can produce wrong (even zero or negative) lengths when the sign changes on the interval; then the interval must be split.

Final thoughts

Arc length is Pythagoras' theorem applied to infinitely many infinitely small triangles: \( ds = \sqrt{dx^2 + dy^2} \). Writing \(dx\) and \(dy\) in terms of \(x\), of a parameter \(t\), or of the polar angle \(\varphi\) gives the three formulas, and the parametric one has a vivid meaning: distance is the integral of speed. The catch is the square root, which makes most arc lengths non-elementary. The curves where it simplifies (cycloid, astroid, cardioid, catenary) have beautiful exact answers, like the cycloid's \(8a\).

Related posts: areas of plane figures (the same "thin pieces" idea), integrating irrational functions, and integrating trigonometric functions.