Let's see: the partition should be at 1, 1.5, 2, 2.5, 3, 3.5, 4.
However, since you are using the midpoint, you need to find f(1.25), f(1.75), f(2.25), f(2.75), f(3.25) and f(3.75).
Next, add them all up and multiply by the width, which is 0.5.
Let's see: the partition should be at 1, 1.5, 2, 2.5, 3, 3.5, 4.
However, since you are using the midpoint, you need to find f(1.25), f(1.75), f(2.25), f(2.75), f(3.25) and f(3.75).
Next, add them all up and multiply by the width, which is 0.5.