The graphs of and have exactly the same shape and differ only by a horizontal shift. Here we confirm that relationship with formulas.
The cosine is the sine shifted left by .
Shifting a graph left by amounts to replacing with , and the crests of the sine then land exactly on the crests of the cosine. In general is the graph shifted right by , so a produces a shift to the left. The sign is easy to read backwards, so it is worth some care.
| Function | Where the maximum falls | Zeros |
|---|---|---|
The crest of the cosine sits to the left of the crest of the sine, which is exactly the amount of the shift. The zeros are displaced by the same amount.
The relationship is clearest on the unit circle. For a point on that circle the cosine is the horizontal coordinate and the sine is the vertical one. Advancing the angle by rotates the point by , so the present vertical coordinate becomes the next horizontal one.
Since , differentiation can be read as an operation that shifts the wave left by .
| Times differentiated | Result | Total shift |
|---|---|---|
That four differentiations return the original fits this reading: the total shift is a full .
Equally, the sine is the cosine shifted right by .
This displacement between two waves is called the phase difference. It is a basic idea in applications, such as the current through an inductor or a capacitor in an alternating-current circuit running out of step with the voltage.
The large dots on the graph are the crest of the cosine at and the crest of the sine at .