The relationship between sine and cosine
The graphs of y=sinx and y=cosx have exactly the same shape and differ only by a horizontal shift. Let us confirm the relationship with a formula.
cosx is sinx shifted to the left by 2π. In symbols,
cosx=sin(x+2π) Shifting a graph left by 2π amounts to replacing x with x+2π, and the peaks of sin land exactly on the peaks of cos.
Indeed, sinx has its maximum 1 (a peak) at x=2π, while cosx has its maximum 1 at x=0. The peak of cos is 2π to the left of the peak of sin, exactly the amount of the shift.
Likewise sinx=cos(x−2π), so sin is cos shifted right by 2π. Sine and cosine are the same wave, carried onto each other by a shift of 2π. The large dots on the graph are the peak of cos at (0,1) and the peak of sin at (2π,1).