$\noindent It's the auxiliary angle transform. Just in general, we may write$
$$a \cos \theta + b\sin \theta = R\cos \left(\theta - \phi\right)$$,
$\noindent where $R = \sqrt{a^{2} + b^{2}}$ and $\phi$ is the angle made by the point $(a,b)$ to the origin. In the setting of complex numbers (for...