yAtlas

Drawing the first frame…

0:00 / 9:37Prologue

The Order Beneath · No.02 · Rendered in real time · 9:37

Spectral

A short film about spectra

Fourier analysis in six short chapters, from a snowflake drawn by a chain of steadily turning circles, through vibrating strings, sand on a plate, crystals and quasicrystals, to the spectra that light lays out. Every frame is computed by code; on the website, each one is drawn live in your browser as the film plays.

Runtime
9:37
Chapters
Six, with a prologue and a coda
Resolution
Matches the player, up to 4.4 MP
Frame rate
Up to your display’s refresh rate, depending on the device
Prerecorded frames
None
Languages
中文 · English

Try it yourself

Each of these moments in the film opens in the Studio, where you can try the idea yourself.

  1. Draw a line of your own and see how many circles it takesPrologue
  2. Pick another note on the grid and see where the sand goesIV · Strings and plates
  3. Turn α and watch the lines of one note change shapeIV · Strings and plates
  4. Add waves one by one and find where the pattern stops repeatingV · Crystals and quasicrystals
  5. Drag Zoom down and look for patches that almost repeatV · Crystals and quasicrystals
  6. Make the round hole bigger and smaller and watch the pattern do the oppositeVI · Light lays out the spectrum
  7. Try other polygons and count the streaksVI · Light lays out the spectrum

Chapters

Studio

This volume's pictures, in your hands: change a parameter and watch the picture follow.

Where it turns up

Places in the world where this volume's mathematics turns up. Each card links to a related Studio.

Transcript · 72
  1. Prologue

  2. IOne circle

  3. IICircles on circles

  4. IIIFinding the circles

  5. IVStrings and plates

  6. VCrystals and quasicrystals

  7. VILight lays out the spectrum

  8. Coda

Plate notes · 5

I Circles on circles

Each term cne2πins of a Fourier series is a circle of radius |cn| that turns n times while the pen goes round once. Put each circle on the rim of the one before and the pen, on the rim of the last, draws the sum. The spectrum in the corner shows which circles are turning and how large each one is.

A square wave
f(x)=(4/π)(sinx+sin3x/3+sin5x/5+⋯)Only the odd harmonics, each with a radius in proportion to 1/n. Seen from the side the circles trace a square wave, and next to every jump the partial sums overshoot by about 9 per cent of the jump however many terms are added: the Gibbs phenomenon.
Fejér's averages
σN=(S0+S1+⋯+SN−1)/NAverage the partial sums instead of stopping at the last one and the overshoot is gone. Each circle shrinks by the factor 1−n/N; the averaging kernel is never negative, so the averages stay between −1 and 1.
A snowflake
z(s)=Σcne2πins,n=1,−5,7,−11,⋯The Koch snowflake is continuous and has a tangent nowhere. Turning it by a sixth of a turn is the same as starting a sixth of the way round, so only the frequencies n≡1 mod 6 appear. Add more circles and finer notches appear, though any finite number of them only approximates the curve.
One circle again
z(s)=c1e2πisThe circles leave, the fastest first, until only the one turning at speed 1 is left: both series begin with it, and so did the plate.

II Standing waves

A square plate clamped at its centre sounds in one of its modes, and sand scattered on it is shaken off the parts that move until it lies along the lines that do not. Ernst Chladni showed these figures in 1787. The modes here come from a simplified model, φmn=cosmπxcosnπy, whose nodal lines are close to a real plate's; in the model the pitch depends only on m2+n2. The colour on the plate is the motion itself, slowed down: gold where the plate is above its rest position, ice-blue where it is below, trading places every half cycle.

Sand
φmn=cosmπxcosnπyu=φ12−φ21The sand starts out even. Then the plate sounds, the grains leave the antinodes first, where the plate moves most, and the bands narrow to lines.
One note, many figures
u=cosαφ25+sinαφ52φ25 and φ52 sound the same note, so every mixture of the two is a mode as well. As α turns the pitch never changes; the figure does.
Higher notes
λ=π2(m2+n2)Three higher notes, each shared by a pair of modes. Between one note and the next the sand is thrown up and settles again on the new lines.
One note, four modes
65=12+82=42+72In this model some numbers are a sum of two squares in two ways, and then one note has four modes, φ18, φ81, φ47 and φ74. Mixed in different proportions they make a continuous family of figures, and the plate wanders through it.

III Plane waves

