How do you solve cos theta(sin theta-3cos theta)=0?