Since f(x) is linear, there exist real numbers m and c such that f(x)=mx+c. Now we can do some calculations. Suppose we have a rectangle in our Riemann sum that takes up the interval [x,x+w].
If we are using a left Riemann sum, our rectangle has height f(x)=mx+c.
Then it has area w(mx+c).
If we are using a right Riemann sum, our rectangle has height f(x+w)=m(x+w)+c=mx+c+mw. Then it has area w(mx+c+mw).
If we are using a midpoint Riemann sum, our rectangle has height f(x+21w)=m(x+21w)+c=mx+c+21mw. Then it has area w(mx+c+21w).
So, for each rectangle in our sums, the midpoint rectangle has the same area as the average of the left and right rectangles:
w(mx+c+21mw)=2w(mx+c)+w(mx+c+mw) It follows that the midpoint Riemann sum has a value equal to the average of the values of the left and right Riemann sums. To see this, let the rectangles in the midpoint Riemann sum have areas M1,M2,…,Mn,
let the rectangles in the left Riemann sum have areas L1,L2,…,Ln, and
let the rectangles in the right Riemann sum have areas R1,R2,…,Rn. Then the midpoint Riemann sum evaluates to M1+M2+⋯+Mn, and:
2[L1+L2+…+Ln]+[R1+R2+…+Rn]=2L1+R1+2L2+R2+⋯+2Ln+Rn=M1+M2+⋯+Mn So, the statement is true.
(Note, however, it is false for many non-linear functions f(x).)