\[\cos\left(2z\right)=2{\cos}^{2}z-1=1-2{\sin}^{2}z={\cos}^{2}z-{\sin}^{2}z=%
\frac{1-{\tan}^{2}z}{1+{\tan}^{2}z},\]