The length the derivative never sees
Worth reading first: Which curves have a length at all · The length belongs to the journey.
Every calculus course gives the length of a graph as an integral: . The length belongs to the journey showed where the formula comes from — the length of a tiny piece is about — and noted that it needs a hypothesis: for a curve that is merely rectifiable, the speed “need not be defined anywhere”, and the definition by inscribed polygons is the one that always works.
There is a sharper failure, and it is more instructive, because in it nothing is undefined. The derivative exists almost everywhere, the integral exists and is easy to compute, and the answer is simply wrong — by a factor of two. The function is the staircase with no steps, the Cantor function, and the reason the formula fails is the same reason that function is strange.
A staircase whose steps have no width
The Cantor function is built alongside the Cantor set. Remove the middle third of and let the function be there. Remove the middle thirds of the two pieces left and let it be and on them. Continue for ever. The function is constant on every removed interval, it is continuous, and it climbs from 0 to 1 — all of the climbing done on the Cantor set, which is what is left after every middle third has gone and which has total length zero.
So the derivative is zero at every point of every removed interval, and the removed intervals have total length . That total is a geometric series with ratio , summed exactly as the sum that fits in one square sums its halves: each stage removes two thirds as much as the stage before, and the removals add up to the whole interval. Nothing of positive length is left for the function to climb on, and yet it climbs by a full unit. At almost every point the slope is zero. Put that into the formula:
The formula says the graph is as long as the flat line from to . But the graph ends at , a point at distance from where it began, and no path between two points is shorter than the straight line between them. The formula’s answer is not merely inaccurate; it is impossible.
What the polygons measure
The definition of length is the supremum over inscribed polygons, and which curves have a length at all explained why that supremum is the right thing to take: refining a polygon never makes it shorter, so the lengths climb, and their limit is the length.
At stage one the polygon has four vertices: , , , . Its length is . At stage it has vertices, one at each end of the intervals that survive, and it consists of the flat pieces over the removed intervals, of total width , and slanted pieces, each of width and rise . So
The table measures every to stage 10 directly from the vertices and matches it against this closed form. The first term climbs to 1 as the flat pieces fill the interval; the second falls to 1 as the slanted pieces become vertical. The limit is 2: all the horizontal distance and all the vertical distance, added as if the curve went across and then up — which, in the limit, is exactly what it does.
The formula saw only the first term. It integrates over the places where the function is differentiable, finds the flat pieces, and adds up their horizontal length. The vertical rise happens on the Cantor set, where the function has no finite derivative, and a set of no width contributes nothing to an integral over width. The rise is real, it is the whole of the function’s change, and it is invisible to the derivative.
Mixing in a straight line
The failure is not all-or-nothing. Blend the Cantor function with the diagonal, , and the derivative is almost everywhere, so the formula returns . The polygons tell a different story.
The same computation as before gives, at stage ,
and the limit is . At that is : the graph of has length exactly the golden ratio. The formula finds , the length of a straight line of slope across the unit interval, and misses the half that the Cantor function contributes.
The golden ratio is a coincidence of the numbers, not of the phenomenon — the rectangle that eats itself has nothing to do with Cantor sets — but it makes a point memorably. A graph whose slope is at almost every point, which rises by exactly 1 over a run of 1, has a length that is an irrational number made of two unrelated parts: the length the slope accounts for, , and a singular half that the slope does not.
At the numbers are rational: the formula gives , the singular part is , and the length is exactly . The polygon at stage three is already visibly almost straight, and yet a quarter of the eventual length is hidden in steps that the picture shows as barely perceptible kinks.
The length, split in two
The bars show the general shape of the answer. Any increasing function splits, by a theorem of Lebesgue, into a part that is the integral of its derivative and a part that is singular — continuous, increasing, with derivative zero almost everywhere, like the Cantor function. The length of the graph is then
and the formula computes exactly the first term. For the first term is and the second is , and the bars are the two stacked.
The singular rise is added straight, not through a square root, because on the set where it happens the graph is vertical. A tiny piece of graph over the Cantor set moves up by some amount and across by nothing, so its length is its rise. That is why the Cantor function’s graph has length : across by 1 on the flat parts, up by 1 on the set of no width, and the two never mix.
The split is also a recipe for computing the length of any increasing graph without drawing a single polygon. Find the derivative where it exists, integrate , and add whatever part of the total rise the integral of failed to account for. For the mixtures that missing rise is , the Cantor function’s share; for a smooth function it is nothing.
The longest an increasing graph can be
There is a simple bound that makes the number 2 less surprising and more exact. Any increasing function from to has a graph whose every small piece moves right by some and up by some , and a piece’s length is at least and at most . Adding up, the graph’s length lies between — the straight diagonal, where the ratio of to never changes — and .
The Cantor function attains the maximum. Its graph is as long as any increasing graph between those two corners can be, and it achieves that by never letting and happen at the same time: on the removed intervals it moves only across, on the Cantor set only up. The upper bound is reached exactly when the two never overlap, which is the definition of a singular function in geometric form. Every singular increasing function from corner to corner has length exactly 2, however it distributes its rise over its set of no width, and every function with an absolutely continuous part has less.
The same bound explains the mixtures. For , the straight part climbs with slope while moving across — contributing , less than because across and up happen together — and the Cantor part climbs by while moving across by nothing, contributing its full rise. The golden ratio is what the sum of those two contributions happens to be at .
Staircases in the wild
The Cantor function is not only a construction. The staircase that is flat almost everywhere finds one in the dynamics of a periodically kicked rotor: the average rotation per kick, plotted against the driving frequency, is constant on an interval around every fraction and climbs only on a set of parameters of no length. That graph is, like the Cantor function’s, as long as an increasing graph between its endpoints can be, and a formula integrating its slope would report only its horizontal extent.
Such staircases turn up wherever a system locks onto whole-number ratios — coupled pendulum clocks, the voltage steps of a superconducting junction driven by microwaves, the mode-locking of lasers — and in each of them the interesting behaviour happens on a set the derivative cannot see. The set where the climbing happens is always of the kind almost none of it left, and still uncountably many describes for the Cantor set: no length, no interval inside it, and yet enough points to carry a rise of a whole unit. A set of no length cannot be seen by an integral; a set with uncountably many points can still hold everything that matters about a function. The arc-length failure is the simplest possible symptom: a quantity that should be read off the graph is computed by a formula that looks only where the graph has a slope, and the graph does all its work elsewhere.
The hypothesis that was missing
The formula is right exactly when the singular part is zero, and that condition has a name: the function must be absolutely continuous. Informally, a function is absolutely continuous when small total widths can only produce small total rises — no amount of rise can be concentrated on a set of arbitrarily small width. The Cantor function fails as badly as possible: the Cantor set can be covered by intervals of total width as small as anyone likes, and the function rises by 1 across them.
For an absolutely continuous function the fundamental theorem of calculus holds in its strongest form — the function is the integral of its derivative — and the arc-length formula is correct. For a function that is merely continuous and increasing, only the inequality survives: the formula gives at most the length, and equals it exactly when no rise is hidden. Area is the undoing of slope states the fundamental theorem for functions nice enough that the question never arises; the Cantor function is where it arises, and where “the integral of the derivative gives back the function” first stops being true.
The formula is also discontinuous in a precise sense. Each stage’s polygon is a piecewise-linear function, which is absolutely continuous, so for each of them the formula agrees with the polygon’s length — 1.535, 1.650, 1.747 and upwards to 2. The polygons converge uniformly to the Cantor function. The formula’s values converge to 2. The formula applied to the limit gives 1. Uniform convergence of functions does not carry the derivative along, and the arc-length formula, which depends on the derivative, jumps at the limit — the same failure uniform, except on a small set examines for other properties that pointwise and uniform limits refuse to preserve.
What the table and the bars cannot show
The Cantor set is never drawn. Every figure stops at a finite stage, where the function is a staircase of slanted pieces and the “vertical” rise is spread over intervals of width . The limit — a graph that is vertical on a set of no width and horizontal everywhere else — has no finite picture, and the claim that its length is 2 rests on the formula for and its limit, not on anything seen.
The values are exact where the construction makes them exact. The vertices were computed from the Cantor function’s self-similar definition, which gives its values at the stage- endpoints as fractions , and the polygon lengths agree with the closed form to nine decimal places. The finely drawn grey curve under each polygon comes from the ternary expansion of in floating point, and it is a drawing, not a measurement.
And the split is quoted. Lebesgue’s decomposition, and the formula for length as the formula’s integral plus the singular rise, are theorems cited here and checked on one family of functions. Other singular functions — Minkowski’s question-mark function, which is strictly increasing and still has derivative zero almost everywhere — are not drawn.
Still open: which random sums hide their rise
The Cantor function is the distribution function of a random sum: choose each ternary digit of a number to be 0 or 2 with a fair coin, and is the chance the result is at most . Change the construction to , with independent fair signs and a fixed ratio , and the distribution function is again increasing and continuous. For the possible sums form a Cantor-like set of no length, the distribution is singular, and its graph hides all its rise exactly as the Cantor function’s does.
For between and 1 the sums fill an interval, and the obvious guess is that the distribution then has a density, so that the formula would be right. Erdős showed in 1939 that it is not always so: when is a Pisot number — the golden ratio is the first example — the distribution is still singular, and its graph still has length equal to the formula’s value plus a hidden rise. Solomyak proved in 1995 that for almost every in the range the distribution does have a density.
Which are the exceptions is open. The reciprocals of Pisot numbers are the only ones known, and whether there are any others has been asked since the 1940s; Varjú settled it in 2019 for that are algebraic with no conjugates of modulus one and satisfy a condition on their height, and the general case remains. The golden ratio, which appeared above as a length, reappears here as the first number known to make a random sum hide part of its climb.
A length that lives on a set of no width
The Cantor function has a graph of length 2 and a derivative that says 1, and both are correct about what they measure. The polygons measure the whole of the curve; the formula measures the part of it that lies over places where the function has a finite slope, and the Cantor function puts all of its rise over a set where it does not.
The two measurements — polygons and formula — agree on every curve a calculus course draws, and that is exactly why the disagreement goes unnoticed. The formula was derived for curves whose pieces all have a slope, and the Cantor function is a curve most of whose change happens in pieces that do not.
When a formula is derived by adding up small pieces, ask where it looked for pieces. The arc-length formula looks at almost every point and sums what the slope says happens there; a function that does all its climbing on a set of no size climbs where the formula is not looking, and the golden-ratio graph is the same lesson with half the climbing hidden and half in plain view.
What links here
Computed from the collection, not written here: the essays that point at this one.
Reads more easily once this is understood
Essays that name this one as worth reading first.
Shares its objects with
Essays that name at least two of the same things, and that neither author linked.
- A rectangle grown on two sides — both name derivative, integral, limit
- No interval in it, and length to spare — both name cantor set, limit, measure zero
- The equation with only one answer — both name derivative, integral, limit
- The staircase that is not the diagonal — both name arc length, derivative, limit
- Which functions can be added up — both name cantor set, limit, measure zero
- A ball whose outside is not one — both name cantor set, limit
Named objects
A dashed tag is an object no other essay names yet.
Arc lengthCantor setDerivativeGolden ratioIntegralLimitMeasure zero