Good thus far. Now multiply through by (which happens to be the LCD of sin^2(x), sin(x) and 1)

Now you can sub in

(I moved everything to the other side because I prefer dealing with positive values ofa)

Use the quadratic formula to solve for and then