Arc length of a function graph
If a string is laid along a curve and then pulled straight, its length is the length of the curve. For the graph of a function \(f\) from \(x=a\) to \(x=b\), this length is the arc length \(L\). This topic defines \(L\) with straight segments, finds it as an integral, and tells it apart from area and perimeter.
Straight segments along the graph
A smooth curve, the graph of f from a to b, that dips, rises steeply to a peak and then falls a little. Four orange segments join points of the graph, marked by orange dots. The third segment is thick, with a green horizontal leg delta x sub i and a green vertical leg delta y sub i, and a faint line touches the graph between its ends, parallel to it. Under the graph, a ruler lays the segments end to end, with a mark at the arc length L. Buttons double or halve the number of segments, and the chain moves closer to the graph as segments are added. A toggle bends the graph into two straight pieces that meet at a corner, marked by a red line, and the faint line disappears.
In Figure 1, a chain of \(n\) orange segments joins the points of the graph at \(x_0=a<x_1<\dots<x_n=b\). Segment \(i\), from the point at \(x_{i-1}\) to the point at \(x_i\), is the hypotenuse of a right triangle. Its legs are the changes \(\Delta x_i=x_i-x_{i-1}\) and \(\Delta y_i=f(x_i)-f(x_{i-1})\). Both changes are positive for the thick segment, so its legs are green. By the Pythagorean theorem, the chain has length
The arc length \(L\) is defined as the limit of these totals, if it exists, as \(n\) grows and the largest \(\Delta x_i\) approaches 0. Double the segments with the button under Figure 1. Every point stays, and a new point splits each segment into two. By the triangle inequality, the two new segments together are at least as long as the segment they replace. On the ruler, the segments end to end make an orange bar, which therefore grows toward the mark at \(L\). Adding points never shortens a chain, so no total is larger than \(L\).
Let \(f'\) exist on \([a,b]\). Then \(f\) is differentiable, and so continuous, on each \([x_{i-1},x_i]\). By the Mean Value Theorem (topic 5.1), the graph has a tangent line parallel to segment \(i\) at some \(x_i^*\) between \(x_{i-1}\) and \(x_i\). In Figure 1, the faint line is this tangent for the thick segment. Its slope \(f'(x_i^*)\) is the slope \(\frac{\Delta y_i}{\Delta x_i}\) of the segment, so
Substitute this into each root. Both terms then have the factor \((\Delta x_i)^2\), which comes out of the root as \(\Delta x_i\), because \(\Delta x_i>0\). The chain has length
This is a Riemann sum (topic 6.3) of the function \(\sqrt{1+[f'(x)]^2}\), with sample points \(x_i^*\). If \(f'\) is continuous on \([a,b]\), so is this function. By the theorem on the integrability of continuous functions, its Riemann sums then approach its integral from \(a\) to \(b\), for any sample points. The arc length is therefore the integral of \(\sqrt{1+[f'(x)]^2}\) from \(a\) to \(b\).
By the Fundamental Theorem of Calculus, Part 1 (topic 6.4), the length from \(a\) to \(x\) grows at the rate \(\sqrt{1+[f'(x)]^2}\) per unit of \(x\). This rate is 1 where the graph is horizontal and larger where it is steep. On a line \(y=mx+k\), it is the constant \(\sqrt{1+m^2}\), so the length from \(a\) to \(b\) is \(\sqrt{1+m^2}\,(b-a)\). This product is \(\sqrt{(b-a)^2+\big[m(b-a)\big]^2}\), the distance between the ends.
The argument needs \(f'\) to be continuous on \([a,b]\). Put a corner in the graph with the button under Figure 1. The graph becomes two straight pieces with different slopes. They meet at a corner, which the red line marks, so \(f'\) does not exist there. The thick segment spans the corner, so the Mean Value Theorem does not apply to it. Its slope lies between the slopes of the pieces, so no tangent line is parallel to it, and the faint line disappears. Split the arc at the corner. Then add the lengths of the pieces, which the formula gives.
Integrating with respect to y
The graph of y equals the cube root of x from (0, 0) to (8, 2), which rises straight up from the origin, where it is tangent to the y-axis, and then bends toward the horizontal. Four orange segments join points of the graph at equal steps of x, at x = 0, 2, 4, 6 and 8, so the first segment cuts across the steep part near the origin. A button moves the points along the graph to equal steps of y, at y = 0, 0.5, 1, 1.5 and 2, and the label of the curve changes from y equals cube root of x to x equals y cubed. A slider sets the number of segments. Under the graph, a ruler lays the segments end to end, with a mark at the length L of the arc.
A curve given as \(x=g(y)\) for \(c\le y\le d\) is measured in the same way, with \(x\) and \(y\) exchanged. With the points at \(y_0=c<y_1<\dots<y_n=d\), the Mean Value Theorem for \(g\) gives \(\Delta x_i=g'(y_i^*)\,\Delta y_i\). If \(g'\) is continuous on \([c,d]\), the totals approach the integral of \(\sqrt{1+[g'(y)]^2}\) from \(c\) to \(d\). The bounds are y-values, because the variable of integration is \(y\).
In Leibniz notation, \(f'(x)\) is \(\frac{dy}{dx}\) and \(g'(y)\) is \(\frac{dx}{dy}\). An integral with \(dx\) uses \(\frac{dy}{dx}\), and an integral with \(dy\) uses \(\frac{dx}{dy}\).
Choose a variable for which the arc is the graph of a function with a continuous derivative. A curve given as \(x=g(y)\) may not be the graph of any function of \(x\). A graph \(y=f(x)\) has no derivative where its tangent line is vertical. Figure 2 shows \(y=\sqrt[3]{x}\) from \((0,0)\) to \((8,2)\). At the origin the graph is tangent to the y-axis, so \(\frac{dy}{dx}\), which is \(\frac{1}{3x^{2/3}}\) for \(x\ne0\), does not exist at \(x=0\). The formula with respect to \(x\) does not apply on \([0,8]\), and its integral would be improper (topic 6.13).
Step along \(y\) with the button under Figure 2. The points slide along the graph to equal steps of \(y\). On the ruler, the bar is then closer to the mark at \(L\), because more points lie on the steep part near the origin. Written as \(x=y^3\), the arc has \(\frac{dx}{dy}=3y^2\), which is continuous on \([0,2]\), so its length is the integral of \(\sqrt{1+9y^4}\) from 0 to 2.
Evaluating and checking a length
The root makes most of these integrals hard to evaluate, except in two common cases. If \(1+[f'(x)]^2\) is the square of an expression that is positive on \([a,b]\), the root is that expression. If \(1+[f'(x)]^2\) is linear in \(x\), the substitution \(u=1+[f'(x)]^2\) (topic 6.9) turns the integrand into a constant times \(\sqrt{u}\).
Otherwise, approximate the integral with a calculator, or with a Riemann or trapezoidal sum of the integrand (topic 6.2).
The chord of an arc is the segment that joins its two ends. It is a chain of one segment, so \(L\) is at least its length \(\sqrt{(b-a)^2+[f(b)-f(a)]^2}\). If \(f\) is increasing or decreasing on \([a,b]\), the changes \(\Delta y_i\) all have one sign, so their sizes add up to the rise \(|f(b)-f(a)|\). Each segment is at most as long as its two legs together. Every total, and therefore \(L\), is then at most the run \(b-a\) plus the rise. Test a length against these bounds.
The arc length measures the graph alone, and it uses the slope of \(f\). The area between the graph and the x-axis, \(\int_a^b f(x)\,dx\) when \(f\ge0\), uses the height of \(f\) and is in square units. The perimeter of a region is the length of its whole boundary, which can include straight sides as well as an arc. Include those sides only when the question asks for a perimeter.
Example 1
Build the arc-length integrand
Write, but do not evaluate, an integral expression that gives the length of the graph of \(y=\sin(2x)\) from \(x=0\) to \(x=\frac{\pi}{2}\).
Solution
By the chain rule, \(\frac{dy}{dx}=2\cos(2x)\), which is continuous for every \(x\), so the formula applies on \(\left[0,\frac{\pi}{2}\right]\). Square the whole derivative, with its factor 2. Then add 1:
The integrand is the root of this sum, and the bounds are the x-values of the two ends:
Example 2
Choose the variable and bounds
The curve \(y=\sqrt{x}\) runs from \((4,2)\) to \((9,3)\). Write, but do not evaluate, an integral with respect to \(x\) and an integral with respect to \(y\) that each give the length of the curve.
Solution
With respect to \(x\), the derivative \(\frac{dy}{dx}=\frac{1}{2\sqrt{x}}\) is continuous on \([4,9]\), and its square is \(\frac{1}{4x}\). The bounds are the x-values of the ends:
With respect to \(y\), write the curve as \(x=y^2\), because \(y\ge0\) on it. Then \(\frac{dx}{dy}=2y\) is continuous on \([2,3]\), and the bounds are the y-values of the ends:
As a check, substitute \(x=y^2\) and \(dx=2y\,dy\) in the first integral. The bounds 4 and 9 become 2 and 3, and for \(y>0\) the integrand becomes the second one:
Example 3
Calculate or approximate the length
Let \(f(x)=\dfrac{x^2}{4}-\dfrac{\ln x}{2}\). Find the length of the graph of \(f\) from \(x=1\) to \(x=e\).
Solution
The derivative \(f'(x)=\frac{x}{2}-\frac{1}{2x}\) is continuous for \(x>0\). In its square, the middle term is \(-2\cdot\frac{x}{2}\cdot\frac{1}{2x}=-\frac12\), and adding 1 turns it into \(+\frac12\). The sum is a perfect square:
The expression \(\frac{x}{2}+\frac{1}{2x}\) is positive for \(x>0\), so it is the root:
As a check, \(f'(x)\ge0\) on \([1,e]\), so \(f\) is increasing there. The length must lie between the chord, about 2.04, and the run plus the rise, about 2.82, and \(\frac{e^2+1}{4}\) is about 2.10.
Example 4
Distinguish arc length from area and perimeter
Let \(R\) be the region bounded by the graph of \(y=\frac23x^{3/2}\) and the line \(y=\frac43x\), shown in Figure 3. Find the perimeter of \(R\).
The graph of y equals two thirds x to the three halves and the line y equals four thirds x, which meet at the origin and at (4, 16/3). The region R between them is shaded teal. Its boundary, the curved side along the graph and the straight side along the line, is drawn orange.
Solution
The graphs meet where \(\frac23x^{3/2}=\frac43x\), which gives \(x=0\) or \(\sqrt{x}=2\), so they meet at \((0,0)\) and \(\left(4,\frac{16}{3}\right)\). The boundary of \(R\) has a curved side and a straight side between these points.
On the curved side, \(\frac{dy}{dx}=x^{1/2}\) is continuous on \([0,4]\), and \(1+\left(\frac{dy}{dx}\right)^2=1+x\). Substitute \(u=1+x\), which runs from 1 to 5:
The straight side lies on a line of slope \(\frac43\), so its integrand is the constant \(\sqrt{1+\frac{16}{9}}=\frac53\). Over the run from \(x=0\) to \(x=4\), its length is \(\frac53\cdot4=\frac{20}{3}\), the distance between the two points. The perimeter is the sum of the two lengths:
Each example is one of the four skills of topic 8.13 in Which & Why: AP Calculus.