This is the 18th tutorial of the GeoGebra Intermediate Tutorial Series. If this is your first time to use GeoGebra, I strongly suggest that you read the GeoGebra Essentials Series.
In this tutorial, we compare the area of a plane under a curve f(x) = x^{2} bounded by the xaxis, the yaxis, and the line x = 1 with the sum of the areas of rectangular partitions under the same boundaries. We use the Slider tool to increase the number of rectangles and observe how they relate to the actual area.
If you want to follow this tutorial stepbystep, you can open the GeoGebra window in your browser by clicking here. You can view the output of this tutorial here.
1. Open GeoGebra and select Algebra and Graphics from the Perspectives menu.  
2. Graph f(x) = x^{2} by typing f(x) = x^2 in the Input bar and press the ENTER key on your keyboard.  
3. We now create a slider for the number of rectangles. Select the Slider tool and click on the Graphics view.
In the Slider dialog box, change the name to n, set the minimum to 0, maximum to 100, and increment of 1, then click the Apply button. 

6. To construct the lower sum (rectangles whose upper left corners are on the curve), type lowersum[f,0,1,n] and then press the ENTER key on your keyboard. That is, the lowersum (sum of the areas of rectangles) under the function f from 0 to 1 with n number of rectangles.


7. Move Slider n. What do you observe? Move n to the extreme right. What is the value of the lower sum or the total are of the rectangles under the curve?  
8. To construct the upper sum, type uppersum[f,0,1,n] in the drawing pad, and press the ENTER key.  
9. Right click a (the value of the lowersum) in the Algebra window, and click Object Properties to show the Preferences window.  
10. In the Preferences window, select the Color tab, choose a different color, then click the Apply button. This will make it easier to distinguish the two sums.  
11. Move the slider to 100. What do you observe about the values of the the upper sum and the lower sum. Explain why your observation is such.  
12. To get the actual area under the curve, we need the integral of the function f from 0 to 1. To do this, type integral integral[f, 0, 1] in the Input bar, and press the ENTER key.  
13. Next, we construct a check box that will show/hide the three objects. To do this, select the Check box tool and click anywhere on the Graphics view.  
14. In the Caption text box, type Show/Hide Lower Sum, select Number a: Lower Sum[f,0,1,n] in the Select objects… box, and then click the Apply button.  
15. Using steps 1314 to create two more Show/Hide Check boxes for the Upper Sum and the actual area (integral of f from 0 to 1).  
16. How are the lower sum, upper sum and area under the curve related?  
17. How are the upper sum and lower sum related to the number of rectangles? 
Pingback: GeoGebra Tutorial 18 Update « Mathematics and Multimedia
nice tutorial 🙂
thank you yohan.
Hi Guillermo,
Many thanks for this blog. It is of immense help.
I was following theGeoGebra Tutorial 18 – Area Under a Curve and Riemann Sums.
I need to change the scale as the rectangles are not showing clearly.
On the axes 1 is too close to 0 and so on.
can you please help
Thanks
Sangeeta
If I understand you correctly, just use the roller of your mouse or use the zoom tool.
Hola Guillermo. muy buen tutorial. habrà alguna manera de que se muestren en la gràfica en lugar de los rectangulos completos, solamente su altura de ellos?
Pingback: Top Posts for January 2011 « Mathematics and Multimedia
VERY GOOD
Thank you Thanos. 🙂
Pingback: Top Posts for February 2011 « Mathematics and Multimedia
Updated to version 4.0: GeoGebra Tutorial 18 – Area Under a Curve and Riemann Sums http://t.co/tuOlFxbd
When I learned calculus 35 years ago, the height of each rectangle was the arithmetic mean of the yvalues at the left and right edges of the rectangle. This resulted in much closer estimates of the integral when the areas were summed.
Is there a GeoGebra function that will draw rectangles and compute areas like this?
I’d never even seen a diagram like the lowersum() or uppersum() produce until GeoGebra. Maybe teaching methods have changed…