Great.
So we are going to construct a rectangle on each sub-interval. The width of each rectangle will be
[MATH]\dfrac{b - a}{n} = w.[/MATH]
What will be the LEFTMOST point on the x-axis for each the sub-interval? Well, for the first sub-interval on the left, it will be
[MATH](a,\ 0)[/MATH]; for the next, it will be [MATH](a + w,\ 0)[/MATH]; for the third
it will be [MATH]a + 2w,\ 0)[/MATH]; and for the nth sub-interval, it will be [MATH](a + (n - 1)w,\ 0).[/MATH]
In general, the LEFTMOST point of the kth sub-interval on the x- axis will be [MATH](a + (k - 1)w, \ 0).[/MATH]
Still making sense?
OK. Now i want you to draw physically in real life f(x) in exactly one sub-interval such that
[MATH]f(x) > 0 \text { and } f'(x) > 0[/MATH]
and, to keep our notation simple, label the left endpoint on the x-axis (c, 0) and the right one (c + w, 0).
Any difficulty drawing f(x) in the sub-interval? It should
alway be above the x-axis and always be rising from left to right.
OK then. We construct our rectangle as follows. Raise a perpendicular upward from (c, 0) to where it intersects f(x). That will be at the point (c, f(c)), correct?
Now construct a perpendicular upward from (c + w, 0) to where it intersects f(x) at (c + w, f(c + w)). The area defined by the two perpendiculars, f(x), and the x-axis is the area to be approximated, right?
Now join the two perpendiculars by a line running parallel to the x-axis through (c, f(c)).
We now have constructed a rectangle with corners at (c, 0), (c, f(c)), (c + w, f(c)), and (c + w, 0).
Is that what you got from your drawing? If so, notice that the area of the rectangle is strictly less than the area that we are interested in.
Are you still with me?[/MATH]
EDIT: If we relax the constraint [MATH]f(x) > 0[/MATH] to [MATH]f(x) \ge 0[/MATH]
we may get the defective "rectangle" with corners at (c, 0), (c, 0), (c + w, 0) and (c + w, 0),
which is just a straight line and has no area at all. But it still does not exceed the area that we are trying to approximate.
Similarly, if we relax the constraint [MATH]f'(x) > 0[/MATH] to
[MATH]f'(x) \ge 0[/MATH], it may turn out that our rectangle has an area exactly equal to the area that we are trying to approximate. But, again, that means that it is still true that the area of the constructed rectangle does not exceed the area that we are trying to approximate.
So [MATH]f(x) \ge 0 \text { and } f'(x) \ge 0[/MATH]
are the key constraints and ensure that the area of the rectangle is less than or equal to the area being approximated.
I did not bother to work with the special cases of f(c) = 0 or f'(x) = 0 because they do not result in such clear diagrams.