integrate x^2+x from -1/2 to 2