Rewrite with only sin x and cos x.
cos 3x
cos 3x