How a phone hears a satellite.

The signal this site begins with is one of the faintest you use every day. This is the story of how a phone finds it, and of how the phone then works out where on Earth it is. It is told with a flashlight, a loaded coin, a key in a lock and a treasure map, and it asks for nothing beyond ordinary arithmetic. The first four chapters then build the search for the signal by hand.

Somewhere above you right now, about twenty thousand kilometers up, a satellite is broadcasting a radio signal toward the ground. That height is roughly the distance you would cover by flying halfway around the world. The satellite is one of about thirty that make up the Global Positioning System, or GPS, and your phone is listening for it.

20,200 kmsatelliteEarthyou
The satellite and the Earth are drawn here to scale. The shaded wedge is the signal on its way down. The side of the Earth with the heavy colored edge is the spot the signal lights up, which is more than a third of the planet's whole surface.

The satellite's transmitter, which is the part that sends the signal, is modest. It sends out about as much power as an ordinary light bulb uses. Radio waves and light are the same kind of wave, and radio waves are simply far too long for the eye to see, so it is fair to picture the satellite as a lamp: one bulb, hung twenty thousand kilometers overhead, that your phone has to see.

why so little arrives

To understand why almost nothing arrives, take a flashlight into a dark room and point it at a wall. From one meter away, which is about one long stride, the beam makes a small, bright spot. Move back to two meters and the spot changes in two ways at once: it grows, and it dims. It is now twice as wide and twice as tall, which makes it four times the area. The flashlight is putting out exactly as much light as before. That same light is now spread over four times as much wall, so each part of the spot gets a quarter of the light it had, and the spot is only a quarter as bright. At three meters the spot covers nine times the area and is a ninth as bright. At ten meters it is a hundredth as bright, a dim patch where the bright spot used to be.

This rule is called the inverse square law, and the name describes the arithmetic. Multiply the distance by itself, which is called squaring it, and the brightness is divided by the answer. Two times two is four, so twice the distance leaves a quarter of the brightness. Ten times ten is a hundred, so ten times the distance leaves a hundredth. The rule holds for anything that spreads out as it travels, whether it is light, sound or radio. A light looks dimmer, a sound is fainter and a radio signal is weaker, all by the same arithmetic.

A flashlight has one more lesson in it. Many have a head that twists to change the beam from wide to narrow. Narrow the beam and the spot shrinks and grows brighter. The flashlight is making exactly as much light as before, and all of it now falls on a smaller area. So the brightness at the wall depends on two things: how far away the wall is, and how tightly the light is aimed.

Move the wall away and the spot grows and fades. Narrow the beam and the spot shrinks and brightens. The flashlight gives out the same amount of light the whole time.

A GPS satellite has both things working against it. It is very far away, and it has to aim wide, because it serves everyone who can see it at the same moment. Its antenna is shaped to light up the whole face of the Earth below, like a flashlight set to its widest beam. In this picture the Earth is the wall, and the lit spot on it is enormous. It takes in more than a third of the planet's entire surface, oceans and continents together, which comes to nearly two hundred million square kilometers of sea and land.

A light bulb's worth of power spread over a spot that size is extremely faint at any one place. And out of everything that falls on the spot, your phone's antenna catches only the share that lands on a patch smaller than a playing card.

how faint that is

What is left is hard to picture, so here is a comparison from everyday life. Picture two people standing four hundred meters apart, which is about a quarter of a mile, or four football fields laid end to end. One of them speaks to the other in an ordinary voice, at the level you would use with a friend standing right beside you. By the time that voice has spread out across the gap, the power arriving at the listener's eardrum is about the same as the power of the GPS signal arriving at your phone. Sound and radio are different things, so the comparison is a loose one, but it gives the scale. The satellite manages it from fifty thousand times farther away mainly because it starts with millions of times more power than a voice, and chapter 11 works through the rest of the sum.

