let $k\in \mathbb{Z}$
How to prove that
$\sin\left(x+\dfrac{\pi}{2}(1+2k)\right) = \cos x$
if $k$ is an even number and
$\sin\left(x+\dfrac{\pi}{2}(1+2k)\right) =-\cos x$
if $k$ is an odd number?
I have the intuition for the unit circle, but how can I prove this formally? I thought about induction, but $k$ can be a negative number.