FUNCTION TO INTEGRATE
$f(x) = -\frac{1}{2}x^2 + 5$