400 meters
Two people stand four hundred meters apart, and one of them speaks in an ordinary voice. The sound power that reaches the listener's ear is about the same as the GPS power that reaches your phone.

In practice the listener hears nothing. In a soundproof laboratory, that much sound is only a little above the faintest a healthy young ear can detect at all. Outdoors, even a quiet night in the country has a background of its own: a breath of wind, leaves moving, a car on a distant road. That background is about twenty times stronger than the voice is after crossing the gap. Inside a library, which most people would call silent, it is about two hundred times stronger. The voice does arrive, and it is lost in everything else that arrives with it.

A radio receiver is in the same position, because every receiver makes a steady hiss of its own. If you have ever tuned a radio to a spot between stations, the steady shh you heard was this hiss. It comes from the receiver's own parts. The electrons inside them, which are the tiny particles that carry an electric current, are jostled constantly by heat, and that jostling shows up as a faint, random signal. Careful design can shrink the hiss, and some of it always remains. Inside your phone it is fifty to a hundred times stronger than the satellite's signal. If you could see what the antenna picks up, drawn as a line on a screen, you would see the hiss and nothing else. The signal is in there, buried.

The top line is the satellite's signal by itself, drawn at its true size next to the hiss. The bottom line is the same signal with the hiss added, which is what the antenna picks up. The eye can find no sign of the signal in it.

what the phone has to do

And yet the phone finds that signal, along with the signals of several other satellites, and uses them to work out where you are to within a few meters. It does this the same way you can judge how far off a thunderstorm is. Lightning and thunder leave the storm at the same instant, but thunder travels slowly, about a kilometer every three seconds, so the longer the gap between the flash and the bang, the farther away the storm must be.

Each GPS satellite announces, within its signal, the exact time at which the signal left. The phone notes the time at which it arrived. The difference between the two, multiplied by the speed of radio waves, is the distance to that satellite, and the distances to four satellites are enough to fix your position.

The difficulty is the speed. Radio waves travel at the speed of light, which is thirty centimeters in one billionth of a second. To know its distance from a satellite to within three meters, the phone has to know when the signal arrived to within ten billionths of a second. So here is the question this site is built around. How does a device in your pocket find a signal a hundred times weaker than the noise it sits in, and then time its arrival to within a few billionths of a second?

what the phone knows

The answer starts with a simple fact: the phone knows exactly what it is listening for. That matters more than it might seem. In a loud, crowded room you cannot follow a stranger's conversation from across the floor, but you will catch your own name through the same din, and you can pick out a song you know by heart from a few faint notes. Knowing what to listen for is a large advantage, and a GPS receiver pushes that advantage a very long way. To see how, you need to know what a satellite actually sends.

A radio signal is a wave. Like a ripple crossing a pond, it rises to a high point called a crest, falls to a low point called a trough, and rises again, over and over, in a steady rhythm. A transmitter can send this wave the normal way, or it can send it flipped upside down, so that every crest becomes a trough and every trough becomes a crest. A receiver can tell the two apart, and this story calls the normal way "up" and the flipped way "down."

With only those two choices a satellite can still send a pattern, and a small game shows how. Suppose you and a friend stand at opposite ends of a field, and the two of you have agreed on a list ahead of time: up, up, down, down, up, down, down, down. You begin to count out loud, slowly and evenly, the way you would count seconds. On every count you read the next word on the list and hold your arm either up or down, and you keep it there until the next count. Each count is one step of the pattern. So a step is one turn in the game. It is a short stretch of time, the same length as every other, during which your arm stays one way.

A GPS satellite plays the same game with its radio wave in place of an arm, and it counts far faster than anyone could. It gets through about a million steps every second, so each step lasts about a millionth of a second. For the whole of one step it sends its wave a single way, either up or down. When the next step begins it reads the next word on its list, and the wave either stays as it was or flips over.

These are eight steps of a pattern. The top row is the game played with an arm, one count for each step. Under it is what a satellite sends during the same eight steps: its wave the normal way for up, and flipped over for down. Press any step to change it. The eight you see first are the opening steps of a real satellite's list. The drawing fits two crests into each step so that they can be seen, and the real signal fits about 1,500.

The satellite's whole list is 1,023 steps long, so one trip through it is 1,023 ups and downs in a fixed order. When the satellite reaches the end of the list it goes straight back to the beginning and starts again. Each step lasts about a millionth of a second, so the full pattern takes about a thousandth of a second, and it goes by a thousand times every second.

The pattern itself never changes. It was fixed when the system was designed, each satellite was given a pattern of its own, and all of them are published for anyone to read. Lighthouses work on the same idea. Each one flashes in a rhythm of its own, and the rhythms are printed on sailors' charts, so a sailor who times the flashes of a distant light knows which lighthouse it is. A satellite's pattern is its own rhythm of flashes, kept up at a million steps every second. Drawn out on paper, it looks like a barcode.

This is the real pattern broadcast by GPS satellite number 1. The top row shows all 1,023 steps as a barcode, with a colored bar for every up and a gap for every down. The bottom row shows the first 56 of those steps enlarged, drawn as a line that sits high for up and low for down.

Because the patterns are published, your phone can make a perfect copy of any satellite's pattern, and that shrinks its task a great deal. Making sense of an unknown signal would be hard. The phone has the far easier job of checking whether a pattern it already knows is present in what the antenna picks up, and if so, exactly when that pattern begins.

how a slight lean adds up

The check rests on an old way of catching a cheat. Picture a gambler with a loaded coin. The coin has been weighted so slightly that it lands heads 54 times in 100, where an honest coin lands heads 50 times. How would anyone catch it? One toss proves nothing. Ten tosses prove nothing either, since six heads in ten is an everyday result for an honest coin. The way to catch it is to keep score for a long time: add one for every head, and take one away for every tail. With an honest coin the score wanders a little above zero and a little below. With the loaded coin it creeps steadily upward, and the longer the game goes on, the plainer the creep becomes.

Two coins were tossed ten thousand times each, with the score kept as described: add one for heads, take one away for tails. The honest coin wanders near zero. The loaded coin climbs to about eight hundred. Toss them again and watch the start, where for the first few hundred tosses the two scores are tangled together and either coin could be the loaded one.

The phone catches the satellite's signal in exactly this way. It lays its copy of the pattern alongside the incoming signal and compares the two, one step at a time. Where the copy says up, it looks at whether the wave that arrived was right side up. Where the copy says down, it looks at whether the wave was flipped. Every comparison is one toss of the coin. When the two agree, the phone adds one to a running tally, and when they disagree it takes one away.

If no satellite is there, the antenna picks up hiss alone, and hiss is an honest coin. It is random, so at each step it is as likely to agree with the copy as to disagree, and over the 1,023 steps of the pattern the tally typically ends within thirty or so of zero. Now put the satellite's signal back. It is far weaker than the hiss, so at any single step the hiss still decides whether the phone sees a crest or a trough. But the signal loads the coin. When the hiss is a hundred times stronger than the signal, each step agrees with the copy about 54 times in 100. A lean that slight is invisible in any single step. In the tally it is plain: after 1,023 steps the score stands about eighty above zero, more than twice what luck alone produces.

A Yorkshire businessman named Joseph Jagger is said to have made a fortune this way. Jagger had worked around the spinning machinery of textile mills since boyhood, and he reasoned, so the story goes, that a roulette wheel could be no more perfectly balanced than the wheels in a mill. Around 1880 he traveled to the casino at Monte Carlo and spent a month writing down the numbers that came up at the tables. The tallies showed what no evening of play could have: certain numbers were turning up slightly more often than the rest. Jagger bet on them, and is reputed to have left with two million francs. The phone is Jagger with his notebook. The lean it is looking for is slight, and it finds it by keeping score long enough.

