establish the identity
cos(3x)= cos^3x-3sin^2xcosx
cos(3x)= cos^3x-3sin^2xcosx