That's the right way to do it, now notice that it is equal to the equation , which is a quadratic equation in with a constant term in . Therefore you can apply the quadratic formula to isolate and solve it in terms of .