If $p$ & $q$ are the solutions of $$a \cos x + b \sin x = c$$
Then how do I prove that, $$\cos (p + q) = \dfrac{a^2-b^2}{a^2 + b^2} $$
I tried all the adjustments I could think of, like dividing by $ \cos x $ and extracting $a$ and $b$ from the 2 equations. Also tried adding/subtracting and all the basics I know to no avail.
Any help is appreciated, thank you :)
Given $$ a\cos x + b\sin x = c $$ put $$ A = \sqrt {a^{\,2} + b^{\,2} } \quad \phi = \arctan \left( {{b \over a}} \right) $$ to get $$ \eqalign{ & c = a\cos x + b\sin x = A\cos \phi \cos x + A\sin \phi \sin x = \cr & = A\cos \left( {x - \phi } \right) = A\cos \left( {p - \phi } \right) = A\cos \left( {q - \phi } \right) \cr} $$ from which you obtain $$ A\cos \left( {p - \phi } \right) = A\cos \left( {q - \phi } \right)\quad \Rightarrow \quad p - \phi = - \left( {q - \phi } \right)\quad \Rightarrow \quad p + q = 2\phi $$ (apart from multiples of $2\pi$).
The rest you should do easily by yourself, I suppose.