<?xml version="1.0" encoding="UTF-8"?>
<Worksheet><Version major="6" minor="1"/><View-Properties><Zoom percentage="100"/></View-Properties><Styles><Layout alignment="left" firstindent="0.0" leftmargin="0.0" linebreak="space" linespacing="0.0" name="_pstyle10" rightmargin="0.0" spaceabove="8.0" spacebelow="2.0"/><Layout alignment="left" firstindent="0.0" leftmargin="0.0" linebreak="space" linespacing="0.0" name="_pstyle9" rightmargin="0.0" spaceabove="8.0" spacebelow="2.0"/><Layout alignment="left" firstindent="0.0" leftmargin="0.0" linebreak="space" linespacing="0.0" name="_pstyle8" rightmargin="0.0" spaceabove="8.0" spacebelow="2.0"/><Layout alignment="left" bullet="indent" firstindent="0.0" leftmargin="0.0" linebreak="space" linespacing="0.0" name="_pstyle7" rightmargin="0.0" spaceabove="3.0" spacebelow="3.0"/><Layout alignment="left" firstindent="0.0" leftmargin="0.0" linebreak="space" linespacing="0.0" name="_pstyle5" rightmargin="0.0" spaceabove="8.0" spacebelow="4.0"/><Layout alignment="left" firstindent="0.0" leftmargin="0.0" linebreak="space" linespacing="0.0" name="_pstyle4" rightmargin="0.0" spaceabove="0.0" spacebelow="0.0"/><Layout alignment="centred" firstindent="0.0" leftmargin="0.0" linebreak="space" linespacing="0.0" name="_pstyle3" rightmargin="0.0" spaceabove="0.0" spacebelow="0.0"/><Layout alignment="left" firstindent="0.0" leftmargin="0.0" linebreak="space" linespacing="0.0" name="_pstyle2" rightmargin="0.0" spaceabove="0.0" spacebelow="0.0"/><Layout alignment="centred" firstindent="0.0" leftmargin="0.0" linebreak="space" linespacing="0.0" name="_pstyle1" rightmargin="0.0" spaceabove="0.0" spacebelow="0.0"/><Layout alignment="left" bullet="none" firstindent="0.0" leftmargin="0.0" linebreak="space" linespacing="0.0" name="Normal" rightmargin="0.0" spaceabove="0.0" spacebelow="0.0"/><Layout leftmargin="0.0" name="_pstyle19" rightmargin="0.0"/><Layout alignment="centred" firstindent="0.0" leftmargin="0.0" linebreak="space" linespacing="0.0" name="_pstyle18" rightmargin="0.0" spaceabove="0.0" spacebelow="0.0"/><Layout alignment="left" firstindent="0.0" leftmargin="0.0" linebreak="space" linespacing="0.0" name="_pstyle17" rightmargin="0.0" spaceabove="0.0" spacebelow="0.0"/><Layout alignment="centred" firstindent="0.0" leftmargin="0.0" linebreak="space" linespacing="0.0" name="_pstyle16" rightmargin="0.0" spaceabove="0.0" spacebelow="0.0"/><Layout leftmargin="0.0" name="_pstyle15" rightmargin="0.0"/><Layout alignment="left" firstindent="0.0" leftmargin="0.0" linebreak="space" linespacing="0.0" name="_pstyle14" rightmargin="0.0" spaceabove="0.0" spacebelow="0.0"/><Layout alignment="left" firstindent="0.0" leftmargin="0.0" linebreak="space" linespacing="0.0" name="_pstyle13" rightmargin="0.0" spaceabove="8.0" spacebelow="2.0"/><Layout alignment="left" firstindent="0.0" leftmargin="0.0" linebreak="space" linespacing="0.0" name="_pstyle11" rightmargin="0.0" spaceabove="8.0" spacebelow="2.0"/><Font background="[0,0,0]" bold="true" executable="false" family="Times New Roman" name="_cstyle326" readonly="false" underline="false"/><Font background="[0,0,0]" bold="true" executable="false" family="Times New Roman" name="_cstyle325" readonly="false" underline="false"/><Font background="[0,0,0]" bold="true" executable="false" family="Times New Roman" name="_cstyle324" readonly="false" underline="false"/><Font background="[0,0,0]" bold="true" executable="false" family="Times New Roman" name="_cstyle323" readonly="false" underline="false"/><Font background="[0,0,0]" executable="false" name="_pstyle19" readonly="false"/><Font background="[0,0,0]" bold="true" executable="false" family="Times New Roman" name="_cstyle322" readonly="false" underline="false"/><Font background="[0,0,0]" bold="true" executable="false" family="Times New Roman" name="_cstyle321" readonly="false" underline="false"/><Font background="[0,0,0]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" name="_pstyle17" readonly="false" size="12" underline="false"/><Font background="[0,0,0]" bold="true" executable="false" family="Times New Roman" name="_cstyle320" readonly="false" underline="false"/><Font background="[0,0,0]" bold="true" executable="true" family="Monospaced" foreground="[255,0,0]" name="Maple Input" readonly="false"/><Font background="[0,0,0]" executable="false" family="Times New Roman" name="Page Number" readonly="false" underline="false"/><Font background="[0,0,0]" bold="true" executable="false" family="Times New Roman" name="_cstyle319" readonly="false" underline="false"/><Font background="[0,0,0]" bold="true" executable="false" family="Times New Roman" name="_cstyle318" readonly="false" underline="false"/><Font background="[0,0,0]" bold="true" executable="false" family="Times New Roman" name="_cstyle313" readonly="false" underline="false"/><Font background="[0,0,0]" bold="true" executable="false" family="Times New Roman" name="_cstyle356" readonly="false" underline="false"/><Font background="[0,0,0]" bold="true" executable="false" family="Times New Roman" name="_cstyle355" readonly="false" underline="false"/><Font background="[0,0,0]" bold="true" executable="false" family="Times New Roman" name="_cstyle354" readonly="false" underline="false"/><Font background="[0,0,0]" executable="false" family="Times New Roman" name="2D Math" readonly="false" underline="false"/><Font background="[0,0,0]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" name="_cstyle27" readonly="false" size="12" underline="false"/><Font background="[0,0,0]" executable="false" foreground="[0,128,128]" italic="false" name="Hyperlink" readonly="false" underline="true"/><Font background="[0,0,0]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="true" name="_cstyle26" 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="_cstyle25" readonly="false" size="12" underline="false"/><Font background="[0,0,0]" bold="false" executable="false" family="Times New Roman" foreground="[255,0,0]" italic="false" name="_cstyle24" readonly="false" size="12" underline="false"/><Font background="[0,0,0]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="true" name="_cstyle23" 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="_cstyle22" 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="ParagraphStyle2" readonly="false" size="14" underline="false"/><Font background="[0,0,0]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" name="ParagraphStyle1" 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="_cstyle21" readonly="false" size="12" underline="false"/><Font background="[0,0,0]" bold="true" executable="true" family="Monospaced" foreground="[255,0,0]" name="_cstyle20" readonly="false"/><Font background="[0,0,0]" bold="true" executable="false" family="Times New Roman" name="_cstyle349" readonly="false" underline="false"/><Font background="[0,0,0]" executable="false" foreground="[0,128,128]" italic="false" name="_cstyle19" readonly="false" underline="true"/><Font background="[0,0,0]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="true" name="_cstyle18" readonly="false" size="12" underline="false"/><Font background="[0,0,0]" bold="false" executable="false" family="Verdana" foreground="[0,0,0]" italic="false" name="_cstyle17" readonly="false" size="12" underline="false"/><Font background="[0,0,0]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="true" name="_cstyle16" 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="_cstyle15" 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="_cstyle14" readonly="false" size="14" underline="false"/><Font background="[0,0,0]" bold="true" executable="false" family="Times New Roman" foreground="[0,128,128]" italic="false" name="_cstyle13" readonly="false" size="14" underline="true"/><Font background="[0,0,0]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" name="_cstyle12" readonly="false" size="14" underline="false"/><Font background="[0,0,0]" bold="true" executable="true" family="Monospaced" foreground="[255,0,0]" name="_pstyle4" readonly="false"/><Font background="[0,0,0]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" name="_cstyle11" 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="_cstyle10" readonly="false" size="14" underline="false"/><Font background="[0,0,0]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" name="_pstyle2" 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="_pstyle1" 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="_cstyle9" readonly="false" size="14" underline="false"/><Font background="[0,0,0]" executable="false" family="Times New Roman" name="2D Comment" readonly="false" underline="false"/><Font background="[0,0,0]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="true" name="_cstyle8" 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="_cstyle7" 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="_cstyle6" readonly="false" size="14" underline="false"/><Font background="[0,0,0]" bold="true" executable="true" family="Monospaced" foreground="[255,0,0]" italic="false" name="_cstyle5" 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="_cstyle4" 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="_cstyle3" readonly="false" size="18" underline="false"/><Font background="[0,0,0]" bold="false" executable="false" family="Times New Roman" foreground="[0,128,128]" italic="false" name="_cstyle2" readonly="false" size="12" underline="true"/><Font background="[0,0,0]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" name="_cstyle1" readonly="false" size="12" 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="_pstyle1" style="_pstyle1"/><Text-field layout="_pstyle1" style="_cstyle1">ORDINARY DIFFERENTIAL EQUATIONS POWERTOOL</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle1" style="_cstyle1">Lesson 11 -- First-Order Linear Systems</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle3" style="_cstyle2"><Hyperlink hyperlink="true" linktarget="http://www.math.sc.edu/~meade/" style="_cstyle2">Prof. Douglas B. Meade</Hyperlink></Text-field><Text-field layout="_pstyle3" style="_cstyle2"><Hyperlink hyperlink="true" linktarget="http://www.math.sc.edu/~IMI/" style="_cstyle2">Industrial Mathematics Institute</Hyperlink></Text-field><Text-field layout="_pstyle3" style="_cstyle2"><Hyperlink hyperlink="true" linktarget="http://www.math.sc.edu/" style="_cstyle2">Department of Mathematics</Hyperlink></Text-field><Text-field layout="_pstyle3" style="_cstyle2"><Hyperlink hyperlink="true" linktarget="http://www.sc.edu/" style="_cstyle2">University of South Carolina</Hyperlink></Text-field><Text-field layout="_pstyle1" style="_cstyle1">Columbia, SC 29208
</Text-field><Text-field layout="_pstyle1" style="ParagraphStyle1"><Font style="_cstyle1">URL:   </Font><Hyperlink hyperlink="true" linktarget="http://www.math.sc.edu/~meade/" style="_cstyle2">http://www.math.sc.edu/~meade/</Hyperlink></Text-field><Text-field layout="_pstyle1" style="_cstyle1">E-mail:  <Hyperlink bold="false" family="Times New Roman" hyperlink="true" linktarget="mailto:meade@math.sc.edu" size="12" style="Hyperlink">meade@math.sc.edu</Hyperlink> 
</Text-field><Text-field layout="_pstyle1" style="_cstyle1"><Font encoding="ISO8859-1">Copyright \251  2001  by Douglas B. Meade</Font></Text-field><Text-field layout="_pstyle1" style="_cstyle1">All rights reserved</Text-field><Text-field layout="_pstyle1" style="_pstyle1"/><Text-field layout="_pstyle1" style="_cstyle1">-------------------------------------------------------------------</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Section collapsed="true"><Title><Text-field layout="_pstyle5" style="_cstyle3">Outline of Lesson 11</Text-field></Title><Group><Input><Text-field layout="_pstyle7" style="ParagraphStyle1"><Hyperlink hyperlink="true" linktarget="Wks:#11.A" style="_cstyle2">11.A</Hyperlink><Font style="_cstyle4"> Equilibrium Analysis</Font></Text-field><Text-field layout="_pstyle7" style="ParagraphStyle1"><Font style="_cstyle4">                 </Font><Hyperlink hyperlink="true" linktarget="Wks:#11.A-1" style="_cstyle2">11.A-1</Hyperlink><Font style="_cstyle4"> Nullclines</Font></Text-field><Text-field layout="_pstyle7" style="ParagraphStyle1"><Font style="_cstyle4">                 </Font><Hyperlink hyperlink="true" linktarget="Wks:#11.A-2" style="_cstyle2">11.A-2</Hyperlink><Font style="_cstyle4"> Equilibrium Solutions</Font></Text-field><Text-field layout="_pstyle7" style="ParagraphStyle1"><Hyperlink hyperlink="true" linktarget="Wks:#11.B" style="_cstyle2">11.B</Hyperlink><Font style="_cstyle4"> Graphical Analysis</Font></Text-field><Text-field layout="_pstyle7" style="ParagraphStyle1"><Font style="_cstyle4">                 </Font><Hyperlink hyperlink="true" linktarget="Wks:#11.B-1" style="_cstyle2">11.B-1</Hyperlink><Font style="_cstyle4"> Direction Fields</Font></Text-field><Text-field layout="_pstyle7" style="ParagraphStyle1"><Font style="_cstyle4">                 </Font><Hyperlink hyperlink="true" linktarget="Wks:#11.B-2" style="_cstyle2">11.B-2</Hyperlink><Font style="_cstyle4"> Phase Portraits</Font></Text-field><Text-field layout="_pstyle7" style="ParagraphStyle1"><Font style="_cstyle4">                 </Font><Hyperlink hyperlink="true" linktarget="Wks:#11.B-3" style="_cstyle2">11.B-3</Hyperlink><Font style="_cstyle4"> Solution Curves</Font></Text-field><Text-field layout="_pstyle7" style="ParagraphStyle1"><Hyperlink hyperlink="true" linktarget="Wks:#11.C" style="_cstyle2">11.C</Hyperlink><Font style="_cstyle4"> Analytic Solutions</Font></Text-field><Text-field layout="_pstyle7" style="ParagraphStyle1"><Font style="_cstyle4">                 </Font><Hyperlink hyperlink="true" linktarget="Wks:#11.C-1" style="_cstyle2">11.C-1</Hyperlink><Font style="_cstyle4"> One-Step Solutions using </Font><Hyperlink hyperlink="true" linktarget="Help:dsolve" style="_cstyle2">dsolve</Hyperlink><Font style="_cstyle4"> </Font></Text-field><Text-field layout="_pstyle7" style="ParagraphStyle1"><Font style="_cstyle4">                 </Font><Hyperlink hyperlink="true" linktarget="Wks:#11.C-2" style="_cstyle2">11.C-2</Hyperlink><Font style="_cstyle4"> Eigenvalue Analysis</Font></Text-field><Text-field layout="_pstyle7" style="ParagraphStyle1"><Font style="_cstyle4">                                    </Font><Hyperlink hyperlink="true" linktarget="Wks:#Example 1" style="_cstyle2">Example 1</Hyperlink><Font style="_cstyle4"> Real and Distinct Eigenvalues</Font></Text-field><Text-field layout="_pstyle7" style="ParagraphStyle1"><Font style="_cstyle4">                                    </Font><Hyperlink hyperlink="true" linktarget="Wks:#Example 2" style="_cstyle2">Example 2</Hyperlink><Font style="_cstyle4"> Complex Eigenvalues</Font></Text-field><Text-field layout="_pstyle7" style="ParagraphStyle1"><Font style="_cstyle4">                                    </Font><Hyperlink hyperlink="true" linktarget="Wks:#Example 3" style="_cstyle2">Example 3</Hyperlink><Font style="_cstyle4"> Repeated Eigenvalues</Font></Text-field><Text-field layout="_pstyle7" style="ParagraphStyle1"><Hyperlink hyperlink="true" linktarget="Wks:#11.D" style="_cstyle2">11.D</Hyperlink><Font style="_cstyle4"> Numerical Solutions</Font></Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group></Section><Section collapsed="true"><Title><Text-field layout="_pstyle5" style="_cstyle3">Initialization</Text-field></Title><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">restart;</Text-field><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">with( DEtools ):</Text-field><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">with( plots ):</Text-field><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">with( LinearAlgebra ):</Text-field><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">with( student ):</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group></Section><Section collapsed="true"><Title><Text-field bookmark="11.A" layout="_pstyle5" style="_cstyle3">11.A Equilibrium Analysis</Text-field></Title><Section collapsed="true"><Title><Text-field bookmark="11.A-1" layout="_pstyle8" style="_cstyle6">11.A-1 Nullclines</Text-field></Title><Group><Input><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">In the </Font><Equation input-equation="xy;" style="2D Comment">NiMlI3h5Rw==</Equation><Font style="_cstyle7">-plane, an </Font><Font style="_cstyle8">isocline</Font><Font style="_cstyle7"> for the differential equation </Font><Equation input-equation="dy/dx = f(x,y);" style="2D Comment">NiMvKiYlI2R5RyIiIiUjZHhHISIiLSUiZkc2JCUieEclInlH</Equation><Font style="_cstyle7"> is a curve along which </Font><Equation input-equation="dy/dx;" style="2D Comment">NiMqJiUjZHlHIiIiJSNkeEchIiI=</Equation><Font style="_cstyle7"> has a constant value.  Thus, an isocline is a level curve of the function </Font><Equation input-equation="f(x,y);" style="2D Comment">NiMtJSJmRzYkJSJ4RyUieUc=</Equation><Font style="_cstyle7">.</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">If the contstant value of </Font><Equation input-equation="f(x,y);" style="2D Comment">NiMtJSJmRzYkJSJ4RyUieUc=</Equation><Font style="_cstyle7"> on the isocline is zero, then the isocline is called a </Font><Font style="_cstyle8">nullcline</Font><Font style="_cstyle7">.</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">A </Font><Font style="_cstyle8">nullcline</Font><Font style="_cstyle7"> for a two-dimensional first-order system of differential equations is a curve along which at least one of the dependent variables (</Font><Equation input-equation="x;" style="2D Comment">NiMlInhH</Equation><Font style="_cstyle7"> or </Font><Equation input-equation="y;" style="2D Comment">NiMlInlH</Equation><Font style="_cstyle7">) does not change, i.e., where </Font><Equation input-equation="dx/dt = 0;" style="2D Comment">NiMvKiYlI2R4RyIiIiUjZHRHISIiIiIh</Equation><Font style="_cstyle7"> or </Font><Equation input-equation="dy/dt = 0;" style="2D Comment">NiMvKiYlI2R5RyIiIiUjZHRHISIiIiIh</Equation><Font style="_cstyle7">.</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle2" style="_cstyle7">The nullclines for the system</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle1" style="ParagraphStyle1"><Equation input-equation="dx/dt = F(x,y);" style="2D Comment">NiMvKiYlI2R4RyIiIiUjZHRHISIiLSUiRkc2JCUieEclInlH</Equation><Font style="_cstyle1"> </Font></Text-field><Text-field layout="_pstyle1" style="ParagraphStyle1"><Equation input-equation="dy/dt = G(x,y);" style="2D Comment">NiMvKiYlI2R5RyIiIiUjZHRHISIiLSUiR0c2JCUieEclInlH</Equation><Font style="_cstyle1"> </Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">are found by graphing the curves </Font><Equation input-equation="y(x);" style="2D Comment">NiMtJSJ5RzYjJSJ4Rw==</Equation><Font style="_cstyle7"> defined implicitly by the equations </Font><Equation input-equation="F(x,y) = 0;" style="2D Comment">NiMvLSUiRkc2JCUieEclInlHIiIh</Equation><Font style="_cstyle7"> and </Font><Equation input-equation="G(x,y) = 0;" style="2D Comment">NiMvLSUiR0c2JCUieEclInlHIiIh</Equation><Font style="_cstyle7">.  While it can be difficult to give a general description of the nullclines for a general nonlinear system, the nullclines for a </Font><Font style="_cstyle8">linear</Font><Font style="_cstyle7"> system are always straight lines that intersect at an equilibrium solution.</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle2" style="_cstyle7">Consider the general first-order linear system with constant coefficients, namely,</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle1" style="ParagraphStyle1"><Equation input-equation="dx/dt = a*x(t)+b*y(t)+f;" style="2D Comment">NiMvKiYlI2R4RyIiIiUjZHRHISIiLCgqJiUiYUdGJi0lInhHNiMlInRHRiZGJiomJSJiR0YmLSUieUdGLkYmRiYlImZHRiY=</Equation><Font style="_cstyle1"> </Font></Text-field><Text-field layout="_pstyle1" style="ParagraphStyle1"><Equation input-equation="dy/dt = c*x(t)+d*y(t)+g;" style="2D Comment">NiMvKiYlI2R5RyIiIiUjZHRHISIiLCgqJiUiY0dGJi0lInhHNiMlInRHRiZGJiomJSJkR0YmLSUieUdGLkYmRiYlImdHRiY=</Equation><Font style="_cstyle1"> </Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle2" style="_cstyle7">which are rendered in Maple via</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">ode1 := diff( x(t), t ) = a*x(t) + b*y(t) + f:</Text-field><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">ode2 := diff( y(t), t ) = c*x(t) + d*y(t) + g:</Text-field><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">sys := { ode1, ode2 };</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">The nullclines of the system are the straight lines whose equations are</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">nullcline := eval( sys, { diff(x(t),t)=0, diff(y(t),t)=0, x(t)=x, y(t)=y } );</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">The change from </Font><Equation input-equation="x(t)" style="2D Comment">NiMtJSJ4RzYjJSJ0Rw==</Equation><Font style="_cstyle7"> to </Font><Equation input-equation="x" style="2D Comment">NiMlInhH</Equation><Font style="_cstyle7"> and from </Font><Equation input-equation="y(t)" style="2D Comment">NiMtJSJ5RzYjJSJ0Rw==</Equation><Font style="_cstyle7"> to </Font><Equation input-equation="y" style="2D Comment">NiMlInlH</Equation><Font style="_cstyle7"> is made to simplify the graphical display of the nullclines.</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle2" style="_cstyle7">For a concrete example, select the following values of the coefficients.</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">value_of_constants := {a=1,b=-2,c=3,d=1,f=2,g=1};</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">Then the system is</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">sys1 := eval( sys, value_of_constants );</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">and the nullclines are</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">nullcline1 := eval( sys1, { diff(x(t),t)=0, diff(y(t),t)=0, x(t)=x, y(t)=y } );</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">or, expressing each line in slope-intercept form.</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">map( isolate, nullcline1, y );</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">These nullclines are graphed in Figure 11.1, created from an </Font><Hyperlink hyperlink="true" linktarget="Help:plots,implicitplot" style="_cstyle2">implicitplot</Hyperlink><Font style="_cstyle7"> of each nullcline. (The </Font><Hyperlink hyperlink="true" linktarget="Help:plots,implicitplot" style="_cstyle2">implicitplot</Hyperlink><Font style="_cstyle7"> command is needed to handle cases where the nullcline is a vertical line.)</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">WINDOW := x=-5..5, y=-5..5:</Text-field><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">plot_nullcline := display( map( implicitplot, nullcline1, WINDOW, color=GREEN ) ):</Text-field><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">display(plot_nullcline, title="Figure 11.1");</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group></Section><Section collapsed="true"><Title><Text-field bookmark="11.A-2" layout="_pstyle9" style="_cstyle9">11.A-2 Equilibrium Solutions</Text-field></Title><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">Equilibrium solutions (if they exist) occur at the intersection of nullclines corresponding to each of the differential equations in the system. For a general nonlinear system, special care must be taken to ensure that an intersection point of nullclines is actually an equilibrium solution. Fortunately, for a two-dimensional linear system, any intersection of the nullclines is automatically an equilibrium solution.</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle2" style="_cstyle7">In terms of the example introduced above, namely,</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">sys1;</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">with nullclines</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">nullcline1;</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">the intersection of the nullclines can be approximated from Figure 11.1, the plot of the nullclines. The exact solution is found to be</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">equil_soln := solve( nullcline1, {x,y} );</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">or, expressed as the coordinates of a point,</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">equil_point := eval( [x,y], equil_soln );</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">Graphically, the equilibrium solution is the intersection of the two nullclines, as shown in Figure 11.2.</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">plot_equil := pointplot( equil_point, symbol=CIRCLE, symbolsize=18, color=BLUE ):</Text-field><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">display([plot_nullcline,plot_equil], title="Figure 11.2");</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group></Section></Section><Section collapsed="true"><Title><Text-field bookmark="11.B" layout="_pstyle5" style="_cstyle3">11.B Graphical Analysis</Text-field></Title><Section collapsed="true"><Title><Text-field bookmark="11.B-1" layout="_pstyle8" style="_cstyle6">11.B-1 Direction Fields</Text-field></Title><Group><Input><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">The direction field (see </Font><Hyperlink bold="false" family="Times New Roman" hyperlink="true" linktarget="Wks:Lesson01.mw" size="12" style="Hyperlink">Lesson 1</Hyperlink><Font style="_cstyle7">) can be a source of much information about a system of ODEs, even when an explicit formula for the solution is not known. For starters, the direction field for a system shows the direction in which the solution moves at any point in space.</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle2" style="_cstyle7">Again consider the system </Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">sys1;</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">first seen in </Font><Hyperlink bold="false" family="Times New Roman" hyperlink="true" linktarget="Wks:Lesson11.mw#11.A" size="12" style="Hyperlink">Lesson 11, Section A</Hyperlink><Font style="_cstyle7"> .  The aim here is to construct and study the direction field for this system.</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">Even though this is an autonomous system (recall from </Font><Hyperlink bold="false" family="Times New Roman" hyperlink="true" linktarget="Wks:Lesson01.mw" size="12" style="Hyperlink">Lesson 1</Hyperlink><Font style="_cstyle7"> that the independent variable does not explicitly appear), Maple's </Font><Hyperlink hyperlink="true" linktarget="Help:DEtools,DEplot" style="_cstyle2">DEplot</Hyperlink><Font style="_cstyle7"> command requires an </Font><Font style="_cstyle8">interval</Font><Font style="_cstyle7"> for the independent variable</Font><Equation input-equation="``(t);" style="2D Comment">NiMtJSFHNiMlInRH</Equation><Font style="_cstyle7">.  The specific interval chosen is irrelevant, provided the endpoints are numeric.  Hence, pick the domain</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">DOMAIN := t = 0 .. 1:</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">The direction field for this system appears in Figure 11.3.</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">plot_direction_field := DEplot( sys1, [x(t),y(t)], DOMAIN, WINDOW, arrows = MEDIUM ):</Text-field><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">display(plot_direction_field, title="Figure 11.3");</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">From this picture it is evident that solutions spiral outward from a point in the second quadrant. To see that the center of these spirals is the equilibrium solution, superimpose the plot of the equilibrium solution and the nullclines, as done in Figure 11.4.</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">display( [plot_direction_field, plot_equil, plot_nullcline], title="Figure 11.4" );</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">The nullclines show exactly where the individual components pass through critical points and, hence, where they transition between increasing and decreasing functions (of </Font><Equation input-equation="t" style="2D Comment">NiMlInRH</Equation><Font style="_cstyle7">). In practice, if a computer is not available to create the direction field, the constancy of the sign of the derivative of each component in each region created by the nullclines provides insight into the qualitative behaviour of solutions to a linear, autonomous system of ODEs.</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group></Section><Section collapsed="true"><Title><Text-field bookmark="11.B-2" layout="_pstyle10" style="_cstyle10">11.B-2 Phase Portrait</Text-field></Title><Group><Input><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">A phase portrait for an autonomous system of ODEs displays solutions to the system in "phase space" where solutions </Font><Equation input-equation="x(t);" style="2D Comment">NiMtJSJ4RzYjJSJ0Rw==</Equation><Font style="_cstyle7"> and </Font><Equation input-equation="y(t);" style="2D Comment">NiMtJSJ5RzYjJSJ0Rw==</Equation><Font style="_cstyle7"> are treated as parametric equations for the curve </Font><Equation input-equation="y(x);" style="2D Comment">NiMtJSJ5RzYjJSJ4Rw==</Equation><Font style="_cstyle7">. (See </Font><Hyperlink bold="false" family="Times New Roman" hyperlink="true" linktarget="Wks:Lesson01.mw" size="12" style="Hyperlink">Lesson 1</Hyperlink><Font style="_cstyle7">.)  </Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">To create a phase portrait in Maple, the </Font><Hyperlink hyperlink="true" linktarget="Help:DEtools,DEplot" style="_cstyle2">DEplot</Hyperlink><Font style="_cstyle7"> command is recommended. (The </Font><Hyperlink hyperlink="true" linktarget="Help:DEtools,phaseportrait" style="_cstyle2">phaseportrait</Hyperlink><Font style="_cstyle7"> command, also from the </Font><Hyperlink hyperlink="true" linktarget="Help:DEtools" style="_cstyle2">DEtools</Hyperlink><Font style="_cstyle7"> package, is essentially the same, but there is no reason to learn and remember a new command when simple modifications to </Font><Hyperlink hyperlink="true" linktarget="Help:DEtools,DEplot" style="_cstyle2">DEplot</Hyperlink><Font style="_cstyle7"> suffice.)</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">One solution curve is generated for each initial condition. For a two-dimensional system in </Font><Equation input-equation="x(t);" style="2D Comment">NiMtJSJ4RzYjJSJ0Rw==</Equation><Font style="_cstyle7"> and </Font><Equation input-equation="y(t);" style="2D Comment">NiMtJSJ5RzYjJSJ0Rw==</Equation><Font style="_cstyle7">, each initial condition can be specified either as triples of numbers </Font><Equation input-equation="[ t[0], x(t[0]), y(t[0]) ]" style="2D Comment">NiM3JSYlInRHNiMiIiEtJSJ4RzYjRiQtJSJ5R0Yq</Equation><Font style="_cstyle7"> or as pairs of equations </Font><Equation input-equation="[x(t[0])=x[0], y(t[0])=y[0]]" style="2D Comment">NiM3JC8tJSJ4RzYjJiUidEc2IyIiISZGJkYqLy0lInlHRicmRi9GKg==</Equation><Font style="_cstyle7">. For example, initial conditions at the points with integer coordinates along the axes can be specified as</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">ICy := [0,0,i] $ i=-5..5;</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">for the </Font><Equation input-equation="y;" style="2D Comment">NiMlInlH</Equation><Font style="_cstyle7">-axis,</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">ICx := [x(0)=i,y(0)=0] $ i=-5..5;</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">for the </Font><Equation input-equation="x;" style="2D Comment">NiMlInhH</Equation><Font style="_cstyle7">-axis, and</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">IC := ICx, ICy:</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">as a composit list for both axes.</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">As in the previous uses of </Font><Font style="_cstyle11">DEplot</Font><Font style="_cstyle7">, an interval of values for the independent variable is required. Unlike the use of </Font><Font style="_cstyle11">DEplot</Font><Font style="_cstyle7"> for the creation of direction fields, this argument does have a meaning for phase portraits. The time interval provides limits for the numerical methods used to obtain approximate solutions for each initial condition.</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle2" style="_cstyle7">Using the domain</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">DOMAIN;</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">for the independent variable, the phase portrait for this system and these initial conditions appears in Figure 11.5.</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">DEplot( sys1, [x(t),y(t)], DOMAIN, [ IC ],</Text-field><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">        arrows=NONE, scene=[ x, y ], linecolor=BLUE, title="Figure 11.5" );</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">To restrict the solutions to a pre-determined "window", include a viewing window such as</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">WINDOW;</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">This gives Figure 11.6.</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">plot_phase_portrait := DEplot( sys1, [x(t),y(t)], DOMAIN, [ IC ], WINDOW,</Text-field><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">                               arrows=NONE, scene=[ x, y ], linecolor=BLUE ):</Text-field><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">display(plot_phase_portrait, title="Figure 11.6");</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">A simple change to the </Font><Hyperlink hyperlink="true" linktarget="Help:DEtools,DEplot" style="_cstyle2">arrows=</Hyperlink><Font style="_cstyle7"> option includes the direction field in the phase portrait, as seen in Figure 11.7.</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">DEplot( sys1, [x(t),y(t)], DOMAIN, [ IC ], WINDOW,</Text-field><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">        arrows=SMALL, scene=[ x, y ], linecolor=BLUE, title="Figure 11.7" );</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">In Figure 11.8, this plot is superimposed on the direction field, nullclines, and equilibrium solution.</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">display( [plot_direction_field, plot_nullcline,</Text-field><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">          plot_equil, plot_phase_portrait], title="Figure 11.8" );</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">Even though the the independent variable</Font><Equation input-equation="``(t);" style="2D Comment">NiMtJSFHNiMlInRH</Equation><Font style="_cstyle7"> is not explicitly displayed in a phase portrait, it is implicitly present in that the solution curves are traveled at different speeds. To show the coordination between solutions from different initial conditions, specify the </Font><Hyperlink hyperlink="true" linktarget="Help:DEtools,DEplot" style="_cstyle2">linecolor=</Hyperlink><Font style="_cstyle7"> option with a function or expression that depends on the independent variable. For example, this is done in Figure 11.9.</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">DEplot( sys1, [x(t),y(t)], DOMAIN, [ IC ],</Text-field><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">        arrows=NONE, scene=[ x, y ], linecolor=t, title="Figure 11.9" );
</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">Note that it is not necessary to be too concerned about the specific range of values of the </Font><Hyperlink hyperlink="true" linktarget="Help:DEtools,DEplot" style="_cstyle2">linecolor=</Hyperlink><Font style="_cstyle7"> option; </Font><Hyperlink hyperlink="true" linktarget="Help:DEtools,DEplot" style="_cstyle2">DEplot</Hyperlink><Font style="_cstyle7"> automatically normalizes these values to the interval [0,1].</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle2" style="_cstyle7">Figure 11.9 animates the tracing of the trajectories in the phase portrait.</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">WINDOW2 := x=-20..20, y=-20..20:</Text-field><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">phase_portrait := T -&gt; DEplot( sys1, [x(t),y(t)], t=0..T, [ IC ],</Text-field><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">                               WINDOW2, arrows=SLIM, scene=[ x, y ],</Text-field><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">                               linecolor=BLUE, stepsize=0.1 ):</Text-field><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">display( [ phase_portrait(0.1), seq( phase_portrait(i/4), i=1..10) ], insequence=true, title="Figure 11.9" );</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">Note that to provide a consistent resolution for all solution curves in the animation, the </Font><Hyperlink hyperlink="true" linktarget="Help:DEtools,DEplot" style="_cstyle2">stepsize=</Hyperlink><Font style="_cstyle7"> option has been used.</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group></Section><Section collapsed="true"><Title><Text-field bookmark="11.B-3" layout="_pstyle11" style="_cstyle12">11.B-3 Solution Curves</Text-field></Title><Group><Input><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">For the two-dimensional linear system, a </Font><Font style="_cstyle8">solution</Font><Font style="_cstyle7"> </Font><Font style="_cstyle8">curve</Font><Font style="_cstyle7"> is a plot of one component of the solution as a function of the independent variable and is produced using the </Font><Hyperlink hyperlink="true" linktarget="Help:DEtools,DEplot" style="_cstyle2">DEplot</Hyperlink><Font style="_cstyle7"> command. The only changes to the arguments are removing the specification of the display window size and the </Font><Hyperlink hyperlink="true" linktarget="Help:DEtools,DEplot" style="_cstyle2">arrows=</Hyperlink><Font style="_cstyle7"> argument, and changing the </Font><Hyperlink hyperlink="true" linktarget="Help:DEtools,DEplot" style="_cstyle2">scene=</Hyperlink><Font style="_cstyle7"> argument to specify the component to be plotted.</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle2" style="_cstyle7">For example, when the initial condition is</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">IC := [x(0)=0,y(0)=1];</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">Figure 11.10, containing graphs of the </Font><Equation input-equation="x" style="2D Comment">NiMlInhH</Equation><Font style="_cstyle7">- and </Font><Equation input-equation="y" style="2D Comment">NiMlInlH</Equation><Font style="_cstyle7">-components of the particular solution satisfying this initial condition, is created and displayed with</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">plot_soln_x := DEplot( sys1, [x(t),y(t)], DOMAIN, [ IC ],</Text-field><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">                       scene=[ t, x ], linecolor=black ):</Text-field><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">plot_soln_y := DEplot( sys1, [x(t),y(t)], DOMAIN, [ IC ],</Text-field><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">                       scene=[ t, y ], linecolor=red ):</Text-field><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">display( [ plot_soln_x, plot_soln_y ], labels=[`t`,``], title="Figure 11.10" );</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">If multiple initial conditions are specified as in</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">IC2 := [x(0)=0,y(0)=1], [x(0)=0,y(0)=-1];</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">one solution curve is produced for each initial condition.  The individual plots are created with</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">plot_soln_x2 := DEplot( sys1, [x(t),y(t)], DOMAIN, [ IC2 ],</Text-field><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">                        scene=[ t, x ], linecolor=[BLUE,GREEN] ):</Text-field><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">plot_soln_y2 := DEplot( sys1, [x(t),y(t)], DOMAIN, [ IC2 ],</Text-field><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">                        scene=[ t, y ], linecolor=[BLUE,GREEN] ):</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">and can be displayed together, as in Figure 11.11.</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">display( [ plot_soln_x2, plot_soln_y2 ] , labels=[`t`,``], title="Figure 11.11" );</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">To eliminate some of the clutter from the multiple plots, it is sometimes advantageous to display each pair of solutions in side-by-side plots, as seen in the following figure.</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">display( array([plot_soln_x2,plot_soln_y2]), scaling=constrained );</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">Note how the colors are used to indicate pairs of solutions corresponding to the same initial condition.  The blue curve on the left is the graph of </Font><Equation input-equation="x(t);" style="2D Comment">NiMtJSJ4RzYjJSJ0Rw==</Equation><Font style="_cstyle7"> whereas the blue curve on the right is the graph of </Font><Equation input-equation="y(t);" style="2D Comment">NiMtJSJ5RzYjJSJ0Rw==</Equation><Font style="_cstyle7"> both of which correspond to the first initial condition.  The pair of green curves corresponds to the second initial condition.</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group></Section></Section><Section collapsed="true"><Title><Text-field bookmark="11.C" layout="_pstyle5" style="_cstyle3">11.C Analytic Solutions</Text-field></Title><Section><Title><Text-field bookmark="11.C-1" layout="_pstyle8" style="ParagraphStyle2"><Font style="_cstyle6">11.C-1 One-Step Solutions using </Font><Hyperlink hyperlink="true" linktarget="Help:dsolve" style="_cstyle13">dsolve</Hyperlink></Text-field></Title><Group><Input><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">For a first-order linear system of ODEs, Maple's </Font><Hyperlink hyperlink="true" linktarget="Help:dsolve" style="_cstyle2">dsolve</Hyperlink><Font style="_cstyle7"> command should be able to find the general solution to the system and the particular solution for any initial condition.</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle2" style="_cstyle7">For example, for the system of ODEs</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">sys1;</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">the general solution is</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">gen_soln := dsolve( sys1, {x(t),y(t)} );</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">more easily grasped if written as</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">xt = eval(x(t), gen_soln);
yt = eval(y(t), gen_soln);</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">The solution satisfying an initial condition, say</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">IC;</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">can be found by substituting the initial condition into the general solution, thereby producing the equations</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">q1 := eval( eval( gen_soln, t=0 ), IC );</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">which can then be solved for the constants of integration, namely,</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">q2 := solve( q1, {_C1,_C2} );</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">The corresponding solution of this system of differential equations is</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">part_soln := eval( gen_soln, q2 );</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">again more easily grasped if written as</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">xt = eval(x(t), part_soln);
yt = eval(y(t), part_soln);</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">Alternatively, the solution to the initial value problem</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">IVP := sys1 union convert(IC,set);</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">could be found with the single command</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">ivp_soln := dsolve( IVP, {x(t),y(t)} );</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">While the </Font><Hyperlink hyperlink="true" linktarget="Help:DEtools,odetest" style="_cstyle2">odetest</Hyperlink><Font style="_cstyle7"> command is unable to check solutions for a system of ODEs, it is not difficult to verify that the two solutions presented above are identical.  The equivalence of </Font><Equation input-equation="x(t);" style="2D Comment">NiMtJSJ4RzYjJSJ0Rw==</Equation><Font style="_cstyle7"> is established with</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">q3 := eval( x(t), part_soln ) = eval( x(t), ivp_soln );</Text-field><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">evalb(q3);</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">whereas that of </Font><Equation input-equation="y(t);" style="2D Comment">NiMtJSJ5RzYjJSJ0Rw==</Equation><Font style="_cstyle7"> is established with</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">q4 := eval( y(t), part_soln ) = eval( y(t), ivp_soln );</Text-field><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">evalb(q4);</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">That these solutions satisfy the system of differential equations is established with</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">q5 := simplify( eval( convert(sys1,list), ivp_soln ) );</Text-field><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">map( evalb, q5 );</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">and that they satisfy the initial condition is established with</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">q6 := eval( ivp_soln, t=0 );</Text-field><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">map( evalb, eval( IC, q6 ) );</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group></Section><Section collapsed="true"><Title><Text-field bookmark="11.C-2" layout="_pstyle13" style="_cstyle14">11.C-2 Eigenvalue Analysis</Text-field></Title><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">If the constant-coefficient, first-order linear system of ODEs is written in the matrix form</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle1" style="ParagraphStyle1"><Font style="_cstyle15">X</Font><Font style="_cstyle1">' = </Font><Font style="_cstyle16">A</Font><Font style="_cstyle1"> </Font><Font style="_cstyle15">X</Font><Font style="_cstyle1"> + </Font><Font style="_cstyle15">b</Font><Font style="_cstyle1"> </Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">where </Font><Font style="_cstyle11">X</Font><Font style="_cstyle7"> = </Font><Font style="_cstyle11">X</Font><Font style="_cstyle7">(</Font><Font style="_cstyle8">t</Font><Font style="_cstyle7">) is the vector of unknown functions, </Font><Font style="_cstyle11">X</Font><Font style="_cstyle7">' = </Font><Equation input-equation="d/dt;" style="2D Comment">NiMqJiUiZEciIiIlI2R0RyEiIg==</Equation><Font style="_cstyle7"> </Font><Font style="_cstyle11">X</Font><Font style="_cstyle7"> is the vector of derivatives of the unknown functions, </Font><Equation input-equation="A" style="2D Comment">NiMlIkFH</Equation><Font style="_cstyle7"> is the coefficient matrix, and </Font><Font style="_cstyle11">b</Font><Font style="_cstyle7"> is the non-homogeneous ("forcing") vector, the solution can be constructed from the </Font><Font style="_cstyle8">eigenvalues</Font><Font style="_cstyle7"> and </Font><Font style="_cstyle8">eigenvectors</Font><Font style="_cstyle7"> (</Font><Font style="_cstyle8">eigenpairs</Font><Font style="_cstyle7">) of the matrix </Font><Equation input-equation="A;" style="2D Comment">NiMlIkFH</Equation><Font style="_cstyle7">.  For example, the matrix form of the system</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle1" style="ParagraphStyle1"><Equation input-equation="`x'`(t) = 2*x+3*y;" style="2D Comment">NiMvLSUjeCdHNiMlInRHLCYqJiIiIyIiIiUieEdGK0YrKiYiIiRGKyUieUdGK0Yr</Equation><Font style="_cstyle1"> </Font></Text-field><Text-field layout="_pstyle1" style="ParagraphStyle1"><Equation input-equation="`y'`(t) = 5*x-7*y;" style="2D Comment">NiMvLSUjeSdHNiMlInRHLCYqJiIiJiIiIiUieEdGK0YrKiYiIihGKyUieUdGKyEiIg==</Equation><Font style="_cstyle1"> </Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle2" style="_cstyle7">would be</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle1" style="ParagraphStyle1"><Font style="_cstyle15">X</Font><Font style="_cstyle1">' = </Font><Equation input-equation="MATRIX([[`x'`], [`y'`]]);" style="2D Comment">NiMtJSdNQVRSSVhHNiM3JDcjJSN4J0c3IyUjeSdH</Equation><Font style="_cstyle1"> = </Font><Equation input-equation="MATRIX([[2, 3], [5, -7]]);" style="2D Comment">NiMtJSdNQVRSSVhHNiM3JDckIiIjIiIkNyQiIiYsJCIiKCEiIg==</Equation><Font style="_cstyle1"> </Font><Equation input-equation="MATRIX([[x], [y]]);" style="2D Comment">NiMtJSdNQVRSSVhHNiM3JDcjJSJ4RzcjJSJ5Rw==</Equation><Font style="_cstyle1"> </Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">An eigenpair for a matrix </Font><Equation input-equation="A;" style="2D Comment">NiMlIkFH</Equation><Font style="_cstyle7"> consists of a scalar </Font><Equation input-equation="lambda;" style="2D Comment">NiMlJ2xhbWJkYUc=</Equation><Font style="_cstyle7"> and a direction (expressed by an </Font><Font style="_cstyle8">eigenvector</Font><Font style="_cstyle7"> </Font><Font style="_cstyle11">V</Font><Font style="_cstyle7">) satisfying the defining equation</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle1" style="ParagraphStyle1"><Font style="_cstyle1">A </Font><Font style="_cstyle15">V</Font><Font style="_cstyle1"> = </Font><Equation input-equation="lambda;" style="2D Comment">NiMlJ2xhbWJkYUc=</Equation><Font style="_cstyle1"> </Font><Font style="_cstyle15">V</Font><Font style="_cstyle1"> </Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">Thus, the eigenvector represents a direction that is invariant under multiplication by the matrix </Font><Equation input-equation="A;" style="2D Comment">NiMlIkFH</Equation><Font style="_cstyle7">.  At most, a vector in this direction has its length changed by the scale factor </Font><Equation input-equation="lambda;" style="2D Comment">NiMlJ2xhbWJkYUc=</Equation><Font style="_cstyle7">, called the </Font><Font style="_cstyle8">eigenvalue</Font><Font style="_cstyle7">.</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle2" style="_cstyle7">If this defining equation is rewritten in the form</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle1" style="ParagraphStyle1"><Equation input-equation="``(A-lambda*I);" style="2D Comment">NiMtJSFHNiMsJiUiQUciIiIqJiUnbGFtYmRhR0YoJSJJR0YoISIi</Equation><Font style="_cstyle1"> </Font><Font style="_cstyle15">V</Font><Font style="_cstyle1"> = </Font><Font style="_cstyle15">0</Font><Font style="_cstyle1"> </Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">where </Font><Equation input-equation="I;" style="2D Comment">NiMlIklH</Equation><Font style="_cstyle7"> is the 2 </Font><Font style="_cstyle17">x</Font><Font style="_cstyle7"> 2 identity matrix </Font><Equation input-equation="MATRIX([[1, 0], [0, 1]]);" style="2D Comment">NiMtJSdNQVRSSVhHNiM3JDckIiIiIiIhNyRGKUYo</Equation><Font style="_cstyle7"> ,  then the eigenvalues are found as the roots of the </Font><Font style="_cstyle8">characteristic</Font><Font style="_cstyle7"> </Font><Font style="_cstyle8">equation</Font><Font style="_cstyle7">, that is, the equation </Font><Equation input-equation="det(A-lambda*I) = 0;" style="2D Comment">NiMvLSUkZGV0RzYjLCYlIkFHIiIiKiYlJ2xhbWJkYUdGKSUiSUdGKSEiIiIiIQ==</Equation><Font style="_cstyle7">.</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">If the eigenpairs are (</Font><Equation input-equation="lambda[1];" style="2D Comment">NiMmJSdsYW1iZGFHNiMiIiI=</Equation><Font style="_cstyle7">, V1) and (</Font><Equation input-equation="lambda[2];" style="2D Comment">NiMmJSdsYW1iZGFHNiMiIiM=</Equation><Font style="_cstyle7">, V2), then the general solution of the system is given by the sum</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle1" style="ParagraphStyle1"><Equation input-equation="X[g];" style="_cstyle318">NiMmJSJYRzYjJSJnRw==</Equation><Font style="_cstyle1"> = </Font><Equation input-equation="c[1]*exp(lambda[1]*t);" style="2D Comment">NiMqJiYlImNHNiMiIiJGJy0lJGV4cEc2IyomJiUnbGFtYmRhR0YmRiclInRHRidGJw==</Equation><Font style="_cstyle1"> </Font><Font style="_cstyle15">V1</Font><Font style="_cstyle1"> + </Font><Equation input-equation="c[2]*exp(lambda[2]*t);" style="2D Comment">NiMqJiYlImNHNiMiIiMiIiItJSRleHBHNiMqJiYlJ2xhbWJkYUdGJkYoJSJ0R0YoRig=</Equation><Font style="_cstyle1"> </Font><Font style="_cstyle15">V2</Font><Font style="_cstyle1"> </Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">where </Font><Equation input-equation="c[k],k = 1,2;" style="2D Comment">NiUmJSJjRzYjJSJrRy9GJiIiIiIiIw==</Equation><Font style="_cstyle7">, are arbitrary constants.</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">The examples below detail how the solution of the linear system can be constructed from the eigenpairs of the system matrix </Font><Equation input-equation="A;" style="2D Comment">NiMlIkFH</Equation><Font style="_cstyle7">.</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Section collapsed="true"><Title><Text-field bookmark="Example 1" layout="_pstyle14" style="_cstyle18">Example 1: Real and Distinct Eigenvalues</Text-field></Title><Group><Input><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle2" style="_cstyle7">Consider the system of ODEs</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">sys2 := [ diff( x(t), t ) = x(t) + y(t), diff( y(t), t ) = x(t) + y(t) ];</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">Let the vector of unknown functions be</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">X := &lt; x(t), y(t) &gt;;</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">The coefficient matrix </Font><Equation input-equation="A" style="2D Comment">NiMlIkFH</Equation><Font style="_cstyle7">, and forcing vector </Font><Font style="_cstyle11">b</Font><Font style="_cstyle7"> can be extracted via the </Font><Hyperlink hyperlink="true" linktarget="Help:LinearAlgebra,GenerateMatrix" style="_cstyle2">GenerateMatrix</Hyperlink><Font style="_cstyle7"> command from the </Font><Hyperlink hyperlink="true" linktarget="Help:LinearAlgebra" style="_cstyle2">LinearAlgebra</Hyperlink><Font style="_cstyle7"> package:</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">(Aneg,b) := GenerateMatrix( eval(sys2,[x(t)=_x,y(t)=_y]), [_x,_y] ):</Text-field><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">A := -Aneg;</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">Thus, the system can be expressed in vector form as</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">map(diff, X, t ) = A.X + b;</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">The general solution to this system of ODEs is</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">gen_soln := dsolve( sys2, {x(t),y(t)} );</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">which, when written in vector form</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">X_soln := eval( X, gen_soln );</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">and separated into terms involving at most one of the two constants of integration, can be written as</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">X1 := map( coeff, X_soln, _C1 ):</Text-field><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">X2 := map( coeff, X_soln, _C2 ):</Text-field><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">Xp := eval( X_soln, [_C1=0,_C2=0] ):</Text-field><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">X = _C1 * X1 + _C2 * X2 + Xp;</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">The two vectors </Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">V1 := X1;
V2 := eval(X2, t=0);</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">are the eigenvectors corresponding, respectively, to the eigenvalues</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">lambda[1] = 0;
lambda[2] = 2;</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">The eigenvalues are the roots of the characteristic equation</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">CharacteristicPolynomial(A,lambda) = 0;</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">which is Maple's built-in command for obtaining the equivalent of the equation </Font><Equation input-equation="det(A-lambda*I) = 0" style="2D Comment">NiMvLSUkZGV0RzYjLCYlIkFHIiIiKiYlJ2xhbWJkYUdGKSUiSUdGKSEiIiIiIQ==</Equation><Font style="_cstyle7">.</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle2" style="_cstyle7">That each eigenpair satisfied an equation of the form </Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle1" style="ParagraphStyle1"><Font style="_cstyle1">A </Font><Font style="_cstyle15">V</Font><Font style="_cstyle1"> = </Font><Equation input-equation="lambda;" style="2D Comment">NiMlJ2xhbWJkYUc=</Equation><Font style="_cstyle1"> </Font><Font style="_cstyle15">V</Font><Font style="_cstyle1"> </Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle2" style="_cstyle7">is established with the following computations:</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle1" style="ParagraphStyle1"><Font style="_cstyle16">A</Font><Font style="_cstyle1"> </Font><Font style="_cstyle15">V1</Font><Font style="_cstyle1"> = </Font><Equation input-equation="MATRIX([[1, 1], [1, 1]]);" style="2D Comment">NiMtJSdNQVRSSVhHNiM3JDckIiIiRihGJw==</Equation><Font style="_cstyle1"> </Font><Equation input-equation="MATRIX([[1], [-1]]);" style="2D Comment">NiMtJSdNQVRSSVhHNiM3JDcjIiIiNyMsJEYoISIi</Equation><Font style="_cstyle1"> = </Font><Equation input-equation="MATRIX([[0], [0]]);" style="2D Comment">NiMtJSdNQVRSSVhHNiM3JDcjIiIhRic=</Equation><Font style="_cstyle1"> = </Font><Equation input-equation="lambda[1];" style="2D Comment">NiMmJSdsYW1iZGFHNiMiIiI=</Equation><Font style="_cstyle1"> </Font><Font style="_cstyle15">V1</Font><Font style="_cstyle1"> = 0 </Font><Equation input-equation="MATRIX([[1], [-1]])" style="2D Comment">NiMtJSdNQVRSSVhHNiM3JDcjIiIiNyMsJEYoISIi</Equation><Font style="_cstyle1"> = </Font><Equation input-equation="MATRIX([[0], [0]]);" style="2D Comment">NiMtJSdNQVRSSVhHNiM3JDcjIiIhRic=</Equation><Font style="_cstyle1">   </Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle1" style="ParagraphStyle1"><Font style="_cstyle16">A</Font><Font style="_cstyle1"> </Font><Font style="_cstyle15">V2</Font><Font style="_cstyle1"> = </Font><Equation input-equation="MATRIX([[1, 1], [1, 1]]);" style="2D Comment">NiMtJSdNQVRSSVhHNiM3JDckIiIiRihGJw==</Equation><Font style="_cstyle1"> </Font><Equation input-equation="MATRIX([[1], [1]]);" style="2D Comment">NiMtJSdNQVRSSVhHNiM3JDcjIiIiRic=</Equation><Font style="_cstyle1"> = </Font><Equation input-equation="MATRIX([[2], [2]]);" style="2D Comment">NiMtJSdNQVRSSVhHNiM3JDcjIiIjRic=</Equation><Font style="_cstyle1"> = </Font><Equation input-equation="lambda[2];" style="2D Comment">NiMmJSdsYW1iZGFHNiMiIiM=</Equation><Font style="_cstyle1"> </Font><Font style="_cstyle15">V2</Font><Font style="_cstyle1"> = 2 </Font><Equation input-equation="MATRIX([[1], [1]]);" style="2D Comment">NiMtJSdNQVRSSVhHNiM3JDcjIiIiRic=</Equation><Font style="_cstyle1"> = </Font><Equation input-equation="MATRIX([[2], [2]]);" style="2D Comment">NiMtJSdNQVRSSVhHNiM3JDcjIiIjRic=</Equation><Font style="_cstyle1">  </Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">The eigenpairs of a 2 </Font><Font style="_cstyle17">x</Font><Font style="_cstyle7"> 2 matrix can generally be found by manual computation.  However, the calculations can become tedious, and are often prone to arithmetic errors.  Instead, we will rely on Maple's </Font><Hyperlink bold="false" family="Times New Roman" hyperlink="true" linktarget="Help:LinearAlgebra,Eigenvectors" size="12" style="_cstyle19">Eigenvectors</Hyperlink><Font style="_cstyle7"> command, the output of which must be carefully deconstructed to extract the eigenvalues and eigenvectors.</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle2" style="_cstyle7">Application of that command here yields</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">L,V := Eigenvectors(A);</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">Observe that this assignment creates both a vector containing the eigenvalues and the corresponding matrix of eigenvectors.  It is not difficult to extract the eigenvalues (</Font><Equation input-equation="lambda[i]" style="2D Comment">NiMmJSdsYW1iZGFHNiMlImlH</Equation><Font style="_cstyle7">) and corresponding eigenvectors (</Font><Equation input-equation="E[i]" style="_cstyle313">NiMmJSJFRzYjJSJpRw==</Equation><Font style="_cstyle7">).  These eigenpairs, as well as the eigensolutions </Font><Equation input-equation="exp(lambda[i]*t);" style="2D Comment">NiMtJSRleHBHNiMqJiYlJ2xhbWJkYUc2IyUiaUciIiIlInRHRis=</Equation><Font style="_cstyle7"> </Font><Equation input-equation="E[i];" style="_cstyle319">NiMmJSJFRzYjJSJpRw==</Equation><Font style="_cstyle7">, are obtained and printed via</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle20">for i from 1 to Dimension(L) do</Text-field><Text-field layout="_pstyle15" prompt="&gt; " style="Maple Input">  e_val[i] := L[i];</Text-field><Text-field layout="_pstyle15" prompt="&gt; " style="Maple Input">  e_vec[i] := Column(V,i);</Text-field><Text-field layout="_pstyle15" prompt="&gt; " style="Maple Input">  e_sol[i] := exp( e_val[i]*t ) * e_vec[i];</Text-field><Text-field layout="_pstyle15" prompt="&gt; " style="Maple Input">  print( lambda[i]=e_val[i], E[i]=e_vec[i], XX[i] = e_sol[i] );</Text-field><Text-field layout="_pstyle15" prompt="&gt; " style="Maple Input">end do:</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">Note that the vectors </Font><Equation input-equation="XX[1]" style="_cstyle320">NiMmJSNYWEc2IyIiIg==</Equation><Font style="_cstyle7"> and </Font><Equation input-equation="XX[2]" style="_cstyle321">NiMmJSNYWEc2IyIiIw==</Equation><Font style="_cstyle7"> are the basis vectors for the linear combination that is the general solution of this homogeneous system.</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group></Section><Section collapsed="true"><Title><Text-field bookmark="Example 2" layout="_pstyle14" style="_cstyle18">Example 2: Complex Eigenvalues</Text-field></Title><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">Returning to the system introduced at the beginning of this lesson, namely,</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">EQ1 := select(has,sys1,diff(x(t),t))[1]:
EQ2 := select(has,sys1,diff(y(t),t))[1]:
Sys1 := [EQ1,EQ2];</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">recall that this system is non-homogeneous. In fact, the coefficient matrix and forcing term are</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">(Aneg,b) := GenerateMatrix( eval(Sys1,[x(t)=_x,y(t)=_y]), [_x,_y] ):</Text-field><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">A := -Aneg;</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">As seen previously, the general solution of this system is</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">gen_soln := dsolve( sys1, {x(t),y(t)} );</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">which, when written in vector form and factored, appears as</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">X_soln := eval( X, gen_soln );</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">Since this system is non-homogeneous, the particular solution is non-trivial. In this case, one particular solution is</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">Xp := eval( X_soln, [_C1=0,_C2=0] );</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">and a basis for the solution of the corresponding homogeneous system is</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">X1 := map( coeff, X_soln, _C1 );</Text-field><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">X2 := map( coeff, X_soln, _C2 );</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">This leads to the following vector form for the general solution of this system</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">evalm(X) = _C1 * evalm(X1) + _C2 * evalm(X2) + evalm(Xp);</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">To understand the relationship between the general solution and the eigenvalue decomposition of the coefficient matrix, consider</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">L,V := Eigenvectors( A );</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">The eigenvalues, and hence the eigenvalues, appear in complex conjugate pairs.  These complex conjugate eigenpairs and the products </Font><Equation input-equation="exp(lambda[i]*t);" style="2D Comment">NiMtJSRleHBHNiMqJiYlJ2xhbWJkYUc2IyUiaUciIiIlInRHRis=</Equation><Font style="_cstyle7"> </Font><Equation input-equation="E[i];" style="_cstyle322">NiMmJSJFRzYjJSJpRw==</Equation><Font style="_cstyle7"> are</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">for i from 1 to Dimension(L) do</Text-field><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">  e_val[i] := L[i];</Text-field><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">  e_vec[i] := Column(V,i);</Text-field><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">  e_sol[i] := exp( e_val[i]*t ) * e_vec[i];</Text-field><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">  print( lambda[i]=e_val[i], E[i]=e_vec[i], XX[i]=e_sol[i] );</Text-field><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">od:</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">The vectors </Font><Equation input-equation="XX[1]" style="_cstyle323">NiMmJSNYWEc2IyIiIg==</Equation><Font style="_cstyle7"> and </Font><Equation input-equation="XX[2]" style="_cstyle324">NiMmJSNYWEc2IyIiIw==</Equation><Font style="_cstyle7"> are solutions to the system of ODEs, but they are complex-valued. Real-valued solutions, such as the ones returned by </Font><Hyperlink hyperlink="true" linktarget="Help:dsolve" style="_cstyle2">dsolve</Hyperlink><Font style="_cstyle7">, would be more useful.</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">By Euler's formula, if </Font><Equation input-equation="alpha" style="2D Comment">NiMlJmFscGhhRw==</Equation><Font style="_cstyle7"> and </Font><Equation input-equation="beta" style="2D Comment">NiMlJWJldGFH</Equation><Font style="_cstyle7"> are real numbers, then </Font></Text-field><Text-field layout="_pstyle1" style="ParagraphStyle1"><Font style="_cstyle1">  </Font><Equation input-equation="exp(alpha+beta*I) = exp(alpha)*(cos(beta)+I*sin(beta))" style="2D Comment">NiMvLSUkZXhwRzYjLCYlJmFscGhhRyIiIiomJSViZXRhR0YpJSJJR0YpRikqJi1GJTYjRihGKSwmLSUkY29zRzYjRitGKSomRixGKS0lJHNpbkdGM0YpRilGKQ==</Equation></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">This is how the complex exponentials in </Font><Equation input-equation="XX[1];" style="_cstyle325">NiMmJSNYWEc2IyIiIg==</Equation><Font style="_cstyle7"> and </Font><Equation input-equation="XX[2];" style="_cstyle326">NiMmJSNYWEc2IyIiIw==</Equation><Font style="_cstyle7"> can be simplified.  However, note that the sum and difference of the complex-conjugate pair</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle1" style="ParagraphStyle1"><Equation input-equation="z[1] = a+b*i;" style="2D Comment">NiMvJiUiekc2IyIiIiwmJSJhR0YnKiYlImJHRiclImlHRidGJw==</Equation><Font style="_cstyle1"> </Font></Text-field><Text-field layout="_pstyle1" style="ParagraphStyle1"><Equation input-equation="z[2] = a-b*i;" style="2D Comment">NiMvJiUiekc2IyIiIywmJSJhRyIiIiomJSJiR0YqJSJpR0YqISIi</Equation><Font style="_cstyle1"> </Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle2" style="_cstyle7">are respectively, </Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle1" style="ParagraphStyle1"><Equation input-equation="z[1]+z[2] = 2*a;" style="2D Comment">NiMvLCYmJSJ6RzYjIiIiRigmRiY2IyIiI0YoKiZGK0YoJSJhR0Yo</Equation><Font style="_cstyle1"> </Font></Text-field><Text-field layout="_pstyle1" style="ParagraphStyle1"><Equation input-equation="z[1]-z[2] = 2*i*b;" style="2D Comment">NiMvLCYmJSJ6RzYjIiIiRigmRiY2IyIiIyEiIiooRitGKCUiaUdGKCUiYkdGKA==</Equation><Font style="_cstyle1"> </Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">Hence, the real and imaginary parts of </Font><Equation input-equation="z[1];" style="2D Comment">NiMmJSJ6RzYjIiIi</Equation><Font style="_cstyle7"> are respectively</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle1" style="ParagraphStyle1"><Equation input-equation="a = (z[1]+z[2])/2;" style="2D Comment">NiMvJSJhRyomLCYmJSJ6RzYjIiIiRiomRig2IyIiI0YqRipGLSEiIg==</Equation><Font style="_cstyle1"> </Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle1" style="ParagraphStyle1"><Equation input-equation="b = (z[1]-z[2])/2/i;" style="2D Comment">NiMvJSJiRyooLCYmJSJ6RzYjIiIiRiomRig2IyIiIyEiIkYqRi1GLiUiaUdGLg==</Equation><Font style="_cstyle1"> </Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">Linear combinations of solutions to a linear equation are again solutions of the equation.  This is the principle of </Font><Font style="_cstyle8">superposition</Font><Font style="_cstyle7">, which says nothing more than that if </Font><Font style="_cstyle11">U</Font><Font style="_cstyle7"> and </Font><Font style="_cstyle11">V</Font><Font style="_cstyle7"> are solutions of </Font><Font style="_cstyle11">X</Font><Font style="_cstyle7">' = </Font><Font style="_cstyle8">A</Font><Font style="_cstyle7"> </Font><Font style="_cstyle11">X</Font><Font style="_cstyle7">, then </Font><Font style="_cstyle11">W</Font><Font style="_cstyle7"> = </Font><Equation input-equation="a;" style="2D Comment">NiMlImFH</Equation><Font style="_cstyle7"> </Font><Font style="_cstyle11">U</Font><Font style="_cstyle7"> + </Font><Equation input-equation="b;" style="2D Comment">NiMlImJH</Equation><Font style="_cstyle7"> </Font><Font style="_cstyle11">V</Font><Font style="_cstyle7"> is also a solution, as the followng calculation verifies.</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle16" style="ParagraphStyle1"><Font style="_cstyle21">W</Font><Font style="_cstyle22">' = (</Font><Equation input-equation="a;" style="2D Comment">NiMlImFH</Equation><Font style="_cstyle22"> </Font><Font style="_cstyle21">U</Font><Font style="_cstyle22"> + </Font><Equation input-equation="b;" style="2D Comment">NiMlImJH</Equation><Font style="_cstyle22"> </Font><Font style="_cstyle21">V</Font><Font style="_cstyle22">)' = </Font><Equation input-equation="a;" style="2D Comment">NiMlImFH</Equation><Font style="_cstyle21">U</Font><Font style="_cstyle22">' + </Font><Equation input-equation="b;" style="2D Comment">NiMlImJH</Equation><Font style="_cstyle21">V</Font><Font style="_cstyle22">' =  </Font><Equation input-equation="a;" style="2D Comment">NiMlImFH</Equation><Font style="_cstyle22"> </Font><Font style="_cstyle23">A</Font><Font style="_cstyle22"> </Font><Font style="_cstyle21">U</Font><Font style="_cstyle22"> + </Font><Equation input-equation="b;" style="2D Comment">NiMlImJH</Equation><Font style="_cstyle22"> A </Font><Font style="_cstyle21">V</Font><Font style="_cstyle22"> = </Font><Font style="_cstyle23">A</Font><Font style="_cstyle22"> (</Font><Equation input-equation="a;" style="2D Comment">NiMlImFH</Equation><Font style="_cstyle22"> </Font><Font style="_cstyle21">U</Font><Font style="_cstyle22"> + </Font><Equation input-equation="b;" style="2D Comment">NiMlImJH</Equation><Font style="_cstyle22"> </Font><Font style="_cstyle21">V</Font><Font style="_cstyle22">) = </Font><Font style="_cstyle23">A</Font><Font style="_cstyle22"> </Font><Font style="_cstyle21">W</Font><Font style="_cstyle22"> </Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">(See also Section 19.B in </Font><Hyperlink family="Times New Roman" hyperlink="true" linktarget="Wks:Lesson19.mw#19.B" style="Hyperlink">Lesson 19</Hyperlink><Font style="_cstyle7">.)</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">Thus, the real and imaginary parts of a single complex solution are themselves distinct (real) solutions.  The real and imaginary parts of </Font><Equation input-equation="XX[1];" style="_cstyle349">NiMmJSNYWEc2IyIiIg==</Equation><Font style="_cstyle7"> can be obtained via</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">U := map( evalc@Re, e_sol[1] );</Text-field><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">V := map( evalc@Im, e_sol[1] );</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">These functions form a real-valued basis for the general solution of the homogeneous system. (These solutions may appear to differ from the ones reported by </Font><Hyperlink hyperlink="true" linktarget="Help:dsolve" style="_cstyle2">dsolve</Hyperlink><Font style="_cstyle7">; closer inspection reveals that these vectors are, at worst, parallel to the ones found by </Font><Hyperlink hyperlink="true" linktarget="Help:dsolve" style="_cstyle2">dsolve</Hyperlink><Font style="_cstyle7"> and so have the same linear span.)</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group></Section><Section collapsed="true"><Title><Text-field bookmark="Example 3" layout="_pstyle14" style="_cstyle18">Example 3: Repeated Eigenvalues</Text-field></Title><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">For a final example, consider the homogeneous system</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">sys3 := [ diff( x(t), t ) = x(t) - 2*y(t), diff( y(t), t ) = y(t) ];</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">which has coefficient matrix and forcing vector</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">(Aneg,b) := GenerateMatrix( eval(sys3,[x(t)=_x,y(t)=_y]), [_x,_y] ):</Text-field><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">A := -Aneg;</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">The general solution to the system, as reported by </Font><Hyperlink hyperlink="true" linktarget="Help:dsolve" style="_cstyle2">dsolve</Hyperlink><Font style="_cstyle7">, is</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">infolevel[dsolve] := 3:</Text-field><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">gen_soln := dsolve( sys3, {x(t),y(t)} );</Text-field><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">infolevel[dsolve] := 0:</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">A particular solution to the system is the trivial solution</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">X_soln := eval( X, gen_soln ):</Text-field><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">Xp := eval( X_soln, [_C1=0,_C2=0] );</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">Note that any values for </Font><Font style="_cstyle24">_C1</Font><Font style="_cstyle7"> and </Font><Font style="_cstyle24">_C2</Font><Font style="_cstyle7"> will yield a particular solution; using zero for all constants of integration is the easiest and most common choice.</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle2" style="_cstyle7">A basis for the homogeneous solution is formed by the pair of functions</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">X1 := map( coeff, X_soln, _C1 );</Text-field><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">X2 := map( coeff, X_soln, _C2 );</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">When these pieces are assembled, the general solution of the system can be written in the form</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">X = _C1 * X1 + _C2 * X2 + Xp;</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">Notice that both terms in the homogeneous solution involve the same exponential, </Font><Equation input-equation="exp(t)" style="2D Comment">NiMtJSRleHBHNiMlInRH</Equation><Font style="_cstyle7">.  After factoring the exponential, one of the homogeneous terms has a coefficient that is not constant.  It is a function of </Font><Equation input-equation="t;" style="2D Comment">NiMlInRH</Equation><Font style="_cstyle7">.  These features will have to be explained during the eigenvalue decomposition which starts as usual</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">L,V := Eigenvectors( A );</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle17" style="ParagraphStyle1"><Font style="_cstyle25">It is not difficult to see that </Font><Equation input-equation="lambda=1" style="2D Math">NiMvSSdsYW1iZGFHNiIiIiI=</Equation><Font style="_cstyle25"> is an eigenvalue of the coefficient matrix.  The fact that this eigenvalue appears twice in the list of eigenvalues means its </Font><Font style="_cstyle26">algebraic</Font><Font style="_cstyle25"> multiplicity of </Font><Equation input-equation="lambda=1" style="2D Math">NiMvSSdsYW1iZGFHNiIiIiI=</Equation><Font style="_cstyle25"> is 2.  The </Font><Font style="_cstyle26">geometric</Font><Font style="_cstyle25"> multiplicity is only 1 because there is only one linearly dependent eigenvector.</Font></Text-field><Text-field layout="_pstyle17" style="_pstyle17"/><Text-field layout="_pstyle17" style="_cstyle25">In more complicated situations it is often easier to work with this information in a different form.</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle20">e_decomp := Eigenvectors( A, output=list );</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">The new form collects all information for each eigenvalue in a separate list.  Each sublist containing three entries.  The first entry in each sublist is an eigenvalue.  The second entry is the </Font><Font style="_cstyle8">algebraic</Font><Font style="_cstyle7"> </Font><Font style="_cstyle8">multiplicity</Font><Font style="_cstyle7"> of the corresponding eigenvalue.  The algebraic multiplicity is the number of times the eigenvalue is a root of the characteristic equation.  The third entry in each sublist is a </Font><Font style="_cstyle8">set</Font><Font style="_cstyle7">.  This set contains all eigenvectors that belong to the eigenvalue at the beginning of the corresponding list.  The number of eigenvectors that correspond to an eigenvalue is called the </Font><Font style="_cstyle8">geometric</Font><Font style="_cstyle7"> </Font><Font style="_cstyle8">multiplicity</Font><Font style="_cstyle7"> of the eigenvalue.</Font></Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">Extraction of the one eigenpair is implemented via</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">for i from 1 to nops(e_decomp) do</Text-field><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">  e_val[i] := e_decomp[i][1];</Text-field><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">  e_vec[i] := e_decomp[i][3][1];</Text-field><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">  e_sol[i] := exp( e_val[i]*t ) * e_vec[i];</Text-field><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">  print( lambda[i]=e_val[i], E[i]=e_vec[i], XX[i]=e_sol[i] );</Text-field><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">od:</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">Because </Font><Equation input-equation="lambda=1" style="2D Comment">NiMvJSdsYW1iZGFHIiIi</Equation><Font style="_cstyle7"> is an eigenvalue with algebraic multiplicity 2 and geometric multiplicity 1, the eigenvalue decomposition yields only one solution to the homogeneous equation. This solution, namely,</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">XX[1] = e_sol[1];</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">is referred to as a </Font><Font style="_cstyle8">straight</Font><Font style="_cstyle7">-</Font><Font style="_cstyle8">line</Font><Font style="_cstyle7"> solution. The second solution for the basis of the homogeneous solution will be found in the form</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle18" style="ParagraphStyle1"><Equation input-equation="XX[2];" style="_cstyle354">NiMmJSNYWEc2IyIiIw==</Equation><Font style="_cstyle27"> = </Font><Equation input-equation="t;" style="2D Comment">NiMlInRH</Equation><Font style="_cstyle27"> </Font><Equation input-equation="X[1];" style="_cstyle355">NiMmJSJYRzYjIiIi</Equation><Font style="_cstyle27"> + </Font><Equation input-equation="exp(lambda[1]*t);" style="2D Comment">NiMtJSRleHBHNiMqJiYlJ2xhbWJkYUc2IyIiIkYqJSJ0R0Yq</Equation><Font style="_cstyle27"> </Font><Equation input-equation="V[2];" style="_cstyle356">NiMmJSJWRzYjIiIj</Equation><Font style="_cstyle27"> </Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle2" style="_cstyle7">and obtained in Maple as</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">unassign('V2');
sol2_form := exp(e_val[1]*t) * (t*e_vec[1]+V2);</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">where</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">V2 := &lt;x2,y2&gt;;</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">That is, assume</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">r1 := equate( X, sol2_form );</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">Now, substitution of the proposed solution into the (homogeneous) system of ODEs yields</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">sol2_requires := eval( sys3, r1 );</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">Note that the second condition is trivially satisfied for all values of </Font><Font style="_cstyle8">y2</Font><Font style="_cstyle7">. However, the first condition is satisfied only when</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">sol2_satisfied := solve( identity(sol2_requires[1],t), {x2,y2} );</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">This leads to the one-parameter family of solutions</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">sol2_family := eval( sol2_form, sol2_satisfied );</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">Notice that the component of the solution that depends on the remaining parameter</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">map( coeff, sol2_family, x2 );</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">is a multiple of the first solution to the homogeneous system</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">e_sol[1];</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">and so is not needed again in the basis. Therefore, the second basis solution for the homogeneous solution is chosen to be</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">e_sol[2] := eval( sol2_family, x2=0 );</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">To summarize, the basis of homogeneous solutions found by this method is</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">{ e_sol[1], e_sol[2] };</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">and the basis of solutions found by inspection of the </Font><Font style="_cstyle11">dsolve</Font><Font style="_cstyle7"> solution is</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">{ X1, X2 };</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">The spans of these bases are easily seen to be identical.</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">As a final note, observe that this system is </Font><Font style="_cstyle8">decoupled</Font><Font style="_cstyle7">. The ODE for </Font><Equation input-equation="y(t)" style="2D Comment">NiMtJSJ5RzYjJSJ0Rw==</Equation><Font style="_cstyle7"> is independent of </Font><Equation input-equation="x(t);" style="2D Comment">NiMtJSJ4RzYjJSJ0Rw==</Equation><Font style="_cstyle7">, as seen from </Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">ode_x,ode_y := selectremove( has, sys3, diff(x(t),t) );</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">Thus, the second equation can be solved for </Font><Equation input-equation="y(t);" style="2D Comment">NiMtJSJ5RzYjJSJ0Rw==</Equation><Font style="_cstyle7"> without knowledge of </Font><Equation input-equation="x(t)" style="2D Comment">NiMtJSJ4RzYjJSJ0Rw==</Equation><Font style="_cstyle7">.  This gives</Font></Text-field><Text-field layout="_pstyle2" style="_cstyle7"> </Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">sol_y := dsolve( ode_y[1], y(t), [linear] );</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">Now, since </Font><Equation input-equation="y(t)" style="2D Comment">NiMtJSJ5RzYjJSJ0Rw==</Equation><Font style="_cstyle7"> is known, this result can be substituted into the ODE for </Font><Equation input-equation="x(t)" style="2D Comment">NiMtJSJ4RzYjJSJ0Rw==</Equation><Font style="_cstyle7">, giving</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">ode_x2 := eval( ode_x, sol_y );</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">and solved for </Font><Equation input-equation="x(t)" style="2D Comment">NiMtJSJ4RzYjJSJ0Rw==</Equation><Font style="_cstyle7">, giving</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">sol_x := dsolve( ode_x2[1], x(t) );</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">The result is these calculations is</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">subs(sol_x,sol_y, X);</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">which is equivalent to any of the solutions obtained above.</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">X_soln;</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group></Section></Section></Section><Section collapsed="true"><Title><Text-field bookmark="11.D" layout="_pstyle5" style="_cstyle3">11.D Numerical Solutions</Text-field></Title><Group><Input><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">The graphical solutions produced by </Font><Hyperlink hyperlink="true" linktarget="Help:DEtools,DEplot" style="_cstyle2">DEplot</Hyperlink><Font style="_cstyle7"> are obtained using a numerical approximation to the solution. The numerical method used to compute the approximations can be specified via the </Font><Hyperlink hyperlink="true" linktarget="Help:dsolve,numeric" style="_cstyle2">method=</Hyperlink><Font style="_cstyle7"> argument (the default is </Font><Hyperlink hyperlink="true" linktarget="Help:dsolve,classical" style="_cstyle2">method=classic[rk4]</Hyperlink><Font style="_cstyle7">). The </Font><Hyperlink hyperlink="true" linktarget="Help:dsolve" style="_cstyle2">dsolve</Hyperlink><Font style="_cstyle7"> command, with </Font><Hyperlink hyperlink="true" linktarget="Help:dsolve,numeric" style="_cstyle2">type=numeric</Hyperlink><Font style="_cstyle7">, can be used to obtain direct access to a numerical solution to an initial value problem.</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/><Text-field layout="_pstyle2" style="_cstyle7">For the initial value problem</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">IVP;</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="_cstyle7">a procedure for the numerical approximation to the solution via Euler's method is obtained with</Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">soln_euler := dsolve( IVP, [x(t),y(t)], type=numeric, method=classical );</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">The approximate solution at </Font><Equation input-equation="t=1" style="2D Comment">NiMvJSJ0RyIiIg==</Equation><Font style="_cstyle7"> is</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">soln_euler(1);</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">The </Font><Font style="_cstyle11">odeplot</Font><Font style="_cstyle7"> command can be used to create a phase portrait for the solution, and results in Figure 11.12.</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">odeplot( soln_euler, [x(t),y(t)], 0..4, title="Figure 11.12" );</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">Alternatively, a plot of the individual components of the solution can also be obtained with the </Font><Font style="_cstyle11">odeplot</Font><Font style="_cstyle7"> command, as shown in Figure 11.13.</Font></Text-field><Text-field layout="_pstyle2" style="_pstyle2"/></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">odeplot( soln_euler, [[t,x(t)],[t,y(t)]], 0..4,</Text-field><Text-field layout="_pstyle4" prompt="&gt; " style="_cstyle5">         labels=[`t`,``], legend=[`x(t)`,`y(t)`], title="Figure 11.13" );</Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group><Group><Input><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">See also the discussion in </Font><Hyperlink bold="false" family="Times New Roman" hyperlink="true" linktarget="Wks:Lesson01.mw" size="12" style="Hyperlink">Section 1.C</Hyperlink><Font style="_cstyle7"> for additional details and options for working with Maple-generated numerical solutions to an IVP.</Font></Text-field></Input></Group><Group><Input><Text-field layout="_pstyle4" prompt="&gt; " style="_pstyle4"/></Input></Group></Section><Group><Input><Text-field layout="_pstyle2" style="ParagraphStyle1"><Font style="_cstyle7">[Back to </Font><Hyperlink bold="false" family="Times New Roman" hyperlink="true" linktarget="Wks:Lesson00.mw" size="12" style="Hyperlink">ODE Powertool Table of Contents</Hyperlink><Font style="_cstyle7">]</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Text-field layout="_pstyle19" style="_pstyle19"/><Text-field/><Text-field/><Text-field/><Text-field/><Text-field/><Text-field/></Worksheet>