update quadratic equation example