can always be written in the form .
So expand and compare it with to get equations that you can use to solve for and .
An alternative approach to solving the original equation is given here: Solving Equations Involving Cosine Plus Sine
Note that when using this approach you must always test the resulting solutions to see whether or not they satisfy the original equation.