So I was taught that to solve the equation: $$a\sin{x}+b\cos{x}=c$$ I would have to change it's form to $$k\cos{(x-\alpha)}=c$$ and solve it where $k^2=a^2+b^2$ and $\tan{\alpha}=\frac{a}{b}$
But throughout the practice questions, I've noticed that majority of them is solvable without the use of such formula. For example: $$\sin{x}+\sqrt{3}\cos{x}=1$$ $$2\left(\frac{1}{2}\sin{x}+\frac{1}{2}\sqrt{3}\cos{x}\right)=1$$ $$2\left[\sin{x}\sin\left(\frac{\pi}{6}\right)+\cos{x}\cos\left(\frac{\pi}{6}\right)\right]=1$$ $$2\left[\cos\left(x-\frac{\pi}{6}\right)\right]=1$$
But I can't find a way to prove it since it's considered the "wrong" method. Any sort of hints would help a ton. Thanks in advance!