The slope a Gauss sum leaves behind
Worth reading first: Close in height and nowhere close in slope · A curve with a corner at every point.
Close in height and nowhere close in slope showed that uniform convergence passes continuity to a limit and passes nothing about slopes. Its last example was a series of the kind that makes the point most sharply: add sine waves whose frequencies grow faster than their amplitudes shrink, and the sum is continuous while every partial sum is smooth and the limit may be smooth nowhere. Karl Weierstrass made the first proved example in 1872, and in presenting it to the Berlin Academy he said that Bernhard Riemann had already proposed another, in lectures around 1861:
Riemann left no proof, and Weierstrass, unable to supply one, built a different function for which he could. The terms are bounded by , so the series converges uniformly and is continuous. Its formal derivative, , converges nowhere. Whether has a derivative at any point turned out to be a hard question, open for about a century, and the answer is that Riemann’s candidate fails, but only just: it has a derivative on a dense set of points, every one a rational multiple of , and the derivative there is always exactly .
A Fourier series with square frequencies
Riemann’s function is a Fourier series, and an unusual one. An ordinary Fourier series, like the one that builds a square wave from round ones, uses every frequency with coefficients chosen to fit a given shape. Riemann’s uses only the square frequencies , with coefficients that fall like the reciprocal of the frequency. Weierstrass’s own function uses geometric frequencies , and the gaps between them are what make his proof work: each new wave is so much faster than all the earlier ones that it dominates the increment at its own scale. Square frequencies grow more slowly, the gaps between them are proportionally smaller, and the waves interfere with one another over a range of scales rather than taking turns. That interference is why Weierstrass could not prove Riemann’s function rough and why, at special points, it cancels into smoothness.
Rough functions are not rare. Baire’s category argument, which a limit can jump at every fraction introduced, shows that in the space of continuous functions the ones with a derivative at even a single point form a negligible set. What is rare is a function given by a formula whose differentiability can be decided point by point. Riemann’s is one of very few, and the decision runs entirely through arithmetic. The waves with square frequencies line up at according to the residues of modulo , and those residues are what a Gauss sum adds.
Computing a function nobody can evaluate naively
Every figure here rests on one computation: the increment for small , accurate enough to see how it scales. That is harder than it looks. Truncating the series at terms leaves a tail of size up to , which swamps an increment of size unless is in the millions. And at the argument is about . A double-precision carries an error of about in relative terms, so is wrong by about — and the sine of it is wrong by the same amount, a thousand times the signal.
Both problems have clean answers. For the increment, the tail beyond is a sum of terms with essentially random phases once is large, so its size is about rather than ; a million terms leave an error of about . For the phases, the points that matter are rational multiples of . At the angle modulo depends only on modulo , which is a computation on small whole numbers with no rounding at all. For an irrational point such as the multiplier is stored to 128 binary places and multiplied exactly by before reduction. The double-precision sine then never sees an argument larger than plus , and is computed with full relative accuracy.
Three points under the microscope
At most points a graph like this one has no visible structure, and the only way to see what happens at a point is to zoom. The zoom has to be rescaled, though. If the increment behaves like , a window of width shows heights of order , and to compare windows the vertical scale must be divided by that. Dividing by keeps a square-root cusp at a fixed size.
The three points behave differently. At the picture is a spike: the function drops away like on both sides, and the spike has the same shape at both magnifications. That is a cusp, and there is no derivative. At the picture is lopsided — flat to the right, a square-root drop to the left — and the shape again survives magnification, so there is a one-sided cusp and still no derivative. At the curve gets flatter as the window shrinks. The increment there is shrinking faster than ; under this rescaling a straight line of any slope eventually lies flat, and that is what the bottom-left panel shows.
So the zoom separates two kinds of point: those where something of order is left, and those where it is not. The question is which points are which, and what the size of the square-root term is when it is there.
The square root has a coefficient, and it is a Gauss sum
Take each fraction in lowest terms with at most 7 and — thirty-six points spread over one period — and measure the coefficient of on each side: at and at , after removing the term that turns out to be present everywhere.
The numbers that come out have a pattern. At the coefficient is on the right and on the left; that is , to four places. At it is on the right and on the left. At it is on both sides, which is divided by . At it is and , which is divided by . The square roots of the denominators are the signature of a quadratic Gauss sum,
the average of the points on the unit circle at angles . Its size is or zero, according to the parities of and — the same sums that square to a prime in the proof of quadratic reciprocity.
The rule the figure checks is
for , and the same with subtracted instead for . Every one of the seventy-two measured coefficients matches its prediction to within . The Gauss sum is zero exactly when and are both odd, and at those points the square-root term vanishes on both sides. What is left is the linear term — a derivative of .
Why the slope is minus one-half
The rule has a reason, and the reason explains the as well. The formal derivative of is , which is the real part of . Add in the missing term and the negative , and that is half of Jacobi’s theta function, , minus one-half. Theta is not a function in the ordinary sense on the real line, but it has a precise local structure. Near the identity that relates theta at to theta at , the one that makes it a modular form, says it behaves like the Gauss sum times a singularity of size , plus terms that are much smaller.
Integrating the derivative turns into — the square-root cusp — with the Gauss sum as its coefficient. And the constant from the missing term integrates to , the linear term that is present at every point. Where the Gauss sum vanishes, the singular part of theta vanishes with it, and the only thing left at leading order is that constant. The derivative of is the ghost of the term , which the series leaves out because means nothing.
This is also why Riemann’s function is self-similar under magnification. Theta’s modular symmetry maps a neighbourhood of one rational point onto a neighbourhood of another, so the picture at is the picture at transformed, shrunk by a factor set by the denominator. Hans Duistermaat made this precise in 1991. The in the coefficients is the shrinking.
The slope, measured
The rule predicts a derivative of at every . Measured directly, by symmetric difference quotients:
At large the quotients wander widely, because a window of width around contains other fractions with small denominators and their cusps. As shrinks the window excludes them one by one. By all four quotients are within a few hundredths of , and at the smallest they agree with it to two decimal places. , whose Gauss-sum structure involves the larger denominator 7, settles last.
Joseph Gerver proved in 1970 that has derivative exactly at every point , overturning the general belief that Riemann’s function was nowhere differentiable. G. H. Hardy had shown in 1916 that has no derivative at any irrational multiple of and at many rational ones, and believed the rest would follow. Gerver completed the picture in 1971 by showing that every other point fails.
How rough the rest of it is
A point without a derivative can still have a definite roughness. The increment may scale like for a single exponent , its Hölder exponent, and the exponent can differ from point to point. Here it does.
At the slope is : a square-root cusp, exponent . At , once the is removed, what is left shrinks like — the next term in the expansion is of order , with a coefficient that oscillates without settling. At the irrational point the slope over four decades is , but the curve is not a straight line. It rises in steps, steep where the window crosses a fraction whose Gauss sum is large and shallow where it does not, and a fit over a single decade gives anything from about to .
Stéphane Jaffard computed the whole spectrum in 1996. At an irrational multiple of , the exponent depends on how well the point is approximated by fractions whose Gauss sums do not vanish — fractions with or even — and for almost every point it is exactly . Points approximated unusually well by such fractions have exponents down to . So the function is rougher than a smooth function and smoother than a square root almost everywhere, and the roughness at a point is a statement about how close a fraction can get to that point. The golden ratio, the hardest number to approximate, sits at the typical value. The same kind of point-by-point exponent appeared for the devil’s staircase and its measure, where it was set by a self-similar rule; here it is set by arithmetic.
Where the derivative exists
Sort every fraction with denominator up to 25 by what its Gauss sum says.
The derivative exists only in the top row. Those points are dense — between any two points of the period there are fractions with odd numerator and odd denominator — but they are countable, so they have measure zero, and everything between them, rational or irrational, has no derivative. Riemann’s function is differentiable on a set that meets every interval and occupies none of it.
The two middle rows are the one-sided cases. At those points one side of the Gauss sum’s combination vanishes and the other does not, so the function is flat with slope on one side and has a square-root cusp on the other. is the first of them. That such points exist at all is a surprise: a function with a genuine one-sided derivative on a dense set of points, and a cusp on the other side of each.
What the computation cannot establish
A million terms and an exponent fitted over four decades establish the pattern. They do not prove it, and three things are beyond them. The first is the limit itself. A difference quotient that agrees with to two decimal places at is evidence, and the derivative is a statement about ; Gerver’s proof is what makes it a theorem.
The second is the irrational points. The exponent for almost every point is Jaffard’s theorem, and the measured is consistent with it. But a measurement at one irrational point cannot distinguish from or when the local slope swings by a factor of four between decades, and the measurement says nothing about the exceptional points with smaller exponents, which exist but have measure zero.
The third is the role of the Gauss sum. The figure shows the coefficients matching the prediction at thirty-six fractions; the theta-function argument says why. The match at every fraction is a theorem, proved by the same modular identity, and no finite figure substitutes for it.
Still open: other series and the fine structure
Riemann’s function is now one of the best-understood rough functions: its derivative, its exponents, its self-similarity and its multifractal spectrum are all known. Much of that is because theta is a modular form, and the knowledge does not transfer to series without that structure. For , or for sums over the primes such as , the analogous questions — where is there a derivative, and what is the exponent at a typical point — are largely open, because no modular symmetry organises the phases. Sums with cubic phases lead into the theory of Weyl sums, where much less is known.
There is also a question about the complex version, , whose real part is close to Riemann’s function and whose image in the plane is a curve. That curve turns out to describe the motion of a corner of a vortex filament — a thin tube of spinning fluid shaped initially as a polygon — in work by Francisco de la Hoz and Luis Vega. Whether the curve’s fractal dimension, its geometric self-similarity and its behaviour at irrational times can be computed in the same detail as the real part’s is an active question. So is whether any of it can be seen in a real fluid.
A candidate that nearly worked
Riemann’s function was offered as a function with no derivative, and for nearly a century it was assumed to be one. It is instead a function whose derivative exists on a countable dense set of points and is the same number at every one of them. The number is , left by a term that the series omits, and the points are exactly those where a sum of points on the unit circle cancels to zero. The roughness everywhere else has three regimes — square roots at most fractions, three-quarter powers almost everywhere, and the exceptions between — and every one of them is read from how well a point can be approached by fractions whose Gauss sums do not vanish.
A curve with a corner at every point built its roughness by design, choosing ratios that guarantee a corner at every scale. Riemann’s function was not designed that way, and it shows what a natural series can do instead. It is smooth almost nowhere and differentiable exactly where number theory says, and Weierstrass’s search for a proof failed because there was nothing to prove.
Shares its objects with
Essays that name at least two of the same things, and that neither author linked.
- A set that has no size at all — both name dense set, measure zero
- Almost every orbit is fair — both name fourier series, measure zero
- Covering a set from outside — both name dense set, measure zero
- The flat map that fits closest — both name derivative, differentiability
- The length the derivative never sees — both name derivative, measure zero
- The slope of a single point — both name derivative, differentiability
Named objects
A dashed tag is an object no other essay names yet.
Dense setDerivativeDifferentiabilityFourier seriesMeasure zeroRational approximation