update quadratic equation