Let f(x) be a differentiable function defined over the interval [a,b] with its derivative f′(x) being continous. Such functions are also called smooth. Our goal is to calculate the arc length of that function from point (a,f(a)) to point (b,f(b)).
We start by approximating the curve using line segments. To do so, we create a regular partition X={a=x0,x1,...b=xn}. Now for each point Pi=(xi,f(xi)) we construct line segments from point Pi to Pi+1.
To find the length ∣Pi−Pi−1∣ of each line segment, we need to look at the horizontal and vertical change over the distance of each interval [xi−1,xi]. Since we use a regular partition, the horizontal change is Δx=xi−xi−1=nb−a. The vertical change in distance depends on the function value, so Δyi=f(xi)−f(xi−1).
The length of the line segment can be calculated using Pythagorean Theorem:
∣Pi−Pi−1∣=(Δx)2+(Δyi)2
By Mean Value Theorem we know there is a point xi∗∈[xi−1,xi] such that
f′(xi∗)=xi−xi−1f(xi)−f(xi−1)=ΔxΔyi
Therefore the length of each line segment can be expressed as
Summing over the lengths of the line segments approximates the arc length of the curve already
L≈i=1∑n∣Pi−Pi−1∣=i=1∑n1+[f′(xi∗)]2Δx
The approximation gets better and better the larger n becomes. Taking the limit as n→∞ we get a Riemann sum that can be translated to a definite integral, which allows us to calculate the exact arc length of the curve