The average value of

over the given interval is

You're given five points, but only four will contribute to the sum as there are four subintervals that you can work with. Because you are finding the right-endpoint approximation, the height of the rectangles used in the Riemann sum will be determined by the points

, where the height of each rectangle is the corresponding value of

and the width is the length of the subinterval. In this case, the lengths would be (left to right and respectively)

, which is simply the set of forward differences of the previous set.
So the average value is approximated by
