<?xml version="1.0" encoding="UTF-8"?>
<Worksheet><Version major="6" minor="0"/><View-Properties><Zoom percentage="100"/></View-Properties><Styles><Layout alignment="left" firstindent="0.0" leftmargin="0.0" linebreak="space" linespacing="0.0" name="Warning" 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="left" firstindent="0.0" leftmargin="0.0" linebreak="space" linespacing="0.0" name="Normal256" rightmargin="0.0" spaceabove="0.0" spacebelow="0.0"/><Layout alignment="centred" firstindent="0.0" leftmargin="0.0" linebreak="space" linespacing="0.5" name="Maple Output" rightmargin="0.0" spaceabove="0.0" spacebelow="0.0"/><Layout alignment="centred" firstindent="0.0" leftmargin="0.0" linebreak="space" linespacing="0.0" name="Maple Plot" rightmargin="0.0" spaceabove="0.0" spacebelow="0.0"/><Layout alignment="left" firstindent="0.0" leftmargin="0.0" linebreak="space" linespacing="0.5" name="Maple Output12" rightmargin="0.0" spaceabove="0.0" spacebelow="0.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]" 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]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" name="Maple Plot" readonly="false" size="12" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_95" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_94" size="18" underline="false"/><Font background="[0,0,0]" bold="true" family="Times New Roman" name="2D Math_93" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_92" size="18" underline="false"/><Font background="[0,0,0]" bold="true" family="Times New Roman" name="2D Math_90" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" foreground="[0,0,255]" name="2D Output" underline="false"/><Font background="[0,0,0]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" name="Maple Output" readonly="false" size="12" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_89" size="18" underline="false"/><Font background="[0,0,0]" bold="true" name="_cstyle275"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_87" size="18" underline="false"/><Font background="[0,0,0]" bold="true" name="_cstyle273"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_86" size="18" underline="false"/><Font background="[0,0,0]" bold="true" name="_cstyle272"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_85" size="18" underline="false"/><Font background="[0,0,0]" italic="true" name="_cstyle271"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_84" size="18" underline="false"/><Font background="[0,0,0]" bold="true" name="_cstyle270"/><Font background="[0,0,0]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" name="Maple Output12" readonly="false" size="12" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_83" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_82" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_81" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_80" size="18" underline="false"/><Font background="[0,0,0]" bold="true" name="_cstyle269"/><Font background="[0,0,0]" bold="true" name="_cstyle267"/><Font background="[0,0,0]" bold="true" name="_cstyle266"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_79" size="18" underline="false"/><Font background="[0,0,0]" bold="true" name="_cstyle265"/><Font background="[0,0,0]" bold="true" name="_cstyle264"/><Font background="[0,0,0]" bold="false" executable="false" family="Monospaced" foreground="[0,0,255]" italic="false" name="Warning" readonly="true" size="10" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_78" size="18" underline="false"/><Font background="[0,0,0]" bold="true" name="_cstyle263"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_77" size="18" underline="false"/><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" name="_cstyle262"/><Font background="[0,0,0]" family="Times New Roman" foreground="[255,0,0]" name="2D Math_76" size="18" underline="false"/><Font background="[0,0,0]" bold="true" 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]" italic="true" name="_cstyle261"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_75" size="18" underline="false"/><Font background="[0,0,0]" bold="true" name="_cstyle260"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_74" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_73" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_72" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_71" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_70" size="18" underline="false"/><Font background="[0,0,0]" bold="true" name="_cstyle259"/><Font background="[0,0,0]" italic="true" name="_cstyle258"/><Font background="[0,0,0]" italic="true" name="_cstyle257"/><Font background="[0,0,0]" bold="true" name="_cstyle256"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_69" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_68" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_67" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_66" size="18" underline="false"/></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="Normal257" style="_cstyle256"><Font family="Times New Roman" foreground="[0,0,0]" italic="false" size="24" underline="false">MATH 156 LAB 5</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font size="18">We introduce two new Riemann sums to approximate integrals. The Trapezoid Rule</Font></Text-field><Text-field layout="Normal" style="Normal"><Font size="18">TRAP(</Font><Equation input-equation="n;" style="2D Math_66">NiMlIm5H</Equation><Font size="18">)=(LHS( </Font><Equation input-equation="n;" style="2D Math_67">NiMlIm5H</Equation><Font size="18">)+RHS(</Font><Equation input-equation="n;" style="2D Math_68">NiMlIm5H</Equation><Font size="18"> ))/2</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font size="18">and the Midpoint Rule, which instead of computing using the values of </Font><Equation input-equation="f(x);" style="2D Math_69">NiMtJSJmRzYjJSJ4Rw==</Equation><Font size="18"> at the left endpoint </Font><Equation input-equation="x_(i-1);" style="2D Math_70">NiMtJSN4X0c2IywmJSJpRyIiIkYoISIi</Equation><Font size="18"> and the right</Font></Text-field><Text-field layout="Normal" style="Normal"><Font size="18">endpoint </Font><Equation input-equation="x_i;" style="2D Math_71">NiMlJHhfaUc=</Equation><Font size="18">, it uses the midpoint   </Font><Equation input-equation="(x_(i-1)+x_i)/2;" style="2D Math_72">NiMqJiwmLSUjeF9HNiMsJiUiaUciIiJGKiEiIkYqJSR4X2lHRipGKiIiI0Yr</Equation><Font size="18">  .  So we have MID(</Font><Equation input-equation="n;" style="2D Math_73">NiMlIm5H</Equation><Font size="18">)=</Font><Equation input-equation="sum(f((x_(i-1)+x_i)/2),i = 1 .. n);" style="2D Math_74">NiMtJSRzdW1HNiQtJSJmRzYjKiYsJi0lI3hfRzYjLCYlImlHIiIiRjAhIiJGMCUkeF9pR0YwRjAiIiNGMS9GLztGMCUibkc=</Equation><Font size="18">  .</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font size="18">Maple has commands that will plot for us the midpoint rule and compute the midpoint rule.</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font size="18">We should introduce the student package. Let us introduce the function </Font><Equation input-equation="f(x) = sqrt(x);" style="2D Math_75">NiMvLSUiZkc2IyUieEctJSVzcXJ0R0Ym</Equation><Font size="18"> and consider the integral </Font><Equation executable="true" input-equation="int(sqrt(x),x = 1 .. 4);" style="2D Math_76">NiMtJSRpbnRHNiQtJSVzcXJ0RzYjJSJ4Ry9GKTsiIiIiIiU=</Equation><Font size="18">.</Font></Text-field><Text-field layout="Normal" style="Normal"> </Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">f:=x-&gt;sqrt(x);</Font></Text-field></Input><Output><Text-field layout="Maple Output" style="Maple Output"/></Output></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">with(student):</Font></Text-field></Input><Output><Text-field layout="Warning" style="Warning">Warning, the name trapezoid has been redefined
</Text-field></Output></Group><Group><Input><Text-field layout="Normal" style="_cstyle257"><Font bold="false" family="Times New Roman" foreground="[0,0,0]" size="18" underline="false">Topic 1: Midpoint Rule</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font size="18">The command for graphing the midpoint rule is middlebox(function (x), x=lowerlimit..upperlimit, number of subintervals);</Font></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">middlebox(f(x), x=1..4, 5);</Font></Text-field></Input><Output><Text-field layout="Maple Plot" style="Maple Plot"/></Output></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font size="18">The command to compute numerically the midpoint rule is middlesum(function (x), x=lowerlimit..upperlimit, number of subintervals);</Font></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">middlesum(f(x), x=1..4, 5);</Font></Text-field></Input><Output><Text-field layout="Maple Output" style="2D Output"><Equation style="2D Output">NiMsJComIyIiJCIiJiIiIi0lJFN1bUc2JCokLCYjIiM4IiM1RigqKEYmRihGJyEiIiUjaTFHRihGKCNGKCIiIy9GMzsiIiEiIiVGKEYo</Equation></Text-field></Output></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font size="18">As you see, Maple does not evaluate it immediately, so we use the evalf command.</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">evalf(middlesum(f(x), x=1..4, 5));</Font></Text-field></Input><Output><Text-field layout="Maple Output" style="2D Output"><Equation style="2D Output">NiMkIitNTk9xWSEiKg==</Equation></Text-field></Output></Group><Group><Input><Text-field layout="Normal256" style="Normal256"><Font size="18">Write commands that show on the graph the midpoint rule with 10, 20, 40 subintervals. Write commands that name these graphs and the graph with 5 subintervals above. Write commands that evaluate the midpoint rule with 10, 20, 40 subintervals.</Font></Text-field><Text-field layout="Normal" style="Normal"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Output><Text-field layout="Maple Plot" style="Maple Plot"/></Output></Group><Group><Input><Text-field layout="Normal" style="_cstyle258"><Font bold="false" family="Times New Roman" foreground="[0,0,0]" size="18" underline="false">Topic 2: Comparing the midpoint rule with the left-hand sums and right-hand sums.</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" style="_cstyle259"><Font family="Times New Roman" foreground="[0,0,0]" italic="false" size="18" underline="false">Write commands that name the graphs of the left-hand sums and right-hand sums with 5, 10, 20, 40 subintervals.</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal256" style="Normal256"><Font size="18">Write commands that show on the same graph the left-hand sums, the right-hand sums and the midpoint sums with the same number of subintervals. Do not forget to introduce the plots package. What do you notice? Which are larger, the left-hand sums, right-hand sums, or midpoint sums? Can you explain it?</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" style="_cstyle260"><Font family="Times New Roman" foreground="[0,0,0]" italic="false" size="18" underline="false">Write commands that compute the left-hand sums and right-hand sum and midpoints sums numerically with 5, 10, 20, 40, 80, 160, 320, 640, 1280, 2560 subintervals. You can use a loop. What do you notice?</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font bold="false" family="Times New Roman" foreground="[0,0,0]" size="18" style="_cstyle261" underline="false">Topic 3: Trapezoid rule</Font><Font size="18">.</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font size="18">It is easy to calculate the trapezoid rule, as it is the average of the left-hand sum and the right-hand-sum.</Font></Text-field><Text-field layout="Normal" style="Normal"><Font family="Times New Roman" foreground="[0,0,0]" italic="false" size="18" style="_cstyle263" underline="false">Write commands that calculate the trapezoid rule, left-hand sums and right-hand sums with 5, 10,</Font><Font size="18"> <Font family="Times New Roman" foreground="[0,0,0]" italic="false" style="_cstyle262" underline="false">20, 40, 80, 160, 320, 640, 1280, 2560 subintervals. You can use a loop. What do you notice? Which are larger, smaller? Why?</Font></Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font family="Times New Roman" foreground="[0,0,0]" italic="false" size="18" style="_cstyle266" underline="false">Write commands that calculate the trapezoid and midpoint rules with</Font><Font size="18"> <Font family="Times New Roman" foreground="[0,0,0]" italic="false" style="_cstyle265" underline="false">5, 10,</Font> <Font family="Times New Roman" foreground="[0,0,0]" italic="false" style="_cstyle264" underline="false">20, 40, 80, 160, 320, 640, 1280, 2560 subintervals. You can use a loop. What do you notice? Which are larger, smaller? Which are overestimates and which are underestimates of the integral? Why?</Font></Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font size="18">Maple does not have a command to plot the trapezoid rule automatically, as it was the case for left-hand sum, right-hand sum and midpoint rule. But we can introduce a number of commands to see the graph. The following commands let Maple know of the  lower limit, upper limit and the number of subintervals. The length of each subinterval is </Font><Equation input-equation="(b-a)/n;" style="2D Math_77">NiMqJiwmJSJiRyIiIiUiYUchIiJGJiUibkdGKA==</Equation><Font size="18">. In the following example we choose </Font><Equation input-equation="n = 2;" style="2D Math_78">NiMvJSJuRyIiIw==</Equation><Font size="18">.</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">a:=1;b:=4;n:=2;Dx:=(b-a)/n;</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font size="18">We create  a list of numbers in increasing order that represent the points between </Font><Equation input-equation="a;" style="2D Math_79">NiMlImFH</Equation><Font size="18"> and </Font><Equation input-equation="b;" style="2D Math_80">NiMlImJH</Equation><Font size="18">, where we have split the interval [</Font><Equation input-equation="a;" style="2D Math_81">NiMlImFH</Equation><Font size="18">,</Font><Equation input-equation="b;" style="2D Math_82">NiMlImJH</Equation><Font size="18">]. In all we have </Font><Equation input-equation="n+1;" style="2D Math_83">NiMsJiUibkciIiJGJUYl</Equation><Font size="18"> points.</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">xpoints:=[seq( a+Dx*i, i=0..n)];</Font></Text-field></Input><Output><Text-field layout="Maple Output" style="Maple Output"/></Output></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font size="18">The next command finds the values of the function </Font><Equation input-equation="f(x);" style="2D Math_84">NiMtJSJmRzYjJSJ4Rw==</Equation><Font size="18"> at the points we are interested in. </Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">valuesoflist:=map(f, xpoints);</Font></Text-field></Input><Output><Text-field layout="Maple Output" style="Maple Output"/></Output></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font size="18">The next two commands pair together the </Font><Equation input-equation="x;" style="2D Math_85">NiMlInhH</Equation><Font size="18"> and </Font><Equation input-equation="y;" style="2D Math_86">NiMlInlH</Equation><Font size="18"> coordinates to form a list of points we would like to join with a broken line. We call this list datapoints.</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">pair:=(x,y)-&gt;[x,y];</Font></Text-field></Input><Output><Text-field layout="Maple Output" style="Maple Output"/></Output></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">datapoints:=zip(pair, xpoints,valuesoflist);</Font></Text-field></Input><Output><Text-field layout="Maple Output" style="Maple Output"/></Output></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font size="18">The next command plots a broken line joining the points in the list datapoints.</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">plot(datapoints, style=line, color=blue);</Font></Text-field></Input><Output><Text-field layout="Maple Plot" style="Maple Plot"/></Output></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font size="18">As usual it is nice to name this plot:</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">trap2:=plot(datapoints, style=line, color=blue):</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font size="18">We now display the graph of </Font><Equation input-equation="f(x);" style="2D Math_87">NiMtJSJmRzYjJSJ4Rw==</Equation><Font size="18"> with the broken line we just saw.</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">display(plot(f(x), x=1..4), trap2);</Font></Text-field></Input><Output><Text-field layout="Maple Plot" style="Maple Plot"/></Output></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font size="18">If we want to shade the area represented by the trapezoid rule, we use the following commands that shade the area under each part of the broken blue line and give a name to the corresponding graph: trapezoid[i]. We use a loop.</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false"> for i from 1 to n do trapezoid[i]:=inequal({y&lt;f(xpoints[i])+(f(xpoints[i+1])-f(xpoints[i]))/Dx *(x-xpoints[i])}, x=xpoints[i]..xpoints[i+1], y=0..2, optionsexcluded=(color=white)): od;</Font></Text-field><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input><Output><Text-field layout="Maple Output12" style="Maple Output12"/><Text-field layout="Maple Output12" style="Maple Output12"/></Output></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">display(plot(f(x), x=1..4),trapezoid[1], trapezoid[2]);</Font></Text-field></Input><Output><Text-field layout="Maple Plot" style="Maple Plot"/></Output></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font size="18">We clearly see that the trapezoid rule in an underestimate.</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font bold="false" family="Times New Roman" foreground="[0,0,0]" size="18" style="_cstyle271" underline="false">Topic 4: The midpoint rule as a midpoint-tangent-trapezoid rule</Font><Font size="18">.</Font></Text-field><Text-field layout="Normal" style="Normal"><Font size="18">We need to graph the tangent line at the midpoints.</Font></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">midpoints:=[seq(a+Dx*(i-0.5), i=1..n)];</Font></Text-field></Input><Output><Text-field layout="Maple Output" style="Maple Output"/></Output></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">derivatmidpoints:=map(D(f), midpoints);</Font></Text-field></Input><Output><Text-field layout="Maple Output" style="Maple Output"/></Output></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">for i from 1 to n do MID[i]:=inequal({y&lt;f(midpoints[i])+derivatmidpoints[i]*(x-midpoints[i])}, x=xpoints[i]..xpoints[i+1], y=0..2, optionsexcluded=(color=white)): od;</Font></Text-field></Input><Output><Text-field layout="Maple Output12" style="Maple Output12"/></Output></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">display(plot(f(x), x=1..4), MID[1],MID[2], middlebox(f(x), x=1..4, 2));</Font></Text-field></Input><Output><Text-field layout="Maple Plot" style="Maple Plot"/></Output></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font size="18">We see that the trapezoids with slanted side the tangent line at the midpoint cover exactly the same area as the midpoint sums. We also see that, because </Font><Equation input-equation="f(x)" style="2D Math_92">NiMtSSJmRzYiNiNJInhHRiU=</Equation><Font size="18"> is concave downwards, the tangent lines lie above the graph of </Font><Equation input-equation="f(x);" style="2D Math_89">NiMtJSJmRzYjJSJ4Rw==</Equation><Font size="18">, so the midpoint rule is an overestimate.</Font></Text-field><Text-field layout="Normal" style="Normal"><Font family="Times New Roman" foreground="[0,0,0]" italic="false" size="18" style="_cstyle273" underline="false">Write a command that shows the graph and the comparison of  the trapezoid sum and the midpoint sum with </Font><Equation input-equation="2;" style="2D Math_90">NiMiIiM=</Equation><Font family="Times New Roman" foreground="[0,0,0]" italic="false" size="18" style="_cstyle275" underline="false"> subintervals</Font><Font size="18">.</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font family="Times New Roman" foreground="[0,0,0]" italic="false" size="18" style="_cstyle267" underline="false">Work all the commands introduced today for the integral </Font><Equation input-equation="int(1/x,x = 1 .. 2);" style="2D Math_93">NiMtJSRpbnRHNiQqJiIiIkYnJSJ4RyEiIi9GKDtGJyIiIw==</Equation><Font family="Times New Roman" foreground="[0,0,0]" italic="false" size="18" style="_cstyle269" underline="false"> with n=1, 2, 4, 8, 16, 32, 64 subintervals</Font><Font size="18">. <Font family="Times New Roman" foreground="[0,0,0]" italic="false" style="_cstyle270" underline="false">Order in increasing order the left-hand sums, right-hand sums, midpoint suns and trapezoid sums. Explain you answer. Graph your sums  for </Font></Font><Equation input-equation="n = 1;" style="2D Math_94">NiMvJSJuRyIiIg==</Equation><Font size="18">, </Font><Equation input-equation="n = 2;" style="2D Math_95">NiMvJSJuRyIiIw==</Equation><Font size="18"> <Font family="Times New Roman" foreground="[0,0,0]" italic="false" style="_cstyle272" underline="false">to explain you answers.</Font></Font></Text-field></Input></Group><Text-field/></Worksheet>