(from now on I will use for and )
Replace by to get:
This may be solved using the quadratic formula to get: . Now the root is not possible for real angles so we are left with .
There are two solutions for this in the range , they are:
and , or: