A curve in, say, the plane can be approximated by connecting a finite number of points on the curve using line segments to create a polygonal path. Since it is straightforward to calculate the length of each linear segment (using the theorem of Pythagoras in Euclidean space, for example), the total length of the approximation can be found by summing the lengths of each linear segment.
If the curve is not already a polygonal path, better approximations to the curve can be obtained by following the shape of the curve increasingly more closely. The approach is to use an increasingly larger number of segments of smaller lengths. The lengths of the successive approximations do not decrease and will eventually keep increasing – possibly indefinitely, but for smooth curves this will tend to a limit as the lengths of the segments get arbitrarily small.
For some curves there is a smallest number L that is an upper bound on the length of any polygonal approximation. If such a number exists, then the curve is said to be rectifiable and the curve is defined to have arc length L.
Let C be a curve in Euclidean (or, generally, a metric) space X = Rn, so C is the image of a continuous function f : [a, b] → X of the interval [a, b] into X.
From a partition a = t0 < t1 < … < tn−1 < tn = b of the interval [a, b] we obtain a finite collection of points f(t0), f(t1), …, f(tn−1), f(tn) on the curve C. Denote the distance from f(ti) to f(ti+1) by d(f(ti), f(ti+1)), which is the length of the line segment connecting the two points.
The arc length L of C is then defined to be
where the supremum is taken over all possible partitions of [a, b] and n is unbounded.
The arc length L is either finite or infinite. If L < ∞ then we say that C is rectifiable, and is non-rectifiable otherwise. This definition of arc length does not require that C is defined by a differentiable function.
If a curve is defined parametrically by x = X(t) and y = Y(t), then its arc length between t = a and t = b is
If a function is defined in polar coordinates by r = f(θ) then the arc length is given by
In most cases, including even simple curves, there are no closed-form solutions of arc length and numerical integration is necessary.
Curves with closed-form solution for arc length include the catenary, circle, cycloid, logarithmic spiral, parabola, semicubical parabola and (mathematically, a curve) straight line. The lack of closed form solution for the arc length of an elliptic arc led to the development of the elliptic integrals.
In order to approximate the arc length of the curve, it is split into many linear segments. To make the value exact, and not an approximation, infinitely many linear elements are needed. This means that each element is infinitely small. This fact manifests itself later on when an integral is used.
Begin by looking at a representative linear segment (see image) and observe that its length (element of the arc length) will be the differential ds. We will call the horizontal element of this distance dx, and the vertical element dy.
The Pythagorean theorem tells us that
Since the function is defined in time, segments (ds) are added up across infintesimally small intervals of time (dt) yielding the integral
If y is a function of x, so that we could take t = x, then we have:
which is the arc length from x = a to x = b of the graph of the function ƒ.
For example, the curve in this figure is defined by
Subsequently, the arc length integral for values of t from −1 to 1 is
Using computational approximations, we can obtain a very accurate (but still approximate) arc length of 2.905. An expression in terms of the hypergeometric function can be obtained: it is
Suppose that we have a rectifiable curve given by a function f(x), and that we want to approximate the arc length S along f between two points a and b in that curve. We can construct a series of rectangle triangles whose concatenated hypotenuses "cover" the arch of curve chosen as it's shown in the figure. To make this a "more functional" method we can also demand that the bases of all those triangles were equal to Δ x, so that for each one an associated Δ y cathetus will exist, depending on the type of curve and on the chosen arch, being then every hypotenuse equal to , as a result of the Pythagorean theorem. This way, an approximation of would be given by the summation of all those unfolded hypotenuses. Because of it we have that;
To continue, let's algebraically operate on the form in which we calculate every hypotenuse to come to a new expression:
Then, our previous result takes the following look:
Now, the smaller these segments are, the better our looked approximation is; they will be as small as we want doing that tends to zero. This way, develops in , and every incremental quotient becomes into a general , that is by definition . Given these changes, our previous approximation turns into a thinner and at this point exact summation; an integration of infinite infinitesimal segments;
In 1659, Wallis credited William Neile's discovery of the first rectification of a nontrivial algebraic curve, the semicubical parabola.
In 1659 van Heuraet published a construction showing that arc length could be interpreted as the area under a curve - this integral, in effect - and applied it to the parabola. In 1660, Fermat published a more general theory containing the same result in his De linearum curvarum cum lineis rectis comparatione dissertatio geometrica.
Building on his previous work with tangents, Fermat used the curve
whose tangent at x = a had a slope of
so the tangent line would have the equation
Next, he increased a by a small amount to a + ε, making segment AC a relatively good approximation for the length of the curve from A to D. To find the length of the segment AC, he used the Pythagorean theorem:
which, when solved, yields
In order to approximate the length, Fermat would sum up a sequence of short segments.
The length of γ is defined to be
where dγ ∈ Tγ(t)M is the tangent vector of γ at t. The sign in the square root is chosen once for a given curve, to ensure that the square root is a real number. The positive sign is chosen for spacelike curves; in a pseudo-Riemannian manifold, the negative sign may be chosen for timelike curves.
In theory of relativity, arc-length of timelike curves (world lines) is the proper time elapsed along the world line.