Skip to content
Tactiverge

School/□ Systems Engineer/Week 21

Seeing a signal's ingredients

A chord played on a piano is one wobbly line on an oscilloscope. How can a tuner app name every note in it?

About 30 min · 3 goals · Checked by automated tests

1.Why should I care?

Many problems that look hopeless in time are easy in frequency. A hum, a squeal or a failing bearing is a tall spike at one frequency even when it is invisible in the waveform. Engineers flip between the two views all day.

  • ◇ Describe a signal as a sum of sinusoids and draw its magnitude spectrum.
  • ◇ Explain why phase changes the waveform but not the magnitude spectrum.
  • ◇ Use Parseval's idea: total power is the sum of A²/2 over the components.

2.Predict

A signal is 1·sin(2π·2t) + 0.5·sin(2π·5t). What is its average power?

Guess first. Being wrong here is how the surprise works.

3.Discover

Load 'Three tones'. Read the spectrum bars, then change each phase and watch the time plot. Next put two components at the same frequency and vary one phase: what happens to that bar now?

Loading the interactive…

Can't use the interactive? Read a description instead

With three tones at 2, 5 and 8 Hz the spectrum shows three bars of heights 1, 0.6 and 0.3. Changing phases changes the waveform's shape but not the bars. Putting two components at the same frequency makes one bar whose height depends on their phase difference (from the sum to the difference of the amplitudes).

4.Checkpoint: guided practice

Check what you just discovered before going on. Hints appear after a wrong answer.

Practice 1

You change only the phase of one component. What changes?

Practice 2

x(t) = 2·sin(2π·50t) + 1·sin(2π·150t). What is its average power?

5.Understand

Two views of one signal

The time domain shows value against time. The frequency domain shows how much of each frequency is present. A magnitude spectrum draws a bar of height Aᵢ at each fᵢ. The same information, arranged differently, like a recipe versus the cake.

Phase hides in the time view

Shifting a component's phase reshapes the waveform (peaks can line up or cancel) but leaves its bar the same. That is why two signals that look different can sound identical: your ear cares mostly about magnitudes. A full description keeps the phase too, so the time signal can be rebuilt.

Power adds across frequencies

Sinusoids of different frequencies average to zero when multiplied together, so the cross terms vanish and P = Σ Aᵢ²/2. That is Parseval's theorem in miniature: power computed in time equals power computed from the spectrum. Components at the same frequency are different: they combine as phasors first.

Explain it another way

A smoothie tastes like one thing, but its recipe card lists banana, strawberry and yoghurt with amounts. The spectrum is the recipe card of a signal.

Worked example 1

Sketch the spectrum of 3 + 2·cos(2π·10t) + sin(2π·30t).

A bar of height 3 at 0 Hz (DC), height 2 at 10 Hz and height 1 at 30 Hz. Power = 3² + 2²/2 + 1²/2 = 9 + 2 + 0.5 = 11.5.

Common mix-ups

  • If two waveforms look different, their spectra must be different.
    ✓ Phase changes the look without changing the magnitude spectrum.
  • Amplitudes always add.
    ✓ Only powers of different frequencies add simply; same-frequency components add as phasors.

6.Practice on your own

Practice, not a test. Wrong answers get a hint and another try.

Practice 3

3·sin(2π·5t) + 4·sin(2π·5t + 90°) is a single 5 Hz sinusoid. What is its amplitude?

Practice 4 · a fresh version every time

A signal is x(t) = 1 + 6·sin(2π·440·t). What is its average power (mean of x², as for a 1 Ω load)?

Practice 5

Where does a constant offset appear in a spectrum?

7.Apply it

Record (or imagine) three sounds: a whistle, a vowel 'aaa' and a hiss. Sketch what you expect each spectrum to look like and justify each sketch in one sentence.

8.Reflect

Concepts: Frequency domain and the Fourier transform