\[\cos\left(3z\right)=-3\cos z+4{\cos}^{3}z,\]