\[\cos\left(4z\right)=8{\cos}^{4}z-8{\cos}^{2}z+1.\]