I am trying to solve the following equation:
$$a \sin 2x = \sin (x + \gamma)$$
or, equivalently:
$$2 a = \frac{\cos \gamma}{\cos x} + \frac{\sin \gamma}{\sin x}$$
where $a$ and $\gamma$ are constants. I tried for a long time, and searched the web a lot, but can only find solutions to very simple trigonometry equations, or complex ones where the constants happen to be such that the formula can be reduced to another form. I am surprised that I cannot find a solution to such a simple equation.
Any idea how this can be solved?