The phone can keep score for as long as it likes, because the pattern repeats. Ten passes through the pattern come to about ten thousand comparisons and take a hundredth of a second. By then the lean has added up to about eight hundred, while luck has grown only to about a hundred, just as the two coins did in the chart above. The lean grows exactly as fast as the number of comparisons, so ten times as many comparisons give ten times the lean. Luck grows far more slowly, because luck keeps canceling itself. That difference is the whole secret. Given enough steps, a signal far too weak to see at any one moment stands well clear of the noise. A fainter signal calls for a longer tally, and chapter 2 shows how far that can be pushed.

One piece is still missing. The comparison only works if the copy is lined up with the incoming pattern, step for step, and the phone starts out with no idea when the pattern begins. Being nearly lined up is no help at all, for the same reason that a key pushed into a lock one notch short of home has all the right ridges and every one of them in the wrong place. The patterns were designed to behave like that key. Each one was built by a fixed rule and yet looks as random as a row of coin tosses, so a copy that is out of line by even a single step agrees with the incoming pattern only about half the time, exactly as hiss would. The lean disappears completely.

Each pair of lines shows the first 56 steps of the incoming pattern in amber, with the phone's copy underneath in cyan, drawn without hiss so that the steps can be seen. The marks below each pair show where the two agree. One step out of line, they agree about as often as two coins would. Lined up, they agree everywhere.

So the phone tries every possible starting point, the way you might turn the dial of an old radio slowly through the static, listening for a station. It lines the copy up one way and runs the tally, shifts the copy over by one step and runs the tally again, and continues through all 1,023 positions. At 1,022 of them it finds only static, and the tally stays small. At one, the tally jumps. The jump tells the phone that the satellite is there, and the position of the jump tells the phone when the pattern arrived. The animation below runs a search of this kind over and over.

This is the search in motion. The gray line is hiss with a pattern buried somewhere in it. The shaded box is the copy sliding across, and the colored line underneath is the tally at each position, with one tall spike where the copy lines up with the buried pattern. Each pass draws fresh hiss and hides the pattern in a new place.

Finding the right step puts the phone within about three hundred meters, because that is how far a radio wave travels in the millionth of a second that one step lasts. To do better, the phone does what you do when you focus a pair of binoculars. You turn the wheel a little too far one way, then a little too far the other, and settle halfway between, where the view is sharpest. Near the right position the tally behaves like that view. It rises smoothly to a peak and falls away again as the copy slides through. The phone measures the tally slightly early and slightly late, and nudges its copy until the two are equal. That sets it at the very top of the peak, to within about a hundredth of a step. A hundredth of a step is ten billionths of a second, or three meters.

where the landmarks are

Do the same with four satellites and the phone knows how far it is from each of them, to within a few meters. It would seem that the job is done. One thing is still missing, and a treasure map shows what it is.

Suppose an old map shows a field with an oak tree and a well in it, and a note in the corner says that the treasure is buried fifteen paces from the oak and thirteen paces from the well. You can find the spot without leaving the kitchen table. Every place that is fifteen paces from the oak lies on a circle around the oak, so you draw an arc of that circle on the map. Every place that is thirteen paces from the well lies on a circle around the well, so you draw an arc of that one too. The treasure has to be on both arcs at once, and so you mark an X where they cross.

Your X is only as good as the map, though. If the map shows the oak a little way from where it really grows, your arc swings from the wrong place, the two arcs cross somewhere else, and you dig a hole and find nothing in it.

This is the map. The dashed arcs are the ones you drew, around the oak and around the well, and the X is where they cross. Drag the oak, or move the slider, to make the map show the oak in the wrong place, and watch your X slide away from the treasure.

Your phone is in the same situation. Its landmarks are the satellites, and its paces are the distances it has just measured. It finds its X by the same kind of drawing, done with arithmetic. That means it has to know where every satellite is, which is much harder than finding an oak, because a GPS satellite moves almost four kilometers every second. Each satellite therefore keeps announcing where it is and where it is going, in the same signal that carries the time.

