Let c=cosxc=\cos xc=cosx. The standard identities give cos2x=2c2−1\cos2x=2c^2-1cos2x=2c2−1 and cos3x=4c3−3c\cos3x=4c^3-3ccos3x=4c3−3c.