DSPRelated.com

Sinusoidal Signals

The atoms of signal processing

Here's the most important idea in signal processing, stated in one sentence:

Any signal, no matter how complicated, can be built by adding up sinusoids of different frequencies, amplitudes, and phases.

A sharp click? Sinusoids. A violin note? Sinusoids. Your voice? Sinusoids. A photograph? Sinusoids in two dimensions. This is Fourier's insight, and it's the foundation of everything in DSP.

But before we start combining sinusoids, let's make sure we understand a single one perfectly.

Anatomy of a Sinusoid

A sinusoidal signal is fully described by three numbers:

x(t) = A · cos(2πft + φ)

  • A = amplitude, how tall the wave is (peak value). Controls loudness in audio, brightness in images, strength in radio.
  • f = frequency, how many cycles per second, measured in Hertz (Hz). One Hz means one complete oscillation per second. Controls pitch in audio, color in light.
  • φ = phase, where in the cycle the wave starts at t = 0. Two waves with the same frequency can be perfectly in sync or completely opposed depending on their phase difference.

You already know all of this from the earlier lessons. The new piece is that we're now thinking of this as a signal, something that changes over time and carries information.

Try it: Adjust amplitude to make the wave taller or shorter. Adjust frequency to pack more or fewer cycles into the same time window. Adjust phase to slide the wave left or right. The gray dashed wave shows the default (A=1, f=2, φ=0) for comparison.

Frequency, Period, and Angular Frequency

There are three ways to express how fast a sinusoid oscillates:

Quantity Symbol Unit Relationship
Frequency f Hertz (Hz) cycles per second
Period T seconds T = 1/f
Angular frequency ω radians/sec ω = 2πf

Engineers switch between these constantly. Textbooks prefer ω (angular frequency) because it simplifies the math. Lab instruments show f (Hz) because it's more intuitive. You need to be fluent in both.

Key Insight: A 1 Hz sinusoid completes one full cycle every second, which is ω = 2π radians per second. A 1000 Hz tone (like a telephone beep) completes 1000 cycles per second. Human hearing spans roughly 20 Hz to 20,000 Hz. The power line in your wall is 50 or 60 Hz.

Phase: The Hidden Parameter

Amplitude and frequency are easy to hear and see. Phase is subtler, but it matters enormously.

Two sinusoids at the same frequency can reinforce or cancel each other depending on their phase difference:

Try it: The blue wave is fixed. The orange wave has the same frequency but a different phase. The green wave is their sum. At Δφ = 0 they reinforce (double amplitude). At Δφ = π (180°) they cancel completely. At Δφ = π/2 (90°) the result has the same amplitude but a shifted phase.
Key Insight: Phase cancellation is everywhere in engineering. Noise-canceling headphones work by generating a signal with π phase difference. Antenna arrays steer their beam by adjusting the phase of each element. And in the Fourier transform, phase carries the timing information, telling you where each frequency component starts.

Sinusoids in the Wild

Pure sinusoids are rare in nature, but they're the building blocks that everything else is made of:

  • Tuning fork: Very nearly a pure sinusoid, which is why musicians use them as a reference.
  • Power line: 60 Hz in North America, 50 Hz in Europe. The sinusoidal voltage that powers your devices.
  • Radio carrier: An AM radio station at 880 kHz transmits a sinusoid at 880,000 cycles per second, with the audio signal encoded in its amplitude.
  • Musical notes: Middle C is 261.6 Hz. Concert A is 440 Hz. But a real instrument produces many sinusoids at once (harmonics), and that's what gives each instrument its unique timbre.

The difference between a piano and a violin playing the same note? Same fundamental frequency, different mix of harmonics. The next lesson shows you how to combine sinusoids to build any shape you want.

The Complex Exponential Connection

From the previous lessons, you know that a real sinusoid is the real part of a spinning complex exponential:

A·cos(2πft + φ) = Re{A · ej(2πft + φ)}

And equivalently, it's the sum of two complex exponentials spinning in opposite directions:

A·cos(2πft + φ) = A2 · ej(2πft + φ) + A2 · e−j(2πft + φ)

This is why every real sinusoid shows up as two peaks in the frequency spectrum: one at +f and one at −f. It's not a mathematical quirk. It's the two spinning arrows that combine to produce the real wave you observe.

Frequently Asked Questions

Why are sinusoids so important in signal processing?

The Fourier theorem proves that any signal can be decomposed into a sum of sinusoids at different frequencies. This means sinusoids are the "atoms" of signal processing. Understand them and you can analyze any signal. Filters work by amplifying or attenuating sinusoids at specific frequencies.

What happens when you add two sinusoids at the same frequency?

When two sinusoids at the same frequency are added, the result is another sinusoid at that same frequency. The amplitude and phase of the result depend on the relative phase between the two inputs. If they are in phase (0° difference), they reinforce. If they are 180° apart, they cancel completely.

Quick Check

Test your understanding of the key concepts from this lesson.