Quadratic solution