solve 3-3costheta = 2sin^2theta