How do you tell someone where a thing is? In a city you might say three blocks east, two blocks north, and up on the fifth floor. Three numbers are enough, as long as everyone agrees where the counting starts and which way is which. GPS uses three numbers too. To see how, picture the Earth as an orange with three long skewers pushed straight through it, so that all three cross at the very center.

Mapmakers count east and west from a line that runs from pole to pole through Greenwich, in London. The first skewer's sharp end comes out where that line crosses the equator. The second's comes out on the equator too, a quarter of the way around the world to the east. The third's comes out at the North Pole. Engineers call the three skewers x, y and z. To say where anything is, they start at the center of the Earth and count how many kilometers to go toward the sharp end of x, then of y, then of z. Three numbers like that will lead you to any place you like, on the ground or high above it.

This is the Earth with its three skewers. The two brighter lines on it are the equator and the line through Greenwich. Each skewer has its letter at its sharp end and a ring at its blunt end. The colored path is the trip from the center of the Earth to where you stand: so far along x, then so far along y, then so far along z. Tap the globe to stand somewhere else, drag it sideways to turn it, or use the sliders. A minus sign in front of a number means backward, toward the blunt end.

Press the three buttons and compare. At the sharp end of x you are 6,378 kilometers from the center of the Earth, and at the sharp end of z, which is the North Pole, you are only 6,357. The Earth is slightly out of round. Toss a ball of pizza dough spinning into the air and it spreads into a disc. The Earth has been spinning for four and a half billion years, and it has spread a little too, enough to leave its middle bulging 21 kilometers farther out than its poles.

That bulge matters at the very last step. The phone does all of its arithmetic in x, y and z, and only at the end does it turn the answer into what a map needs, which is how far north you are, how far east, and how high. To do that correctly it has to know the true shape of the Earth. A phone that took the Earth for a perfect ball could put you 21 kilometers from where you are standing, far enough to land you in the next town.

Now turn the globe in the drawing and watch your three numbers. They stay exactly as they were, because the skewers are stuck fast in the orange and went around with you. That is what makes them so useful. A mountain keeps the same three numbers yesterday, today and tomorrow. The arrangement is called Earth-centered, Earth-fixed, or ECEF for short, and the exact version that GPS uses, bulge and all, is the World Geodetic System of 1984, or WGS 84.

a planet that will not hold still

A mountain keeps its three numbers because the skewers turn with the ground. The satellites take no part in that turning. They circle high overhead on paths of their own, while the Earth spins underneath them like a merry-go-round under a circling bird. Picture yourself riding that merry-go-round and trying to tell a friend where the bird is. "Straight out past the red horse" is true for an instant and wrong a moment later, because the red horse has moved on. To give the bird's place by the horses, you have to know exactly how far the merry-go-round has turned.

The people who run GPS have that problem every second of every day. They follow each satellite along its path, and then they have to give its place by the Earth's three skewers, which have turned in the meantime. If the Earth turned at a perfectly steady rate, that would be simple arithmetic. Its turning is very nearly steady, and the small unsteady part has to be measured.

Sit on a spinning office chair with your legs stretched out, have someone give you a push, and then pull your legs in. You spin faster. Stretch them out again and you slow down. The Earth spins around its z skewer, and it does what you did on the chair whenever some of its weight moves closer to that skewer or farther from it. When ice near the poles melts, the water spreads out through the oceans, farther from the skewer, and the spin slows a little. The winds change the spin in a way of their own. When the winds around the planet pick up speed toward the east, they get that speed by pushing back on the ground, the way a skateboard shoots backward when you jump forward off it, and the ground turns a touch slower. Between them, these things make the length of the day wander by about a thousandth of a second over a year.

