<?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.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"/><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.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"/><Font background="[0,0,0]" bold="true" executable="true" family="Monospaced" foreground="[255,0,0]" name="Maple Input"/><Font background="[0,0,0]" family="Times New Roman" name="Page Number" 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]" 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="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" name="Text" opaque="false" size="12" underline="false"/><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]" 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]" bold="true" name="_cstyle271"/><Font background="[0,0,0]" bold="true" name="_cstyle270"/><Font background="[0,0,0]" family="Times New Roman" foreground="[255,0,0]" name="2D Input" underline="false"/><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]" bold="true" name="_cstyle269"/><Font background="[0,0,0]" italic="true" name="_cstyle268"/><Font background="[0,0,0]" italic="true" name="_cstyle267"/><Font background="[0,0,0]" bold="true" name="_cstyle266"/><Font background="[0,0,0]" family="Times New Roman" foreground="[255,0,0]" name="2D Math_23" size="18" underline="false"/><Font background="[0,0,0]" bold="true" name="_cstyle265"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_22" size="18" underline="false"/><Font background="[0,0,0]" italic="true" name="_cstyle264"/><Font background="[0,0,0]" executable="false" family="Times New Roman" foreground="[0,0,0]" name="2D Math_21" opaque="false" size="18"/><Font background="[0,0,0]" bold="true" name="_cstyle263"/><Font background="[0,0,0]" executable="false" family="Times New Roman" foreground="[0,0,0]" name="2D Math_20" opaque="false" size="18"/><Font background="[0,0,0]" bold="true" name="_cstyle262"/><Font background="[0,0,0]" bold="true" name="_cstyle261" size="18"/><Font background="[0,0,0]" family="Times New Roman" foreground="[0,0,255]" name="2D Output" underline="false"/><Font background="[0,0,0]" bold="true" name="_cstyle260"/><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]" executable="false" family="Times New Roman" foreground="[0,0,0]" name="2D Math_19" opaque="false" size="18"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_18" size="18" underline="false"/><Font background="[0,0,0]" bold="true" name="_cstyle259"/><Font background="[0,0,0]" bold="true" name="_cstyle258"/><Font background="[0,0,0]" bold="true" name="_cstyle257"/><Font background="[0,0,0]" italic="true" name="_cstyle256"/></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="Normal" style="_cstyle261"><Font family="Times New Roman" foreground="[0,0,0]" italic="false" size="24" underline="false">MAT 156 LAB 2</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" style="_cstyle256"><Font bold="false" family="Times New Roman" foreground="[0,0,0]" size="18" underline="false">Topic 1:  Derivatives</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font size="18">We first define the function </Font><Equation input-equation="f(x) = x^3;" style="2D Math_18">NiMvLSUiZkc2IyUieEcqJEYnIiIk</Equation><Font size="18"> and the expression f3=</Font><Equation input-equation="x^2" style="2D Math_19">NiMqJEkieEc2IiIiIw==</Equation><Font size="18">. Maple treats functions and expressions differently.</Font></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;x^3;</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"> f3 := x^2;</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">In these examples f is a function and f3  is an expression.  To find the derivative of f we can use either of the following methods</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">D(f);</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">diff(f(x),x);</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">Notice that the first method produced a function and the second just an expression. </Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font size="18">To find the derivative of f3 we must use diff.  There is also a way to find second derivative. In these examples I am assignming</Font></Text-field><Text-field layout="Normal" style="Normal"><Font size="18"> names to the derivative and the second derivative.</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">df3 := diff(f3,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"> d2f3:= diff(f3,x$2);</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">Now we can come back to the function g(x)=</Font><Equation input-equation="x^4-6*x^3+1" style="2D Math_20">NiMsKCokSSJ4RzYiIiIlIiIiKiYiIidGKCokRiUiIiRGKCEiIkYoRig=</Equation>  <Font size="18">we studied in Lab 1 and find its minimum. Recall that the points where g'(x)=0 are called critical points</Font></Text-field><Text-field layout="Normal" style="Normal"><Font size="18">and we search among these points for (local) maxima and (local) minima. </Font></Text-field><Text-field layout="Normal" style="_cstyle257"><Font family="Times New Roman" foreground="[0,0,0]" italic="false" size="18" underline="false">Compute the derivative of g(x) and solve the equation g'(x)=0.</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input><Output><Text-field layout="Maple Output" style="Maple Output"/></Output></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" size="18" style="_cstyle258" underline="false">Now find the minimum value.</Font><Font size="18"> It defers from what we saw in the graph only at the third and fourth decimal digit!</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input><Output><Text-field layout="Maple Output" style="Maple Output"/></Output></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font size="18">We also see that the graph of g(x) changes concavity. The points where the graphs changes from concave upwards to concave</Font></Text-field><Text-field layout="Normal" style="Normal"><Font size="18">downwards (or vice versa) are called inflection points. They are found among the points where g''(x)=0. </Font></Text-field><Text-field layout="Normal" style="_cstyle259"><Font family="Times New Roman" foreground="[0,0,0]" italic="false" size="18" underline="false">Find the inflection points for g(x).</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">D(D(g));</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"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">plot(g(x), x=-1..4);</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">Example: <Font executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" style="_cstyle260" underline="false">Graph the function h(x)= </Font></Font><Equation input-equation="x^2+24*x+15" style="2D Math_21">NiMsKCokSSJ4RzYiIiIjIiIiKiYiI0NGKEYlRihGKCIjOkYo</Equation><Font executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" size="18" style="_cstyle260" underline="false">.  How do you know that the initial graph is not good enough?</Font></Text-field><Text-field layout="Normal256" style="Normal256"><Font size="18">Write a complete statement.</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input><Output><Text-field layout="Maple Plot" style="Maple Plot"/></Output></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font size="18">This cannot be the whole story, since h(x) is a quadratic polynomial, so its graph should be a parabola. To find the peak of the parabola (called vertex), we notice that it is the minimum and we identify it by finding the critical point h'(x)=0. <Font executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" style="_cstyle271" underline="false">Plot the parabola to show its vertex.</Font></Font></Text-field><Text-field layout="Normal" style="Normal"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input><Output><Text-field layout="Maple Output" style="Maple Output"/></Output></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input><Output><Text-field layout="Maple Plot" style="Maple Plot"/></Output></Group><Group><Input><Text-field layout="Normal" style="Text"><Font italic="true" size="18">Topic 2: Velocity and Distance travelled.</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font size="18">In this rest of this lab we will explore a velocity function  and the distance we travelled. </Font></Text-field><Text-field layout="Normal" prompt="&gt; " style="2D Input"><Equation executable="true" input-equation="`&lt;,&gt;`(`&lt;|&gt;`(Time(sec),Velocity(ft/sec)),`&lt;|&gt;`(0,20),`&lt;|&gt;`(1,30),`&lt;|&gt;`(2,38),`&lt;|&gt;`(3,44),`&lt;|&gt;`(4,48),`&lt;|&gt;`(5,50));" style="2D Input">NiMtJSQ8LD5HNiktJSQ8fGdyPkc2JC0lJVRpbWVHNiMlJHNlY0ctJSlWZWxvY2l0eUc2IyomJSNmdEciIiJGLCEiIi1GJzYkIiIhIiM/LUYnNiRGMiIjSS1GJzYkIiIjIiNRLUYnNiQiIiQiI1ctRic2JCIiJSIjWy1GJzYkIiImIiNd</Equation></Text-field><Text-field layout="Normal" style="Normal"/></Input><Output><Text-field layout="Maple Output" style="2D Output"><Equation style="2D Output">NiMtJSdSVEFCTEVHNiUiKCEpXCpHLSUnTUFUUklYRzYjNyk3JC0lJVRpbWVHNiMlJHNlY0ctJSlWZWxvY2l0eUc2IyomJSNmdEciIiJGLyEiIjckIiIhIiM/NyRGNSIjSTckIiIjIiNRNyQiIiQiI1c3JCIiJSIjWzckIiImIiNdJSdNYXRyaXhH</Equation></Text-field></Output></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font size="18">It ends up that the table has been created using the following complicated function.</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">f := t-&gt;-22108.111351860603123*t^12+267716.97873114933992*t^7-28550.588718383953421*t^4-.69089471139707261503e-1*t^18-593.25933891402415755*t^2+88214.018798090967877*t^5-182944.24328666353298*t^6+5693.6391073166057753*t^3-285572.24388626189800*t^8+227046.45357947547549*t^9-136597.49693854806554*t^10+62764.645490312705181*t^11+1.5172197744989322043*t^17+5957.3207937003999701*t^13-1217.1081971634308471*t^14+185.14666942246783552*t^15-20.307901075143421783*t^16+.14466922546287623311e-2*t^19+33.706872407075593812*t+20;</Font></Text-field></Input><Output><Text-field layout="Maple Output12" style="Maple Output12"/></Output></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font size="18">We do not care about the formula above.</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" style="_cstyle264"><Font bold="false" family="Times New Roman" foreground="[0,0,0]" size="18" underline="false">Topic 3: Plotting left-hand-sums.</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font size="18">Maple allows us to see graphically left-hand sums using the command leftbox(function, variable= lower limit .. upper limit, number of intervals), as seen below. Notice that we must use in the function the same variable as in variable. First we introduce the package for students:</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">with(student): Digits:=20:</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">leftbox(f(t), t=0..5, 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 Digits:=20 asks Maple to work with 20 decimal digits. This is a choice that I found to be good for this lab. It does not have to be the case always.</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font size="18">For future use we will give names to our plots. This can be done the same way as any other expression. However, we do not want to see</Font></Text-field><Text-field layout="Normal" style="Normal"><Font size="18">the result immediately, so we will use colon, rather than semicolon.</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">lhs5:=leftbox(f(t), t=0..5, 5):</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font size="18">It ends up that we do not get a good approximation of the distance we travel. To improve our results we use data for our velocity every half second, rather than every second. This gave us the table:</Font> <Equation executable="true" input-equation="`&lt;,&gt;`(`&lt;|&gt;`(0,20), `&lt;|&gt;`(.5,26), `&lt;|&gt;`(1,30), `&lt;|&gt;`(1.5,35), `&lt;|&gt;`(2,38), `&lt;|&gt;`(2.5,42));" style="2D Input">NiMtJSQ8LD5HNigtJSQ8fGdyPkc2JCIiISIjPy1GJzYkLSUmRmxvYXRHNiQiIiYhIiIiI0UtRic2JCIiIiIjSS1GJzYkLUYuNiQiIzpGMSIjTi1GJzYkIiIjIiNRLUYnNiQtRi42JCIjREYxIiNV</Equation></Text-field></Input><Output><Text-field layout="Maple Output" style="2D Output"><Equation style="2D Output">NiMtJSdSVEFCTEVHNiUiKSc+QjUiLSUnTUFUUklYRzYjNyg3JCIiISIjPzckJCIiJiEiIiIjRTckIiIiIiNJNyQkIiM6RjEiI043JCIiIyIjUTckJCIjREYxIiNVJSdNYXRyaXhH</Equation></Text-field></Output></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">&lt;&lt;3 | 44&gt; , &lt;3.5 | 46&gt; , &lt;4 | 48&gt; , &lt;4.5 | 49&gt;, &lt;5| 50&gt;&gt;;</Font></Text-field></Input><Output><Text-field layout="Maple Output" style="2D Output"><Equation style="2D Output">NiMtJSdSVEFCTEVHNiUiKSl5I1s2LSUnTUFUUklYRzYjNyc3JCIiJCIjVzckJCIjTiEiIiIjWTckIiIlIiNbNyQkIiNYRjEiI1w3JCIiJiIjXSUnTWF0cml4Rw==</Equation></Text-field></Output></Group><Group><Input><Text-field layout="Normal" style="_cstyle265"><Font family="Times New Roman" foreground="[0,0,0]" italic="false" size="18" underline="false">Write a command that produces graphically the left-hand-sum with 10 intervals.</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input><Output><Text-field layout="Maple Plot" style="Maple Plot"/></Output></Group><Group><Input><Text-field layout="Normal" style="_cstyle262"><Font family="Times New Roman" foreground="[0,0,0]" italic="false" size="18" underline="false">Write a command that gives a name to the previous plot. Create plots (and names) for the left-hand sum with 20, 40, 80 and 160 </Font></Text-field><Text-field layout="Normal" style="Normal"><Font executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" size="18" style="_cstyle263" underline="false">subintervals. </Font><Font size="18">You should be able to see how closer they fit under the curve and that the area under the curve seems to be </Font></Text-field><Text-field layout="Normal" style="Normal"><Font size="18">the limit of the left-hand sums as the number of subintervals increases to infinity.</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" style="_cstyle267"><Font bold="false" family="Times New Roman" foreground="[0,0,0]" size="18" underline="false">Topic 4: Plotting right-hand sums.</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font size="18">In Maple there is a command also for seeing graphically the right-hand sums. We use rightbox( function, variable= lower limit .. upper limit, number of subintervals). See the example:</Font></Text-field></Input></Group><Group><Input><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">rightbox(f(t), t=0..5, 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">We can also name the plot. An appropriate name would be rhs5.</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">rhs5:=rightbox(f(t), t=0..5, 5):</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" style="_cstyle266"><Font family="Times New Roman" foreground="[0,0,0]" italic="false" size="18" underline="false">Write commands to see graphically the right-hand sums with 10, 20, 40 , 80, 160 subintervals. Write commands that name these plots.</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal256" style="Normal256"><Font size="18">Write your comments on what you notice for the right-hand sums, e.g. are they underestimates, or overestimates and why? Do they increase or decrease when the number of subintervals increase? Where do they converge? </Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" style="Normal"/></Input></Group><Group><Input><Text-field layout="Normal" style="_cstyle268"><Font bold="false" family="Times New Roman" foreground="[0,0,0]" size="18" underline="false">Topic 5: Comparing left-hand sums with right-hand sums.</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font size="18">Now we would like to see the left-hand sums and the right-hand sums simultaneously. To do this we first load the plots package:</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">with(plots):</Font></Text-field></Input><Output><Text-field layout="Warning" style="Warning">Warning, the name changecoords has been redefined
</Text-field></Output></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font size="18">Let us first display the left-hand sum and the right-hand sum with 5 subintervals. The command is display(name_1, name_2);</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">display(lhs5, rhs5);</Font></Text-field></Input><Output><Text-field layout="Maple Plot" style="Maple Plot"/></Output></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" size="18" style="_cstyle269" underline="false">Write commands that show you at the same time the left-hand sums and the right-hand sums with the same number of subintervals for </Font><Equation input-equation="n;" style="2D Math_22">NiMlIm5H</Equation><Font size="18">=10, 20, 40, 80<Font executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" style="_cstyle270" underline="false">.   What do you notice about the error in the approximation?</Font></Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" style="Normal"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input><Output><Text-field layout="Maple Plot" style="Maple Plot"/></Output></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input><Output><Text-field layout="Maple Plot" style="Maple Plot"/></Output></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input><Output><Text-field layout="Maple Plot" style="Maple Plot"/></Output></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input><Output><Text-field layout="Maple Plot" style="Maple Plot"/></Output></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font size="18">Now we will work with the function g(x)=1/x and the integral </Font><Equation executable="true" input-equation="int(1/x,x = 1 .. 2);" style="2D Math_23">NiMtJSRpbnRHNiQqJiIiIkYnJSJ4RyEiIi9GKDtGJyIiIw==</Equation>  .</Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" style="Text"><Font bold="true" size="18">Graph the left-hand sums and right-hand sums with <Font italic="true">n</Font>=2, 4, 8, 16, 32, 64 subintervals.</Font></Text-field></Input></Group><Group><Output><Text-field layout="Maple Plot" style="Maple Plot"/></Output></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input><Output><Text-field layout="Maple Plot" style="Maple Plot"/></Output></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input><Output><Text-field layout="Maple Plot" style="Maple Plot"/></Output></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input><Output><Text-field layout="Maple Plot" style="Maple Plot"/></Output></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input><Output><Text-field layout="Maple Plot" style="Maple Plot"/></Output></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input><Output><Text-field layout="Maple Plot" style="Maple Plot"/></Output></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input><Output><Text-field layout="Maple Plot" style="Maple Plot"/></Output></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input><Output><Text-field layout="Maple Plot" style="Maple Plot"/></Output></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input><Output><Text-field layout="Maple Plot" style="Maple Plot"/></Output></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input><Output><Text-field layout="Maple Plot" style="Maple Plot"/></Output></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input><Output><Text-field layout="Maple Plot" style="Maple Plot"/></Output></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input><Output><Text-field layout="Maple Plot" style="Maple Plot"/></Output></Group><Text-field/><Text-field/><Text-field/><Text-field/></Worksheet>