Use the sum of angles formula for sin: .
Next, match terms. You have . The sin(x) obviously goes with sin (x), so cos(c) must have something to do with the coefficient of sin(x), which is 1. Then cos(x) obviously goes with cos(x), so sin(c) must have something to do with the coefficient of cos(x), which is . Assume that the 1 and the are sides of a right triangle. What would the hypotenuse be? By the Pythagorean Theorem, it would be 2. So, factor out a 2: . Now, what angle has and ?
In general let the expression be a sin P + b cos P. We can proceed by dividing and multiplying the expression by sqrt (a^2 + b^2) So we get
a sin P + b cos P = [sqrt (a^2 + b^2)] [ {a sin P + b cos P } / sqrt (a^2 + b^2) ] = [sqrt (a^2 + b^2)] [ a/{sqrt (a^2 + b^2)} sin P + b/{sqrt (a^2 + b^2)} cos P]
Now we can put a/sqrt (a^2 + b^2) = cos A then we will have b/sqrt (a^2 + b^2) = sin A and we will get
a sin P + b cos P = [sqrt (a^2 + b^2)] [ sin P cos A + sin A cos P ]= [sqrt (a^2 + b^2)] sin ( A + P)
Alternatively we can alternatively put
a/sqrt (a^2 + b^2) = sin A then we will have b/sqrt (a^2 + b^2) = cos A and we will get
a sin P + b cos P = [sqrt (a^2 + b^2)] [ sin P sin A + cos A cos P ]= [sqrt (a^2 + b^2)] cos ( P - A)