An earthquake moves weight too, and does it in minutes. In March 2011 the sea floor off Japan lurched, and the rock shifted so that, on balance, it lay a little closer to the z skewer, like legs pulled in on the chair. The Earth sped up. By NASA's reckoning, every day since has been 1.8 millionths of a second shorter than it would have been.

Amounts that small sound as if they could be ignored. The ground at the equator, though, is carried around at 465 meters every second, which is faster than a jet airliner flies. In a thousandth of a second it covers nearly half a meter, about the length of your arm from elbow to fingertips. And the error grows, because each day that runs a little long adds its share to all the days before it. The drawing shows what would happen to the dot on your map if nobody kept watch.

You are standing on the equator at one end of a football field, seen from above, and the dot is where your map would draw you. With every day a thousandth of a second longer, the dot slides the whole length of the field in about eight months. The earthquake's share is so much smaller that its picture zooms in on the sole of a shoe.

The speed of the spin is one of three things that have to be watched. The Earth also wobbles as it turns, like a football thrown a little crooked, so that the point it really spins around wanders near the sharp end of the z skewer, over a patch of ground about the size of a tennis court. The whole spinning Earth is tilted as well, like a top that leans to one side, and the direction of its lean swings slowly around under the pull of the Moon and the Sun. An earthquake leaves the tilt alone, because only a pull from outside can change the direction a spinning thing points. What an earthquake changes is the way the Earth's weight is arranged, and with it the speed of the spin and the shape of the wobble. The one in 2011 moved the line that the Earth's weight is balanced around by about 17 centimeters.

The Earth's turning therefore has to be watched every single day, and the watchers need landmarks that stay perfectly still. You know how to find those from the window of a moving car. The fence posts beside the road whip past. A barn across the field slides by slowly. A mountain on the horizon hardly seems to move at all. The farther away a thing is, the steadier it sits, so astronomers use the farthest things there are. They are called quasars. Each one is the blazing center of a distant galaxy, so far off that its radio waves have been on their way for billions of years.

Big radio dishes on different continents listen to the same quasar at the same moment. What they pick up is hiss, and it is the very same hiss at every dish, arriving a tiny moment later at one dish than at another.

one dishanother dish this muchfarther
Hiss from a quasar arrives as a row of wave fronts, drawn here as dashed lines coming down from the upper left. One front has just reached the first dish. It has the amber stretch still to travel before it reaches the second, so the same hiss arrives there a moment later. As the Earth turns, the two dishes swing around and that delay changes. The delay is what the astronomers measure.

To find that moment, one recording is slid along the other until the two line up. You have seen that search before. It is the tally of this story, pointed at the edge of the universe. From those tiny delays the astronomers work out exactly how the Earth is turned, and their numbers go to the people who run GPS, from them up to the satellites, and from the satellites down to your phone.

One more thing will not hold still, and it is the ground itself. The continents drift, about as fast as your fingernails grow. Australia moves 7 centimeters to the northeast every year, and by 2017 its maps were more than a meter and a half behind the satellites. The country fixed that by moving every one of its coordinates 1.8 meters at a single stroke. An earthquake can do as much in minutes. The one in 2011 shoved part of the coast of Japan more than 5 meters to the east.

how close your phone gets

Does any of this matter when you are looking for a pizza place? It does, and it all happens out of sight. Out in the open, your phone can tell where you are to within about five meters. It sharpens that answer with other clues, since it also knows roughly where the nearby Wi-Fi networks and cell towers are, and phone makers bundle all of this together under a name like Location Services. The watch on the Earth's turning is already folded into what the satellites announce, so your phone gets it for nothing.

Some people need far better than five meters. A surveyor laying out a bridge does, and so does a farmer whose tractor has to follow the same rows every spring. Their receivers cost a great deal more than a phone, and many surveyors and farmers also pay for a steady stream of corrections. What they buy is the same faint signal, measured with far more care, with every wobble, wander and drift in this story taken into account. It tells them where they are standing to within the width of a thumb.

