\[\frac{{\mathrm{d}}^{n}}{{\mathrm{d}z}^{n}}\cos z=\cos\left(z+\tfrac{1}{2}n\pi%
\right).\]