I'd like to know if the approach I took below (solving quadratic formula for function $u$) was valid.
Solve for $\theta$:
$2\cos \theta = 3\cos^2 \theta - 1$
Let $u = \cos \theta$:
$0 = 3u^2 - 2u - 1$
Apply quadratic formula:
$u = \frac{1\pm 2}{3}$
$\cos \theta_1 = 1, \cos \theta_2 = -\frac{1}{3}$
$\theta_1 = \arccos(1), \theta_2 = \arccos(-\frac{1}{3})$
I only wanted $\theta$ in $(0..\pi)$, which is $\theta_2$, which I happen to know is indeed the correct answer.
Again, what I'd like to know is if my approach was valid. Specifically, substituting a variable for a function, solving the quadratic equation for that variable, then solving for the function equal to that variable. It felt wrong, but gave the correct answer. Could I do this for any $u$, or was I just fortunate that $\cos \theta$ met some condition? I tried searching the web but everything I found talking about the quadratic formula only showed examples for $x$.