Waves of a single frequency travel in N directions spaced evenly round a half-turn, and are added. Their spectrum is a ring of 2N points, and each time their crests meet at the centre the pattern has 2N-fold symmetry. With two or three directions it is a crystal, periodic across the plane; with four, five or seven it never repeats, yet at those moments it keeps that symmetry, and every patch of it comes back somewhere else, almost but never exactly: a quasicrystal. The shared phase keeps turning, so the whole pattern breathes. Crests are gold, troughs ice-blue.

A plane wave
ψ=cos(k·x−ωt)One wave: its crests are parallel lines moving across the plate, and its spectrum is a pair of points, ±k.
Crystals
ψ=Σjcos(kj·x−ωt),N=2,3A second wave at right angles makes a square lattice; turn it to 60° and add a third, and the lattice is hexagonal. A pattern that repeats in two directions can only have one-, two-, three-, four- or six-fold symmetry.
Five waves
kj=k(cosπj/5,sinπj/5)When their crests meet at the centre, five directions give ten-fold symmetry, which no periodic pattern can have. The pattern has no period, but it is not disorder: its spectrum is still made of sharp points. No period, yet a spectrum of sharp points, with a symmetry no crystal can have: that is what defines a quasicrystal.
Seven waves
θj=πj/7,j=0,1,⋯,6Seven waves: fourteen points, and fourteen-fold symmetry when the crests meet at the centre. Near the centre the pattern is almost a set of rings; further out it breaks into rosettes that never quite repeat. Then the waves leave one by one, and a single plane wave is left.

IV Moiré

Two combs of fine slits lie one over the other on a light box, and light gets through only where the slits of both are open. Neither comb has any coarse structure, yet broad bands appear. Multiplying two waves makes their difference frequency, 2cosΦ1cosΦ2=cos(Φ1−Φ2)+cos(Φ1+Φ2), and when the combs are nearly alike that difference varies slowly enough across the plate to see. In the spectrum it is the ice-blue point near the centre, k1−k2.

Beats
2cosΦ1cosΦ2=cos(Φ1−Φ2)+cos(Φ1+Φ2)The slits of the two combs are seven per cent apart, then equal, then seven per cent apart the other way. Like a beat, the bands widen without limit as the spacings meet, then narrow again as the difference changes sign.
A small turn
Λ=p/(2sin(θ/2))Now the spacings are equal and the top comb turns by a small angle θ. The bands lie almost at right angles to the slits, about p/θ apart (θ in radians), far wider than the slits: a tiny change of angle changes them a great deal, which is why moiré is used to measure tiny movements.
Two centres
r1±r2=npThe lamp dims and the slides change: two sets of rings round one centre. As the centres move apart, bands appear along hyperbolas, where the difference of the distances is constant, and ellipses, where the sum is: the picture of two stones dropped in a pond.
Zone plates
|x−a|2−|x−b|2=2x·(b−a)+|a|2−|b|2Then two zone plates, rings whose phase grows with the square of the radius. Offset, they make perfectly straight bands, because the difference of two squared distances is linear. As the offset turns, so do the bands. Last, the first pair of combs comes back.

V Diffraction

Light passing through a small opening spreads, in the focal plane of a lens, into a pattern: the light there is the opening's Fourier transform, the lens does the transform, and the screen keeps only its brightness. Each wavelength spreads in proportion to itself, red widest and blue narrowest, so in white light every fringe but the central one is a little spectrum. Here the plate is the spectrum; the corner shows the hole.

A round hole
I(q)=(2J1(x)/x)2,x=2πa|q|The Airy pattern: a bright disc inside faint coloured rings. As the hole closes the pattern opens, and as it opens the pattern closes. A narrow object has a wide transform.
Corners
I(q)=|A(q)|2Every straight edge throws a streak through the centre at right angles to itself, a spike each way, and parallel edges share one. So a hexagon makes six, a square four, a triangle six again, and a pentagon ten.
Slits
AN(q)=sin(πNdq)/(Nsin(πdq))Two slits give Young's fringes. With more slits the fringes sharpen into orders at q=m/d, and because a given q lands on the screen at a distance proportional to the wavelength, every order but the central one splits into a spectrum: a diffraction grating.
A lattice of holes
e2πiG·aj=1A hexagonal array of small holes sends nearly all its light towards the points of its reciprocal lattice, and every point but the central one is a small rainbow. The more holes, the sharper the points: a crystal scatters X-rays into spots in much the same way. Then the array gives way to a single round hole.