From angle to function
Until now has meant “an angle.” Drop that. Treat 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. , , are all perfectly good outputs.
Mechanically nothing changed. To compute you still walk a distance around the unit circle and read off the height. But now is just “how far along the input axis we are,” and we are going to plot the output.
As you drag the point, the readout is the height. Imagine pulling that height out sideways and plotting it against . That is the next step.
The graph of sine
Walk the input steadily from upward and plot as you go.
At the height is . It climbs to at , falls back through at , down to at , and returns to at . 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 or drops below , and one full copy takes a horizontal distance of before repeating.
The graph of cosine is the same wave
Now plot , the -coordinate, the same way. You get a wave of the identical shape: same height limits, same repeat distance .
The only difference is where it starts. Cosine begins at its peak: . 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 for the right constant .
What is ? (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
and each letter is one independent knob:
- , the amplitude, sets the height of the peaks.
- , the frequency factor, sets how tightly the wave is packed horizontally.
- , the phase, slides the whole wave left or right.
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. has peaks at height instead of . Pulling the peaks taller never changes how often the wave repeats.
Period is horizontal: the input distance for one full cycle. Plain has period . In , the inside finishes a full when has only travelled , so
Multiply the input by and the wave speeds up by a factor of , so its period shrinks. Bigger , tighter wave. They are separate handles in the widget because they are separate ideas.
Period from frequency
Consider the wave .
Using period , 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 , where is the frequency directly. Check it: that has , so its period is . A wave at cycles per second repeats every of a second. The widget shows both numbers at once so you can watch them trade off.
Recover k from the period
A wave is observed to have period .
What is ?
Phase is a delay
The last knob, , does not change the shape or the spacing at all. It slides the wave bodily along the input axis. A positive shifts it left, meaning the wave reaches each value earlier; a negative delays it.
This is exactly the relationship from earlier: is a sine wave with . 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 . 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