I've come across a deceptively simple algebraic equation involving trig functions.
Solve the following for $\gamma$: $$a = -x \sin(\gamma) + z \cos(\gamma)$$ where $a$, $x$, $z$ are constants.
After realizing that I didn't know how to solve it, I plugged it into Wolfram Alpha. The step-by-step solutions mention something called Weierstrass ("tangent half-angle") Substitution. After researching this method, I've learned that most examples are methods for solving integrals.
My question is: Why does the Weierstrass Substitution work for the above equation?