Approximating a Function with a Degree 2 Polynomial