\[\frac{\mathrm{d}}{\mathrm{d}z}\cos z=-\sin z,\]