In my post Playing with Riemann Sums I showed a couple of clouds of points, each representing a particular Riemann sum for a particular function. I have extended the code in a couple of ways.
The new code is in the Mathematica notebook and CDF file called MoreRiemann in the Mathematica section of abstractmath. The .nb form is a Mathematica Notebook, which requires Mathematica to run and allows you to manipulate the objects and change the code in the notebook as you wish. In particular, you can rerun the commands generating the clouds to get a new random result. The .cdf file contains the same material and can be viewed using Mathematica CDF Player, which is available free here. Both files have several other examples besides the ones shown below.
As always, my code is one-time code to show the ideas, but it is available freely via the Creative Commons Attribution – ShareAlike 3.0 License. I hope people will feel free to develop it further for use in teaching or for their own purposes.
Below is a cloud for , the area of a quarter circle of radius 2, which is . The blue dots are arbitrary random Riemann sums with mesh shown on the horizontal axis and value on the vertical axis. The partitions and the point in each subinterval are both random. The red dots are arbitrary Riemann sums with random partitions but using the midpoint for value.
The next cloud shows random blue dots with the same meaning as above. The red dots are Riemann sums with uniform subintervals evaluated at midpoints. Possible discussion question for both of the clouds above:
- Why do the red dots trend upward?
The following cloud is like the cloud above with the addition of green dots representing uniform partitions evaluated at the left endpoint or right endpoint. (But the mesh scale is extended, giving different proportions to the picture.)
- Explain the slight downward curvature of both green streaks.
- Explain the big gap between the blue dots and the green dots. (Requires some machinations with probability.)
- Would there be blue dots a lot nearer the green dots if I ran the command asking for many more blue dots?
(These are idle questions I haven't thought about myself, but I'll bet they could be turned into good projects in analysis classes.)
Here is a cloud for with everything random for the blue dots and random partitions but midpoints for the red dots.
- Why do these red dots trend upward?
The cloud below is for the same integral but uses uniform subintervals for the midpoint and adds green points for both the left endpoint and the right endpoint of uniform subinterval.
- Why on earth do all the green dots trend downward???
This is a similar picture for . There are red dots but they are kind of drowned out.
And finally, here is :