Unit 1 · Lesson 1-1
Signals
2h 25m1300 XP
Next

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 x(t)x(t) has a value at every real instant tt. A discrete-time signal x[n]x[n] has values only at integer indices nn: 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: x(t)x(t), t∈Rt \in \mathbb{R} — a microphone voltage, an accelerometer output.
  • Discrete time: x[n]x[n], n∈Zn \in \mathbb{Z} — often samples x[n]=x(nT)x[n] = x(nT) of a continuous signal taken every TT 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, ∣x∣2|x|^2 is proportional to a power: a voltage across a resistor dissipates v2/Rv^2/R, a pressure wave carries p2/(ρc)p^2/(\rho c) per unit area. So we measure a signal's size by its energy — the integral of ∣x∣2|x|^2 over all time — or, for a signal that never dies out, by its average power.
E=∫−∞∞∣x(t)∣2 dt,P=lim⁡T→∞12T∫−TT∣x(t)∣2 dt,E=∑n=−∞∞∣x[n]∣2,P=lim⁡N→∞12N+1∑n=−NN∣x[n]∣2E = \int_{-\infty}^{\infty} |x(t)|^2\,dt, \qquad P = \lim_{T\to\infty} \frac{1}{2T}\int_{-T}^{T} |x(t)|^2\,dt, \qquad E = \sum_{n=-\infty}^{\infty} |x[n]|^2,\quad P = \lim_{N\to\infty}\frac{1}{2N+1}\sum_{n=-N}^{N}|x[n]|^2

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
  • x1(t)=e−2tu(t)x_1(t) = e^{-2t}u(t), a decaying exponential switched on at t=0t = 0: E=∫0∞e−4t dt=14E = \int_0^\infty e^{-4t}\,dt = \tfrac14. An energy signal.
  • x2(t)=3cos⁡(ω0t)x_2(t) = 3\cos(\omega_0 t): it never dies out, so E=∞E = \infty. Over one period the average of cos⁡2\cos^2 is 12\tfrac12, so P=92=4.5P = \tfrac{9}{2} = 4.5. A power signal — every sinusoid of amplitude AA has P=A2/2P = A^2/2.
  • x3[n]=(12)nu[n]x_3[n] = (\tfrac12)^n u[n]: E=∑n=0∞(14)n=11−14=43E = \sum_{n=0}^{\infty} (\tfrac14)^n = \dfrac{1}{1 - \frac14} = \tfrac43, a geometric series.
The ramp t u(t)t\,u(t) is neither: its energy over [−T,T][-T, T] is T3/3T^3/3 and its average power T2/6T^2/6, and both grow without bound.
Periodic signals repeat: x(t+T)=x(t)x(t + T) = x(t) for every tt. The smallest such T>0T > 0 is the fundamental period, and ω0=2π/T\omega_0 = 2\pi/T 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. x[n+N]=x[n]x[n+N] = x[n] needs an integer NN, so cos⁡(Ω0n)\cos(\Omega_0 n) is periodic only when Ω0N=2πm\Omega_0 N = 2\pi m for integers mm and NN — that is, when Ω0/2π\Omega_0/2\pi is a rational number. cos⁡(πn/4)\cos(\pi n/4) repeats every 8 samples; cos⁡(3πn/8)\cos(3\pi n/8) every 16; but cos⁡(2n)\cos(2n), whose Ω0/2π=1/π\Omega_0/2\pi = 1/\pi is irrational, never repeats exactly, although its samples lie on a perfectly periodic curve.
Derivation
When is a sum of two sinusoids periodic?
Let x(t)=cos⁡(ω1t)+cos⁡(ω2t)x(t) = \cos(\omega_1 t) + \cos(\omega_2 t) with periods T1=2π/ω1T_1 = 2\pi/\omega_1 and T2=2π/ω2T_2 = 2\pi/\omega_2. A period TT of the sum must bring both terms back, so T=k1T1=k2T2T = k_1 T_1 = k_2 T_2 for positive integers k1k_1, k2k_2. Then
T1T2=k2k1=ω2ω1,\frac{T_1}{T_2} = \frac{k_2}{k_1} = \frac{\omega_2}{\omega_1},
a ratio of integers. So the sum is periodic exactly when ω1/ω2\omega_1/\omega_2 is rational. If T1/T2=p/qT_1/T_2 = p/q in lowest terms, the smallest common multiple is T=q T1=p T2T = q\,T_1 = p\,T_2.
Example: cos⁡(3πt/4)+sin⁡(πt/6)\cos(3\pi t/4) + \sin(\pi t/6) has T1=8/3T_1 = 8/3 and T2=12T_2 = 12. Their ratio is (8/3)/12=2/9(8/3)/12 = 2/9, so T=9T1=2T2=24T = 9 T_1 = 2 T_2 = 24. For cos⁡t+cos⁡(2 t)\cos t + \cos(\sqrt2\, t) the ratio is irrational: the sum never repeats.
💡Even and odd parts
Every signal splits uniquely into an even part and an odd part: xe(t)=12[x(t)+x(−t)],xo(t)=12[x(t)−x(−t)],x=xe+xo.x_e(t) = \tfrac12\left[x(t) + x(-t)\right], \qquad x_o(t) = \tfrac12\left[x(t) - x(-t)\right], \qquad x = x_e + x_o . For a real signal the energies add, E=Ee+EoE = E_e + E_o, because the cross term ∫xexo dt\int x_e x_o\,dt integrates an odd function over all time and vanishes. A signal that starts at t=0t = 0 (a causal signal) has Ee=Eo=E/2E_e = E_o = E/2. 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: x(t−t0)x(t - t_0) is xx delayed by t0t_0 if t0>0t_0 > 0 — every feature arrives t0t_0 later. (An echo is a delayed copy.)
  • Reversal: x(−t)x(-t) plays the signal backwards — the mirror image about t=0t = 0.
  • Scaling: x(at)x(at) with a>1a > 1 compresses the signal in time: it lasts 1/a1/a as long and every frequency in it is aa times higher. With 0<a<10 < a < 1 it stretches and drops in pitch. The phonautogram played at double speed was x(2t)x(2t): half as long, an octave higher — a man turned into a child.
Scaling also changes the energy: substituting τ=at\tau = at in the energy integral gives E{x(at)}=E{x}/∣a∣E\{x(at)\} = E\{x\}/|a|. Compressing a signal by 2 halves its energy, because it lasts half as long at the same amplitude.
📐Reading x(2t − 3)
Let x(t)x(t) be a pulse that is non-zero for 0≤t<20 \le t < 2. Where is y(t)=x(2t−3)y(t) = x(2t - 3) non-zero? Solve the inequality for tt: 0≤2t−3<2⟺1.5≤t<2.5.0 \le 2t - 3 < 2 \quad\Longleftrightarrow\quad 1.5 \le t < 2.5 . So yy is the pulse compressed to half its length and moved to start at t=1.5t = 1.5. The order of operations is the usual trap. Write x(2t−3)=x(2(t−1.5))x(2t-3) = x\big(2(t - 1.5)\big): compress by 2 first, then delay by 1.5. Or delay by 3 first, x(t−3)x(t - 3), then replace tt by 2t2t. Delaying by 3 after compressing would put the pulse at [3,4)[3, 4) — 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.
– Claude Shannon, A Mathematical Theory of Communication (1948), quoted in Information theory
💡Discrete-time scaling throws samples away
In discrete time, x[2n]x[2n] keeps only the even-numbered samples: the odd ones are gone for good, so the operation cannot be undone. And x[n/2]x[n/2] is not even defined for odd nn — 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.