I was recently trying to solve a trigonometry question, which asked to find theta:
$$3 \sin\theta + 4 \cos\theta = 4$$
I took $4 \cos\theta$ on the other side, and squared both the sides. After that I got the values of $\cos\theta = 7/25$ or $1$.
I understood this method. But another derivation I know is:
If $P = a \sin\theta + b \cos\theta$ then:
$$P = (\sqrt{a^2 + b^2}) \cos(\theta - \gamma)$$
By this I am not able to get the solution. Please help, Thank you.