If you draw the situation on the unit circle, then $\sin\varphi$ is the x-coordinate of the point corresponding to the angle $\varphi$. The points $2\pi t-\pi/4$ and $2\pi t+\pi/4$ have right angle between them and $2\pi t$ is exactly in the middle.
So from the right triangle below you see that the sum of the vectors corresponding to $2\pi t-\pi/4$ and $2\pi t+\pi 4$ has the same direction as the vector corresponding to $2\pi t$ and the length is $\sqrt2$. The sum $\sin(2\pi t-\pi/4)+\sin(2\pi t+\pi/4)$ is the x-coordinate of this vector, and it is equal to $\sqrt2\sin 2\pi t.$
The same argument gives $\cos(2\pi t-\pi/4)+\cos(2\pi t+\pi/4)=\sqrt2\cos 2\pi t.$

More-or-less the same idea can be rewritten using complex numbers if we use Euler's forumula $e^{i\varphi}=\cos\varphi+i\sin\varphi$.
We have $$e^{\alpha+\pi/4}+e^{\alpha-\pi/4}=e^\alpha(e^{\pi/4}+e^{-\pi/4})=e^\alpha2\cos\frac\pi4=e^\alpha\sqrt2.$$
The real part gives $\cos(\alpha+\pi/4)+\cos(\alpha-\pi/4)=\sqrt2\cos\alpha$ and the imaginary part gives $\sin(\alpha+\pi/4)+\sin(\alpha-\pi/4)=\sqrt2\sin\alpha$.
Complex numbers are quite often useful for remembering/proving trigonometric identities.