Length is not signed area
The square-root integrand is a speed and is nonnegative. Traversing a curve backward does not make its geometric length negative.
Find the length of a graph y=f(x) or a planar parametric curve x(t), y(t). The calculator differentiates your expressions, builds the arc-length integral, evaluates it numerically, and graphs the traced curve—all locally in your browser.
The result is a numerical approximation for a smooth curve on the selected interval.
Calculate a curve to draw the traced segment.
y=f(x), or Parametric for coordinates x(t) and y(t).^ for powers. Trigonometric inputs use radians.The square-root integrand is a speed and is nonnegative. Traversing a curve backward does not make its geometric length negative.
For y=f(x), each small horizontal change dx combines with the vertical change f′(x)dx through the Pythagorean theorem.
The vector velocity is (x′(t),y′(t)). Its magnitude is integrated over the parameter interval, so the parameter itself need not measure distance.
The numerical method expects smooth input. Split a piecewise-smooth curve at corners, cusps, or singular points, calculate each smooth segment, and add the lengths.
f′(x)=1, so L=∫₀¹√(1+1²)dx=√2≈1.41421356237.
For x(t)=cos(t) and y(t)=sin(t), speed is √(sin²t+cos²t)=1. From 0 to 2π, the length is 2π≈6.28318530718.
| Curve form | Conditions | Length |
|---|---|---|
Function y=f(x) | f′ continuous on [a,b] | L=∫ₐᵇ √(1+[f′(x)]²) dx |
Parametric x=x(t), y=y(t) | x′ and y′ continuous on [a,b] | L=∫ₐᵇ √([x′(t)]²+[y′(t)]²) dt |
These formulas apply directly to continuously differentiable curves. Piecewise-smooth curves can be handled segment by segment. A curve that retraces the same geometric segment counts the distance each time it is traversed.
Reference: the standard derivations and conditions are described in OpenStax Calculus Volume 2, §2.4 and Calculus Volume 2, §7.2.
For a continuously differentiable function on [a,b], use L=∫ₐᵇ√(1+[f′(x)]²)dx. The 1 represents the horizontal component of each small displacement.
Differentiate both coordinates with respect to the same parameter, find the speed √([x′(t)]²+[y′(t)]²), and integrate that speed across the parameter interval.
Arc length is distance, not an oriented integral. Reversing the bounds changes the direction of traversal but not the distance traveled, so this calculator orders the bounds before integrating.
Yes. The speed integral measures distance traveled along the parameterization. If the parameterization traces a segment twice, both traversals contribute to the result.
No. Calculus derivatives for trigonometric functions assume radians. Convert degrees to radians before entering a parameter interval.
Split the interval at each nonsmooth point, calculate the smooth pieces separately, and add their nonnegative lengths. The calculator reports derivatives that are undefined or extreme inside a single interval.
No. It estimates the remaining adaptive Simpson quadrature error based on differences between successive subdivisions. It can be less reliable for badly behaved or insufficiently resolved curves, which is why the calculator also scans for non-real values and extreme derivatives.
No. All parsing, differentiation, integration, graphing, copying, and file preparation happen locally. A permalink contains only the inputs you explicitly choose to put in the URL.