<?xml version="1.0" encoding="UTF-8"?>
<Worksheet><Version major="6" minor="1"/><View-Properties><Zoom percentage="100"/></View-Properties><Styles><Layout alignment="left" firstindent="0.0" leftmargin="0.0" linebreak="space" linespacing="0.0" name="Normal258" rightmargin="0.0" spaceabove="0.0" spacebelow="0.0"/><Layout alignment="left" firstindent="0.0" leftmargin="0.0" linebreak="space" linespacing="0.0" name="Normal257" rightmargin="0.0" spaceabove="0.0" spacebelow="0.0"/><Layout alignment="centred" firstindent="0.0" leftmargin="0.0" linebreak="space" linespacing="0.0" name="Normal256" rightmargin="0.0" spaceabove="0.0" spacebelow="0.0"/><Layout alignment="left" firstindent="0.0" leftmargin="0.0" linebreak="space" linespacing="0.0" name="Heading 1" rightmargin="0.0" spaceabove="8.0" spacebelow="4.0"/><Layout alignment="left" firstindent="0.0" leftmargin="0.0" linebreak="space" linespacing="0.0" name="Heading 1261" rightmargin="0.0" spaceabove="8.0" spacebelow="4.0"/><Layout alignment="left" firstindent="0.0" leftmargin="0.0" linebreak="space" linespacing="0.0" name="Heading 1260" rightmargin="0.0" spaceabove="8.0" spacebelow="4.0"/><Layout alignment="left" firstindent="0.0" leftmargin="0.0" linebreak="space" linespacing="0.0" name="Normal" rightmargin="0.0" spaceabove="0.0" spacebelow="0.0"/><Font background="[0,0,0]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" name="Heading 1" readonly="false" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Comment" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="Page Number" underline="false"/><Font background="[0,0,0]" bold="true" executable="true" family="Monospaced" foreground="[255,0,0]" name="Maple Input"/><Font background="[0,0,0]" italic="true" name="_cstyle342"/><Font background="[0,0,0]" bold="true" name="_cstyle341"/><Font background="[0,0,0]" italic="true" name="_cstyle340"/><Font background="[0,0,0]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" name="ParagraphStyle1" readonly="false" size="12" underline="false"/><Font background="[0,0,0]" italic="true" name="_cstyle339"/><Font background="[0,0,0]" bold="true" name="_cstyle337" underline="true"/><Font background="[0,0,0]" bold="true" italic="true" name="_cstyle335"/><Font background="[0,0,0]" bold="true" name="_cstyle334"/><Font background="[0,0,0]" italic="true" name="_cstyle333"/><Font background="[0,0,0]" bold="true" name="_cstyle332"/><Font background="[0,0,0]" foreground="[255,0,0]" name="_cstyle331"/><Font background="[0,0,0]" bold="true" foreground="[255,0,0]" name="_cstyle330"/><Font background="[0,0,0]" bold="true" name="_cstyle299" underline="true"/><Font background="[0,0,0]" italic="true" name="_cstyle298"/><Font background="[0,0,0]" foreground="[255,0,0]" name="_cstyle297"/><Font background="[0,0,0]" bold="true" foreground="[255,0,0]" name="_cstyle296"/><Font background="[0,0,0]" bold="true" name="_cstyle295"/><Font background="[0,0,0]" italic="true" name="_cstyle294"/><Font background="[0,0,0]" foreground="[255,0,0]" name="_cstyle293"/><Font background="[0,0,0]" bold="true" foreground="[255,0,0]" name="_cstyle292"/><Font background="[0,0,0]" bold="true" name="_cstyle291"/><Font background="[0,0,0]" italic="true" name="_cstyle290"/><Font background="[0,0,0]" foreground="[255,0,0]" name="_cstyle329"/><Font background="[0,0,0]" foreground="[255,0,0]" name="_cstyle328"/><Font background="[0,0,0]" foreground="[255,0,0]" name="_cstyle327"/><Font background="[0,0,0]" foreground="[255,0,0]" name="_cstyle326"/><Font background="[0,0,0]" foreground="[255,0,0]" name="_cstyle325"/><Font background="[0,0,0]" foreground="[255,0,0]" name="_cstyle324"/><Font background="[0,0,0]" foreground="[255,0,0]" name="_cstyle323"/><Font background="[0,0,0]" foreground="[255,0,0]" name="_cstyle322"/><Font background="[0,0,0]" bold="true" name="_cstyle321"/><Font background="[0,0,0]" bold="true" name="_cstyle320"/><Font background="[0,0,0]" italic="true" name="_cstyle289"/><Font background="[0,0,0]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" name="Heading 1261" readonly="false" size="14" underline="false"/><Font background="[0,0,0]" italic="true" name="_cstyle288"/><Font background="[0,0,0]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" name="Heading 1260" readonly="false" size="12" underline="false"/><Font background="[0,0,0]" italic="true" name="_cstyle287"/><Font background="[0,0,0]" foreground="[0,0,255]" name="_cstyle286"/><Font background="[0,0,0]" bold="true" name="_cstyle285"/><Font background="[0,0,0]" bold="true" name="_cstyle284"/><Font background="[0,0,0]" bold="true" name="_cstyle283"/><Font background="[0,0,0]" bold="true" name="_cstyle282"/><Font background="[0,0,0]" bold="true" name="_cstyle281"/><Font background="[0,0,0]" bold="true" name="_cstyle280" underline="true"/><Font background="[0,0,0]" family="Times New Roman" foreground="[255,0,0]" name="2D Input" underline="false"/><Font background="[0,0,0]" bold="true" foreground="[255,0,0]" name="_cstyle319"/><Font background="[0,0,0]" bold="true" name="_cstyle318"/><Font background="[0,0,0]" bold="true" name="_cstyle317"/><Font background="[0,0,0]" bold="true" foreground="[255,0,0]" name="_cstyle316"/><Font background="[0,0,0]" foreground="[255,0,0]" name="_cstyle315"/><Font background="[0,0,0]" bold="true" name="_cstyle314"/><Font background="[0,0,0]" bold="true" name="_cstyle313"/><Font background="[0,0,0]" bold="true" name="_cstyle312" underline="true"/><Font background="[0,0,0]" name="_cstyle311" underline="true"/><Font background="[0,0,0]" bold="true" name="_cstyle310"/><Font background="[0,0,0]" italic="true" name="_cstyle278"/><Font background="[0,0,0]" italic="true" name="_cstyle277"/><Font background="[0,0,0]" italic="true" name="_cstyle276"/><Font background="[0,0,0]" bold="true" italic="true" name="_cstyle275"/><Font background="[0,0,0]" bold="true" name="_cstyle274"/><Font background="[0,0,0]" bold="true" name="_cstyle272" underline="true"/><Font background="[0,0,0]" bold="true" name="_cstyle270" underline="true"/><Font background="[0,0,0]" bold="true" name="_cstyle309"/><Font background="[0,0,0]" bold="true" foreground="[255,0,0]" name="_cstyle308"/><Font background="[0,0,0]" foreground="[255,0,0]" name="_cstyle307"/><Font background="[0,0,0]" bold="true" name="_cstyle306" underline="true"/><Font background="[0,0,0]" foreground="[255,0,0]" name="_cstyle304"/><Font background="[0,0,0]" bold="true" foreground="[255,0,0]" name="_cstyle303"/><Font background="[0,0,0]" italic="true" name="_cstyle302"/><Font background="[0,0,0]" foreground="[255,0,0]" name="_cstyle301"/><Font background="[0,0,0]" bold="true" foreground="[255,0,0]" name="_cstyle300"/><Font background="[0,0,0]" bold="false" name="_cstyle269"/><Font background="[0,0,0]" bold="true" name="_cstyle268"/><Font background="[0,0,0]" bold="true" italic="true" name="_cstyle267"/><Font background="[0,0,0]" bold="true" name="_cstyle265"/><Font background="[0,0,0]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" name="Normal258" readonly="false" size="12" underline="false"/><Font background="[0,0,0]" bold="true" italic="true" name="_cstyle263"/><Font background="[0,0,0]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" name="Normal" readonly="false" size="12" underline="false"/><Font background="[0,0,0]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="true" name="Normal257" readonly="false" size="14" underline="false"/><Font background="[0,0,0]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" name="Normal256" readonly="false" size="12" underline="false"/><Font background="[0,0,0]" bold="true" italic="true" name="_cstyle261"/><Font background="[0,0,0]" bold="true" name="_cstyle259" underline="true"/><Font background="[0,0,0]" bold="true" foreground="[0,0,255]" italic="true" name="_cstyle258"/><Font background="[0,0,0]" name="_cstyle257" size="24"/></Styles><Page-Numbers enabled="false" first-number="1" first-numbered-page="1" horizontal-location="right" style="Page Number" vertical-location="bottom"/><Group><Input><Text-field layout="Normal256" style="Normal256"/><Text-field layout="Normal256" style="_cstyle257"><Font bold="false" family="Times New Roman" foreground="[0,0,0]" italic="false" underline="false">Riemann Sum Approximations</Font></Text-field><Text-field layout="Normal256" style="_cstyle333"><Font bold="false" family="Times New Roman" foreground="[0,0,0]" size="12" underline="false">An Exploratory Introduction - Part 1</Font></Text-field></Input></Group><Section collapsed="true"><Title><Text-field layout="Heading 1" style="Heading 1">Notes to the Student:</Text-field></Title><Text-field layout="Normal" style="Normal">This lab is designed to increase your <Font family="Times New Roman" foreground="[0,0,0]" size="12" style="_cstyle275" underline="false">intuitive feel</Font> for the approach of determining the area beneath a curve and above the x-axis through approximating rectangles. It is not designed to be a rigorous exercise in the specific notation and nuances associated with the generalized Riemann Sum approach but it is hoped that once you work through this activity you will internalize the dynamic nature of the process of approximating the area beneath a curve through the refinement of associated rectangles over a given interval and be better equiped to understand the notational aspects of Riemann Sums as they are presented by your classroom teacher. Enjoy!</Text-field></Section><Section collapsed="true"><Title><Text-field layout="Heading 1" style="Heading 1">Introduction:</Text-field></Title><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal">The focus of this lab is to address the important question shown below. Read it carefully paying close attention to its various components and what they mean.</Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal257" style="Normal257">"Given a function f which is continuous, non-negative, and bounded over a closed interval [a,b], how do we find the area enclosed beneath the curve and above the horizontal axis over the designated interval ?"</Text-field><Text-field layout="Normal" style="Normal"/></Section><Section collapsed="true"><Title><Text-field layout="Heading 1" style="Heading 1">Objectives Defined:</Text-field></Title><Text-field layout="Normal" style="Normal">Below is a listing of the specific objectives for this lab:</Text-field><Text-field layout="Normal" style="Normal">1.Define the area question through graphical interpretations.</Text-field><Text-field layout="Normal" style="Normal">2. Investigate the various rectangle approximation schemes.</Text-field><Text-field layout="Normal" style="Normal">3. Apply the Riemann Sum approach to real-world applications.</Text-field><Text-field layout="Normal" style="Normal">4. Introduce the different interpretations of obtained approximating sums.</Text-field></Section><Section collapsed="true"><Title><Text-field layout="Heading 1" style="Heading 1">Historical Perspective:</Text-field></Title><Text-field layout="Normal" style="Normal">      The determination of the area of a bounded region  was of prime importance to the ancient people of Greece and other civilizations. These peoples needed answers to practical problems which arose out of their daily living experiences. Many civilizations had developed formulas for the area of the square, rectangle, trapezoid, triangle, etc. It was the Greek  mathematician Archimedes who through the method of exhaustion developed insights into the areas bounded by conics and various other curves. His investigations in determining the area of closed regions with polygons were the precursors to the "second-half" of Calculus I, which we call <Font bold="false" family="Times New Roman" foreground="[0,0,0]" size="12" style="_cstyle277" underline="false">antidifferentiation</Font> or <Font bold="false" family="Times New Roman" foreground="[0,0,0]" size="12" style="_cstyle278" underline="false">integration</Font>.  While we teach the notion of the tangent to a curve in differential calculus first, in actuality the inquiry into the area of a bounded  region preceeded the derivative question. While the tangent to a curve was the focus of differentiation we now turn our attention to determining an answer to the area question posed above. As we will discover, the two are intimately tied together by the The Fundamental Theorem of Calculus. </Text-field><Text-field layout="Normal" style="Normal"/></Section><Section collapsed="true"><Title><Text-field layout="Heading 1" style="Heading 1">Visualizing the Problem:</Text-field></Title><Group><Input><Text-field layout="Normal" style="Normal">Consider the function:  .</Text-field><Text-field layout="Normal" style="Normal"> We can graph this function over the interval [2,4] using the Maple code below. Place the cursor in the red <Font family="Times New Roman" italic="false" size="12" style="_cstyle330" underline="false">restart</Font><Font bold="false" family="Times New Roman" italic="false" size="12" style="_cstyle331" underline="false"> </Font>code command and press ENTER.  </Text-field><Text-field layout="Normal" style="Normal"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">restart:with(plots):
f(x)=3*x^2:
b:=plot(3*x^2,x=2..4,y=0..100,title="What is the Area\nBeneath f(x) on [2,4]?",filled=true,color=aquamarine,titlefont=[TIMES,BOLD,14],tickmarks=[3,5],view=[0..4,0..60]):
c:=plot(3*x^2,x=2..4,y=0..100,color=black,thickness=3,tickmarks=[3,5],view=[0..4,0..60]):
display(b,c,TEXT([2.2,30],'`f(x) = 3*x^2`',FONT(TIMES,BOLD,12)));</Font></Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal"/></Input></Group><Text-field layout="Normal" style="_cstyle332"><Font family="Times New Roman" foreground="[0,0,0]" italic="false" size="12" underline="false">We wish to answer the question posed on the picture. The next section will start you off. </Font></Text-field><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group></Section><Section collapsed="true"><Title><Text-field layout="Heading 1" style="Heading 1">The Approach:</Text-field></Title><Text-field layout="Normal" style="Normal">Let's examine the curve f(x) = <Equation input-equation="x^2;" style="2D Comment">NiMqJCUieEciIiM=</Equation> over the interval [0,4]. I can  <Font family="Times New Roman" size="12" style="_cstyle258" underline="false">partition</Font><Font family="Times New Roman" foreground="[0,0,0]" italic="false" size="12" style="_cstyle281" underline="false"> </Font>the interval [0,4] into 4 subintervals each of width 1 unit. (Note): I could have chosen any number of subintervals for my partition but I chose 4 to make the example easier to visualize.</Text-field><Text-field layout="Normal" style="Normal">                                            <Plot height="300" plot-scale="1.0" plot-xtrans="0.0" plot-ytrans="0.0" type="two-dimensional" width="400">LSUlUExPVEc2MC0lJ0NVUlZFU0c2JDdTNyQkIiIhRitGKjckJCIzSG1tbW07Jyk9KCkhIz4kIjMkUSVwQ3dbJj1nKCEjPzckJCIzUkxMTGUnNDBqIiEjPSQiM20kRz1mdWgmZUVGLzckJCIzbW1tbTs2bSRbI0Y2JCIzYzg+V1VEZG9oRi83JCQiM2ZtbW07eVlVTEY2JCIzT1ZfYTUiNHM2IkY2NyQkIjMlSExMJGVGPig+JUY2JCIzM3gwMTBGa2g8RjY3JCQiM1FtbW0iPksnKilcRjYkIjMnKkg7IjMlSGsqWyNGNjckJCIzUCoqKioqXEtkLCJlRjYkIjN5OV43OUd6dkxGNjckJCIzLW1tbSJmWChlbUY2JCIzc0RTWCZHKilRViVGNjckJCIzLioqKioqXFU3WV0oRjYkIjNYT2slXHc/PmomRjY3JCQiMydRTExMViFwdSQpRjYkIjMwJ1s7YSlSYThxRjY3JCQiM3htbW07YzBUIipGNiQiM1FAJCpweSgqKWVOKUY2NyQkIjMjKioqKioqKkgsUSs1ISM8JCIzdzspKVwvL3crNUZjbzckJCIzKSoqKioqKipcKjNxMyJGY28kIjNhLSxRZCUpZSI9IkZjbzckJCIzKSoqKioqKipwPVxxNkZ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Text-field layout="Normal" style="Normal">We can now create a grid whereby the horizontal lines are determined by the function heights at the partition intersection points.</Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal">                                            <Plot height="300" plot-scale="1.0" plot-xtrans="0.0" plot-ytrans="0.0" type="two-dimensional" width="400">LSUlUExPVEc2NC0lJ0NVUlZFU0c2JDdTNyQkIiIhRitGKjckJCIzSG1tbW07Jyk9KCkhIz4kIjMkUSVwQ3dbJj1nKCEjPzckJCIzUkxMTGUnNDBqIiEjPSQiM20kRz1mdWgmZUVGLzckJCIzbW1tbTs2bSRbI0Y2JCIzYzg+V1VEZG9oRi83JCQiM2ZtbW07eVlVTEY2JCIzT1ZfYTUiNHM2IkY2NyQkIjMlSExMJGVGPig+JUY2JCIzM3gwMTBGa2g8RjY3JCQiM1FtbW0iPksnKilcRjYkIjMnKkg7IjMlSGsqWyNGNjckJCIzUCoqKioqXEtkLCJlRjYkIjN5OV43OUd6dkxGNjckJCIzLW1tbSJmWChlbUY2JCIzc0RTWCZHKilRViVGNjckJCIzLioqKioqXFU3WV0oRjYkIjNYT2slXHc/PmomRjY3JCQiMydRTExMViFwdSQpRjYkIjMwJ1s7YSlSYThxRjY3JCQiM3htbW07YzBUIipGNiQiM1FAJCpweSgqKWVOKUY2NyQkIjMjKioqKioqKkgsUSs1ISM8JCIzdzspKVwvL3crNUZjbzckJCIzKSoqKioqKipcKjNxMyJGY28kIjNhLSxRZCUpZSI9IkZjbzckJCIzKSoqKioqKipwPVxxNkZjbyQiMyVvNE94QF4rUCJGY283JCQiM21tbTtmQklZN0ZjbyQiMzEqUmsvZHBLYiJGY283JCQiM0dMTExqJFtrTCJGY28kIjM/WGomeUElNCd5IkZjbzckJCIzP0xMTGBRIkdUIkZjbyQiMzciZXFUKUgvJyo+RmNvNyQkIjMhKioqKipcc11rLDpGY28kIjMzSU53QnokXEQjRmNvNyQkIjM5TExMYGRGIWUiRmNvJCIzWUxLZGM5RihcI0ZjbzckJCIzMysrXXNnYW07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EZhb0ZnejckRmdvRmd6NyRGXHBGZ3o3JEZhcEZnejckRmZwRmd6NyRGW3FGZ3o3JEZgcUZnejckRmVxRmd6NyRGanFGZ3o3JEZfckZnejckRmRyRmd6NyRGaXJGZ3o3JEZec0ZnejckRmNzRmd6NyRGaHNGZ3o3JEZddEZnejckRmJ0Rmd6NyRGZ3RGZ3o3JEZcdUZnejckRmF1Rmd6NyRGZnVGZ3o3JEZbdkZnejckRmB2Rmd6NyRGZXZGZ3o3JEZqdkZnejckRl93Rmd6NyRGZHdGZ3o3JEZqd0ZnejckRl94Rmd6NyRGZHhGZ3o3JEZpeEZnejckRl55Rmd6NyRGY3lGZ3o3JEZoeUZnejckRl16Rmd6NyRGYnpGZ3o3JEZnekZnekZpXmwtRiY2JDdTNyRGKiQiIipGKzckRi1GY2JsNyRGNEZjYmw3JEY6RmNibDckRj9GY2JsNyRGREZjYmw3JEZJRmNibDckRk5GY2JsNyRGU0ZjYmw3JEZYRmNibDckRmduRmNibDckRlxvRmNibDckRmFvRmNibDckRmdvRmNibDckRlxwRmNibDckRmFwRmNibDckRmZwRmNibDckRltxRmNibDckRmBxRmNibDckRmVxRmNibDckRmpxRmNibDckRl9yRmNibDckRmRyRmNibDckRmlyRmNibDckRl5zRmNibDckRmNzRmNibDckRmhzRmNibDckRl10RmNibDckRmJ0RmNibDckRmd0RmNibDckRlx1RmNibDckRmF1RmNibDckRmZ1RmNibDckRlt2RmNibDckRmB2RmNibDckRmV2RmNibDckRmp2RmNibDckRl93RmNibDckRmR3RmNibDckRmp3RmNibDckRl94RmNibDckRmR4RmNibDckRml4RmNibDckRl55RmNibDckRmN5RmNibDckRmh5RmNibDckRl16RmNibDckRmJ6RmNibDckRmd6RmNibEZpXmwtRiY2JDdTNyRGKkZpejckRi1GaXo3JEY0Rml6NyRGOkZpejckRj9GaXo3JEZERml6NyRGSUZpejckRk5GaXo3JEZTRml6NyRGWEZpejckRmduRml6NyRGXG9GaXo3JEZhb0ZpejckRmdvRml6NyRGXHBGaXo3JEZhcEZpejckRmZwRml6NyRGW3FGaXo3JEZgcUZpejckRmVxRml6NyRGanFGaXo3JEZfckZpejckRmRyRml6NyRGaXJGaXo3JEZec0ZpejckRmNzRml6NyRGaHNGaXo3JEZddEZpejckRmJ0Rml6NyRGZ3RGaXo3JEZcdUZpejckRmF1Rml6NyRGZnVGaXo3JEZbdkZpejckRmB2Rml6NyRGZXZGaXo3JEZqdkZpejckRl93Rml6NyRGZHdGaXo3JEZqd0ZpejckRl94Rml6NyRGZHhGaXo3JEZpeEZpejckRl55Rml6NyRGY3lGaXo3JEZoeUZpejckRl16Rml6NyRGYnpGaXpGZnpGaV5sLUYmNiQ3JDckRmdbbEYqNyRGZ1tsJCIjP0YrRmlebC1GJjYkNyQ3JCQiIiNGK0YqNyRGY2lsRl1pbEZpXmwtRiY2JDckNyQkIiIkRitGKjckRmppbEZdaWxGaV5sLUYmNiQ3JDckRmd6Rio3JEZnekZdaWxGaV5sLSUmVElUTEVHNiRRLFNpbXBsZX5HcmlkNiItJSVGT05URzYlJSZUSU1FU0clJUJPTERHIiM5LSUrQVhFU0xBQkVMU0c2JFEieEZmamxRIUZmamwtJSpMSU5FU1RZTEVHNiNGKy0lLE9SSUVOVEFUSU9ORzYkJCIjWEYrRmhbbS0lJVZJRVdHNiQ7Rl9bbCQiI1NGYFtsOyQhIiVGYFtsJCIkLyNGYFtsLSUqR1JJRFNUWUxFRzYjJSxSRUNUQU5HVUxBUkctJSpUSElDS05FU1NHNiNGW2psRltbbC0lK1BST0pFQ1RJT05HNiNGYVts</Plot></Text-field><Text-field layout="Normal" style="Normal">Now, in order to approximate the area under the blue curve <Font bold="false" family="Times New Roman" italic="false" size="12" style="_cstyle286" underline="false">f(x) = </Font><Equation input-equation="x^2;" style="_cstyle258">NiMqJCUieEciIiM=</Equation>, we can shade various rectangles, determine their areas, and then add them. But which ones do we shade to add up? We will consider 4 schemes of rectangle shading:</Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal"><Font family="Times New Roman" foreground="[0,0,0]" italic="false" size="12" style="_cstyle282" underline="false">Scheme 1: </Font>Using <Font bold="false" family="Times New Roman" foreground="[0,0,0]" size="12" style="_cstyle287" underline="false">left-hand endpoints</Font>.</Text-field><Text-field layout="Normal" style="Normal"><Font family="Times New Roman" foreground="[0,0,0]" italic="false" size="12" style="_cstyle283" underline="false">Scheme 2: </Font>Using <Font bold="false" family="Times New Roman" foreground="[0,0,0]" size="12" style="_cstyle288" underline="false">right-hand endpoints</Font>.</Text-field><Text-field layout="Normal" style="Normal"><Font family="Times New Roman" foreground="[0,0,0]" italic="false" size="12" style="_cstyle284" underline="false">Scheme 3: </Font>Using the <Font bold="false" family="Times New Roman" foreground="[0,0,0]" size="12" style="_cstyle289" underline="false">midpoints</Font> of each subinterval.</Text-field><Text-field layout="Normal" style="Normal"><Font family="Times New Roman" foreground="[0,0,0]" italic="false" size="12" style="_cstyle285" underline="false">Scheme 4:</Font> Using <Font bold="false" family="Times New Roman" foreground="[0,0,0]" size="12" style="_cstyle290" underline="false">random points</Font> in each subinterval where the subintervals are of equal length.              </Text-field><Text-field layout="Normal" style="Normal"/></Section><Section collapsed="true"><Title><Text-field layout="Heading 1" style="Heading 1">The Left-Hand Riemann Sum:</Text-field></Title><Text-field layout="Normal258" style="Normal258">One way to shade the rectangles is to partition the interval into n-subdivisions using the left-hand endpoint as the first input value upon which to build the rectangles and the last point will be one point shy of the right endpoint, b. This is called the "Left-Hand Riemann Sum". </Text-field><Text-field layout="Normal" style="Normal">                                                           </Text-field><Text-field layout="Normal" style="Normal">                         </Text-field><Text-field layout="Normal" style="Normal">                                                                            <Font family="Times New Roman" foreground="[0,0,0]" italic="false" size="12" style="_cstyle291" underline="false"> Left-Hand Riemann Sum</Font></Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal">The Maple code below is an animation of this approximating scheme for our function <Equation executable="true" input-equation="f(x) = x^2;" style="2D Input">NiMvLSUiZkc2IyUieEcqJEYnIiIj</Equation>on the interval [0,4] and yields an area approximation value for 20 rectangles. Place the cursor in the red <Font family="Times New Roman" italic="false" size="12" style="_cstyle292" underline="false">restart</Font><Font bold="false" family="Times New Roman" italic="false" size="12" style="_cstyle293" underline="false"> </Font>code command and press ENTER.Click on the picture and use the <Font bold="false" family="Times New Roman" foreground="[0,0,0]" size="12" style="_cstyle294" underline="false">Animation Toolbar</Font> at the page's top to control the animation. </Text-field><Text-field layout="Normal" style="Normal"/><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Normal"><Font italic="false" size="12" style="Maple Input" underline="false">restart:with(student):with(plots):
setoptions(labels=["",""],font=[SYMBOL,14]):
Digits:=6:
f:=x-&gt;x^2:</Font>/* inputted function.<Font italic="false" size="12" style="Maple Input" underline="false">
a:=0:</Font>/* left-hand endpoint.<Font italic="false" size="12" style="Maple Input" underline="false">
b:= 4:</Font>/* right-hand endpoint.<Font italic="false" size="12" style="Maple Input" underline="false">
n:=20:</Font>/* You can change the number of approximating rectangles here.<Font italic="false" size="12" style="Maple Input" underline="false">
dx:=(b-a)/n:</Font>./* partition width.<Font italic="false" size="12" style="Maple Input" underline="false">
display(seq(leftbox(f(x),x=a..b,NumRects),NumRects =5..n),insequence=true,title="Left-Hand Approximating\nRectangles",titlefont=[TIMES,BOLD,14]);
Approximate_Area:=Sum(f(0+k*dx)*dx,k=0..n-1)=value(leftsum(f(x),x=0..4.0,n))*`sq.units`;</Font>
</Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal256" style="Normal256"> <Font family="Times New Roman" foreground="[0,0,0]" italic="false" size="12" style="_cstyle280">Left-Hand Riemann Approximation Questions</Font></Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal">Q1. What is the approximate area using 20 rectangles?</Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal">Q2. Do you think that this estimate is too high or too low? Explain.</Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal">Q3. Change the source code by replacing <Font bold="false" family="Times New Roman" italic="false" size="12" style="_cstyle324" underline="false">n:=20:</Font> to <Font bold="false" family="Times New Roman" italic="false" size="12" style="_cstyle325" underline="false">n:= 50:</Font>. Compute the new approximation with 50 rectangles and write down the new area approximation value.</Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal">Q4. What is the width of each rectangle when we use 20 rectangles?</Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal">Q5. Find the area of the first three individual rectangles when you use n = 20 subdivisions. Show your work.</Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal"/></Input></Group><Text-field layout="Normal" style="Normal"/></Section><Section collapsed="true"><Title><Text-field layout="Heading 1" style="Heading 1">The Right-Hand Riemann Sum:</Text-field></Title><Text-field layout="Normal258" style="Normal258">Another way to shade the rectangles is to partition the interval into n-subdivisions and use the second x-value point to start building our rectangles while ending at the interval's right endpoint, b. These subdivision points again are used as function inputs to determine the heights of the n-rectangles. This is called the "Right-Hand Riemann Sum".</Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal">                                                        </Text-field><Text-field layout="Normal" style="Normal">                                                                       <Font family="Times New Roman" foreground="[0,0,0]" italic="false" size="12" style="_cstyle295" underline="false">Right-Hand Riemann Sum</Font></Text-field><Text-field layout="Normal" style="Normal">The Maple code below is an animation of this approximating scheme for our function <Equation executable="true" input-equation="f(x) = x^2;" style="2D Input">NiMvLSUiZkc2IyUieEcqJEYnIiIj</Equation>on the interval [0,4] and yields an area approximation value for 20 rectangles. Place the cursor in the red <Font family="Times New Roman" italic="false" size="12" style="_cstyle296" underline="false">restart</Font><Font bold="false" family="Times New Roman" italic="false" size="12" style="_cstyle297" underline="false"> </Font>code command, press ENTER, and then click on the picture to access the <Font bold="false" family="Times New Roman" foreground="[0,0,0]" size="12" style="_cstyle298" underline="false">Animation Toolbar</Font>  to control the animation. </Text-field><Text-field layout="Normal" style="Normal"/><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">restart:
with(student):
with(plots):
setoptions(labels=["",""],font=[SYMBOL,20]):
f:=x-&gt;x^2:
Digits:=6:
a:=0:
b:= 4:
n:=20:
dx:=(b-a)/n:
display(seq(rightbox(f(x),x=a..b,NumRects),NumRects =5..n),insequence=true,title="Right-Hand Approximating\nRectangles",titlefont=[TIMES,BOLD,14]);
Approximate_Area:=Sum(f(0+k*dx)*dx,k=1..n)=value(rightsum(f(x),x=0..4.0,n))*`sq.units`;
</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal256" style="Normal256">                <Font family="Times New Roman" foreground="[0,0,0]" italic="false" size="12" style="_cstyle299">Right-Hand Riemann Approximation Questions</Font></Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal">Q1. What is the approximate area using 20 rectangles?</Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal">Q2. Do you think that this estimate is too high or too low? Explain.</Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal">Q3. Change the source code by replacing <Font bold="false" family="Times New Roman" italic="false" size="12" style="_cstyle326" underline="false">n:=20:</Font> to <Font bold="false" family="Times New Roman" italic="false" size="12" style="_cstyle327" underline="false">n:= 50:</Font>. Compute the new approximation with 50 rectangles and write down the new area approximation value.</Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal">Q4. What is the width of each rectangle when we use 20 rectangles?</Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal">Q5. Find the area of the first three individual rectangles when you use n = 20 subdivisions. Show your work.</Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal"/></Input></Group><Text-field layout="Normal" style="Maple Input"/></Section><Section collapsed="true"><Title><Text-field layout="Heading 1" style="Heading 1">The Midpoint Riemann Sum:</Text-field></Title><Text-field layout="Heading 1260" style="Heading 1260">A third way to shade the rectangles is to partition the interval into n-subdivisions and use the points located in the middle of each subdivision as the function inputs to determine the height of the n-rectangles. This is called the "Midpoint Riemann Sum".                                     </Text-field><Text-field layout="Normal" style="Normal">The Maple code below is an animation of this approximating scheme for our function <Equation executable="true" input-equation="f(x) = x^2;" style="2D Input">NiMvLSUiZkc2IyUieEcqJEYnIiIj</Equation>on the interval [0,4] and yields an area approximation value for 20 rectangles. As before, place the cursor in the red <Font family="Times New Roman" italic="false" size="12" style="_cstyle300" underline="false">restart</Font><Font bold="false" family="Times New Roman" italic="false" size="12" style="_cstyle301" underline="false"> </Font>code command, press ENTER, and then click on the picture to access the <Font bold="false" family="Times New Roman" foreground="[0,0,0]" size="12" style="_cstyle302" underline="false">Animation Toolbar</Font>  to control the animation. </Text-field><Text-field layout="Normal" style="Normal"/><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">restart:
with(student):
with(plots):
setoptions(labels=["",""],font=[SYMBOL,20]):
Digits:=6:
f:=x-&gt;x^2:
a:=0:
b:= 4:
n:=20:
dx:=(b-a)/n:
display(seq(middlebox(f(x),x=a..b,NumRects),NumRects =5..n),insequence=true,title="Midpoint Approximating\nRectangles",titlefont=[TIMES,BOLD,14]);
Approximate_Area:=Sum(f(0+(k+1/2)*dx)*dx,k=0..n-1)=value(middlesum(f(x),x=0..4.0,n))*`sq.units`;
</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" style="Normal">                                                             <Font family="Times New Roman" foreground="[0,0,0]" italic="false" size="12" style="_cstyle259">Midpoint Riemann Approximation Questions</Font></Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal">Q1. What is the approximate area using 20 rectangles?</Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal">Q2. Do you think that this estimate is too high or too low? Explain.</Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal">Q3. Change the source code by replacing n:=20: to n:= 50:. Compute the new approximation with the 50 rectangles and write down the new area approximation value.</Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal">Q4. What is the width of each rectangle when we use 20 rectangles?</Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal">Q5. Find the area of the first three individual rectangles when you use n = 20 subdivisions. Show your work.</Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group></Section><Section collapsed="true"><Title><Text-field layout="Heading 1" style="Heading 1">Random Points:</Text-field></Title><Text-field layout="Normal" style="Normal">Let us proceed to examine random points chosen in equally spaced subintervals. We will use these random points as our inputs for the function in order to obtain the rectangles' heights. (In reality, the general Riemann Sum considers random points in  subintervals of random width.) The important thing to remember is that as the width of the subintervals become increasingly smaller the number of rectangular strips increases filling the area under the curve more accurately. </Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal">The concept of a <Font family="Times New Roman" foreground="[0,0,0]" size="12" style="_cstyle263" underline="false">"</Font><Font family="Times New Roman" foreground="[0,0,0]" size="12" style="_cstyle261" underline="false">rectangular strip"</Font> becomes very important in application problems found in later topics of calculus. We will formalize the ides we are exploring here in class. Below is the random point selection method.</Text-field><Text-field layout="Normal" style="Normal">The Maple code below displays this approximating scheme for our function <Equation executable="true" input-equation="f(x) = x^2;" style="2D Input">NiMvLSUiZkc2IyUieEcqJEYnIiIj</Equation>on the interval [0,4] and yields an area approximation value for 20 rectangles. As usual, place the cursor in the red <Font family="Times New Roman" italic="false" size="12" style="_cstyle303" underline="false">restart</Font><Font bold="false" family="Times New Roman" italic="false" size="12" style="_cstyle304" underline="false"> </Font>code command, press ENTER. </Text-field><Text-field layout="Normal" style="Normal"/><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">restart:
with(plots):
with(stats):
with(student):
Digits:=6:
k:=0:
n:=20:
a:=0:
b:=4:
m:=1:
tot:=0:
deltax:=(b-a)/n:
f:=x-&gt;x^2:
an1:=plot(f(x),x=0..4,color=BLUE,thickness=3):
    for i from a to b-deltax by deltax do 
       k:=i+rand()/(1.*10^12)*deltax:
       h:=(k)^2:
       tot:=tot+k^2*deltax:                                                                                                an2[m]:=plot(h,x=i..(i+deltax),y=-2..16,filled=true,color=GRAY):
       m:=m+1:
    end do:
p:=plots[display]([seq(an2[m],m=1..n)]):
display(an1,p,title="Random Approximating\nRectangles",titlefont=[TIMES,BOLD,14]);
</Font></Text-field><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">Approximate_Area:=evalf(tot)*`sq.units`;
</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal256" style="Normal256">  <Font family="Times New Roman" foreground="[0,0,0]" italic="false" size="12" style="_cstyle306">Random Points Riemann Approximation Questions</Font></Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal">Q1. What is the approximate area using 20 rectangles?</Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal">Q2. Do you think that this estimate is too high or too low? Explain.</Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal">Q3. Change the source code by replacing <Font bold="false" family="Times New Roman" italic="false" size="12" style="_cstyle328" underline="false">n:=20:</Font> to <Font bold="false" family="Times New Roman" italic="false" size="12" style="_cstyle329" underline="false">n:= 50:</Font>. Compute the new approximation with 50 rectangles and write down the new area approximation value.</Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group></Section><Section collapsed="true"><Title><Text-field layout="Heading 1" style="Heading 1">Application of Riemann Approximating Sums:</Text-field></Title><Text-field layout="Heading 1261" style="Heading 1261">Here are two applications using the midpoint and random point rectangle approximating scheme.</Text-field><Text-field layout="Normal" style="ParagraphStyle1"><Font family="Times New Roman" foreground="[0,0,0]" italic="false" size="12" style="_cstyle270">Example 1:</Font><Font family="Times New Roman" foreground="[0,0,0]" italic="false" size="12" style="_cstyle334" underline="false"> </Font><Font family="Times New Roman" foreground="[0,0,0]" size="12" style="_cstyle335" underline="false">The Breathing-Cycle</Font></Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal"><Font family="Times New Roman" foreground="[0,0,0]" italic="false" size="12" style="_cstyle265" underline="false">Breathing is cyclic and a full respiratory cycle from the beginning of inhalation to the end of exhalation takes about 5 seconds. The maximum rate of air flow into the lungs is about 0.5 L/second. The graph below is the model for the </Font><Font family="Times New Roman" foreground="[0,0,0]" size="12" style="_cstyle267" underline="false">rate of flow </Font><Font family="Times New Roman" foreground="[0,0,0]" italic="false" size="12" style="_cstyle268" underline="false">of one full breathing cycle. (Stewart,1999). </Font> <Font family="Times New Roman" foreground="[0,0,0]" italic="false" size="12" style="_cstyle309" underline="false">Place the cursor in the red </Font><Font bold="false" family="Times New Roman" italic="false" size="12" style="_cstyle307" underline="false">restart</Font><Font family="Times New Roman" italic="false" size="12" style="_cstyle308" underline="false"> </Font><Font family="Times New Roman" foreground="[0,0,0]" italic="false" size="12" style="_cstyle310" underline="false">code command and press ENTER,</Font></Text-field><Text-field layout="Normal" style="Normal"/><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">restart:
with(plots):
f:=t-&gt;0.5*sin(2*Pi*t/5):
plot(f(t),t=0..5,y=-1..1,title = "Rate of Flow for a Breathing Cycle in Liters per second",titlefont=[TIMES,BOLD,12],color=magenta,thickness=3,labels=["Time   ","Rate of Flow"],labeldirections=[HORIZONTAL,VERTICAL],tickmarks=[10,2],labelfont=[TIMES,BOLD,12]);</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal258" style="_cstyle269"><Font family="Times New Roman" foreground="[0,0,0]" italic="false" size="12" underline="false">Q1: What is the period of the breathing cycle?</Font></Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal">Q2. When does it appear that the rate of flow is greatest? Explain.</Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal">Q3. When does it appear that the rate of flow is least? Explain.</Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal">Q4. Approximate the area under the curve using the Midpoint Riemann Sum code below.You may use the animation feature to see the 20 rectangles fill in.<Font family="Times New Roman" foreground="[0,0,0]" italic="false" size="12" style="_cstyle317" underline="false"> Again, place the cursor in the red </Font><Font bold="false" family="Times New Roman" italic="false" size="12" style="_cstyle315" underline="false">restart</Font><Font family="Times New Roman" italic="false" size="12" style="_cstyle316" underline="false"> </Font><Font family="Times New Roman" foreground="[0,0,0]" italic="false" size="12" style="_cstyle318" underline="false">code command and press ENTER.</Font></Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">restart:
with(student):
with(plots):
Digits:=6:
f:=t-&gt;0.5*sin(2*Pi*t/5):
a:=0:
b:=5.0:
display(seq(middlebox(f(t),t=a..b,NumRects),NumRects =5..20),insequence=true,title = "Rate of Flow for a Breathing Cycle in Liters per second",titlefont=[TIMES,BOLD,12],thickness=2,tickmarks=[10,2]);
Approximate_Area:=(middlesum(f(t),t=0.0..b,20))=value(middlesum(f(t),t=0.0..b,20));
</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal">                                            <Font family="Times New Roman" foreground="[0,0,0]" italic="false" size="12" style="_cstyle313" underline="false"> </Font><Font bold="false" family="Times New Roman" foreground="[0,0,0]" italic="false" size="12" style="_cstyle311"> </Font><Font family="Times New Roman" foreground="[0,0,0]" italic="false" size="12" style="_cstyle312">  Breathing Cycle Approximation Questions</Font></Text-field><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" style="Normal">Q5. What do you notice about the area value? </Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal">Q6. How can you adjust the <Font bold="false" family="Times New Roman" foreground="[0,0,0]" size="12" style="_cstyle276" underline="false">domain </Font>in the above code to compute the actual area.</Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal">Q7. The answer that you got in Q6 has a physical meaning that is very important. Can you guess what your value represents?</Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal"><Font family="Times New Roman" foreground="[0,0,0]" italic="false" size="12" style="_cstyle272">Example 2:</Font><Font bold="false" family="Times New Roman" foreground="[0,0,0]" size="12" style="_cstyle340" underline="false"> A Famous Constant</Font></Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="_cstyle274"><Font family="Times New Roman" foreground="[0,0,0]" italic="false" size="12" underline="false">Consider the function f(x) = 1/x. We will approximate the area under this curve using the Random Point Riemann Sum scheme outlined earlier. We will first consider the interval [1,2] with the number of subdivisions equal to 50.</Font></Text-field><Text-field layout="Normal" style="ParagraphStyle1"><Font family="Times New Roman" foreground="[0,0,0]" italic="false" size="12" style="_cstyle320" underline="false">Again, place the cursor in the red </Font><Font family="Times New Roman" italic="false" size="12" style="_cstyle319" underline="false">restart </Font><Font family="Times New Roman" foreground="[0,0,0]" italic="false" size="12" style="_cstyle321" underline="false">code command and press ENTER.</Font></Text-field><Text-field layout="Normal" style="_cstyle314"><Font family="Times New Roman" foreground="[0,0,0]" italic="false" size="12" underline="false"> </Font></Text-field><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">restart:with(plots):
with(stats):
with(student):
k:=0:
n:=50:
a:=1:
b:= 2.0:
m:=1:
tot:=0:
deltax:=(b-a)/n:
f:=x-&gt;1/x:
an1:=plot(f(x),x=1..b,color=BLUE,thickness=3):
    for i from a to b-deltax by deltax do 
       k:=i+rand()/(1.*10^12)*deltax:
       h:=1/k:
            tot:=tot+(1/k)*deltax:                                                                                 an2[m]:=plot(h,x=i..(i+deltax),y=-1..5,filled=true,color=GRAY):
       m:=m+1:
   end do:
p:=plots[display]([seq(an2[m],m=1..n)]):
display(an1,p,view=[0.5..4,0..1.5],TEXT([2,1],"Graph of 1/x",FONT(TIMES,BOLD,12)),thickness=2,tickmarks=[10,2],TEXT([1.5,0.4],'`area`',FONT(TIMES,BOLD,12)),scaling=constrained,axesfont=[TIMES,BOLD,14]);
Approximate_Area:=evalf(tot)*`square units`;
</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/><Text-field layout="Normal" style="Normal">Q1. What is the approximate area for 50 subdivisions?</Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal">Q2. Change the source code above by extending the right-endpoint, b, to <Font bold="false" family="Times New Roman" italic="false" size="12" style="_cstyle322" underline="false">b = 2.5:</Font> and rerun the program. What is the area now?</Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal">Q3. Keep adjusting the<Font bold="false" family="Times New Roman" italic="false" size="12" style="_cstyle323" underline="false"> b</Font> value trying to get the area to within 0.0001 of 1.What is the b value that did it for you?</Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal">Q4. Your choice for b is very close to a  famous constant. Do you know what it is?</Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal"><Font family="Times New Roman" foreground="[0,0,0]" italic="false" size="12" style="_cstyle337">Example 3:</Font> <Font bold="false" family="Times New Roman" foreground="[0,0,0]" size="12" style="_cstyle339" underline="false">Extension.</Font></Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal">For many functions one <Font family="Times New Roman" foreground="[0,0,0]" italic="false" size="12" style="_cstyle341" underline="false">must approximate</Font> the area beneath them through numerical means, such as, Riemann Sums. One of these "difficult" functions is:  .</Text-field><Text-field layout="Normal" style="Normal">Approximate the area under <Font bold="false" family="Times New Roman" foreground="[0,0,0]" size="12" style="_cstyle342" underline="false">f(x)</Font> using 20 subdivisions choosing the rectangle scheme of your choice (i.e. left, right, midpoint or random) on [-2, 2].</Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal"/></Input></Group></Section><Section collapsed="true"><Title><Text-field layout="Heading 1" style="Heading 1">Closing Remarks:</Text-field></Title><Text-field layout="Normal" style="Normal">In this lab we have seen several things:</Text-field><Text-field layout="Normal" style="Normal">1. That it is possible to approximate the area under a curve using the summation of rectangles based on various construction schemes. </Text-field><Text-field layout="Normal" style="Normal">2. We can use rectangles obtained by left-hand points, right-hand points, midpoints, and random points all from a predetermined partition of a given interval. </Text-field><Text-field layout="Normal" style="Normal">3. Our intuition tells us that as we let the number of subintervals increase (i.e. increase the number of approximating rectangles) our approximation to the area under the curve gets better.</Text-field><Text-field layout="Normal" style="Normal">4. If the function takes on negative values, we will need to account for this in order to get the true value of the area.</Text-field><Text-field layout="Normal" style="Normal">5. That there is sometimes a physical interpretation to this area "number".</Text-field></Section><Section collapsed="true"><Title><Text-field layout="Heading 1" style="Heading 1">Source Code:</Text-field></Title><Text-field layout="Normal" style="Normal">Here you will find various routines which produced the images within this worksheet.</Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal"/><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Normal"><Font italic="false" size="12" style="Maple Input" underline="false">restart:with(plots):</Font>/* Creates the partition.<Font italic="false" size="12" style="Maple Input" underline="false">
plot([x^2,[[1,0],[1,20]],[[2,0],[2,20]],[[3,0],[3,20]],[[4,0],[4,20]]],x=0..4,title="Simple Partition",color=[blue,red,red,red,red,red],thickness=3,titlefont=[TIMES,BOLD,14]);</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Normal"><Font italic="false" size="12" style="Maple Input" underline="false">restart:with(plots):</Font>/* Creates a grid.<Font italic="false" size="12" style="Maple Input" underline="false">
plot([x^2,1,4,9,16,[[1,0],[1,20]],[[2,0],[2,20]],[[3,0],[3,20]],[[4,0],[4,20]]],x=0..4,title="Simple Grid",titlefont=[TIMES,BOLD,14],color=blue,color=[blue,red,red,red,red,red,red,red,red],thickness=3);</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Normal"><Font italic="false" size="12" style="Maple Input" underline="false">restart:with(student):with(plots):</Font>/* Creates Left-Hand Riemann Sum Animation<Font italic="false" size="12" style="Maple Input" underline="false">
setoptions(labels=["",""],font=[SYMBOL,14]):
Digits:=6:
f:=x-&gt;x^2:</Font>/* function.<Font italic="false" size="12" style="Maple Input" underline="false">
a:=0:</Font>/* left-hand endpoint.<Font italic="false" size="12" style="Maple Input" underline="false">
b:= 4:</Font>/* right-hand endpoint.<Font italic="false" size="12" style="Maple Input" underline="false">
n:=20:</Font>/* number of approximating rectangles.<Font italic="false" size="12" style="Maple Input" underline="false">
dx:=(b-a)/n:</Font>/* partition width.<Font italic="false" size="12" style="Maple Input" underline="false">
display(seq(leftbox(f(x),x=a..b,NumRects),NumRects =5..n),insequence=true,title="Left-Hand Approximating\nRectangles",titlefont=[TIMES,BOLD,14]);
Approximate_Area:=Sum(f(0+k*dx)*dx,k=0..n-1)=value(leftsum(f(x),x=0..4.0,n))*`sq.units`;</Font>
</Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Normal"><Font italic="false" size="12" style="Maple Input" underline="false">restart:</Font>/*Creates Right-Hand Riemann Sum Animation.<Font italic="false" size="12" style="Maple Input" underline="false">
with(student):
with(plots):
setoptions(labels=["",""],font=[SYMBOL,20]):
f:=x-&gt;x^2:</Font>/* function.<Font italic="false" size="12" style="Maple Input" underline="false">
Digits:=6:
a:=0:</Font>/* left-hand endpoint.<Font italic="false" size="12" style="Maple Input" underline="false">
b:= 4:</Font>/* right-hand endpoint.<Font italic="false" size="12" style="Maple Input" underline="false">
n:=20:</Font>/* number of approximating rectangles.<Font italic="false" size="12" style="Maple Input" underline="false">
dx:=(b-a)/n:</Font>/* partition width.<Font italic="false" size="12" style="Maple Input" underline="false">
display(seq(rightbox(f(x),x=a..b,NumRects),NumRects =5..20),insequence=true,title="Right-Hand Approximating\nRectangles",titlefont=[TIMES,BOLD,14]);
Approximate_Area:=Sum(f(0+k*dx)*dx,k=1..n)=value(rightsum(f(x),x=0..4.0,n))*`sq.units`;</Font>
</Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Normal"><Font italic="false" size="12" style="Maple Input" underline="false">restart:</Font>/*Creates Midpoint Riemann Sum Animation<Font italic="false" size="12" style="Maple Input" underline="false">
with(student):
with(plots):
setoptions(labels=["",""],font=[SYMBOL,20]):
Digits:=6:
f:=x-&gt;x^2:</Font>/* function.<Font italic="false" size="12" style="Maple Input" underline="false">
a:=0:</Font>/* left-hand endpoint.<Font italic="false" size="12" style="Maple Input" underline="false">
b:= 4:</Font>/* right-hand endpoint.<Font italic="false" size="12" style="Maple Input" underline="false">
n:=20:</Font>/* numberof approximating rectangles.<Font italic="false" size="12" style="Maple Input" underline="false">
dx:=(b-a)/n:</Font>/* partition width.<Font italic="false" size="12" style="Maple Input" underline="false">
display(seq(middlebox(f(x),x=a..b,NumRects),NumRects =5..20),insequence=true,title="Midpoint Approximating\nRectangles",titlefont=[TIMES,BOLD,14]);
Approximate_Area:=Sum(f(0+(k+1/2)*dx)*dx,k=0..n-1)=value(middlesum(f(x),x=0..4.0,n))*`sq.units`;</Font>
</Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Normal"><Font italic="false" size="12" style="Maple Input" underline="false">restart:</Font>/* Computes Random Points Riemann Sum  <Font italic="false" size="12" style="Maple Input" underline="false">
with(plots):
with(stats):
with(student):
Digits:=6:
k:=0:
n:=10:
a:=0:</Font>/* left-hand endpoint.<Font italic="false" size="12" style="Maple Input" underline="false">
b:=4:</Font>/* right-hand endpoint.<Font italic="false" size="12" style="Maple Input" underline="false">
m:=1:
tot:=0:
deltax:=(b-a)/n:</Font>/* partition width.<Font italic="false" size="12" style="Maple Input" underline="false">
f:=x-&gt;x^2:</Font>/ function.<Font italic="false" size="12" style="Maple Input" underline="false">
an1:=plot(f(x),x=0..4,color=BLUE,thickness=3):
    for i from a to b-deltax by deltax do 
       k:=i+rand()/(1.*10^12)*deltax:
       h:=(k)^2:
       tot:=tot+k^2*deltax:                                                                                                an2[m]:=plot(h,x=i..(i+deltax),y=-2..16,filled=true,color=GRAY):
       m:=m+1:
    end do:
p:=plots[display]([seq(an2[m],m=1..n)]):
display(an1,p,title="Random Approximating\nRectangles",titlefont=[TIMES,BOLD,14]);
Approximate_Area:=evalf(tot)*`sq.units`;</Font>
</Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group></Section><Text-field/></Worksheet>
