Generator

A square wave from 5 sine waves

A generator in the analysis library, called 55 times across 13 essays. Below: what it draws with nothing chosen and at each mode an essay asks for, what it checks while drawing, and everywhere it is used.

fourier is one function. Everything below came out of it during this build, at parameters taken from the essays rather than invented for this page — so a figure here is the same figure a reader meets in an essay, and if the generator changes, this page changes with it.

With nothing chosen

A square wave from 5 sine waves. The sum of the first 5 harmonics, compared with the square wave it approaches.

6 cosines, and a curve with no tangent anywhere

6 cosines, and a curve with no tangent anywhere. Partial sums of a sum of cosines whose amplitudes shrink geometrically and whose frequencies grow faster. Each term adds finer detail; the curve converges and its slopes do not.

The same corner, magnified 1,000 times

The same corner, magnified 1,000 times. Four windows on the same curve, each a tenth the width of the last. The curve looks the same at every magnification, which is what having no tangent anywhere amounts to.

The copies each grid makes of the disc

The copies each grid makes of the disc. W = 6, 113 frequencies: square grid 13x13 = 169 samples; best lattice basis (11,4), (9,-8), 124 samples.

Samples needed, square grid against the best

Samples needed, square grid against the best. W=3: K=29, best 33, square 49; W=4: K=49, best 53, square 81; W=5: K=81, best 94, square 121; W=6: K=113, best 124, square 169; W=7: K=149, best 166, square 225; W=8: K=197, best 217, square 289; W=9: K=253, best 281, square 361; W=10: K=317, best 351, square 441; W=11: K=377, best 411, square 529; W=12: K=441, best 487, square 625; W=13: K=529, best 583, square 729; W=14: K=613, best 673, square 841

The winning lattices are nearly hexagonal

The winning lattices are nearly hexagonal. W=3: u=(5,3) v=(1,-6) 68.50 deg, ratio 1.043; W=4: u=(-3,-7) v=(5,-6) 63.00 deg, ratio 1.026; W=5: u=(10,2) v=(-3,-10) 61.99 deg, ratio 1.024; W=6: u=(11,4) v=(9,-8) 61.62 deg, ratio 1.029; W=7: u=(9,10) v=(13,-4) 65.12 deg, ratio 1.011; W=8: u=(-7,-14) v=(9,-13) 61.26 deg, ratio 1.010; W=9: u=(-12,-13) v=(17,-5) 63.68 deg, ratio 1.002; W=10: u=(20,1) v=(-9,-18) 60.57 deg, ratio 1.005; W=11: u=(-5,21) v=(21,-6) 60.66 deg, ratio 1.012; W=12: u=(16,-17) v=(-23,-6) 61.36 deg, ratio 1.018; W=13: u=(25,-6) v=(-7,25) 60.86 deg, ratio 1.010; W=14: u=(19,-20) v=(-27,-7) 61.00 deg, ratio 1.011

What it checks while it draws

Collected by running the family and recording what it asserted, not written here. The count is how many separate times the claim was put to the test while these drawings were made.

Where it is called

Every figure on this list is drawn by the same rule, so a change to the rule changes all of them at once. That is why the list is published.

Analysis

A curve with a corner at every point

Continuity means a curve can be drawn without lifting the pen. Differentiability means it has a tangent. The first was assumed to nearly imply the second until 1872, when Weierstrass exhibited a curve that is continuous everywhere and has a tangent nowhere — and it is a sum of cosines.

Analysis

A grid that packs the copies

Sampling a pattern on a grid makes copies of its frequencies, one for every point of a lattice, and the pattern can be read back from the samples only if the copies do not collide. For a pattern whose frequencies fill a disc the square grid wastes room between its copies. Searching every lattice of samples for the fewest that work finds a nearly hexagonal one every time — 124 samples where the square grid needs 169 — and the saving is the hexagonal packing's over the square, 13.4% in the limit. In three dimensions it is 29%, and in twenty-four the cubic grid needs 16,777,216 times as many samples as the best.

Analysis

A plucked string keeps its corners

Heat smooths a sharp profile at once, because each harmonic decays at a rate set by the square of its frequency. Change one time derivative into two and nothing decays at all: each harmonic swings for ever, the corner of a pluck splits in two and runs along the string, and after one period the shape comes back exactly. The same sines, the same coefficients — and a flow that loses nothing.

Analysis

A wave known only at its ticks

Read a sine wave nine cycles a second at ten instants a second and the readings describe a wave of one cycle a second instead. Read a wave with nothing faster than 3.7 cycles a second at more than 7.4 instants a second and the readings determine it exactly. Both facts are the same fold of the frequency axis, and it is why wagon wheels turn backwards on film.

Number

One sum, squared two ways

Add the p-th roots of unity, each taken with a plus or a minus according to whether its index is a square. The walk that results closes on a point at distance √p from the origin — and squaring that one number, evaluated two different ways, is the reciprocity law.

Analysis

A square wave built entirely out of round ones

Add enough sine waves together and flat tops and vertical cliffs appear from nothing. Almost — there is a 9% overshoot that never goes away, and it is not a bug.

Analysis

The corners go first

Fourier was not decomposing waves for the pleasure of it. He was solving the flow of heat, and the whole apparatus exists because each harmonic fades at a rate set by the square of its frequency — which is why a sharp profile smooths instantly and why the flow cannot be run backwards.

Analysis

The ripples that make a series run away

Adding up the first N terms of a Fourier series is the same as averaging the function against one fixed wiggly curve. Its area is always one, but the area of its absolute value grows like the logarithm of N, without limit — and that single number is enough to force a continuous function, with no jump and no corner anywhere, whose Fourier series diverges at a point. Averaging the partial sums removes the negative ripples, and with them the whole problem.

Probability

The shape that averaging leaves alone

Adding independent quantities blurs their distributions together, and rescaling restores the width. Almost every shape is changed by that operation. Exactly one is returned unaltered, and that is why sums of unrelated things keep arriving at it.

Analysis

The staircase that is not the diagonal

A staircase can be made to follow a quarter circle as closely as anyone likes. Its length is 2 at every stage and the arc's length is 1.5708, and no amount of refinement closes the gap — which is a fact about length rather than about staircases.

Probability

The walk that becomes a curve

Shrink the steps of a random walk and it disappears. Shrink them while stretching the time in the right proportion — space by the square root of whatever time is divided by — and something is left behind, which is a curve nobody could draw.

Analysis

When the period grows without bound

A repeating signal has a spectrum of separate lines. Stretch the gap between repeats and the lines crowd together while the curve they sit on stays exactly where it is — and at infinite period the lines are gone and the curve is the whole answer.

Analysis

Where the coefficients come from

The recipe for a square wave has a four over pi in front and a one over three on the second term, and the essay that built a square wave from sines used them without saying where they came from. They come from multiplying by one harmonic and taking the area.

The whole library · What the figures prove