Signals
Continuous and discrete time, energy and power, periodicity, even and odd parts, and the three transformations of time
Paris — 9 April 1860
Édouard-Léon Scott de Martinville sings "Au clair de la lune" into a horn. At its narrow end a membrane drives a bristle, and the bristle scratches a wavy line into soot on a turning drum. Scott called the machine a phonautograph. He built it as a laboratory instrument for studying sound by eye: the waveforms of speech, the envelope of a note. Playing the line back as sound was never part of the plan.
In 2008, researchers scanned his tracings optically, and scientists at the Lawrence Berkeley National Laboratory turned the scans into audio. The first version was 10 seconds of a woman or a child singing at an ordinary tempo. Then the team found that they had misread a reference frequency on the paper and doubled the playback speed. The real recording is 20 seconds long: a man, probably Scott himself, singing very slowly (Phonautograph; Scott de Martinville).
The trace never changed. What changed was how its time axis was read: a factor of two in time turned a man into a child. This lesson is about that axis.
A signal is a quantity that varies and carries information: the pressure at a microphone, the voltage on a strain gauge, the temperature of a turbine blade, the brightness along one row of a photograph, a country's daily case count. Mathematically it is simply a function. That is the most useful sentence in this course: everything you know about functions — shifting a graph, integrating its square, splitting it into even and odd parts — becomes a tool for sound, images, radar echoes and heartbeats.
Two kinds of time run through the subject. A continuous-time signal has a value at every real instant . A discrete-time signal has values only at integer indices : the samples of a recording, the readings of a daily log, the pixels of a scan line. Brackets for integers, parentheses for reals — the notation tells you which world you are in.
💡Continuous time, discrete time, digital
- Continuous time: , — a microphone voltage, an accelerometer output.
- Discrete time: , — often samples of a continuous signal taken every seconds (Unit 5), but some signals are discrete by nature: monthly rainfall, a stock's closing prices.
- Digital: discrete in time and in amplitude — each sample rounded to one of finitely many levels (16 bits on a CD: 65 536 levels). Rounding is a small, deliberate error we treat as noise.
How big is a signal? For most physical signals, is proportional to a power: a voltage across a resistor dissipates , a pressure wave carries per unit area. So we measure a signal's size by its energy — the integral of over all time — or, for a signal that never dies out, by its average power.
Energy and average power, in continuous and discrete time. An energy signal has finite E (and P = 0); a power signal has finite, non-zero P (and E = ∞).
📐Energy and power of three signals
- , a decaying exponential switched on at : . An energy signal.
- : it never dies out, so . Over one period the average of is , so . A power signal — every sinusoid of amplitude has .
- : , a geometric series.
Periodic signals repeat: for every . The smallest such is the fundamental period, and the fundamental frequency. A sum of periodic signals is periodic only if the periods fit together: some common multiple of all of them must exist.
Discrete time adds a surprise. needs an integer , so is periodic only when for integers and — that is, when is a rational number. repeats every 8 samples; every 16; but , whose is irrational, never repeats exactly, although its samples lie on a perfectly periodic curve.
Derivation
When is a sum of two sinusoids periodic?
Let with periods and . A period of the sum must bring both terms back, so for positive integers , . Then
a ratio of integers. So the sum is periodic exactly when is rational. If in lowest terms, the smallest common multiple is .
Example: has and . Their ratio is , so . For the ratio is irrational: the sum never repeats.
💡Even and odd parts
Every signal splits uniquely into an even part and an odd part:
For a real signal the energies add, , because the cross term integrates an odd function over all time and vanishes. A signal that starts at (a causal signal) has . The split matters later: the Fourier transform of the even part is real, that of the odd part imaginary.
The three transformations of time. We can change a signal by changing the variable it depends on:
- Shift: is delayed by if — every feature arrives later. (An echo is a delayed copy.)
- Reversal: plays the signal backwards — the mirror image about .
- Scaling: with compresses the signal in time: it lasts as long and every frequency in it is times higher. With it stretches and drops in pitch. The phonautogram played at double speed was : half as long, an octave higher — a man turned into a child.
Scaling also changes the energy: substituting in the energy integral gives . Compressing a signal by 2 halves its energy, because it lasts half as long at the same amplitude.
📐Reading x(2t − 3)
Let be a pulse that is non-zero for . Where is non-zero? Solve the inequality for :
So is the pulse compressed to half its length and moved to start at . The order of operations is the usual trap. Write : compress by 2 first, then delay by 1.5. Or delay by 3 first, , then replace by . Delaying by 3 after compressing would put the pulse at — wrong. When in doubt, solve the inequality.
The fundamental problem of communication is that of reproducing at one point, either exactly or approximately, a message selected at another point.
💡Discrete-time scaling throws samples away
In discrete time, keeps only the even-numbered samples: the odd ones are gone for good, so the operation cannot be undone. And is not even defined for odd — to stretch a sequence you must invent the in-between samples. Both operations, decimation and interpolation, are real tools with real dangers, and Lesson 5-3 does them properly.
🕰Recorded in 1860, heard in 2008
Scott patented the phonautograph in 1857, two decades before Edison's phonograph. He meant people to read the tracings, as one reads writing; that a machine could play them back was something he never imagined. The 2008 playback made his "Au clair de la lune" the oldest known intelligible recording of a human voice — and its first, double-speed version became a lesson in how much depends on the time axis (Phonautograph).
💡Where you will use this
Energy and power come back as Parseval's relation (Lessons 3-2 and 4-2), as the noise power under a spectrum (Lesson 6-3) and as signal-to-noise ratios (Lesson 10-3). Time shifts are the core of convolution (Unit 2) and become phase in the frequency domain (Lesson 4-2). Time scaling is the time–frequency trade-off of Lesson 4-2, and discrete-time scaling is the decimation and interpolation of Lesson 5-3.
📚Further reading
- Alan V. Oppenheim and Alan S. Willsky, Signals and Systems (2nd ed., Prentice Hall, 1997), chapter 1 — signals, transformations of the independent variable, periodicity.
- B. P. Lathi and Roger Green, Linear Systems and Signals (3rd ed., Oxford University Press, 2018), chapter 1 — energy, power and signal operations with worked examples.
- Phonautograph on Wikipedia — the instrument, the tracings and the 2008 playback.
↓But there is a problem
We can now describe a signal's size, its rhythm and its symmetry, and move it about in time. But to analyse systems, we need building blocks — signals out of which every other signal can be assembled.
Two will do the job. One is a signal that is zero at every instant but one, and still has area one. The other is a signal no instrument can record, because it has an imaginary part. The first does not even exist as a function — and engineers used it for decades before mathematicians could say what it was.