\[\sin u\pm\cos u=\sqrt{2}\sin\left(u\pm\tfrac{1}{4}\pi\right)=\pm\sqrt{2}\cos%
\left(u\mp\tfrac{1}{4}\pi\right).\]