The following formula holds: $$\dfrac{\mathrm{d}}{\mathrm{d}z} \sec(z)=\tan(z)\sec(z),$$ where $\sec$ denotes the secant and $\cot$ denotes the cotangent.