# The mean value theorem for integrals and Maple

1. Feb 5, 2013

### Science4ver

1. The problem statement, all variables and given/known data

I have function f which is defined upon an interval [a,b]. I have calculated the mean value using the theorem

$\frac{1}{b-a} \int_{a}^b f(x) dx$

What I would like to do is to plot in Maple the mean value rectangle. Where the hight of this rectangle represents the mean value of f(x) with respect to the interval [a,b].

Is this possible in Maple? If yes anyone who would like to share the Maple command for it?