<?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="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]" family="Times New Roman" name="2D Math_149" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_148" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_147" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_146" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_145" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_144" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" foreground="[255,0,0]" name="2D Math_143" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_142" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_141" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_140" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_139" size="18" underline="false"/><Font background="[0,0,0]" bold="true" family="Times New Roman" name="2D Math_138" size="18" underline="false"/><Font background="[0,0,0]" bold="true" family="Times New Roman" name="2D Math_137" size="18" underline="false"/><Font background="[0,0,0]" bold="true" family="Times New Roman" name="2D Math_136" size="18" underline="false"/><Font background="[0,0,0]" bold="true" family="Times New Roman" name="2D Math_135" size="18" underline="false"/><Font background="[0,0,0]" bold="true" family="Times New Roman" name="2D Math_134" size="18" 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]" bold="true" family="Times New Roman" name="2D Math_133" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_132" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_131" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_130" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_129" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_128" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_127" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_126" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_125" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_124" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_123" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_122" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_121" size="18" 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]" family="Times New Roman" name="2D Math_120" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_119" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_118" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_117" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_116" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_115" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_114" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_113" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_112" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_111" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_110" size="18" underline="false"/><Font background="[0,0,0]" bold="true" name="_cstyle294"/><Font background="[0,0,0]" bold="true" name="_cstyle293"/><Font background="[0,0,0]" bold="true" name="_cstyle292"/><Font background="[0,0,0]" bold="true" name="_cstyle291"/><Font background="[0,0,0]" bold="true" family="Times New Roman" name="2D Math_109" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_108" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_107" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_106" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_105" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_104" size="18" underline="false"/><Font background="[0,0,0]" bold="true" family="Times New Roman" name="2D Math_103" size="18" underline="false"/><Font background="[0,0,0]" bold="true" family="Times New Roman" name="2D Math_102" size="18" underline="false"/><Font background="[0,0,0]" bold="true" family="Times New Roman" name="2D Math_101" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_100" size="18" underline="false"/><Font background="[0,0,0]" bold="true" name="_cstyle289"/><Font background="[0,0,0]" bold="true" name="_cstyle287"/><Font background="[0,0,0]" italic="true" name="_cstyle286"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_99" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_98" size="18" underline="false"/><Font background="[0,0,0]" italic="true" name="_cstyle284"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_97" size="18" underline="false"/><Font background="[0,0,0]" bold="true" name="_cstyle283"/><Font background="[0,0,0]" executable="false" family="Times New Roman" foreground="[0,0,0]" name="2D Math_96" opaque="false" size="18"/><Font background="[0,0,0]" bold="true" name="_cstyle281"/><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]" bold="true" name="_cstyle279"/><Font background="[0,0,0]" bold="true" name="_cstyle278"/><Font background="[0,0,0]" bold="true" name="_cstyle277"/><Font background="[0,0,0]" bold="true" name="_cstyle275"/><Font background="[0,0,0]" bold="true" name="_cstyle273"/><Font background="[0,0,0]" bold="true" name="_cstyle271"/><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]" bold="true" name="_cstyle265"/><Font background="[0,0,0]" bold="true" name="_cstyle264"/><Font background="[0,0,0]" bold="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="false" name="Normal256" readonly="false" size="12" underline="false"/><Font background="[0,0,0]" bold="true" name="_cstyle261"/><Font background="[0,0,0]" bold="true" family="Times New Roman" foreground="[255,0,0]" name="2D Math_153" size="18" underline="false"/><Font background="[0,0,0]" bold="true" family="Times New Roman" foreground="[255,0,0]" name="2D Math_152" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" foreground="[255,0,0]" name="2D Math_151" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_150" size="18" underline="false"/><Font background="[0,0,0]" bold="true" name="_cstyle259"/><Font background="[0,0,0]" bold="true" name="_cstyle257"/><Font background="[0,0,0]" bold="true" name="_cstyle256" size="18"/></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="_cstyle256"><Font family="Times New Roman" foreground="[0,0,0]" italic="false" size="24" underline="false">MATH 156 LAB 6</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" size="18" style="_cstyle284" underline="false">Topic 1: Calculating </Font><Equation input-equation="Pi;" style="2D Math_96">NiMlI1BpRw==</Equation><Font size="18">.</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font size="18">We have seen that  </Font><Equation input-equation="Pi = 2;" style="2D Math_97">NiMvJSNQaUciIiM=</Equation><Equation input-equation="int(sqrt(1-x^2),x = -1 .. 1);" style="2D Math_98">NiMtJSRpbnRHNiQtJSVzcXJ0RzYjLCYiIiJGKiokJSJ4RyIiIyEiIi9GLDssJEYqRi5GKg==</Equation><Font size="18">. This is because the integral represents the area of a semicircle of radius 1. The circle has area </Font><Equation input-equation="Pi;" style="2D Math_99">NiMlI1BpRw==</Equation><Font size="18">.</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font size="18">In this lab you will compute the first 6 digits of </Font><Equation input-equation="pi;" style="2D Math_100">NiMlI3BpRw==</Equation><Font size="18"> using this integral.</Font></Text-field></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="_cstyle257" underline="false">Graph the fucntion </Font><Equation input-equation="f(x) = sqrt(1-x^2);" style="2D Math_101">NiMvLSUiZkc2IyUieEctJSVzcXJ0RzYjLCYiIiJGLCokRiciIiMhIiI=</Equation><Font executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" size="18" style="_cstyle259" underline="false"> on the range [</Font><Equation input-equation="-1;" style="2D Math_102">NiMsJCIiIiEiIg==</Equation><Font executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" size="18" style="_cstyle261" underline="false">, </Font><Equation input-equation="1;" style="2D Math_103">NiMiIiI=</Equation><Font executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" size="18" style="_cstyle263" underline="false">]</Font><Font size="18">.</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><Output><Text-field layout="Maple Plot" style="Maple Plot"/></Output></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font size="18">Notice that we have to use scaling=constrained, which has the effect that the </Font><Equation input-equation="x;" style="2D Math_104">NiMlInhH</Equation><Font size="18">-axis and the </Font><Equation input-equation="y;" style="2D Math_105">NiMlInlH</Equation><Font size="18">-axis have the same scale.</Font></Text-field><Text-field layout="Normal" style="Normal"><Font size="18">As you see the function </Font><Equation input-equation="f(x);" style="2D Math_106">NiMtJSJmRzYjJSJ4Rw==</Equation><Font size="18"> is increasing on [</Font><Equation input-equation="-1;" style="2D Math_107">NiMsJCIiIiEiIg==</Equation><Font size="18">, 0] and decreasing on [0, 1].</Font></Text-field></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="_cstyle264" underline="false">Compute the left-hand sums and right-hand sums with 10, 100, 1000 subintervals</Font><Font size="18">. <Font executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" style="_cstyle265" underline="false">Do not forget the  student package.</Font></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 Output" style="Maple Output"/></Output></Group><Group><Input><Text-field layout="Normal" style="_cstyle266"><Font family="Times New Roman" foreground="[0,0,0]" italic="false" size="18" underline="false">What do you notice? Can you explain what you noticed? You may want to graph some left-hand sums and right-hand sums to explain your answer.</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" 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">As a result we do not get underestimates and overestimates for </Font><Equation input-equation="Pi;" style="2D Math_108">NiMlI1BpRw==</Equation><Font size="18"> using the previous commands.</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="_cstyle267" underline="false">Find underestimates and overestimates for </Font><Equation input-equation="Pi;" style="2D Math_109">NiMlI1BpRw==</Equation><Font executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" size="18" style="_cstyle269" underline="false">, using left-hand sums and right-hand sums with 5, 50, 500, 5000 on the intervals [-1,0] and [0,1]</Font><Font size="18">.</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"/><Text-field layout="Maple Output" style="Maple Output"/></Output></Group><Group><Input><Text-field layout="Normal" style="Normal"/></Input></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font size="18">We can actually predict beforehand how large </Font><Equation input-equation="n;" style="2D Math_110">NiMlIm5H</Equation><Font size="18"> should be so that our underestimates and overestimates are within, say, </Font><Equation input-equation="epsilon;" style="2D Math_111">NiMlKGVwc2lsb25H</Equation><Font size="18">. Recall that on the interval [</Font><Equation input-equation="a;" style="2D Math_112">NiMlImFH</Equation><Font size="18">, </Font><Equation input-equation="b;" style="2D Math_113">NiMlImJH</Equation><Font size="18">] the difference |LHS(</Font><Equation input-equation="n;" style="2D Math_114">NiMlIm5H</Equation><Font size="18">)-RHS(</Font><Equation input-equation="n;" style="2D Math_115">NiMlIm5H</Equation><Font size="18">)|=|f(b)-f(a)|</Font><Equation input-equation="Delta;" style="2D Math_116">NiMlJkRlbHRhRw==</Equation><Equation input-equation="x;" style="2D Math_117">NiMlInhH</Equation><Font size="18"> for a monotone function. If we split [-1,0] into </Font><Equation input-equation="n;" style="2D Math_118">NiMlIm5H</Equation><Font size="18"> subintervals the error is less than </Font><Equation input-equation="(f(0)-f(-1))/n = 1/n;" style="2D Math_119">NiMvKiYsJi0lImZHNiMiIiEiIiItRic2IywkRiohIiJGLkYqJSJuR0YuKiZGKkYqRi9GLg==</Equation> , <Font size="18">since </Font><Equation input-equation="Delta;" style="2D Math_120">NiMlJkRlbHRhRw==</Equation><Equation input-equation="x;" style="2D Math_121">NiMlInhH</Equation><Font size="18">=(b-a)/</Font><Equation input-equation="n;" style="2D Math_122">NiMlIm5H</Equation><Font size="18">. On the interval [0,1], if we split into </Font><Equation input-equation="n;" style="2D Math_123">NiMlIm5H</Equation><Font size="18"> subintervals, we have an error less than </Font><Equation input-equation="(f(0)-f(1))/n = 1/n;" style="2D Math_124">NiMvKiYsJi0lImZHNiMiIiEiIiItRic2I0YqISIiRiolIm5HRi0qJkYqRipGLkYt</Equation><Font size="18">.  So in the whole interval [-1,1] the error is less than </Font><Equation input-equation="2/n;" style="2D Math_125">NiMqJiIiIyIiIiUibkchIiI=</Equation><Font size="18">  and, since </Font><Equation input-equation="Pi;" style="2D Math_126">NiMlI1BpRw==</Equation><Font size="18"> is twice the integral, the error in estimating </Font><Equation input-equation="Pi;" style="2D Math_127">NiMlI1BpRw==</Equation><Font size="18"> is less than </Font><Equation input-equation="4/n;" style="2D Math_128">NiMqJiIiJSIiIiUibkchIiI=</Equation>  <Font size="18">. If we want the error to be, say less than 0.001, we need to make </Font><Equation input-equation="4/n &lt; .1e-2;" style="2D Math_129">NiMyKiYiIiUiIiIlIm5HISIiLSUmRmxvYXRHNiRGJiEiJA==</Equation><Font size="18">, which gives </Font><Equation input-equation="4/.1e-2 &lt; n;" style="2D Math_130">NiMyKiYiIiUiIiItJSZGbG9hdEc2JEYmISIkISIiJSJuRw==</Equation><Font size="18">, i.e., n&gt;4000. This explains why with 5000 subintervals we had gotten the first 3 decimals correct.</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">4/0.001;</Font></Text-field></Input><Output><Text-field layout="Maple Output" style="2D Output"/></Output></Group><Group><Input><Text-field layout="Normal256" style="Normal256"><Font size="18">How large do you need to take </Font><Equation input-equation="n;" style="2D Math_131">NiMlIm5H</Equation><Font size="18">, so that you can compute </Font><Equation input-equation="Pi;" style="2D Math_132">NiMlI1BpRw==</Equation><Font size="18"> with an error less than 0.0000001?</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" style="Normal"><Font size="18">Unfortunately, this number of subintervals is too large to work out with Maple. So we resort to the trapezoid rule and the midpoint rule.</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="_cstyle278" underline="false">Compute TRAP(</Font><Equation input-equation="n;" style="2D Math_133">NiMlIm5H</Equation><Font executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" size="18" style="_cstyle271" underline="false">), MID(</Font><Equation input-equation="n;" style="2D Math_134">NiMlIm5H</Equation><Font executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" size="18" style="_cstyle273" underline="false">), with </Font><Equation input-equation="n;" style="2D Math_135">NiMlIm5H</Equation><Font executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" size="18" style="_cstyle275" underline="false">=10, 100, 1000 on the whole interval [-1,1]. Which ones give underestimates and which ones give overestimates of </Font><Equation input-equation="Pi;" style="2D Math_136">NiMlI1BpRw==</Equation><Font executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" size="18" style="_cstyle277" underline="false">?</Font><Font size="18">  <Font executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" style="_cstyle279" underline="false">Why? What is the relation of TRAP(</Font></Font><Equation input-equation="n;" style="2D Math_137">NiMlIm5H</Equation><Font executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" size="18" style="_cstyle281" underline="false">) with LHS(</Font><Equation input-equation="n;" style="2D Math_138">NiMlIm5H</Equation><Font executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" size="18" style="_cstyle283" underline="false">)?</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" style="Normal"><Font size="18">To compute more accurately, we can use Simpson's rule: SIM(</Font><Equation input-equation="n;" style="2D Math_139">NiMlIm5H</Equation><Font size="18">)=  </Font><Equation input-equation="(TRAP(n)+2*MID(n))/3;" style="2D Math_140">NiMqJiwmLSUlVFJBUEc2IyUibkciIiIqJiIiI0YpLSUkTUlER0YnRilGKUYpIiIkISIi</Equation><Font size="18">   . There is a Maple command for Simpson's rule:</Font></Text-field><Text-field layout="Normal" style="Normal"><Font size="18">simpson(f(x), x=lowerlimit..upperlimit, 2*number of subintervals)</Font></Text-field><Text-field layout="Normal256" style="Normal256"><Font size="18">Compute </Font><Equation input-equation="Pi;" style="2D Math_141">NiMlI1BpRw==</Equation><Font size="18"> using Simpson's rule with </Font><Equation input-equation="n;" style="2D Math_142">NiMlIm5H</Equation><Font size="18">=10, 100, 1000,10000 subintervals. Verify your answers using the formula for Simpson's rule.</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" style="Normal"><Font bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" size="18" style="_cstyle286" underline="false">Topic 2: Substitutions with Maple</Font><Font size="18">.</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font size="18">All the integrals in this section can be evaluated by hand. Although Maple can help us verify our answers,  you should still learn the substitution method.  You are encouraged to evaluate the integrals by hand, as a test of your understanding.</Font></Text-field><Text-field layout="Normal" style="Normal"><Font size="18">Let us introduce the integral </Font><Equation executable="true" input-equation="int((x^2+1)^4*x,x);" style="2D Math_143">NiMtJSRpbnRHNiQqJiwmKiQlInhHIiIjIiIiRitGKyIiJUYpRitGKQ==</Equation><Font size="18">: The command is Int(f(x), x)</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">E1:=Int((x^2+1)^4*x, x);</Font></Text-field></Input><Output><Text-field layout="Maple Output" style="2D Output"/></Output></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font size="18">If we know which variable to change, we introduce the substitution </Font><Equation input-equation="u = g(x);" style="2D Math_144">NiMvJSJ1Ry0lImdHNiMlInhH</Equation><Font size="18"> the following way: changevar(u=g(x), E1,u). This substitutes </Font><Equation input-equation="u;" style="2D Math_145">NiMlInVH</Equation><Font size="18"> for </Font><Equation input-equation="g(x);" style="2D Math_146">NiMtJSJnRzYjJSJ4Rw==</Equation> <Font size="18">in the integral E1.</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">E2:=changevar(u=x^2+1, E1, u);</Font></Text-field></Input><Output><Text-field layout="Maple Output" style="2D Output"/></Output></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font size="18">To compute this integral we can use the value command:</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">E3:=value(E2);</Font></Text-field></Input><Output><Text-field layout="Maple Output" style="2D Output"/></Output></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font size="18">Notice that Maple does not include constants of integration. We always want to switch to the original variable </Font><Equation input-equation="x;" style="2D Math_147">NiMlInhH</Equation><Font size="18">. This is done with the subs command. </Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">E4:=subs(u=x^2+1, E3);</Font></Text-field></Input><Output><Text-field layout="Maple Output" style="2D Output"/></Output></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font size="18">We do not need to do all these substitutions and changes, we can ask Maple to evaluate the integral E1 directly:</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">value(E1);</Font></Text-field></Input><Output><Text-field layout="Maple Output" style="2D Output"/></Output></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font size="18">The problem is that this answer does not seem to be the same as the one we got before. The reason is that we need to expand </Font><Equation input-equation="(x^2+1)^5;" style="2D Math_148">NiMqJCwmKiQlInhHIiIjIiIiRihGKCIiJg==</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">expand(E4, x);</Font></Text-field></Input><Output><Text-field layout="Maple Output" style="2D Output"/></Output></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font size="18">We still notice that there is a difference: the constant </Font><Equation input-equation="1/10;" style="2D Math_149">NiMqJiIiIkYkIiM1ISIi</Equation><Font size="18">. This is so, because in integration Maple does not care about constants. The most general antiderivative is any of the previous expressions +C.</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font size="18">One problem is that Maple does not tell us which substitution to use. So the choice is ours and this is where our work lies.</Font></Text-field><Text-field layout="Normal256" style="Normal256"><Font size="18">Try to substitute </Font><Equation input-equation="u = x^2+1;" style="2D Math_150">NiMvJSJ1RywmKiQlInhHIiIjIiIiRilGKQ==</Equation><Font size="18"> in the integral </Font><Equation executable="true" input-equation="int((x^2+1)^4,x);" style="2D Math_151">NiMtJSRpbnRHNiQqJCwmKiQlInhHIiIjIiIiRitGKyIiJUYp</Equation><Font size="18">. What do you notice?</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><Output><Text-field layout="Maple Output" style="Maple Output"/></Output></Group><Group><Input><Text-field layout="Normal" style="Normal"/></Input></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font size="18">In fact one does not need substitution in this integral to compute it. We can expand the integrand:</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">g:=expand((x^2+1)^4, x);</Font></Text-field></Input><Output><Text-field layout="Maple Output" style="2D Output"/></Output></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">V2:=Int(g, x);</Font></Text-field></Input><Output><Text-field layout="Maple Output" style="2D Output"/></Output></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">V3:=value(V2);</Font></Text-field></Input><Output><Text-field layout="Maple Output" style="2D Output"/></Output></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">value(Int((x^2+1)^4, x));</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font size="18">The last command verified our previous answer. </Font></Text-field></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="_cstyle287" underline="false">Evaluate the integral </Font><Equation executable="true" input-equation="int(cos^2*x*sin*x,x);" style="2D Math_152">NiMtJSRpbnRHNiQqKiUkY29zRyIiIyUieEciIiIlJHNpbkdGKkYpRipGKQ==</Equation><Font executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" size="18" style="_cstyle293" underline="false"> using a substitution</Font><Font size="18">. <Font executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" style="_cstyle294" underline="false">Check your answer with the value command.</Font></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><Output><Text-field layout="Maple Output" style="Maple Output"/></Output></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><Output><Text-field layout="Maple Output" style="Maple Output"/></Output></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" style="Normal"><Font executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" size="18" style="_cstyle289" underline="false">Evaluate the integral </Font><Equation executable="true" input-equation="int(e^(-x)*tan(e^(-x)),x);" style="2D Math_153">NiMtJSRpbnRHNiQqJiklImVHLCQlInhHISIiIiIiLSUkdGFuRzYjRidGLEYq</Equation><Font executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" size="18" style="_cstyle291" underline="false"> using a substitution</Font><Font size="18">. <Font executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" style="_cstyle292" underline="false">Check your answer with the value command.</Font></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><Output><Text-field layout="Maple Output" style="Maple Output"/></Output></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 Output" style="Maple Output"/></Output></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input><Output><Text-field layout="Maple Output" style="Maple Output"/></Output></Group><Text-field/><Text-field/><Text-field/></Worksheet>