# Calculus/Arc length

 ← Volume of solids of revolution Calculus Surface area → Arc length

Suppose that we are given a function ${\displaystyle f}$ that is continuous on an interval ${\displaystyle [a,b]}$ and we want to calculate the length of the curve drawn out by the graph of ${\displaystyle f(x)}$ from ${\displaystyle x=a}$ to ${\displaystyle x=b}$ . If the graph were a straight line this would be easy — the formula for the length of the line is given by Pythagoras' theorem. And if the graph were a piecewise linear function we can calculate the length by adding up the length of each piece.

The problem is that most graphs are not linear. Nevertheless we can estimate the length of the curve by approximating it with straight lines. Suppose the curve ${\displaystyle C}$ is given by the formula ${\displaystyle y=f(x)}$ for ${\displaystyle a\leq x\leq b}$ . We divide the interval ${\displaystyle [a,b]}$ into ${\displaystyle n}$ subintervals with equal width ${\displaystyle \Delta x}$ and endpoints ${\displaystyle x_{0},x_{1},\ldots ,x_{n}}$ . Now let ${\displaystyle y_{i}=f(x_{i})}$ so ${\displaystyle P_{i}=(x_{i},y_{i})}$ is the point on the curve above ${\displaystyle x_{i}}$ . The length of the straight line between ${\displaystyle P_{i}}$ and ${\displaystyle P_{i+1}}$ is

${\displaystyle {\bigl |}P_{i}P_{i+1}{\bigr |}={\sqrt {(y_{i+1}-y_{i})^{2}+(x_{i+1}-x_{i})^{2}}}}$

So an estimate of the length of the curve ${\displaystyle C}$ is the sum

${\displaystyle \sum _{i=0}^{n-1}{\bigl |}P_{i}P_{i+1}{\bigr |}}$

As we divide the interval ${\displaystyle [a,b]}$ into more pieces this gives a better estimate for the length of ${\displaystyle C}$ . In fact we make that a definition.

Length of a Curve

The length of the curve ${\displaystyle y=f(x)}$ for ${\displaystyle a\leq x\leq b}$ is defined to be

${\displaystyle L=\lim _{n\to \infty }\sum _{i=0}^{n-1}{\bigl |}P_{i+1}P_{i}{\bigr |}}$

## The Arclength Formula

