Sine & Cosine
The heartbeat of signal processing
Every sound you hear, every radio signal, every vibration in a bridge: they can all be described using just two functions: sine and cosine.
But what are they? Forget the formulas for a moment. Let's start with a circle.
A Point on a Circle
Imagine a point moving around a circle at constant speed. Watch what happens when we track its vertical position over time:
That smooth wave appearing on the right? That's the sine function. It's nothing more than the vertical position of a point moving around a circle.
Cosine is the same idea, but tracking the horizontal position instead. Switch the visualization above to "Cosine" or "Both" to see it.
Notice anything? Cosine looks exactly like sine, just shifted. They're the same wave, starting at different points on the circle. We'll explore this more in the Frequency & Phase lesson.
Why This Matters for DSP
In 1822, Joseph Fourier made a stunning claim: any signal, no matter how complex, can be built by adding up sine and cosine waves of different frequencies.
A square wave? Just the right mix of sine waves. A human voice? Sine waves. A WiFi signal? Sine waves.
That's why sine and cosine are the absolute foundation of signal processing. Master them, and everything else builds on top.
Frequently Asked Questions
What is the relationship between the unit circle and sine waves?
A sine wave is the vertical position of a point moving around a unit circle at constant speed. As the point rotates, its height traces out the familiar wave shape. Cosine is the horizontal position of the same point. This connection between circular motion and oscillation is the foundation of all signal processing.
What is the difference between sine and cosine?
Sine and cosine are identical waves, just shifted by 90 degrees (a quarter cycle). Sine starts at zero and rises; cosine starts at its peak and falls. On the unit circle, sine tracks vertical position while cosine tracks horizontal position of the same rotating point.
Why are sine and cosine important in DSP?
Every signal (audio, radio, vibration, image) can be decomposed into a sum of sinusoids at different frequencies. This is the Fourier theorem, and it means sine and cosine are the fundamental building blocks of signal processing. Understanding them is essential for filtering, modulation, spectral analysis, and compression.
Quick Check
Test your understanding of the key concepts from this lesson.






