Why does $\sin(t) + \cos(t)$ itself look like a sine graph

trigonometry

So the other night I was randomly python scripting. I plotted $\sin(t) + \cos(t)$ vs $t$ for $t$ ranging between $0$ to $100$ with spacings of Δt = 0.1. (It is a pretty basic code…) Anyhow, the below plot is the result.
enter image description here

Why does it look like this? I cannot figure out why, surely it has something to do with some periodicity going on in $\sin(t) + \cos(t)$?

Best Answer

Recall that by sum/difference identities

$$\cos (\alpha-\beta) =\cos \alpha\cos \beta + \sin \alpha\sin \beta$$

and by $\cos \beta=\sin \beta=\frac{\sqrt 2}2$ we have

$$\cos \alpha + \sin \alpha=\sqrt 2 \cos (\alpha-\beta)$$

with $\beta=\frac{\pi}4+2k\pi$.