Geometrically, the cosine is a projection of the complex number \(\exp(ix)\), which is on the unit circle, to the real axis. The behavior of the cosine function can be studied in the following interactive figure (with a draggable value of \(x\)):

Cosine graph of $\cos(x)$

Projection of $\exp(ix)$ happening in the complex plane