In these simple approximation schemes, the area above each subinterval is approximated by the area of a rectangle, with the height of the rectangle being chosen according to some rule. The rules we will be concerned with are as follows.
The Maple student package has commands for visualizing these two rectangular area approximations. To use them, you first must load the student package via the with command. Then try the commands given below. Make sure you understand the differences between the two different rectangular approximations.
> f:=x-> x^2 ;
There are also Maple commands leftsum and rightsum to sum the areas of the rectangles, see the examples below. Note the use of evalf to obtain numerical answers.
Unless specified, Maple will break the given interval into four subintervals. Below are some examples of how to change the number of subintervals used in the approximation.