the interval of 2 is divided by 5 to get 5 subintervals of 2/5 each. the midpoints are 1/5, 3/5, 1, 7/5 and 9/5
f(1/5) = .04 + 2 = 2.04
f(3/5) = 9/25 + 2 = 2.36
f(1) = 1 + 2 = 3
f(7/5) =49/25 + 2 = 3.96
f(9/5) = 81/25 +2 = 5.36
multiply each of the f(x) values by 2/5 or .4, then sum the 5 areas
or just add up the 5 f(x) values and then multiply by 2/5
16.72 times 2/5 = 16.72/5 = 6.688
to check if this is accurate, take the integral of x^2 + 2 evaluated at x=2
x^3/3+2x = 2^3/3+4 = 8/3+4 = 2 2/3 + 4 = 6 2/3 = 6.666....
the approximation is within less than 0.02 of the exact answer