Trigonometry: compact · 20 min

The wave they make

Stop thinking of sine and cosine as angle machines. Feed them any real number and their outputs trace a wave. You can stretch it, squeeze it, and slide it, and every transformer you ever meet is built from waves like these.

0 / 0

From angle to function

Until now θ\theta has meant “an angle.” Drop that. Treat sin\sin as an ordinary function: hand it a real number, get a real number back. The input does not have to be an angle in any picture. sin(1)\sin(1), sin(2.5)\sin(2.5), sin(100)\sin(100) are all perfectly good outputs.

Mechanically nothing changed. To compute sin(θ)\sin(\theta) you still walk a distance θ\theta around the unit circle and read off the height. But now θ\theta is just “how far along the input axis we are,” and we are going to plot the output.

-1.5-1-0.50.511.5-1.5-1-0.50.511.5
theta 0.000 rad = 0  = 0.0°
(cos, sin) (1.000, 0.000)
arc length 0.000 — arc length equals the radian measure
identity sin²θ + cos²θ = 1.000
showing 0.000 radians

As you drag the point, the sinθ\sin\theta readout is the height. Imagine pulling that height out sideways and plotting it against θ\theta. That is the next step.

The graph of sine

Walk the input θ\theta steadily from 00 upward and plot sinθ\sin\theta as you go.

At θ=0\theta = 0 the height is 00. It climbs to 11 at θ=π/2\theta = \pi/2, falls back through 00 at θ=π\theta = \pi, down to 1-1 at θ=3π/2\theta = 3\pi/2, and returns to 00 at θ=2π\theta = 2\pi. Then it does the exact same thing again, forever, because going around the circle again retraces the same heights.

The result is a smooth, endlessly repeating wave. Its height never exceeds 11 or drops below 1-1, and one full copy takes a horizontal distance of 2π2\pi before repeating.

The graph of cosine is the same wave

Now plot cosθ\cos\theta, the xx-coordinate, the same way. You get a wave of the identical shape: same height limits, same repeat distance 2π2\pi.

The only difference is where it starts. Cosine begins at its peak: cos0=1\cos 0 = 1. Sine begins at zero on the way up. Slide the cosine wave to the right by a quarter of a full cycle and it lands exactly on the sine wave.

There is only one wave shape in this lesson. Sine and cosine are two readings of it, a quarter-turn apart.

Cosine as shifted sine

Cosine is sine shifted left. We can write cosθ=sin(θ+c)\cos\theta = \sin(\theta + c) for the right constant cc.

What is cc? (Give a decimal. It is a quarter of a full cycle.)

Three knobs on the wave

Every wave you will ever care about is a plain sine wave with three things adjusted. The general form is

y=Asin(kθ+ϕ)y = A\sin(k\theta + \phi)

and each letter is one independent knob:

  • AA, the amplitude, sets the height of the peaks.
  • kk, the frequency factor, sets how tightly the wave is packed horizontally.
  • ϕ\phi, the phase, slides the whole wave left or right.
drag the three coral handles on the wave
24681012-3-2-1123
equation y = 2.00 sin(1.00x + 0.00)
amplitude A 2.00 — peak height of the wave
k 1.000 — angular frequency
period 2π/k = 6.283 — longer period, slower wave
frequency k/2π = 0.159 — moves opposite the period
phase shift −φ/k = 0.000

The three handles on the curve each grab one knob. Drag the top handle to stretch the peaks, the side handle to squeeze the cycles closer, the baseline handle to slide it. Watch the equation update.

Amplitude and period are different knobs

This is the confusion the widget exists to kill.

Amplitude is vertical. AsinθA\sin\theta has peaks at height AA instead of 11. Pulling the peaks taller never changes how often the wave repeats.

Period is horizontal: the input distance for one full cycle. Plain sinθ\sin\theta has period 2π2\pi. In sin(kθ)\sin(k\theta), the inside finishes a full 2π2\pi when θ\theta has only travelled 2π/k2\pi/k, so

period of sin(kθ)=2πk\text{period of } \sin(k\theta) = \frac{2\pi}{k}

Multiply the input by kk and the wave speeds up by a factor of kk, so its period shrinks. Bigger kk, tighter wave. They are separate handles in the widget because they are separate ideas.

Period from frequency

Consider the wave sin(4θ)\sin(4\theta).

Using period =2π/k= 2\pi/k, what is its period? (Give a decimal.)

Frequency, the engineering word

Period is “input per cycle.” Its reciprocal is frequency: “cycles per unit input.” They move in opposite directions: squeeze the period and the frequency rises.

Engineers usually write a wave as sin(2πfθ)\sin(2\pi f\theta), where ff is the frequency directly. Check it: that has k=2πfk = 2\pi f, so its period is 2π/(2πf)=1/f2\pi / (2\pi f) = 1/f. A wave at f=60f = 60 cycles per second repeats every 1/601/60 of a second. The widget shows both numbers at once so you can watch them trade off.

Recover k from the period

A wave sin(kθ)\sin(k\theta) is observed to have period 2π/102\pi/10.

What is kk?

Phase is a delay

The last knob, ϕ\phi, does not change the shape or the spacing at all. It slides the wave bodily along the input axis. A positive ϕ\phi shifts it left, meaning the wave reaches each value earlier; a negative ϕ\phi delays it.

This is exactly the relationship from earlier: cosθ=sin(θ+π/2)\cos\theta = \sin(\theta + \pi/2) is a sine wave with ϕ=π/2\phi = \pi/2. Toggle the cosine overlay in the widget and you see two waves of identical shape, offset by that one quarter-cycle of phase.

Where this goes next

You now have the full vocabulary of a wave: amplitude, frequency, period, phase.

Hold onto the frequency knob in particular. A transformer has no built-in sense of where a word sits in a sentence. To give it one, it tags each position with a stack of these waves, every one ticking at a different frequency kk. Sample them all at the same input and you get a list of numbers that is unique to that position. You will build that list by hand in lesson five, and the lesson before it shows what those waves do when you start rotating with them.

Lesson complete

Nice tinkering.