At the point where you have , rearrange the equation as
Now make a substitution, and you arrive at the cubic equation
Whether or not you accept trial values for (which is a normal method) I don't know. ( is a fairly obvious solution.) The alternative is to use perhaps Cardano's method.