I'm solving a physics problem and I came down to solving an equation of the form $$a \cos \alpha + b \sin \alpha = c$$
Can someone help me to solve this? Thanks in advance!
I'm solving a physics problem and I came down to solving an equation of the form $$a \cos \alpha + b \sin \alpha = c$$
Can someone help me to solve this? Thanks in advance!
Let $r=\sqrt{a^2+b^2}$, then there is an angle $\theta$ with $a=r\cos\theta, b=r\sin\theta$. Now the equation becomes $$r\cos\theta\cos\alpha+r\sin\theta\sin\alpha=c\\ \cos(\alpha-\theta)=c/r$$