How do you simplify f(theta)=cos^2theta-sin^2(2theta)?