where the idea came from

The tally and the sliding search are older than GPS, and they came out of a different emergency. During the Second World War, radar operators were struggling with the same problem. A radar sends out a short burst of radio waves and listens for the echo from a distant aircraft, much as you might shout toward a cliff and wait for your voice to come back. The echo that returns is a faint copy of the burst that was sent, buried in the receiver's hiss.

In 1943 a researcher named Dwight North, at RCA's laboratories in Princeton, set out to find the best possible way to detect a known burst in noise. He proved that nothing can beat the method just described: compare what arrives against a copy of what was sent. His report was a wartime secret. It was published openly twenty years later, and by then engineers had given the idea the name it still carries, the matched filter. It is "matched" because the receiver is built around a copy of the very signal it is looking for.

pulse sentecho
A radar sends out a strong burst and gets back a faint copy of it, mixed with hiss. Radar in 1943 had the problem a GPS receiver has today: find a weak copy of a known signal in noise.

Today the matched filter is used wherever a known signal has to be found in noise. Radar and sonar use it to find echoes. A phone uses it to find the start of each message from a cell tower, and a WiFi router does the same with every chunk of data it receives. The first four chapters of this site build the method by hand, a little at a time, until you can hide a pattern in noise yourself, find it again, and account for every number along the way.

the same idea, far from radio

That method reaches far beyond radio. All it needs is a list of numbers measured one after another, and a great many things can be written down that way. A recording of your voice is a list of numbers, because a microphone measures the pressure of the air thousands of times each second. A heartbeat traced by a hospital monitor is another. So are the temperature outside your window through a year, and the daily price of a stock. Engineers call any such list a signal, and the tools on this site work on all of them.

A photograph is a signal too, though it takes a moment to see why. A digital photo is a grid of tiny squares, like the tiles of a mosaic, and each square is stored as a number that says how bright it is. Read the numbers along one row of the grid, from left to right, and you have a line that rises and falls just as a radio signal does. Drag the line up and down the picture below and watch the chart underneath it.

The chart shows the brightness along one row of the picture, drawn as a line. Where the row passes from bright sky into a dark tree, the line drops off a cliff.

Seen this way, an edge in a picture and the start of a pattern in a radio signal are the same kind of event: a sudden change in a list of numbers. The sliding comparison that finds a satellite will, with a different pattern to slide, find the edges in a photograph, or smooth away its grain, or sharpen it. Chapter 5 does exactly that, and it is where the site turns from radio to pictures and sound.

when the size is unknown

The second half of the site follows a question that the matched filter leaves open. The matched filter works because you know the exact pattern you are looking for, including how long it lasts. Many searches begin with far less to go on. A doctor reading a heart recording is looking for anything unusual, and it might be a sharp spike lasting a hundredth of a second or a slow drift that takes a minute. An edge in a photograph might be the hair-thin outline of a wire or the soft boundary of a cloud.

The solution is to slide a small wave-shaped pattern along the signal as before, and to repeat the search with that pattern stretched to many different widths. The narrow versions respond to quick changes and the wide versions respond to slow ones. It is a little like the zoom on a map. No single zoom level shows both the street you live on and the shape of the continent, so you look at several. The small pattern is called a wavelet, and the method is called the wavelet transform.

This is the same wavelet at three widths. The narrow one answers quick changes in a signal and the wide one answers slow changes.

Wavelets turned out to be good for much more than searching. The FBI stores its fingerprint files with them, digital cinemas receive their films compressed with them, and some photo editors use them to remove grain without blurring edges. All three come up in the later chapters. A symlet, which gave this site its name, is one family of wavelets, designed by the mathematician Ingrid Daubechies to be as close to symmetrical as that kind of pattern can be.

That is the whole story, and the rest of the site grows out of it. The next four chapters build the tally by hand, a piece at a time, beginning with the sliding sum on the next page.