<?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.5" name="Maple Output" rightmargin="0.0" spaceabove="0.0" spacebelow="0.0"/><Font background="[0,0,0]" family="Times New Roman" foreground="[255,0,0]" name="2D Math_252" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_251" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_250" size="18" 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]" 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="true" foreground="[104,64,92]" name="_cstyle35"/><Font background="[0,0,0]" bold="true" name="_cstyle275"/><Font background="[0,0,0]" bold="true" name="_cstyle274"/><Font background="[0,0,0]" bold="true" name="_cstyle272"/><Font background="[0,0,0]" bold="true" name="_cstyle271"/><Font background="[0,0,0]" bold="true" name="_cstyle270"/><Font background="[0,0,0]" bold="true" name="_cstyle269"/><Font background="[0,0,0]" bold="true" name="_cstyle268"/><Font background="[0,0,0]" bold="true" name="_cstyle267"/><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="_cstyle262"/><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_261" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_260" 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]" bold="true" name="_cstyle257" size="18"/><Font background="[0,0,0]" bold="true" family="Times New Roman" foreground="[255,0,0]" name="2D Math_259" size="18" underline="false"/><Font background="[0,0,0]" bold="true" family="Times New Roman" name="2D Math_258" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" foreground="[255,0,0]" name="2D Math_257" size="18" underline="false"/><Font background="[0,0,0]" bold="true" family="Times New Roman" name="2D Math_256" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_255" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_254" size="18" underline="false"/><Font background="[0,0,0]" family="Times New Roman" name="2D Math_253" 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="Normal" style="_cstyle257"><Font family="Times New Roman" foreground="[0,0,0]" italic="false" size="24" underline="false">MATH 156 LAB 10</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="_cstyle258" underline="false">Topic 1: Integration by parts</Font><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">with(student):</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font size="18">Maple has a command that performs integration by parts. It is intparts(<Font executable="false" family="Times New Roman" italic="false" style="_cstyle35" underline="false">f</Font>, <Font executable="false" family="Times New Roman" italic="false" style="_cstyle35" underline="false">u</Font>), where </Font><Equation input-equation="u;" style="2D Math_250">NiMlInVH</Equation><Font size="18"> is our choice for integration in the formula </Font><Equation input-equation="int(u*diff(v,x),x);" style="2D Math_251">NiMtJSRpbnRHNiQqJiUidUciIiItJSVkaWZmRzYkJSJ2RyUieEdGKEYt</Equation><Font size="18">=uv-</Font><Equation executable="true" input-equation="int(diff(u,x)*v,x);" style="2D Math_252">NiMtJSRpbnRHNiQqJi0lJWRpZmZHNiQlInVHJSJ4RyIiIiUidkdGLEYr</Equation><Font size="18">. Here </Font><Equation input-equation="f;" style="2D Math_253">NiMlImZH</Equation><Font size="18"> is an integral (not a function) previously defined. Maple does not automatically decide which should be </Font><Equation input-equation="u;" style="2D Math_254">NiMlInVH</Equation><Font size="18"> and which should be </Font><Equation input-equation="v;" style="2D Math_255">NiMlInZH</Equation><Font size="18">'.  You have to decide which function to choose. Example:</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">E1:=Int(exp(2*x)*(2*x+3), 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">E2:=intparts(E1, 2*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">value(E2);</Font></Text-field></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="_cstyle259" underline="false">Perform the integration by parts in the integral </Font><Equation input-equation="int(x^10*ln(x),x);" style="2D Math_256">NiMtJSRpbnRHNiQqJiUieEciIzUtJSNsbkc2I0YnIiIiRic=</Equation><Font executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" size="18" style="_cstyle261" underline="false">. Verify your answer by asking Maple to integrate directly</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"/></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 size="18">Many times we are forced to integrate by parts repeatedly. We do this one step at a time. Example: Calculate the integral</Font><Equation executable="true" input-equation="int(exp(2*x)*cos(3*x),x);" style="2D Math_257">NiMtJSRpbnRHNiQqJi0lJGV4cEc2IyomIiIjIiIiJSJ4R0YsRiwtJSRjb3NHNiMqJiIiJEYsRi1GLEYsRi0=</Equation><Font size="18">.</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" style="Maple Input"><Font italic="false" size="12" underline="false">  Lint:=Int(exp(2*x)*cos(3*x), 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">Mint:=intparts(Lint, exp(2*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">We define the new integral to be Nint:</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">Nint:=Int(2/3*exp(2*x)*sin(3*x), 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">Oint:=intparts(Nint, exp(2*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">Here we see that we got back the integral we started with with coefficient 4/9 in front. The result is </Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">Lint:=1/3*exp(2*x)*sin(3*x)-Oint;</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">Lint:=(1+4/9)^(-1)*(1/3*exp(2*x)*sin(3*x)+2/9*exp(2*x)*cos(3*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">We can check the answer by redefining the integral and integrating directly:</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">lint:=Int(exp(2*x)*cos(3*x), 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">value(lint);</Font></Text-field></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="_cstyle262" underline="false">Perform two integrations by parts to compute the integral </Font><Equation input-equation="int((x^2+5*x+9)*e^(2*x),x);" style="2D Math_258">NiMtJSRpbnRHNiQqJiwoKiQlInhHIiIjIiIiKiYiIiZGK0YpRitGKyIiKkYrRispJSJlRyomRipGK0YpRitGK0Yp</Equation><Font executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" size="18" style="_cstyle264" underline="false">. Check your answer with direct integration with Maple</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"/></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" 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="_cstyle265" underline="false">Evaluate the integral </Font><Equation executable="true" input-equation="int(x*ln(x+sqrt(1+x^2)),x);" style="2D Math_259">NiMtJSRpbnRHNiQqJiUieEciIiItJSNsbkc2IywmRidGKC0lJXNxcnRHNiMsJkYoRigqJEYnIiIjRihGKEYoRic=</Equation><Font executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" size="18" style="_cstyle267" underline="false">.</Font><Font size="18"> <Font executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" style="_cstyle268" underline="false">If you try to compute the integral directly you will see that Maple gets stuck and does not know what to do</Font>. <Font executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" style="_cstyle269" underline="false">You will need two integrations by parts and the second is tricky</Font>. <Font executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" style="_cstyle271" underline="false">Ask Maple to simplify the second integrand and to use </Font></Font><Equation input-equation="u = x;" style="2D Math_260">NiMvJSJ1RyUieEc=</Equation><Font size="18">. <Font executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" style="_cstyle270" underline="false">This shows that sometimes we need to help Maple in its work</Font>. <Font bold="true">Do not always rely on Maple!</Font></Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false"> </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><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" 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="_cstyle272" underline="false">Compute the integral </Font><Equation executable="true" input-equation="int(x^3*arctan(x),x);" style="2D Math_261">NiMtJSRpbnRHNiQqJiUieEciIiQtJSdhcmN0YW5HNiNGJyIiIkYn</Equation><Font executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" size="18" style="_cstyle274" underline="false">. Verify your answer directly</Font><Font size="18">. <Font executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" style="_cstyle275" underline="false">Use partial fraction decomposition for the integral you get</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" 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><Text-field/><Text-field/></Worksheet>