Suppose that ${\displaystyle f'}$ is continuous on ${\displaystyle [a,b]}$ . Then the length of the curve given by ${\displaystyle y=f(x)}$ between ${\displaystyle a}$ and ${\displaystyle b}$ is given by

${\displaystyle L=\int \limits _{a}^{b}{\sqrt {1+f'(x)^{2}}}dx}$

And in Leibniz notation

${\displaystyle L=\int \limits _{a}^{b}{\sqrt {1+\left({\tfrac {dy}{dx}}\right)^{2}}}dx}$

Proof: Consider ${\displaystyle y_{i+1}-y_{i}=f(x_{i+1})-f(x_{i})}$ . By the Mean Value Theorem there is a point ${\displaystyle z_{i}}$ in ${\displaystyle (x_{i+1},x_{i})}$ such that

${\displaystyle y_{i+1}-y_{i}=f(x_{i+1})-f(x_{i})=f'(z_{i})(x_{i+1}-x_{i})}$

So

 ${\displaystyle {\bigl |}P_{i}P_{i+1}{\bigr |}}$ ${\displaystyle ={\sqrt {(x_{i+1}-x_{i})^{2}+(y_{i+1}-y_{i})^{2}}}}$ ${\displaystyle ={\sqrt {(x_{i+1}-x_{i})^{2}+f'(z_{i})^{2}(x_{i+1}-x_{i})^{2}}}}$ ${\displaystyle ={\sqrt {{\bigl (}1+f'(z_{i})^{2}{\bigr )}(x_{i+1}-x_{i})^{2}}}}$ ${\displaystyle ={\sqrt {1+f'(z_{i})^{2}}}\Delta x}$

Putting this into the definition of the length of ${\displaystyle C}$ gives

${\displaystyle L=\lim _{n\to \infty }\sum _{i=0}^{n-1}{\sqrt {1+f'(z_{i})^{2}}}\Delta x}$

Now this is the definition of the integral of the function ${\displaystyle g(x)={\sqrt {1+f'(x)^{2}}}}$ between ${\displaystyle a}$ and ${\displaystyle b}$ (notice that ${\displaystyle g}$ is continuous because we are assuming that ${\displaystyle f'}$ is continuous). Hence

${\displaystyle L=\int \limits _{a}^{b}{\sqrt {1+f'(x)^{2}}}dx}$

as claimed.

 Example: Length of the curve ${\displaystyle y=2x}$ from ${\displaystyle x=0}$ to }${\displaystyle x=1}$ As a sanity check of our formula, let's calculate the length of the "curve" ${\displaystyle y=2x}$ from ${\displaystyle x=0}$ to ${\displaystyle x=1}$ . First let's find the answer using the Pythagorean Theorem. ${\displaystyle P_{0}=(0,0)}$ and ${\displaystyle P_{1}=(1,2)}$ so the length of the curve, ${\displaystyle s}$ , is ${\displaystyle s={\sqrt {2^{2}+1^{2}}}={\sqrt {5}}}$ Now let's use the formula ${\displaystyle s=\int \limits _{0}^{1}{\sqrt {1+\left({\tfrac {d(2x)}{dx}}\right)^{2}}}\,dx=\int \limits _{0}^{1}{\sqrt {1+2^{2}}}\,dx={\sqrt {5}}x{\bigg |}_{0}^{1}={\sqrt {5}}}$

### Exercises

1. Find the length of the curve ${\displaystyle y=x{\sqrt {x}}}$ from ${\displaystyle x=0}$ to ${\displaystyle x=1}$ .
${\displaystyle {\frac {13{\sqrt {13}}-8}{27}}}$
2. Find the length of the curve ${\displaystyle y={\frac {e^{x}+e^{-x}}{2}}}$ from ${\displaystyle x=0}$ to ${\displaystyle x=1}$ .
${\displaystyle {\frac {e-{\frac {1}{e}}}{2}}}$

Solutions

## Arclength of a parametric curve

For a parametric curve, that is, a curve defined by ${\displaystyle x=f(t)}$ and ${\displaystyle y=g(t)}$ , the formula is slightly different:

${\displaystyle L=\int \limits _{a}^{b}{\sqrt {f'(t)^{2}+g'(t)^{2}}}\,dt}$

Proof: The proof is analogous to the previous one: Consider ${\displaystyle y_{i+1}-y_{i}=g(t_{i+1})-g(t_{i})}$ and ${\displaystyle x_{i+1}-x_{i}=f(t_{i+1})-f(t_{i})}$ .

By the Mean Value Theorem there are points ${\displaystyle c_{i}}$ and ${\displaystyle d_{i}}$ in ${\displaystyle (t_{i+1},t_{i})}$ such that

${\displaystyle y_{i+1}-y_{i}=g(t_{i+1})-g(t_{i})=g'(c_{i})(t_{i+1}-t_{i})}$

and

${\displaystyle x_{i+1}-x_{i}=f(t_{i+1})-f(t_{i})=f'(d_{i})(t_{i+1}-t_{i})}$

So

 ${\displaystyle {\bigl |}P_{i}P_{i+1}{\bigr |}}$ ${\displaystyle ={\sqrt {(x_{i+1}-x_{i})^{2}+(y_{i+1}-y_{i})^{2}}}}$ ${\displaystyle ={\sqrt {f'(d_{i})^{2}(t_{i+1}-t_{i})^{2}+g'(c_{i})^{2}(t_{i+1}-t_{i})^{2}}}}$ ${\displaystyle ={\sqrt {{\bigl (}f'(d_{i})^{2}+g'(c_{i})^{2}{\bigr )}(t_{i+1}-t_{i})^{2}}}}$ ${\displaystyle ={\sqrt {f'(d_{i})^{2}+g'(c_{i})^{2}}}\Delta t}$

Putting this into the definition of the length of the curve gives

${\displaystyle L=\lim _{n\to \infty }\sum _{i=0}^{n-1}{\sqrt {f'(d_{i})^{2}+g'(c_{i})^{2}}}\Delta t}$

This is equivalent to:

${\displaystyle L=\int \limits _{a}^{b}{\sqrt {f'(t)^{2}+g'(t)^{2}}}\,dt}$

### Exercises

3. Find the circumference of the circle given by the parametric equations ${\displaystyle x(t)=R\cos(t)}$ , ${\displaystyle y(t)=R\sin(t)}$ , with ${\displaystyle t}$ running from ${\displaystyle 0}$ to ${\displaystyle 2\pi }$ .
${\displaystyle 2\pi R}$
4. Find the length of one arch of the cycloid given by the parametric equations ${\displaystyle x(t)=R{\bigl (}t-\sin(t){\bigr )}}$ , ${\displaystyle y(t)=R{\bigl (}1-\cos(t){\bigr )}}$ , with ${\displaystyle t}$ running from ${\displaystyle 0}$ to ${\displaystyle 2\pi }$ .
${\displaystyle 8R}$

Solutions

 ← Volume of solids of revolution Calculus Surface area → Arc length