<?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="Heading 2" rightmargin="0.0" spaceabove="8.0" spacebelow="2.0"/><Layout alignment="left" firstindent="0.0" leftmargin="0.0" linebreak="space" linespacing="0.0" name="Heading 1" rightmargin="0.0" spaceabove="8.0" spacebelow="4.0"/><Layout alignment="left" firstindent="0.0" leftmargin="0.0" linebreak="space" linespacing="0.0" name="Normal" rightmargin="0.0" spaceabove="0.0" spacebelow="0.0"/><Layout alignment="centred" firstindent="0.0" leftmargin="0.0" linebreak="space" linespacing="0.0" name="Normal257" rightmargin="0.0" spaceabove="0.0" spacebelow="0.0"/><Layout alignment="left" bullet="indent" firstindent="0.0" leftmargin="0.0" linebreak="space" linespacing="0.0" name="List Item" rightmargin="0.0" spaceabove="3.0" spacebelow="3.0"/><Font background="[0,0,0]" bold="true" executable="true" family="Monospaced" foreground="[255,0,0]" name="Maple Input"/><Font background="[0,0,0]" family="Times New Roman" name="2D Comment" underline="false"/><Font background="[0,0,0]" foreground="[0,128,128]" italic="false" name="Hyperlink" underline="true"/><Font background="[0,0,0]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" name="Normal257" readonly="false" size="12" underline="false"/><Font background="[0,0,0]" italic="true" name="_cstyle259"/><Font background="[0,0,0]" italic="true" name="_cstyle258"/><Font background="[0,0,0]" italic="true" name="_cstyle257"/><Font background="[0,0,0]" italic="true" name="_cstyle256"/><Font background="[0,0,0]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" name="Heading 2" readonly="false" size="14" underline="false"/><Font background="[0,0,0]" italic="true" name="_cstyle272"/><Font background="[0,0,0]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" name="Heading 1" readonly="false" size="18" underline="false"/><Font background="[0,0,0]" italic="true" name="_cstyle271"/><Font background="[0,0,0]" italic="true" name="_cstyle270"/><Font background="[0,0,0]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" name="List Item" readonly="false" size="12" underline="false"/><Font background="[0,0,0]" italic="true" name="_cstyle269"/><Font background="[0,0,0]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" name="Normal" readonly="false" size="12" underline="false"/><Font background="[0,0,0]" italic="true" name="_cstyle268"/><Font background="[0,0,0]" italic="true" name="_cstyle267"/><Font background="[0,0,0]" name="_cstyle266" underline="true"/><Font background="[0,0,0]" name="_cstyle265" underline="true"/><Font background="[0,0,0]" italic="true" name="_cstyle264"/><Font background="[0,0,0]" family="Times New Roman" name="Page Number" underline="false"/><Font background="[0,0,0]" italic="true" name="_cstyle263"/><Font background="[0,0,0]" italic="true" name="_cstyle262"/><Font background="[0,0,0]" italic="true" name="_cstyle261"/><Font background="[0,0,0]" italic="true" name="_cstyle260"/></Styles><Page-Numbers enabled="false" first-number="1" first-numbered-page="1" horizontal-location="right" style="Page Number" vertical-location="bottom"/><Group><Input><Text-field layout="Normal257" style="Normal257"/><Text-field layout="Normal257" style="Normal257">ORDINARY DIFFERENTIAL EQUATIONS POWERTOOL</Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal257" style="Normal257">Lesson 3 -- Application: Exponential and Logistic Growth</Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal257" style="Hyperlink"><Hyperlink bold="false" executable="false" family="Times New Roman" hyperlink="true" linktarget="http://www.math.sc.edu/~meade/" size="12" style="Hyperlink">Prof. Douglas B. Meade</Hyperlink></Text-field><Text-field layout="Normal257" style="Hyperlink"><Hyperlink bold="false" executable="false" family="Times New Roman" hyperlink="true" linktarget="http://www.math.sc.edu/~IMI/" size="12" style="Hyperlink">Industrial Mathematics Institute</Hyperlink></Text-field><Text-field layout="Normal257" style="Hyperlink"><Hyperlink bold="false" executable="false" family="Times New Roman" hyperlink="true" linktarget="http://www.math.sc.edu/" size="12" style="Hyperlink">Department of Mathematics</Hyperlink></Text-field><Text-field layout="Normal257" style="Hyperlink"><Hyperlink bold="false" executable="false" family="Times New Roman" hyperlink="true" linktarget="http://www.sc.edu/" size="12" style="Hyperlink">University of South Carolina</Hyperlink></Text-field><Text-field layout="Normal257" style="Normal257">Columbia, SC 29208
</Text-field><Text-field layout="Normal257" style="Normal257">URL:   <Hyperlink bold="false" executable="false" family="Times New Roman" hyperlink="true" linktarget="http://www.math.sc.edu/~meade/" size="12" style="Hyperlink">http://www.math.sc.edu/~meade/</Hyperlink></Text-field><Text-field layout="Normal257" style="Normal257">E-mail: <Font opaque="false"> </Font><Hyperlink bold="false" executable="false" family="Times New Roman" hyperlink="true" linktarget="mailto:meade@math.sc.edu" opaque="false" readonly="false" size="12" style="Hyperlink">meade@math.sc.edu</Hyperlink><Font opaque="false"> </Font><Font style="Normal">
</Font></Text-field><Text-field layout="Normal257" style="Normal257"><Font encoding="ISO8859-1">Copyright \251  2001  by Douglas B. Meade</Font></Text-field><Text-field layout="Normal257" style="Normal257">All rights reserved</Text-field><Text-field layout="Normal257" style="Normal257"/><Text-field layout="Normal257" style="Normal257">-------------------------------------------------------------------</Text-field><Text-field layout="Normal" style="Normal"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Section collapsed="true"><Title><Text-field layout="Heading 1" style="Heading 1">Outline for Lesson 3</Text-field></Title><Group><Input><Text-field layout="List Item" style="List Item"><Hyperlink bold="false" executable="false" family="Times New Roman" hyperlink="true" linktarget="Wks:#3.A" size="12" style="Hyperlink">3.A</Hyperlink> Exponential Growth and Decay</Text-field><Text-field layout="List Item" style="List Item">                 <Hyperlink bold="false" executable="false" family="Times New Roman" hyperlink="true" linktarget="Wks:#3.A-1" size="12" style="Hyperlink">3.A-1</Hyperlink> General Solution</Text-field><Text-field layout="List Item" style="List Item">                 <Hyperlink bold="false" executable="false" family="Times New Roman" hyperlink="true" linktarget="Wks:#3.A-2" size="12" style="Hyperlink">3.A-2</Hyperlink> Doubling Time</Text-field><Text-field layout="List Item" style="List Item">                 <Hyperlink bold="false" executable="false" family="Times New Roman" hyperlink="true" linktarget="Wks:#3.A-3" size="12" style="Hyperlink">3.A-3</Hyperlink> Half-Life</Text-field><Text-field layout="List Item" style="List Item"><Hyperlink bold="false" executable="false" family="Times New Roman" hyperlink="true" linktarget="Wks:#3.B" size="12" style="Hyperlink">3.B</Hyperlink> Logistic Equation</Text-field><Text-field layout="List Item" style="List Item">                 <Hyperlink bold="false" executable="false" family="Times New Roman" hyperlink="true" linktarget="Wks:#3.B-1" size="12" style="Hyperlink">3.B-1</Hyperlink>  General Solution</Text-field><Text-field layout="List Item" style="List Item">                 <Hyperlink bold="false" executable="false" family="Times New Roman" hyperlink="true" linktarget="Wks:#3.B-2" size="12" style="Hyperlink">3.B-2</Hyperlink> Carrying Capacity</Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group></Section><Section collapsed="true"><Title><Text-field layout="Heading 1" style="Heading 1">Initialization</Text-field></Title><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">restart;</Font></Text-field><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">with( DEtools ):</Font></Text-field><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">with( plots ):</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group></Section><Section collapsed="true"><Title><Text-field bookmark="3.A" layout="Heading 1" style="Heading 1">3.A Exponential Growth and Decay</Text-field></Title><Section collapsed="true"><Title><Text-field bookmark="3.A-1" layout="Heading 2" style="Heading 2">3.A-1 General Solution</Text-field></Title><Group><Input><Text-field layout="Normal" style="Normal">The general model for exponential growth and decay with rate constant <Equation input-equation="k" style="2D Comment">NiMlImtH</Equation>, is</Text-field><Text-field layout="Normal" style="Normal"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">ode := diff( x(t), t ) = k * x(t);</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" style="Normal">and initial condition</Text-field><Text-field layout="Normal" style="Normal"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">ic := x(0) = A;</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" style="Normal">If <Equation input-equation="k;" style="2D Comment">NiMlImtH</Equation> is positive, the equation models exponential growth, whereas if <Equation input-equation="k;" style="2D Comment">NiMlImtH</Equation> is negative, it models exponential decay.</Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal">This equation is separable, and Maple agrees with this classification, as seen with</Text-field><Text-field layout="Normal" style="Normal"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">odeadvisor( ode, [separable] );</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" style="Normal">To find the general solution from first principles, divide through by <Equation input-equation="x(t);" style="2D Comment">NiMtJSJ4RzYjJSJ0Rw==</Equation> to separate variables, and then integrate both sides of the resulting equation to obtain</Text-field><Text-field layout="Normal" style="Normal"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">impl_soln := subs( _t=t, map( int, ode/x(t), t=0.._t,continuous ) );</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" style="Normal">Substitution of the initial condition leads to</Text-field><Text-field layout="Normal" style="Normal"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">impl_part_soln := subs( ic, impl_soln );</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" style="Normal">and solving for <Equation input-equation="x(t);" style="2D Comment">NiMtJSJ4RzYjJSJ0Rw==</Equation> gives</Text-field><Text-field layout="Normal" style="Normal"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">expl_part_soln := simplify(op(solve( impl_part_soln, {x(t)} )));</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" style="Normal">Of course, the same result could be obtained from</Text-field><Text-field layout="Normal" style="Normal"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">infolevel[dsolve] := 3:</Font></Text-field><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">soln2 := dsolve( {ode, ic}, x(t), [separable] );</Font></Text-field><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">infolevel[dsolve] := 0:</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" style="Normal">and the final simplification</Text-field><Text-field layout="Normal" style="Normal"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">simplify( soln2 );</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group></Section><Section collapsed="true"><Title><Text-field bookmark="3.A-2" layout="Heading 2" style="Heading 2">3.A-2 Doubling Time</Text-field></Title><Group><Input><Text-field layout="Normal" style="Normal">The <Font bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" size="12" style="_cstyle256" underline="false">doubling</Font> <Font bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" size="12" style="_cstyle257" underline="false">time</Font> for a process growing exponentially is the time <Equation input-equation="t[d];" style="2D Comment">NiMmJSJ0RzYjJSJkRw==</Equation> needed for the quantity to double from its original size.  Thus, the doubling time is found from the relationship </Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal257" style="Normal257"><Equation input-equation="x(t[d]) = 2*x(0)" style="2D Comment">NiMvLSUieEc2IyYlInRHNiMlImRHKiYiIiMiIiItRiU2IyIiIUYt</Equation>.</Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal">Implementing that for the solution found above leads to the equation</Text-field><Text-field layout="Normal" style="Normal"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">double_eqn := subs( t=t[d], x(t[d])=2*x(0), ic, expl_part_soln );</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" style="Normal">whose solution is</Text-field><Text-field layout="Normal" style="Normal"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">double_time := solve( double_eqn, {t[d]} );</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" style="Normal">One of the important characteristics of the doubling time is that not only is it the time needed for the initial size to double, it is the time needed for the size to double at any point in an exponential process.  The ratio of the solution at time <Equation input-equation="T+t[d];" style="2D Comment">NiMsJiUiVEciIiImJSJ0RzYjJSJkR0Yl</Equation> and at time <Equation input-equation="t[d];" style="2D Comment">NiMmJSJ0RzYjJSJkRw==</Equation> is given by</Text-field><Text-field layout="Normal" style="Normal"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">q1 := x(T+t[d])/x(T)</Font></Text-field><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">    = subs( t=T+t[d],</Font></Text-field><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">            rhs(expl_part_soln) ) / subs( t=T, rhs(expl_part_soln) );</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" style="Normal">If <Equation input-equation="t[d];" style="2D Comment">NiMmJSJ0RzYjJSJkRw==</Equation> is the true doubling time, then this ratio simplifies to 2, as is seen via</Text-field><Text-field layout="Normal" style="Normal"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">q1;</Font></Text-field><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">`` = simplify(eval( rhs(q1), double_time ));</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group></Section><Section collapsed="true"><Title><Text-field bookmark="3.A-3" layout="Heading 2" style="Heading 2">3.A-3 Half-Life</Text-field></Title><Group><Input><Text-field layout="Normal" style="Normal">The half-life for a quantity that is decaying according to an exponential model is the time after which exactly half the original amount remains.  The half life <Equation input-equation="t[h];" style="2D Comment">NiMmJSJ0RzYjJSJoRw==</Equation> must obey the equation</Text-field><Text-field layout="Normal" style="Normal"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">half_eqn := subs( t=t[h], x(t[h])=1/2*x(0), ic, expl_part_soln );</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" style="Normal">Solving for <Equation input-equation="t[h];" style="2D Comment">NiMmJSJ0RzYjJSJoRw==</Equation> leads to</Text-field><Text-field layout="Normal" style="Normal"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">half_time := solve( half_eqn, {t[h]} );</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" style="Normal">Note that <Equation input-equation="k &lt; 0;" style="2D Comment">NiMyJSJrRyIiIQ==</Equation> holds for a decaying process. Thus, the half-life for an exponential model with "growth" rate <Equation input-equation="-k" style="2D Comment">NiMsJCUia0chIiI=</Equation> is the same as the doubling time for an exponential model with growth rate <Equation input-equation="k" style="2D Comment">NiMlImtH</Equation>.</Text-field><Text-field layout="Normal" style="Normal"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group></Section></Section><Section collapsed="true"><Title><Text-field bookmark="3.B" layout="Heading 1" style="Heading 1">3.B Logistic Equation</Text-field></Title><Section collapsed="true"><Title><Text-field bookmark="3.B-1" layout="Heading 2" style="Heading 2">3.B-1 General Solution</Text-field></Title><Group><Input><Text-field layout="Normal" style="Normal">The general logistic equation is a modification of the exponential model in which the growth is tempered by the factor (<Equation input-equation="K-x(t)" style="2D Comment">NiMsJiUiS0ciIiItJSJ4RzYjJSJ0RyEiIg==</Equation>).  Therefore, the model consists of the ODE</Text-field><Text-field layout="Normal" style="Normal"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">logistic_ode := diff( x(t), t ) = A * x(t) * ( K - x(t) );</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" style="Normal">with, for example, an initial condition of the form</Text-field><Text-field layout="Normal" style="Normal"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">logistic_ic := x(0)=X[0];</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" style="Normal">Initially, when <Equation input-equation="x(t);" style="2D Comment">NiMtJSJ4RzYjJSJ0Rw==</Equation> is small, the factor <Equation input-equation="K-x(t);" style="2D Comment">NiMsJiUiS0ciIiItJSJ4RzYjJSJ0RyEiIg==</Equation> is essentially constant, so the population obeys an exponential growth law.  As <Equation input-equation="x(t);" style="2D Comment">NiMtJSJ4RzYjJSJ0Rw==</Equation> increases and approaches <Equation input-equation="K;" style="2D Comment">NiMlIktH</Equation>, the factor <Equation input-equation="K-x(t);" style="2D Comment">NiMsJiUiS0ciIiItJSJ4RzYjJSJ0RyEiIg==</Equation> tends towards zero, so the rate of change, <Equation input-equation="dx/dt;" style="2D Comment">NiMqJiUjZHhHIiIiJSNkdEchIiI=</Equation>, approaches zero also.  Thus, <Equation input-equation="x(t);" style="2D Comment">NiMtJSJ4RzYjJSJ0Rw==</Equation> approaches a constant, and the growth is said to be <Font bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" size="12" style="_cstyle258" underline="false">self</Font>-<Font bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" size="12" style="_cstyle259" underline="false">limiting</Font>.</Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal">This ODE is easily separated by the obvious division, resulting in</Text-field><Text-field layout="Normal" style="Normal"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">sep_log_ode := logistic_ode / (x(t)*(K-x(t)));</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" style="Normal">Integrating from the initial time, 0, to any other time <Equation input-equation="t;" style="2D Comment">NiMlInRH</Equation>, yields</Text-field><Text-field layout="Normal" style="Normal"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">part_log_soln := subs( _t=t, logistic_ic, map(int,sep_log_ode,t=0.._t, continuous) );</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" style="Normal">and solving for <Equation input-equation="x(t)" style="2D Comment">NiMtJSJ4RzYjJSJ0Rw==</Equation> to obtain the explicit solution, gives</Text-field><Text-field layout="Normal" style="Normal"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">part_expl_soln := collect(op( solve( part_log_soln, {x(t)} ) ),exp);</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" style="Normal">A quick check that this is, in fact, a solution to the original ODE shows</Text-field><Text-field layout="Normal" style="Normal"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">odetest( part_expl_soln, logistic_ode );</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" style="Normal">and, for the initial condition,</Text-field><Text-field layout="Normal" style="Normal"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">eval( part_expl_soln, t=0 );</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group></Section><Section collapsed="true"><Title><Text-field bookmark="3.B-2" layout="Heading 2" style="Heading 2">3.B-2 Carrying Capacity</Text-field></Title><Group><Input><Text-field layout="Normal" style="Normal">Before discussing the generic properties of the logistic model, it is instructive to use graphical methods to examine a specific example.  For parameter values, choose</Text-field><Text-field layout="Normal" style="Normal"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">param := { A = 1/2, K=3 };</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" style="Normal">so the logistic equation becomes</Text-field><Text-field layout="Normal" style="Normal"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">l_ode := subs(param,logistic_ode);</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" style="Normal">Then, the direction field for this model is seen in Figure 3.1.</Text-field><Text-field layout="Normal" style="Normal"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">DEplot( l_ode, x(t), t=0..10, x=0..10, arrows=SMALL, title="Figure 3.1" );</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" style="Normal">An <Font bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" size="12" style="_cstyle260" underline="false">equilibrium</Font> <Font bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" size="12" style="_cstyle261" underline="false">solution</Font> of the differential equation <Equation input-equation="F(x,`x'`) = 0;" style="2D Comment">NiMvLSUiRkc2JCUieEclI3gnRyIiIQ==</Equation> is any solution <Equation input-equation="x(t);" style="2D Comment">NiMtJSJ4RzYjJSJ0Rw==</Equation> for which <Equation input-equation="`x'`(t) = 0;" style="2D Comment">NiMvLSUjeCdHNiMlInRHIiIh</Equation>, <Font bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" size="12" style="_cstyle265">identically</Font>.  Hence, an equilibrium solution is a <Font bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" size="12" style="_cstyle266">constant</Font> solution.  Such constant solutions show up on the direction field as horizontal lines, corresponding to the constant value of <Equation input-equation="x(t);" style="2D Comment">NiMtJSJ4RzYjJSJ0Rw==</Equation>.</Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal">Figure 3.1 suggests that <Equation input-equation="x = 3;" style="2D Comment">NiMvJSJ4RyIiJA==</Equation> might be an equilibrium solution.  Closer inspection of Figure 3.1 suggests that <Equation input-equation="x = 0;" style="2D Comment">NiMvJSJ4RyIiIQ==</Equation> might also be an equilibrium solution.  These potential equilibrium solutions can be found analytically by solving the equation <Equation input-equation="`x'`(t) = f(x);" style="2D Comment">NiMvLSUjeCdHNiMlInRHLSUiZkc2IyUieEc=</Equation> = 0 for its roots.  The roots of the equation</Text-field><Text-field layout="Normal" style="Normal"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">EQUILIB_EQN := rhs(l_ode) = 0;</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" style="Normal">are found to be</Text-field><Text-field layout="Normal" style="Normal"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">solve(EQUILIB_EQN, x(t));</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" style="Normal">Initial conditions that will produce the equilibrium solutions are</Text-field><Text-field layout="Normal" style="Normal"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">equil_ic := [ [x(0)=0], [x(0)=3] ];</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" style="Normal">Use of these initial conditions in the <Hyperlink bold="false" executable="false" family="Times New Roman" hyperlink="true" linktarget="Help:DEtools, DEplot" size="12" style="Hyperlink">DEplot</Hyperlink> command yields Figure 3.2.</Text-field><Text-field layout="Normal" style="Normal"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">equil_plot := DEplot( l_ode, x(t), t=0..5, equil_ic, x=0..10,</Font></Text-field><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">                      arrows=SMALL, linecolor=CYAN, title="Figure 3.2" ):</Font></Text-field><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">equil_plot;</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" style="Normal">Figure 3.3 shows a sample of solutions with initial conditions <Font bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" size="12" style="_cstyle262" underline="false">between</Font> the two equilibria.</Text-field><Text-field layout="Normal" style="Normal"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">ic1 := [ [x(0)=i/2] $ i=1..5 ]:</Font></Text-field><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">soln_plot1 := DEplot( l_ode, x(t), t=0..5, ic1, x=0..10, arrows=SMALL,</Font></Text-field><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">                      linecolor=GREEN, title="Figure 3.3" ):</Font></Text-field><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">soln_plot1;</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" style="Normal">Note that all of these solutions are increasing and appear to approach <Equation input-equation="x=3" style="2D Comment">NiMvJSJ4RyIiJA==</Equation> as <Equation input-equation="t" style="2D Comment">NiMlInRH</Equation> continues to increase.</Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal">Figure 3.4 shows a sample of solutions with initial conditions above the positive equilibrium.</Text-field><Text-field layout="Normal" style="Normal"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">ic2 := [ [x(0)=2*i] $ i=2..5 ]:</Font></Text-field><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">soln_plot2 := DEplot( l_ode, x(t), t=0..5, ic2, x=0..10, arrows=SMALL,</Font></Text-field><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">                      linecolor=BLUE, stepsize=0.1, title="Figure 3.4" ):</Font></Text-field><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">soln_plot2;</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" style="Normal">These solutions are all decreasing and also appear to approach the <Equation input-equation="x=3" style="2D Comment">NiMvJSJ4RyIiJA==</Equation> as <Equation input-equation="t" style="2D Comment">NiMlInRH</Equation> increases.</Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal">The composite plot is appears in Figure 3.5.</Text-field><Text-field layout="Normal" style="Normal"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">display( [equil_plot, soln_plot1, soln_plot2], title="Figure 3.5" );</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" style="Normal">To investigate some of the general properties of solutions to the logistic equation, recall that the equilibrium solutions are</Text-field><Text-field layout="Normal" style="Normal"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">equil_sol := solve( rhs(logistic_ode)=0, {x(t)} );</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" style="Normal">A quick inspection of the ODE shows that <Equation input-equation="diff(x(t),t)" style="2D Comment">NiMtJSVkaWZmRzYkLSUieEc2IyUidEdGKQ==</Equation> &gt; 0 when 0 &lt; <Equation input-equation="x(t)" style="2D Comment">NiMtJSJ4RzYjJSJ0Rw==</Equation> &lt; <Equation input-equation="K" style="2D Comment">NiMlIktH</Equation> and <Equation input-equation="diff(x(t),t)" style="2D Comment">NiMtJSVkaWZmRzYkLSUieEc2IyUidEdGKQ==</Equation> &lt; 0 when <Equation input-equation="x(t)" style="2D Comment">NiMtJSJ4RzYjJSJ0Rw==</Equation> &gt; <Equation input-equation="K" style="2D Comment">NiMlIktH</Equation>. The long-term behavior of the solutions can be determined from the explicit solution to the IVP by evaluating the following limit.</Text-field><Text-field layout="Normal" style="Normal"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">limit_size := Limit( part_expl_soln, t=infinity );</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" style="Normal">The limit exists as a finite number only if both <Equation input-equation="A;" style="2D Comment">NiMlIkFH</Equation> and <Equation input-equation="K;" style="2D Comment">NiMlIktH</Equation> are nonnegative.  With these physically reasonable assumptions, the limit is</Text-field><Text-field layout="Normal" style="Normal"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">value( limit_size ) assuming A&gt;=0, K&gt;=0;</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" style="Normal">Because all solutions with <Equation input-equation="x(0)*`&gt;`*K;" style="2D Comment">NiMqKC0lInhHNiMiIiEiIiIlIj5HRiglIktHRig=</Equation> decrease to <Equation input-equation="x=K" style="2D Comment">NiMvJSJ4RyUiS0c=</Equation> and all solutions with 0 &lt; <Equation input-equation="x(0)" style="2D Comment">NiMtJSJ4RzYjIiIh</Equation> &lt; <Equation input-equation="K" style="2D Comment">NiMlIktH</Equation> increase to <Equation input-equation="x=K" style="2D Comment">NiMvJSJ4RyUiS0c=</Equation>, the parameter <Equation input-equation="K" style="2D Comment">NiMlIktH</Equation> is known as the <Font bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" size="12" style="_cstyle263" underline="false">carrying</Font> <Font bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" size="12" style="_cstyle264" underline="false">capacity</Font> of the logistic equation.</Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal">The equilibrium solution <Equation input-equation="x = K;" style="2D Comment">NiMvJSJ4RyUiS0c=</Equation> is called a <Font bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" size="12" style="_cstyle267" underline="false">stable</Font> <Font bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" size="12" style="_cstyle268" underline="false">equilibrium</Font> because, as <Equation input-equation="t;" style="2D Comment">NiMlInRH</Equation> increases, nearby solutions, those close and on either side of it, tend towards the equilibrium.  This is shown very well in Figure 3.5.</Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal">The equilibrium solution <Equation input-equation="x = 0;" style="2D Comment">NiMvJSJ4RyIiIQ==</Equation> is called an <Font bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" size="12" style="_cstyle269" underline="false">unstable</Font> <Font bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" size="12" style="_cstyle270" underline="false">equilibrium</Font> because, as <Equation input-equation="t;" style="2D Comment">NiMlInRH</Equation> increases, nearby solutions, those close and on either side of it, move away from the equilibrium.  Figure 3.6, exhibiting solutions starting both above and below the equilibrium solution <Equation input-equation="x = 0;" style="2D Comment">NiMvJSJ4RyIiIQ==</Equation>, shows that this equilibrium is unstable.</Text-field><Text-field layout="Normal" style="Normal"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">DEplot( l_ode, x(t), t=0..1, [[x(0)=1],[x(0)=0],[x(0)=-1]], x=-2..2, arrows=SMALL,</Font></Text-field><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">                      linecolor=[green,red,green], stepsize=0.1, title="Figure 3.6" );</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" style="Normal">An equilibrium solution can also be called <Font bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" size="12" style="_cstyle271" underline="false">semi</Font>-<Font bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" size="12" style="_cstyle272" underline="false">stable</Font> if, as <Equation input-equation="t;" style="2D Comment">NiMlInRH</Equation> increases, nearby solutions on one side approach the equilibrium, but nearby solutions on the other move away from the equilibrium.  Adifferential equation with a semi-stable equilibrium would be the equation</Text-field><Text-field layout="Normal" style="Normal"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">SS_ode := diff(x(t),t) = x(t)*(1-x(t))^2;</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" style="Normal">The equilibrium solutions are <Equation input-equation="x = 0;" style="2D Comment">NiMvJSJ4RyIiIQ==</Equation> and <Equation input-equation="x = 1;" style="2D Comment">NiMvJSJ4RyIiIg==</Equation>, with the latter being the semi-stable equilibrium, as shown in Figure 3.7.</Text-field><Text-field layout="Normal" style="Normal"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font italic="false" size="12" underline="false">DEplot(SS_ode, x(t),t=0..1, [[x(0)=1],[x(0)=.5],[x(0)=1.5]], x=0..2, arrows=medium, dirgrid=[10,10], linecolor=[red,green,green], stepsize=0.1, title="Figure 3.7" );</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" style="Normal">Solutions starting above <Equation input-equation="x = 1;" style="2D Comment">NiMvJSJ4RyIiIg==</Equation> move away from this equilibrium, but solutions starting below <Equation input-equation="x = 1;" style="2D Comment">NiMvJSJ4RyIiIg==</Equation> move towards it.  Solutions on one side of the equilibrium are attracted to the equilibrium, but solutions on the other side are repelled.</Text-field><Text-field layout="Normal" style="Normal"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group></Section></Section><Group><Input><Text-field layout="Normal" style="Normal">[Back to <Hyperlink bold="false" executable="false" family="Times New Roman" hyperlink="true" linktarget="Wks:Lesson00.mw" size="12" style="Hyperlink">ODE Powertool Table of Contents</Hyperlink>]</Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Text-field/><Text-field/><Text-field/><Text-field/><Text-field/><Text-field/></Worksheet>