Full quadratic equation solution