Applet: Double integral Riemann sum

The volume of the small boxes illustrates a Riemann sum approximating the volume under the graph of $z=f(x,y)$ over the region $D$, i.e., the double integral $\iint_D f\,dA$ for $f(x,y)=\cos^2 x + \sin^2 y$ and $D$ defined by $0 \le x \le 2$ and $0 \le y \le 1$. The volume of the boxes is $$\sum_{i,j} f(x_{i},y_{j})\Delta x \Delta y$$ where $x_i$ is the midpoint of the $i$th interval along the $x$-axis and $y_j$ is the midpoint of the $j$th interval along the $y$-axis. Drag the red and green points of the sliders to change $\Delta x$ and $\Delta y$ as well as the number of intervals along each axis. The purple line of the cyan slider shows the volume estimated by the volume of the boxes, and the blue line of the cyan slider shows the actual volume underneath the surface. As $\Delta x$ and $\Delta y$ approach zero, the purple line approaches the blue line, illustrating how the estimated volume approaches the actual volume.
Applet file: doubleriemann.m
General information about LiveGraphics3D applets
This applet was created using LiveGraphics3D. To manipulate it, you can
- click and drag to rotate in any direction,
- shift + click and drag up/down to zoom out/in,
- shift + click and drag left/right to rotate around an axis coming out of the screen, and
- press Home to reset to the original view.
Most of the LiveGraphics3D applets have parameters that you can change. In general, you can click and drag points or balls around to change the parameters.
Since these applets use Java, you must have Java installed and properly configured in your browser for the them to display. You can get Java here. If you have trouble getting them to display in your browser, you can visit the LiveGraphics3D troubleshooting page for information on how to get the Java applets to work.
On occasion, even when Java is configured correctly, the Java applets don't load the first time and one instead sees an error message. You can wait a few moments to see if the applet will eventually load itself anyway. You can also reload the page to see if the applet will properly load. Sometimes, one needs to do this multiple times.
