I'm wondering if there is an intuitive explanation to the result above. Mathematically, it is easy to prove: If we let $x = a \cos(\theta) + b \sin(\theta)$, then setting $\frac{\mathbb{d}x}{\mathbb{d}\theta} = 0$ tells us that $\theta = \arctan(\frac{b}{a})$. Thus $\theta$ is the angle between the positive x axis and the vector $(a, b)$. Another way to show this is to notice that $x = (a, b) \cdot (\cos(\theta), \sin(\theta)) = ||(a,b)||\cos(\alpha)$. If $\cos(\alpha) = 1$, then $x$ will be maximized and will be in the direction of $(a, b)$, since $\alpha = 0$.
At the same time, the answer just seems so simple that I can't help but wonder whether there's a more obvious way to look at it. Trigonometry is not really inherent to the problem, $\cos(\theta)$ and $\sin(\theta)$ can also be replaced by the components of some vector $\vec{v}$.