<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Differential Equations</title>
	<atom:link href="http://mth21202f08.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://mth21202f08.wordpress.com</link>
	<description>MTH 212-02 Fall 2008, University of Massachusetts Dartmouth</description>
	<lastBuildDate>Wed, 19 Nov 2008 14:33:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='mth21202f08.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Differential Equations</title>
		<link>http://mth21202f08.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://mth21202f08.wordpress.com/osd.xml" title="Differential Equations" />
	<atom:link rel='hub' href='http://mth21202f08.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Fourth 3 week block: project details</title>
		<link>http://mth21202f08.wordpress.com/2008/11/17/fourth-3-week-block-project-guide/</link>
		<comments>http://mth21202f08.wordpress.com/2008/11/17/fourth-3-week-block-project-guide/#comments</comments>
		<pubDate>Mon, 17 Nov 2008 18:40:35 +0000</pubDate>
		<dc:creator>Author</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://mth21202f08.wordpress.com/?p=934</guid>
		<description><![CDATA[For this 3 week block, use Laplace transforms to discuss the general solutions of the following differential equations. In each case plot solution curves for a variety of parameters and given initial conditions, and, for problems (2), (3) and (4), &#8230; <a href="http://mth21202f08.wordpress.com/2008/11/17/fourth-3-week-block-project-guide/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mth21202f08.wordpress.com&amp;blog=4207098&amp;post=934&amp;subd=mth21202f08&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>For this 3 week block, <strong><span style="color:#ff0000;"><span style="text-decoration:underline;">use Laplace transforms</span></span></strong> to discuss the general solutions of the following differential equations. In each case plot solution curves for a variety of parameters and given initial conditions, and, for problems (2), (3) and (4), interpret the behavior of the solutions in terms of the physical problem.</p>
<p><strong>(1) Some specific first and second-order liner differential equations</strong>:</p>
<p style="padding-left:30px;">(a) <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdx%7D%7Bdt%7D%2Bx%3De%5E%7B-t%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{dx}{dt}+x=e^{-t}' title='&#92;frac{dx}{dt}+x=e^{-t}' class='latex' /></p>
<p style="padding-left:30px;">(b) <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdy%7D%7Bdx%7D%2By%3Dcos%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{dy}{dx}+y=cos(x)' title='&#92;frac{dy}{dx}+y=cos(x)' class='latex' /></p>
<p style="padding-left:30px;">(b) <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bd%5E2y%7D%7Bdx%5E2%7D%2B4%5Cfrac%7Bdy%7D%7Bdx%7D%2B4y%3D0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{d^2y}{dx^2}+4&#92;frac{dy}{dx}+4y=0' title='&#92;frac{d^2y}{dx^2}+4&#92;frac{dy}{dx}+4y=0' class='latex' /></p>
<p style="padding-left:30px;">(c) <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bd%5E2x%7D%7Bdt%5E2%7D-2%5Cfrac%7Bdx%7D%7Bdt%7D%2B5x%3D0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{d^2x}{dt^2}-2&#92;frac{dx}{dt}+5x=0' title='&#92;frac{d^2x}{dt^2}-2&#92;frac{dx}{dt}+5x=0' class='latex' /></p>
<p>Find the general solution using Laplace transforms (not by any other method) and plot solutions over a range of t values, for a given initial condition.</p>
<p><strong>(2) </strong><strong>Forced undamped motion</strong>: <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bd%5E2y%7D%7Bdt%5E2%7D%2B%5Comega_0%5E2%3DFsin%28%5Comega+t%2B%5Cbeta%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{d^2y}{dt^2}+&#92;omega_0^2=Fsin(&#92;omega t+&#92;beta)' title='&#92;frac{d^2y}{dt^2}+&#92;omega_0^2=Fsin(&#92;omega t+&#92;beta)' class='latex' />.</p>
<p>Ordinary Differential Equations, Tenenbaum &amp; Pollard, 338-342.</p>
<p><strong>(3) </strong><strong> Kirchoff&#8217;s law for the current in a closed circuit</strong>: <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bd%5E2i%7D%7Bdt%5E2%7D%2B%5Cfrac%7BR%7D%7BL%7D%5Cfrac%7Bdi%7D%7Bdt%7D%2B%5Cfrac%7B1%7D%7BCL%7Di%3D%5Cfrac%7BF%5Comega%7D%7BL%7Dcos%28%5Comega+t%2B%5Cbeta%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{d^2i}{dt^2}+&#92;frac{R}{L}&#92;frac{di}{dt}+&#92;frac{1}{CL}i=&#92;frac{F&#92;omega}{L}cos(&#92;omega t+&#92;beta)' title='&#92;frac{d^2i}{dt^2}+&#92;frac{R}{L}&#92;frac{di}{dt}+&#92;frac{1}{CL}i=&#92;frac{F&#92;omega}{L}cos(&#92;omega t+&#92;beta)' class='latex' />.</p>
<p>Ordinary Differential Equations, Tenenbaum &amp; Pollard, 370-375.</p>
<p><strong>(4) Extra credit:</strong> Discuss the solution of a system of 2 linear first-order differential equations by using Laplace transforms.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mth21202f08.wordpress.com/934/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mth21202f08.wordpress.com/934/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mth21202f08.wordpress.com/934/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mth21202f08.wordpress.com/934/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mth21202f08.wordpress.com/934/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mth21202f08.wordpress.com/934/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mth21202f08.wordpress.com/934/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mth21202f08.wordpress.com/934/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mth21202f08.wordpress.com/934/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mth21202f08.wordpress.com/934/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mth21202f08.wordpress.com/934/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mth21202f08.wordpress.com/934/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mth21202f08.wordpress.com/934/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mth21202f08.wordpress.com/934/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mth21202f08.wordpress.com&amp;blog=4207098&amp;post=934&amp;subd=mth21202f08&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mth21202f08.wordpress.com/2008/11/17/fourth-3-week-block-project-guide/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3896fed97c942d30add82053f85729d2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Editor</media:title>
		</media:content>
	</item>
		<item>
		<title>Fourth 3 week block</title>
		<link>http://mth21202f08.wordpress.com/2008/11/17/fourth-3-week-block/</link>
		<comments>http://mth21202f08.wordpress.com/2008/11/17/fourth-3-week-block/#comments</comments>
		<pubDate>Mon, 17 Nov 2008 16:21:05 +0000</pubDate>
		<dc:creator>Author</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://mth21202f08.wordpress.com/?p=878</guid>
		<description><![CDATA[The Laplace transform Ordinary Differential Equations, Tenenbaum &#38; Pollard, Lesson 27, pages292-312 In this block we will apply the Laplace transform to the solution of linear differential equations involving higher order derivatives. Laplace&#8217;s idea was to transform differential equations into &#8230; <a href="http://mth21202f08.wordpress.com/2008/11/17/fourth-3-week-block/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mth21202f08.wordpress.com&amp;blog=4207098&amp;post=878&amp;subd=mth21202f08&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h3>The Laplace transform</h3>
<p>Ordinary Differential Equations, Tenenbaum &amp; Pollard, Lesson 27, pages292-312</p>
<p>In this block we will apply the <a href="http://en.wikipedia.org/wiki/Laplace_transform">Laplace transform</a> to the solution of <em>linear </em>differential equations involving higher order derivatives.</p>
<p><a href="http://en.wikipedia.org/wiki/Pierre-Simon_Laplace">Laplace&#8217;s</a> idea was to transform differential equations into algebraic equations, rearrange the algebra (sometimes easier said than done) and then look for the unique solution function that gave this algebraic answer. In other words, the differential equation gives us an algebraic gadget, and if we can find a function from a catalog that gives the same algebraic gadget then we have, thanks to the uniqueness of the algebraic gadget, found the solution to the differential equation.</p>
<p>The Laplace transform is an operator on functions, and typically those functions are solutions to linear differential equations.</p>
<p>What makes the Laplace transform work is that solutions to linear differential equations do not grow too fast. We will use the following basic fact, without going into any more details at this point:</p>
<p>if <img src='http://s0.wp.com/latex.php?latex=x%28t%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x(t)' title='x(t)' class='latex' /> satisfies a linear differential equation (of any order) then the improper integral <img src='http://s0.wp.com/latex.php?latex=%5Cint_%7B0%7D%5E%7B%5Cinfty%7De%5E%7B-st%7Dx%28t%29dt&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;int_{0}^{&#92;infty}e^{-st}x(t)dt' title='&#92;int_{0}^{&#92;infty}e^{-st}x(t)dt' class='latex' /> converges for some value of <img src='http://s0.wp.com/latex.php?latex=s&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='s' title='s' class='latex' />.</p>
<p>What it means for the improper integral <img src='http://s0.wp.com/latex.php?latex=%5Cint_%7B0%7D%5E%7B%5Cinfty%7De%5E%7B-st%7Dx%28t%29dt&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;int_{0}^{&#92;infty}e^{-st}x(t)dt' title='&#92;int_{0}^{&#92;infty}e^{-st}x(t)dt' class='latex' /> to <em>converge</em>, is that <img src='http://s0.wp.com/latex.php?latex=%5Clim_%7BR%5Cto+%5Cinfty%7D%5Cint_%7B0%7D%5E%7BR%7De%5E%7B-st%7Dx%28t%29dt&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;lim_{R&#92;to &#92;infty}&#92;int_{0}^{R}e^{-st}x(t)dt' title='&#92;lim_{R&#92;to &#92;infty}&#92;int_{0}^{R}e^{-st}x(t)dt' class='latex' /> exists, for some <img src='http://s0.wp.com/latex.php?latex=s&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='s' title='s' class='latex' />.</p>
<p>Here is an example where the improper integral does not converge for any value of <img src='http://s0.wp.com/latex.php?latex=s&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='s' title='s' class='latex' />:</p>
<p>Let <img src='http://s0.wp.com/latex.php?latex=x%28t%29%3De%5E%7Bt%5E2%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x(t)=e^{t^2}' title='x(t)=e^{t^2}' class='latex' />. Then the improper integral</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cint_%7B0%7D%5E%7B%5Cinfty%7De%5E%7B-st%7Dx%28t%29dt%3D+%5Cint_%7B0%7D%5E%7B%5Cinfty%7De%5E%7B-st%7De%5E%7Bt%5E2%7Ddt%3D+%5Cint_%7B0%7D%5E%7B%5Cinfty%7De%5E%7B-s%7De%5Etdt+%3D+e%5E%7B-s%7D%5Cint_%7B0%7D%5E%7B%5Cinfty%7De%5Etdt+&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;int_{0}^{&#92;infty}e^{-st}x(t)dt= &#92;int_{0}^{&#92;infty}e^{-st}e^{t^2}dt= &#92;int_{0}^{&#92;infty}e^{-s}e^tdt = e^{-s}&#92;int_{0}^{&#92;infty}e^tdt ' title='&#92;int_{0}^{&#92;infty}e^{-st}x(t)dt= &#92;int_{0}^{&#92;infty}e^{-st}e^{t^2}dt= &#92;int_{0}^{&#92;infty}e^{-s}e^tdt = e^{-s}&#92;int_{0}^{&#92;infty}e^tdt ' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%3De%5E%7B-s%7D%5Clim_%7BR+%5Cto+%5Cinfty%7D%5Cint_%7B0%7D%5ERe%5Etdt+%3D+%5Clim_%7BR%5Cto%5Cinfty%7De%5E%7B-s%7D%28e%5ER-1%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='=e^{-s}&#92;lim_{R &#92;to &#92;infty}&#92;int_{0}^Re^tdt = &#92;lim_{R&#92;to&#92;infty}e^{-s}(e^R-1)' title='=e^{-s}&#92;lim_{R &#92;to &#92;infty}&#92;int_{0}^Re^tdt = &#92;lim_{R&#92;to&#92;infty}e^{-s}(e^R-1)' class='latex' /></p>
<p>does not converge for any value of <img src='http://s0.wp.com/latex.php?latex=s&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='s' title='s' class='latex' />.</p>
<p>For convenience, let&#8217;s call a function <img src='http://s0.wp.com/latex.php?latex=x%28t%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x(t)' title='x(t)' class='latex' /> for which the improper integral <img src='http://s0.wp.com/latex.php?latex=%5Cint_%7B0%7D%5E%7B%5Cinfty%7De%5E%7B-st%7Dx%28t%29dt&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;int_{0}^{&#92;infty}e^{-st}x(t)dt' title='&#92;int_{0}^{&#92;infty}e^{-st}x(t)dt' class='latex' /> converges for some <img src='http://s0.wp.com/latex.php?latex=s&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='s' title='s' class='latex' />, <em>exponentially-bounded</em>. The name is meant to imply that, in some loose sense, these functions do not increase too much faster than an exponential function. The calculation above shows that the function <img src='http://s0.wp.com/latex.php?latex=x%28t%29%3De%5E%7Bt%5E2%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x(t)=e^{t^2}' title='x(t)=e^{t^2}' class='latex' /> is not exponentially-bounded. Solutions to linear differential equations are always exponentially-bounded.</p>
<p>For an exponentially-bounded function <img src='http://s0.wp.com/latex.php?latex=x%28t%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x(t)' title='x(t)' class='latex' /> the <em>Laplace transform</em> of <img src='http://s0.wp.com/latex.php?latex=x%28t%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x(t)' title='x(t)' class='latex' /> is <img src='http://s0.wp.com/latex.php?latex=%5Cmathscr%7BL%7D%5Bx%28t%29%5D%3A%3D%5Cint_%7B0%7D%5E%7B%5Cinfty%7De%5E%7B-st%7Dx%28t%29dt&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathscr{L}[x(t)]:=&#92;int_{0}^{&#92;infty}e^{-st}x(t)dt' title='&#92;mathscr{L}[x(t)]:=&#92;int_{0}^{&#92;infty}e^{-st}x(t)dt' class='latex' />.</p>
<p>Here is a very simple example:</p>
<p>the function <img src='http://s0.wp.com/latex.php?latex=x%28t%29%3D1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x(t)=1' title='x(t)=1' class='latex' /> is exponentially-bounded because it is constant, and its Laplace transform is <img src='http://s0.wp.com/latex.php?latex=%5Cmathscr%7BL%7D%5B1%5D%3D%5Cint_%7B0%7D%5E%7B%5Cinfty%7De%5E%7B-st%7Ddt%3D%5Clim_%7BR%5Cto%5Cinfty%7D%5Cint_0%5ER+e%5E%7B-st%7Ddt%3D%5Clim_%7BR%5Cto%5Cinfty%7D%5Cfrac%7B1%7D%7Bs%7D%281-e%5E%7B-sR%7D%29%3D%5Cfrac%7B1%7D%7Bs%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathscr{L}[1]=&#92;int_{0}^{&#92;infty}e^{-st}dt=&#92;lim_{R&#92;to&#92;infty}&#92;int_0^R e^{-st}dt=&#92;lim_{R&#92;to&#92;infty}&#92;frac{1}{s}(1-e^{-sR})=&#92;frac{1}{s}' title='&#92;mathscr{L}[1]=&#92;int_{0}^{&#92;infty}e^{-st}dt=&#92;lim_{R&#92;to&#92;infty}&#92;int_0^R e^{-st}dt=&#92;lim_{R&#92;to&#92;infty}&#92;frac{1}{s}(1-e^{-sR})=&#92;frac{1}{s}' class='latex' /> for <img src='http://s0.wp.com/latex.php?latex=s%3E0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='s&gt;0' title='s&gt;0' class='latex' />.</p>
<p>For more complicated functions (that is, just about everything else) the calculation of Laplace transforms becomes more complicated. Not so long ago people complied tables of Laplace transforms because calculation of the Laplace transform was relatively less easy, and because one wanted to read the answer backwards &#8211; knowing what Laplace transform we got from a solution to a linear differential equation, which known function also had this Laplace transform. The text for this course has short tables of Laplace transforms on pages 306 and 310.</p>
<p>Nowadays, there is some progress in this area. Because computer algebra systems have built-in versions fo the latest algorithms for calculating integals, it is no surprise that these systems can readily calculate Laplace transforms. So the hard work of calculating integrals is passed to the computer algebra system which does this not only as well as we can do it, but better than we can, and as well as it can possibly be done.</p>
<p>The MATLAB command for calculating the Laplace transform <img src='http://s0.wp.com/latex.php?latex=%5Cmathscr%7BL%7D%5Bx%28t%29%5D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathscr{L}[x(t)]' title='&#92;mathscr{L}[x(t)]' class='latex' /> of a function <img src='http://s0.wp.com/latex.php?latex=x%28t%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x(t)' title='x(t)' class='latex' /> is</p>
<p><strong>&gt;&gt; syms s t; laplace(x(t) ,t,s)</strong></p>
<p>Without the command &#8220;syms s t&#8221; MATLAB does not know how to handle the symbols &#8220;s&#8221; and &#8220;t&#8221;.</p>
<p>So, for example,</p>
<p><strong>&gt;&gt; syms s t; laplace(1 ,t,s)</strong></p>
<p>yields</p>
<p><strong>1/s</strong></p>
<p>The Mathematica command for the Laplace transform is</p>
<p><strong>LaplaceTransform[x[t], t, s]</strong></p>
<h3>Laplace transforms and linear differential equations</h3>
<p>It is a simple consequence of basic properties of integrals that for any two exponentially-bounded functions <img src='http://s0.wp.com/latex.php?latex=x%28t%29%2Cy%28t%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x(t),y(t)' title='x(t),y(t)' class='latex' /> and any two constant <img src='http://s0.wp.com/latex.php?latex=a%2Cb&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a,b' title='a,b' class='latex' /> we have <img src='http://s0.wp.com/latex.php?latex=%5Cmathscr%7BL%7D%5Bax%28t%29%2Bby%28t%29%5D%3D+a%5Cmathscr%7BL%7D%5Bx%28t%29%5D%2Bb%5Cmathscr%7BL%7D%5By%28t%29%5D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathscr{L}[ax(t)+by(t)]= a&#92;mathscr{L}[x(t)]+b&#92;mathscr{L}[y(t)]' title='&#92;mathscr{L}[ax(t)+by(t)]= a&#92;mathscr{L}[x(t)]+b&#92;mathscr{L}[y(t)]' class='latex' />. In other words, the Laplace transform is a linear operator on exponentially-bounded functions. It is this linearity property that allows us to usefully apply the Laplace transform to linear differential equations.</p>
<p>One more ingredient we will need is a formula to relate the Laplace transform of the derivative <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdx%7D%7Bdt%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{dx}{dt}' title='&#92;frac{dx}{dt}' class='latex' /> of a function <img src='http://s0.wp.com/latex.php?latex=x%28t%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x(t)' title='x(t)' class='latex' /> to the Lapalce transform of <img src='http://s0.wp.com/latex.php?latex=x%28t%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x(t)' title='x(t)' class='latex' />.</p>
<p>The formula we want comes about by a straightforward use of integration by parts:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cint_0%5E%7B%5Cinfty%7De%5E%7B-st%7D%5Cfrac%7Bdx%28t%29%7D%7Bdt%7Ddt%3D%5Clim_%7BR%5Cto%5Cinfty%7D%28e%5E%7B-sR%7Dx%28R%29-x%280%29%29%2Bs%5Cint_0%5E%7B%5Cinfty%7De%5E%7B-st%7Dx%28t%29dt%3D%5Cmathscr%7BL%7D%5Bx%28t%29%5D-x%280%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;int_0^{&#92;infty}e^{-st}&#92;frac{dx(t)}{dt}dt=&#92;lim_{R&#92;to&#92;infty}(e^{-sR}x(R)-x(0))+s&#92;int_0^{&#92;infty}e^{-st}x(t)dt=&#92;mathscr{L}[x(t)]-x(0)' title='&#92;int_0^{&#92;infty}e^{-st}&#92;frac{dx(t)}{dt}dt=&#92;lim_{R&#92;to&#92;infty}(e^{-sR}x(R)-x(0))+s&#92;int_0^{&#92;infty}e^{-st}x(t)dt=&#92;mathscr{L}[x(t)]-x(0)' class='latex' /></p>
<h4>First-order homogeneous linear differential equations</h4>
<p>These are differential equations of the form <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdx%7D%7Bdt%7D%2BBx+%3D0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{dx}{dt}+Bx =0' title='&#92;frac{dx}{dt}+Bx =0' class='latex' />.</p>
<p>By applying a Laplace transfrom to both sides of this differential equation we see that we must have <img src='http://s0.wp.com/latex.php?latex=s%5Cmathscr%7BL%7D%5Bx%28t%29%5D-x%280%29%2BB%5Cmathscr%7BL%7D%5Bx%28t%29%5D%5D%3D0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='s&#92;mathscr{L}[x(t)]-x(0)+B&#92;mathscr{L}[x(t)]]=0' title='s&#92;mathscr{L}[x(t)]-x(0)+B&#92;mathscr{L}[x(t)]]=0' class='latex' /> for a solution <img src='http://s0.wp.com/latex.php?latex=x%28t%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x(t)' title='x(t)' class='latex' /> to the differential equation. That is, <img src='http://s0.wp.com/latex.php?latex=%5Cmathscr%7BL%7D%5Bx%28t%29%5D%3D%5Cfrac%7Bx%280%29%7D%7BB%2Bs%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathscr{L}[x(t)]=&#92;frac{x(0)}{B+s}' title='&#92;mathscr{L}[x(t)]=&#92;frac{x(0)}{B+s}' class='latex' /> for <img src='http://s0.wp.com/latex.php?latex=s%3E-B&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='s&gt;-B' title='s&gt;-B' class='latex' />.</p>
<p>So, if we can find a function <img src='http://s0.wp.com/latex.php?latex=x%28t%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x(t)' title='x(t)' class='latex' /> with <img src='http://s0.wp.com/latex.php?latex=%5Cmathscr%7BL%7D%5Bx%28t%29%5D%3D%5Cfrac%7B1%7D%7BB%2Bs%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathscr{L}[x(t)]=&#92;frac{1}{B+s}' title='&#92;mathscr{L}[x(t)]=&#92;frac{1}{B+s}' class='latex' /> then , by the uniqueness of Laplace transforms for exponentially-bounded functions, we will have found, to within a constant, the solution to the differential equation.</p>
<p>Fortunately for us, both MATLAB and Mathematica have built-in commands for finding the inverse of the Laplace transform. For MATLAB the command is</p>
<p><strong>&gt;&gt; syms A B s t; ilaplace(A/(B+s),s,t)</strong></p>
<p>with the result</p>
<p><strong>&gt;&gt; A*exp(-B*t)</strong></p>
<p>For Mathematica the command is</p>
<p><strong>Inverse LaplaceTransform[A/(B+s),s,t]</strong></p>
<p>with the result</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cbf%7BA+e%5E%7B-Bt%7D%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;bf{A e^{-Bt}}' title='&#92;bf{A e^{-Bt}}' class='latex' /></p>
<p>In our case, <img src='http://s0.wp.com/latex.php?latex=A%3Dx%280%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A=x(0)' title='A=x(0)' class='latex' /> so the solution to the differential equation is <img src='http://s0.wp.com/latex.php?latex=x%28t%29+%3D+x%280%29e%5E%7B-Bt%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x(t) = x(0)e^{-Bt}' title='x(t) = x(0)e^{-Bt}' class='latex' />.</p>
<h4>First-order non-homogeneous linear differential equations</h4>
<p>These are differential equations of the form <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdx%7D%7Bdt%7D%2BBx+%3DC&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{dx}{dt}+Bx =C' title='&#92;frac{dx}{dt}+Bx =C' class='latex' /> where <img src='http://s0.wp.com/latex.php?latex=C%5Cneq0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='C&#92;neq0' title='C&#92;neq0' class='latex' />. A similar approach to the homogeneous case shows us that the Laplace transform <img src='http://s0.wp.com/latex.php?latex=%5Cmathscr%7BL%7D%5Bx%28t%29%5D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathscr{L}[x(t)]' title='&#92;mathscr{L}[x(t)]' class='latex' /> of a solution <img src='http://s0.wp.com/latex.php?latex=x%28t%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x(t)' title='x(t)' class='latex' /> must satisfy <img src='http://s0.wp.com/latex.php?latex=%5Cmathscr%7BL%7D%5Bx%28t%29%5D%3D%5Cfrac%7Bx%280%29%7D%7BB%2Bs%7D%2B%5Cfrac%7BC%7D%7Bs%28B%2Bs%29%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathscr{L}[x(t)]=&#92;frac{x(0)}{B+s}+&#92;frac{C}{s(B+s)}' title='&#92;mathscr{L}[x(t)]=&#92;frac{x(0)}{B+s}+&#92;frac{C}{s(B+s)}' class='latex' />.</p>
<p>Using inverse Laplace transforms we get <img src='http://s0.wp.com/latex.php?latex=x%28t%29+%3D+%5Cfrac%7BC%7D%7BB%7D%2B%5Cfrac%7BAB-C%7D%7BB%7De%5E%7B-Bt%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x(t) = &#92;frac{C}{B}+&#92;frac{AB-C}{B}e^{-Bt}' title='x(t) = &#92;frac{C}{B}+&#92;frac{AB-C}{B}e^{-Bt}' class='latex' /> where <img src='http://s0.wp.com/latex.php?latex=A%3D+x%280%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A= x(0)' title='A= x(0)' class='latex' />.</p>
<h4>Second-order linear differential equations</h4>
<p>These are linear differential equations of the form <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bd%5E2x%7D%7Bdt%5E2%7D%2BB%5Cfrac%7Bdx%7D%7Bdt%7D%2BCx%28t%29%3DD&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{d^2x}{dt^2}+B&#92;frac{dx}{dt}+Cx(t)=D' title='&#92;frac{d^2x}{dt^2}+B&#92;frac{dx}{dt}+Cx(t)=D' class='latex' />.</p>
<p>We apply the Laplace transform to <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bd%5E2x%7D%7Bdt%5E2%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{d^2x}{dt^2}' title='&#92;frac{d^2x}{dt^2}' class='latex' /> to get</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cmathscr%7BL%7D%5B%5Cfrac%7Bd%5E2x%7D%7Bdt%5E2%7D%5D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathscr{L}[&#92;frac{d^2x}{dt^2}]' title='&#92;mathscr{L}[&#92;frac{d^2x}{dt^2}]' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%3Ds%5Cmathscr%7BL%7D%5B%5Cfrac%7Bdx%7D%7Bdt%7D%5D-%5Cfrac%7Bdx%7D%7Bdt%7D%5Cvert_%7Bt%3D0%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='=s&#92;mathscr{L}[&#92;frac{dx}{dt}]-&#92;frac{dx}{dt}&#92;vert_{t=0}' title='=s&#92;mathscr{L}[&#92;frac{dx}{dt}]-&#92;frac{dx}{dt}&#92;vert_{t=0}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%3Ds%28s%5Cmathscr%7BL%7D%5Bx%28t%29%5D-x%280%29%29-%5Cfrac%7Bdx%7D%7Bdt%7D%5Cvert_%7Bt%3D0%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='=s(s&#92;mathscr{L}[x(t)]-x(0))-&#92;frac{dx}{dt}&#92;vert_{t=0}' title='=s(s&#92;mathscr{L}[x(t)]-x(0))-&#92;frac{dx}{dt}&#92;vert_{t=0}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%3Ds%5E2%5Cmathscr%7BL%7D%5Bx%28t%29%5D-sx%280%29-%5Cfrac%7Bdx%7D%7Bdt%7D%5Cvert_%7Bt%3D0%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='=s^2&#92;mathscr{L}[x(t)]-sx(0)-&#92;frac{dx}{dt}&#92;vert_{t=0}' title='=s^2&#92;mathscr{L}[x(t)]-sx(0)-&#92;frac{dx}{dt}&#92;vert_{t=0}' class='latex' /></p>
<p>Applying this to the second-order differential equation above gives</p>
<p><img src='http://s0.wp.com/latex.php?latex=s%5E2%5Cmathscr%7BL%7D%5Bx%28t%29%5D-sx%280%29-%5Cfrac%7Bdx%7D%7Bdt%7D%5Cvert_%7Bt%3D0%7D+%2BB%28s%5Cmathscr%7BL%7D%5Bx%28t%29%5D-x%280%29%29%2BC%5Cmathscr%7BL%7D%5Bx%28t%29%5D%3D%5Cfrac%7BD%7D%7Bs%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='s^2&#92;mathscr{L}[x(t)]-sx(0)-&#92;frac{dx}{dt}&#92;vert_{t=0} +B(s&#92;mathscr{L}[x(t)]-x(0))+C&#92;mathscr{L}[x(t)]=&#92;frac{D}{s}' title='s^2&#92;mathscr{L}[x(t)]-sx(0)-&#92;frac{dx}{dt}&#92;vert_{t=0} +B(s&#92;mathscr{L}[x(t)]-x(0))+C&#92;mathscr{L}[x(t)]=&#92;frac{D}{s}' class='latex' />.</p>
<p>This is an algebraic expression which we solve for <img src='http://s0.wp.com/latex.php?latex=%5Cmathscr%7BL%7D%5Bx%28t%29%5D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathscr{L}[x(t)]' title='&#92;mathscr{L}[x(t)]' class='latex' />. We then apply the inverse Laplace transform as before to find the solution of the linear differential equation.</p>
<p>Details for doing this are given on pages 185-187 of differential Equations with MATLAB, Hunt <em>and others</em>, or in the &#8220;Applications&#8221; section for &#8220;LaplaceTransform&#8221; in the Mathematica help system.</p>
<p>Note that in the second-order differential equation above, we have assumed <img src='http://s0.wp.com/latex.php?latex=D%3D0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='D=0' title='D=0' class='latex' />, but there is no reason to do this: we can replace D by any function for which we can find a Laplace transform, that is, by any exponentially-bounded function.</p>
<h4>Second-order equations and systems of first order equations</h4>
<p>The second-order linear equation <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bd%5E2x%7D%7Bdt%5E2%7D%2BB%5Cfrac%7Bdx%7D%7Bdt%7D%2BCx%28t%29%3DD&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{d^2x}{dt^2}+B&#92;frac{dx}{dt}+Cx(t)=D' title='&#92;frac{d^2x}{dt^2}+B&#92;frac{dx}{dt}+Cx(t)=D' class='latex' /> can be written as a system of two first-order linear equations by the simple device of writing <img src='http://s0.wp.com/latex.php?latex=y%28t%29%3D%5Cfrac%7Bdx%7D%7Bdt%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y(t)=&#92;frac{dx}{dt}' title='y(t)=&#92;frac{dx}{dt}' class='latex' />. By this device, we can re-write the second-order linear differential equation as the following system of first-order linear equations:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdx%7D%7Bdt%7D%2BBy%28t%29%2BCx%28t%29%3DD&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{dx}{dt}+By(t)+Cx(t)=D' title='&#92;frac{dx}{dt}+By(t)+Cx(t)=D' class='latex' /></p>
<p>$layex \frac{dx}{dt}=y(t)$.</p>
<p>In the other direction we can, in general, write a system of linear-first-order equations as a single second-order linear differential equation. The exception is when the two first-order equations are completely decoupled.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mth21202f08.wordpress.com/878/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mth21202f08.wordpress.com/878/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mth21202f08.wordpress.com/878/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mth21202f08.wordpress.com/878/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mth21202f08.wordpress.com/878/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mth21202f08.wordpress.com/878/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mth21202f08.wordpress.com/878/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mth21202f08.wordpress.com/878/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mth21202f08.wordpress.com/878/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mth21202f08.wordpress.com/878/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mth21202f08.wordpress.com/878/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mth21202f08.wordpress.com/878/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mth21202f08.wordpress.com/878/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mth21202f08.wordpress.com/878/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mth21202f08.wordpress.com&amp;blog=4207098&amp;post=878&amp;subd=mth21202f08&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mth21202f08.wordpress.com/2008/11/17/fourth-3-week-block/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3896fed97c942d30add82053f85729d2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Editor</media:title>
		</media:content>
	</item>
		<item>
		<title>Third 3 week block, Part 2</title>
		<link>http://mth21202f08.wordpress.com/2008/10/27/third-3-week-block-part-2/</link>
		<comments>http://mth21202f08.wordpress.com/2008/10/27/third-3-week-block-part-2/#comments</comments>
		<pubDate>Mon, 27 Oct 2008 16:03:28 +0000</pubDate>
		<dc:creator>Author</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://mth21202f08.wordpress.com/?p=824</guid>
		<description><![CDATA[Common practice is to write a linear function by picking out the coefficients in a square array: called a matrix. This square matrix A encodes the essential information for the linear function T.  The matrix operates on vectors to produce &#8230; <a href="http://mth21202f08.wordpress.com/2008/10/27/third-3-week-block-part-2/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mth21202f08.wordpress.com&amp;blog=4207098&amp;post=824&amp;subd=mth21202f08&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Common practice is to write a linear function <img src='http://s0.wp.com/latex.php?latex=T%5B%28x%2Cy%29%5D%3A%3D%28ax%2Bby%2C+cx%2Bdy%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T[(x,y)]:=(ax+by, cx+dy)' title='T[(x,y)]:=(ax+by, cx+dy)' class='latex' /> by picking out the coefficients <img src='http://s0.wp.com/latex.php?latex=a%2C+b%2C+c%2C+d&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a, b, c, d' title='a, b, c, d' class='latex' /> in a square array:</p>
<p><img src='http://s0.wp.com/latex.php?latex=A%3D%5Cleft%28+%5Cbegin%7Barray%7D%7Bcc%7D+a+%26+b+%5C%5C+c+%26+d+%5Cend%7Barray%7D+%5Cright%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A=&#92;left( &#92;begin{array}{cc} a &amp; b &#92;&#92; c &amp; d &#92;end{array} &#92;right)' title='A=&#92;left( &#92;begin{array}{cc} a &amp; b &#92;&#92; c &amp; d &#92;end{array} &#92;right)' class='latex' /></p>
<p>called a <em>matrix</em>.</p>
<p>This square matrix A encodes the essential information for the linear function T.  The matrix operates on vectors to produce the exact same result as does T:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cleft%28+%5Cbegin%7Barray%7D%7Bcc%7D+a+%26+b+%5C%5C+c+%26+d+%5Cend%7Barray%7D+%5Cright%29.+%5Cleft%28+%5Cbegin%7Barray%7D%7Bc%7D+x+%5C%5C+y+%5Cend%7Barray%7D+%5Cright%29%3D+%5Cleft%28+%5Cbegin%7Barray%7D%7Bc%7D+ax+%2B+by+%5C%5C+cx+%2B+dy+%5Cend%7Barray%7D+%5Cright%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;left( &#92;begin{array}{cc} a &amp; b &#92;&#92; c &amp; d &#92;end{array} &#92;right). &#92;left( &#92;begin{array}{c} x &#92;&#92; y &#92;end{array} &#92;right)= &#92;left( &#92;begin{array}{c} ax + by &#92;&#92; cx + dy &#92;end{array} &#92;right)' title='&#92;left( &#92;begin{array}{cc} a &amp; b &#92;&#92; c &amp; d &#92;end{array} &#92;right). &#92;left( &#92;begin{array}{c} x &#92;&#92; y &#92;end{array} &#92;right)= &#92;left( &#92;begin{array}{c} ax + by &#92;&#92; cx + dy &#92;end{array} &#92;right)' class='latex' />.</p>
<p>The constants <img src='http://s0.wp.com/latex.php?latex=%5Clambda&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;lambda' title='&#92;lambda' class='latex' /> associated with finding the invariant lines of T are the <em>eigenvalues </em>of  <img src='http://s0.wp.com/latex.php?latex=A%3D%5Cleft%28+%5Cbegin%7Barray%7D%7Bcc%7D+a+%26+b+%5C%5C+c+%26+d+%5Cend%7Barray%7D+%5Cright%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A=&#92;left( &#92;begin{array}{cc} a &amp; b &#92;&#92; c &amp; d &#92;end{array} &#92;right)' title='A=&#92;left( &#92;begin{array}{cc} a &amp; b &#92;&#92; c &amp; d &#92;end{array} &#92;right)' class='latex' />, and they are the roots of the quadratic polynomial <img src='http://s0.wp.com/latex.php?latex=%28%5Clambda+-+a%29%28%5Clambda+-+d%29+-+bc&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(&#92;lambda - a)(&#92;lambda - d) - bc' title='(&#92;lambda - a)(&#92;lambda - d) - bc' class='latex' />, which is known as the <em>characteristic polynomial</em> of A  (if you have studied some linear algebra, this is the determinant of <img src='http://s0.wp.com/latex.php?latex=%5Clambda+I+-+A&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;lambda I - A' title='&#92;lambda I - A' class='latex' />).</p>
<p>The characteristic polynomial, being a <a href="http://en.wikipedia.org/wiki/Quadratic_equation">quadratic</a> in <img src='http://s0.wp.com/latex.php?latex=%5Clambda&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;lambda' title='&#92;lambda' class='latex' /> can have two distinct real roots, one real root, and two complex roots which are complex conjugates.</p>
<p>The behavior of the associated differential equations</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdx%7D%7Bdt%7D%3Dax%2Bby&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{dx}{dt}=ax+by' title='&#92;frac{dx}{dt}=ax+by' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdy%7D%7Bdt%7D%3Dcx%2Bdy&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{dy}{dt}=cx+dy' title='&#92;frac{dy}{dt}=cx+dy' class='latex' /></p>
<p>(which describe the smooth flow of the vector field corresponding to the linear function T)</p>
<p>is qualitatively different, according to the character of the solutions to the characteristic equation.</p>
<h3>Case 1: Two distinct roots</h3>
<p>The characteristic equation is <img src='http://s0.wp.com/latex.php?latex=%28%5Clambda-a%29%28%5Clambda-d%29-bc+%3D+%5Clambda%5E2-%28a%2Bd%29%5Clambda%2B%28ad-bc%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(&#92;lambda-a)(&#92;lambda-d)-bc = &#92;lambda^2-(a+d)&#92;lambda+(ad-bc)' title='(&#92;lambda-a)(&#92;lambda-d)-bc = &#92;lambda^2-(a+d)&#92;lambda+(ad-bc)' class='latex' /> which has roots <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7B1%7D%7B2%7D%28a%2Bd%29+%5Cpm+%5Cfrac%7B1%7D%7B2%7D%5Csqrt%7B%28a-d%29%5E2%2B4bc%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{1}{2}(a+d) &#92;pm &#92;frac{1}{2}&#92;sqrt{(a-d)^2+4bc}' title='&#92;frac{1}{2}(a+d) &#92;pm &#92;frac{1}{2}&#92;sqrt{(a-d)^2+4bc}' class='latex' /> so there are two distinct real roots exactly when <img src='http://s0.wp.com/latex.php?latex=%28a-d%29%5E2%2B4bc+%3E0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(a-d)^2+4bc &gt;0' title='(a-d)^2+4bc &gt;0' class='latex' />.</p>
<p>This happens, for example, for the linear function with matrix <img src='http://s0.wp.com/latex.php?latex=A%3D%5Cleft%28+%5Cbegin%7Barray%7D%7Bcc%7D+1+%26+1+%5C%5C+1+%26+0+%5Cend%7Barray%7D+%5Cright%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A=&#92;left( &#92;begin{array}{cc} 1 &amp; 1 &#92;&#92; 1 &amp; 0 &#92;end{array} &#92;right)' title='A=&#92;left( &#92;begin{array}{cc} 1 &amp; 1 &#92;&#92; 1 &amp; 0 &#92;end{array} &#92;right)' class='latex' />, where the roots of the characteristic equation are <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7B1%7D%7B2%7D%281+%5Cpm+%5Csqrt%7B5%7D%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{1}{2}(1 &#92;pm &#92;sqrt{5})' title='&#92;frac{1}{2}(1 &#92;pm &#92;sqrt{5})' class='latex' />. Let&#8217;s call these two roots <img src='http://s0.wp.com/latex.php?latex=%5Clambda_1%3A%3D%5Cfrac%7B1%7D%7B2%7D%281-%5Csqrt%7B5%7D%29+%5Capprox+-0.618034&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;lambda_1:=&#92;frac{1}{2}(1-&#92;sqrt{5}) &#92;approx -0.618034' title='&#92;lambda_1:=&#92;frac{1}{2}(1-&#92;sqrt{5}) &#92;approx -0.618034' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5Clambda_2%3A%3D%5Cfrac%7B1%7D%7B2%7D%281%2B%5Csqrt%7B5%7D+%5Capprox+1.618034%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;lambda_2:=&#92;frac{1}{2}(1+&#92;sqrt{5} &#92;approx 1.618034)' title='&#92;lambda_2:=&#92;frac{1}{2}(1+&#92;sqrt{5} &#92;approx 1.618034)' class='latex' />. There are two invariant lines for the linear function defined by the matrix A: the lines <img src='http://s0.wp.com/latex.php?latex=y%3D%28%5Clambda_1-1%29x+%5Capprox+-1.618034x&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y=(&#92;lambda_1-1)x &#92;approx -1.618034x' title='y=(&#92;lambda_1-1)x &#92;approx -1.618034x' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=y%3D%28%5Clambda_2+-1%29x%5Capprox+0.618034x&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y=(&#92;lambda_2 -1)x&#92;approx 0.618034x' title='y=(&#92;lambda_2 -1)x&#92;approx 0.618034x' class='latex' />.</p>
<p>The corresponding differential equations (for the flow of the vector field) for this linear function are:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdx%7D%7Bdt%7D%3Dx%2By&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{dx}{dt}=x+y' title='&#92;frac{dx}{dt}=x+y' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdy%7D%7Bdt%7D%3Dx&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{dy}{dt}=x' title='&#92;frac{dy}{dt}=x' class='latex' /></p>
<p>On the line <img src='http://s0.wp.com/latex.php?latex=y%3D%28%5Clambda_1-1%29x+%5Capprox+-1.618034x&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y=(&#92;lambda_1-1)x &#92;approx -1.618034x' title='y=(&#92;lambda_1-1)x &#92;approx -1.618034x' class='latex' /> the differential equations reduce to a single differential equation:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdx%7D%7Bdt%7D%3D%5Clambda_1x+%5Capprox+-0.618034x&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{dx}{dt}=&#92;lambda_1x &#92;approx -0.618034x' title='&#92;frac{dx}{dt}=&#92;lambda_1x &#92;approx -0.618034x' class='latex' />.</p>
<p>This simple linear differential equation has an exponential solution <img src='http://s0.wp.com/latex.php?latex=x%28t%29%3DC_1e%5E%7B%5Clambda_1t%7D+%5Capprox+C_1e%5E%7B-0.618034t%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x(t)=C_1e^{&#92;lambda_1t} &#92;approx C_1e^{-0.618034t}' title='x(t)=C_1e^{&#92;lambda_1t} &#92;approx C_1e^{-0.618034t}' class='latex' />, where <img src='http://s0.wp.com/latex.php?latex=C_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='C_1' title='C_1' class='latex' /> is an arbitrary constant,  BUT ONLY ON THE LINE <img src='http://s0.wp.com/latex.php?latex=y%3D%28%5Clambda_1-1%29x+%5Capprox+-1.618034x&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y=(&#92;lambda_1-1)x &#92;approx -1.618034x' title='y=(&#92;lambda_1-1)x &#92;approx -1.618034x' class='latex' />.</p>
<p>On the other invariant line, <img src='http://s0.wp.com/latex.php?latex=y%3D%28%5Clambda_2-1%29x+%5Capprox+0.618034x&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y=(&#92;lambda_2-1)x &#92;approx 0.618034x' title='y=(&#92;lambda_2-1)x &#92;approx 0.618034x' class='latex' />, the differential equations reduce to a single differential equation:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdx%7D%7Bdt%7D%3D%5Clambda_2x+%5Capprox+1.618034x&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{dx}{dt}=&#92;lambda_2x &#92;approx 1.618034x' title='&#92;frac{dx}{dt}=&#92;lambda_2x &#92;approx 1.618034x' class='latex' /></p>
<p>which has the exponential solution <img src='http://s0.wp.com/latex.php?latex=x%28t%29%3DC_2e%5E%7B%5Clambda_2t%7D+%5Capprox+C_2e%5E%7B1.618034t%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x(t)=C_2e^{&#92;lambda_2t} &#92;approx C_2e^{1.618034t}' title='x(t)=C_2e^{&#92;lambda_2t} &#92;approx C_2e^{1.618034t}' class='latex' />, where <img src='http://s0.wp.com/latex.php?latex=C_2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='C_2' title='C_2' class='latex' /> is an arbitrary constant,  BUT ONLY ON THE LINE <img src='http://s0.wp.com/latex.php?latex=y%3D%28%5Clambda_2-1%29x+%5Capprox+0.618034x&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y=(&#92;lambda_2-1)x &#92;approx 0.618034x' title='y=(&#92;lambda_2-1)x &#92;approx 0.618034x' class='latex' />.</p>
<p>What about solutions to the differential equations</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdx%7D%7Bdt%7D%3Dx%2By&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{dx}{dt}=x+y' title='&#92;frac{dx}{dt}=x+y' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdy%7D%7Bdt%7D%3Dx&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{dy}{dt}=x' title='&#92;frac{dy}{dt}=x' class='latex' /></p>
<p>that are not restricted to one or the other of these two invariant lines, but describe a flow through other parts of the plane?</p>
<p>The idea is to project such solutions onto both of the invariant lines, and add together the projected solutions we find on  the invariant lines.</p>
<p>In this example we see that one of the eigenvalues is negative and the other is positive. This gives us a flow for which the origin <img src='http://s0.wp.com/latex.php?latex=%280%2C0%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(0,0)' title='(0,0)' class='latex' /> is a saddle point, with the flow coming in toward the origin on one of the invariant lines, and away from the origin along the other invariant line.</p>
<p><a href="http://mth21202f08.files.wordpress.com/2008/10/saddle_point.jpg"><img class="aligncenter size-full wp-image-869" title="saddle_point" src="http://mth21202f08.files.wordpress.com/2008/10/saddle_point.jpg?w=500" alt=""   /></a></p>
<p>A very nice picture of this can be obtained using <a href="http://www2.umassd.edu/temath/">TEMATH</a>(Tools for Exploring Mathematics).</p>
<p>TEMATH is installed on the computers in the lab. Open it and run this example following the instructions <a href="http://www2.umassd.edu/temath/">here</a>. You can also download TEMATH and run it on your own computer.</p>
<p>In the TEMATH instructions, an <em>eigenvector </em>is any non-zero vector on the invariant line for an eigenvalue.</p>
<h3>Tasks for this 3-week block</h3>
<p>Using TEMATH and/or MATLAB, go through all the cases for the roots of the characteristic equation, describing the geometry of the solutions of the differential equations</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdx%7D%7Bdt%7D%3Dax%2Bby&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{dx}{dt}=ax+by' title='&#92;frac{dx}{dt}=ax+by' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdy%7D%7Bdt%7D%3Dcx%2Bdy&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{dy}{dt}=cx+dy' title='&#92;frac{dy}{dt}=cx+dy' class='latex' /></p>
<p>for the linear function corresponding to the matrix <img src='http://s0.wp.com/latex.php?latex=A%3D%5Cleft%28+%5Cbegin%7Barray%7D%7Bcc%7D+a+%26+b+%5C%5C+c+%26+d+%5Cend%7Barray%7D+%5Cright%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A=&#92;left( &#92;begin{array}{cc} a &amp; b &#92;&#92; c &amp; d &#92;end{array} &#92;right)' title='A=&#92;left( &#92;begin{array}{cc} a &amp; b &#92;&#92; c &amp; d &#92;end{array} &#92;right)' class='latex' />. Use examples different to those on the TEMATH page.</p>
<p>In each case, also describe the exact solutions to the differential equations obtained from MATLAB, and relate the form of those solutions to the geometry of the flow.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mth21202f08.wordpress.com/824/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mth21202f08.wordpress.com/824/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mth21202f08.wordpress.com/824/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mth21202f08.wordpress.com/824/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mth21202f08.wordpress.com/824/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mth21202f08.wordpress.com/824/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mth21202f08.wordpress.com/824/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mth21202f08.wordpress.com/824/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mth21202f08.wordpress.com/824/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mth21202f08.wordpress.com/824/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mth21202f08.wordpress.com/824/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mth21202f08.wordpress.com/824/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mth21202f08.wordpress.com/824/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mth21202f08.wordpress.com/824/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mth21202f08.wordpress.com&amp;blog=4207098&amp;post=824&amp;subd=mth21202f08&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mth21202f08.wordpress.com/2008/10/27/third-3-week-block-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3896fed97c942d30add82053f85729d2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Editor</media:title>
		</media:content>

		<media:content url="http://mth21202f08.files.wordpress.com/2008/10/saddle_point.jpg" medium="image">
			<media:title type="html">saddle_point</media:title>
		</media:content>
	</item>
		<item>
		<title>Third 3 week block, Part 1</title>
		<link>http://mth21202f08.wordpress.com/2008/10/20/third-3-week-block-part-1/</link>
		<comments>http://mth21202f08.wordpress.com/2008/10/20/third-3-week-block-part-1/#comments</comments>
		<pubDate>Mon, 20 Oct 2008 16:34:24 +0000</pubDate>
		<dc:creator>Author</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://mth21202f08.wordpress.com/?p=747</guid>
		<description><![CDATA[Systems of linear differential equations In this 3-week block we will be looking at the behavior of systems of linear differential equations. A system of two linear differential equations is a pair of linked differential equations of the form where &#8230; <a href="http://mth21202f08.wordpress.com/2008/10/20/third-3-week-block-part-1/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mth21202f08.wordpress.com&amp;blog=4207098&amp;post=747&amp;subd=mth21202f08&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h3>Systems of linear differential equations</h3>
<p>In this 3-week block we will be looking at the behavior of systems of linear differential equations.</p>
<p>A system of two linear differential equations is a pair of linked differential equations of the form</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdx%7D%7Bdt%7D%3Dax%2Bby&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{dx}{dt}=ax+by' title='&#92;frac{dx}{dt}=ax+by' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdy%7D%7Bdt%7D%3Dcx%2Bdy&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{dy}{dt}=cx+dy' title='&#92;frac{dy}{dt}=cx+dy' class='latex' /></p>
<p>where <img src='http://s0.wp.com/latex.php?latex=a%2C+b%2C+c%2C+d&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a, b, c, d' title='a, b, c, d' class='latex' /> are constants.</p>
<p>There is a more general form for linear systems in which the <img src='http://s0.wp.com/latex.php?latex=a%2C+b%2C+c%2C+d&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a, b, c, d' title='a, b, c, d' class='latex' /> vary with <img src='http://s0.wp.com/latex.php?latex=t&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='t' title='t' class='latex' /> but in this block we will only look at the case in which <img src='http://s0.wp.com/latex.php?latex=a%2C+b%2C+c%2C+d&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a, b, c, d' title='a, b, c, d' class='latex' /> are constant, and do not vary with <img src='http://s0.wp.com/latex.php?latex=t&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='t' title='t' class='latex' />.</p>
<p>The analysis of systems of linked linear differential equations revolves around the behavior of linear functions, so will first spend a little time looking at linear functions on the <img src='http://s0.wp.com/latex.php?latex=x-y&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x-y' title='x-y' class='latex' /> plane. Trying to get a picture of a linear function will lead us very naturally into systems of linear differential equations.</p>
<h3>Linear transformations of vectors</h3>
<p>The Euclidean plane consists of all ordered pairs <img src='http://s0.wp.com/latex.php?latex=%28x%2Cy%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(x,y)' title='(x,y)' class='latex' /> where <img src='http://s0.wp.com/latex.php?latex=x+%5Ctextrm%7B+and+%7D+y&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x &#92;textrm{ and } y' title='x &#92;textrm{ and } y' class='latex' /> are real numbers. We think of the point <img src='http://s0.wp.com/latex.php?latex=%28x%2Cy%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(x,y)' title='(x,y)' class='latex' /> as the endpoint of a vector segment that starts at the origin <img src='http://s0.wp.com/latex.php?latex=%280%2C0%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(0,0)' title='(0,0)' class='latex' />:</p>
<p><a href="http://mth21202f08.files.wordpress.com/2008/10/x-y_plane.jpg"><img class="aligncenter size-full wp-image-755" title="x-y_plane" src="http://mth21202f08.files.wordpress.com/2008/10/x-y_plane.jpg?w=500" alt=""   /></a></p>
<p>Sometimes we will refer to &#8220;the vector <img src='http://s0.wp.com/latex.php?latex=%28x%2Cy%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(x,y)' title='(x,y)' class='latex' />&#8221; meaning the directed vector segment from <img src='http://s0.wp.com/latex.php?latex=%280%2C0%29+%5Ctextrm%7B+to+%7D%28x%2Cy%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(0,0) &#92;textrm{ to }(x,y)' title='(0,0) &#92;textrm{ to }(x,y)' class='latex' />.</p>
<p>A <em>linear function</em> on the Euclidean plane is a function of the form <img src='http://s0.wp.com/latex.php?latex=T%5B%28x%2Cy%29%5D%3D%28ax%2Bby%2C+cx%2Bdy%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T[(x,y)]=(ax+by, cx+dy)' title='T[(x,y)]=(ax+by, cx+dy)' class='latex' />. A linear function is exactly a function that preserves vector addition and scalar multiplication: <img src='http://s0.wp.com/latex.php?latex=T%5B%28x_1%2Cy_1%29%2B%28x_2%2Cy_2%29%5D%3DT%5B%28x_1%2Cy_1%29%5D%2BT%5B%28x_2%2Cy_2%29%5D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T[(x_1,y_1)+(x_2,y_2)]=T[(x_1,y_1)]+T[(x_2,y_2)]' title='T[(x_1,y_1)+(x_2,y_2)]=T[(x_1,y_1)]+T[(x_2,y_2)]' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=T%5B%5Clambda%28x%2Cy%29%5D%3D%5Clambda+T%5B%28x%2Cy%29%5D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T[&#92;lambda(x,y)]=&#92;lambda T[(x,y)]' title='T[&#92;lambda(x,y)]=&#92;lambda T[(x,y)]' class='latex' /> for all vectors <img src='http://s0.wp.com/latex.php?latex=%28x_1%2Cy_1%29%2C+%28x_2%2Cy_2%29%2C+%28x%2Cy%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(x_1,y_1), (x_2,y_2), (x,y)' title='(x_1,y_1), (x_2,y_2), (x,y)' class='latex' /> and all real numbers <img src='http://s0.wp.com/latex.php?latex=%5Clambda&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;lambda' title='&#92;lambda' class='latex' />.</p>
<p>As a result, once we know what a linear function T does to the vectors <img src='http://s0.wp.com/latex.php?latex=%281%2C0%29+%5Ctextrm%7B+and+%7D+%280%2C1%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(1,0) &#92;textrm{ and } (0,1)' title='(1,0) &#92;textrm{ and } (0,1)' class='latex' /> we know what T does to every vector. The reason is that <img src='http://s0.wp.com/latex.php?latex=T%5B%28x%2Cy%29%5D%3DT%5Bx%281%2C0%29%2By%280%2C1%29%5D%3DxT%5B%281%2C0%29%5D%2ByT%5B%280%2C1%29%5D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T[(x,y)]=T[x(1,0)+y(0,1)]=xT[(1,0)]+yT[(0,1)]' title='T[(x,y)]=T[x(1,0)+y(0,1)]=xT[(1,0)]+yT[(0,1)]' class='latex' />.</p>
<p>As an example, we will look at how the linear function <img src='http://s0.wp.com/latex.php?latex=T%5B%28x%2Cy%29%5D%3A%3D%282x%2By%2Cx%2By%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T[(x,y)]:=(2x+y,x+y)' title='T[(x,y)]:=(2x+y,x+y)' class='latex' /> transforms vectors. One way to begin to get a geometric picture of how T transforms vectors is to look at what T does to the unit square with corners <img src='http://s0.wp.com/latex.php?latex=%280%2C0%29%2C+%281%2C0%29%2C+%281%2C1%29%2C+%280%2C1%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(0,0), (1,0), (1,1), (0,1)' title='(0,0), (1,0), (1,1), (0,1)' class='latex' />:</p>
<p><a href="http://mth21202f08.files.wordpress.com/2008/10/unit_square.jpg"><img class="aligncenter size-full wp-image-771" title="unit_square" src="http://mth21202f08.files.wordpress.com/2008/10/unit_square.jpg?w=500" alt=""   /></a></p>
<p>First, <img src='http://s0.wp.com/latex.php?latex=T%5B%281%2C0%29%5D%3D+%282%2C1%29+%5Ctextrm%7B+and+%7D+T%5B%280%2C1%29%5D%3D%281%2C1%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T[(1,0)]= (2,1) &#92;textrm{ and } T[(0,1)]=(1,1)' title='T[(1,0)]= (2,1) &#92;textrm{ and } T[(0,1)]=(1,1)' class='latex' /> so <img src='http://s0.wp.com/latex.php?latex=T%5B%281%2C1%29%5D%3D%283%2C2%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T[(1,1)]=(3,2)' title='T[(1,1)]=(3,2)' class='latex' />.</p>
<p>The line segment joining <img src='http://s0.wp.com/latex.php?latex=%280%2C0%29+%5Ctextrm%7B+to+%7D%281%2C0%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(0,0) &#92;textrm{ to }(1,0)' title='(0,0) &#92;textrm{ to }(1,0)' class='latex' /> consists of vectors <img src='http://s0.wp.com/latex.php?latex=%28x%2C0%29+%5Ctextrm%7B+where+%7D+0%5Cleq+x+%5Cleq+1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(x,0) &#92;textrm{ where } 0&#92;leq x &#92;leq 1' title='(x,0) &#92;textrm{ where } 0&#92;leq x &#92;leq 1' class='latex' /> and for these vectors we have <img src='http://s0.wp.com/latex.php?latex=T%5B%28x%2C0%29%5D%3D+%282x%2Cx%29+%3D+x%282%2C1%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T[(x,0)]= (2x,x) = x(2,1)' title='T[(x,0)]= (2x,x) = x(2,1)' class='latex' /> which, as <img src='http://s0.wp.com/latex.php?latex=x+%5Ctextrm%7B+varies+from+%7D+0+%5Ctextrm%7B+to+%7D+1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x &#92;textrm{ varies from } 0 &#92;textrm{ to } 1' title='x &#92;textrm{ varies from } 0 &#92;textrm{ to } 1' class='latex' /> is a line segment running from <img src='http://s0.wp.com/latex.php?latex=%280%2C0%29+%5Ctextrm%7B+to+%7D+%282%2C1%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(0,0) &#92;textrm{ to } (2,1)' title='(0,0) &#92;textrm{ to } (2,1)' class='latex' />.</p>
<p>Similarly, T maps the line segment from <img src='http://s0.wp.com/latex.php?latex=%280%2C0%29+%5Ctextrm%7B+to+%7D+%280%2C1%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(0,0) &#92;textrm{ to } (0,1)' title='(0,0) &#92;textrm{ to } (0,1)' class='latex' /> to the line segment from <img src='http://s0.wp.com/latex.php?latex=%280%2C0%29+%5Ctextrm%7B+to+%7D+%281%2C1%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(0,0) &#92;textrm{ to } (1,1)' title='(0,0) &#92;textrm{ to } (1,1)' class='latex' />. So, T maps the unit square to a parallelogram as follows:</p>
<p><a href="http://mth21202f08.files.wordpress.com/2008/10/paralllelogram.jpg"><img class="aligncenter size-full wp-image-774" title="paralllelogram" src="http://mth21202f08.files.wordpress.com/2008/10/paralllelogram.jpg?w=500" alt=""   /></a></p>
<h4>Vector fields for linear transformations</h4>
<p>In principle, we could just draw, for each vector <img src='http://s0.wp.com/latex.php?latex=%28x%2Cy%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(x,y)' title='(x,y)' class='latex' /> a directed line segment from <img src='http://s0.wp.com/latex.php?latex=%28x%2Cy%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(x,y)' title='(x,y)' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=T%5B%28x%2Cy%29%5D%3D%282x%2By%2Cx%2By%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T[(x,y)]=(2x+y,x+y)' title='T[(x,y)]=(2x+y,x+y)' class='latex' />. However, a moment&#8217;s thought tells us that all these directed line segments would overlap in a mess, and give us no sensible picture at all. One way around this is to draw a <em>very short</em> directed line segment from <img src='http://s0.wp.com/latex.php?latex=%28x%2Cy%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(x,y)' title='(x,y)' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=T%5B%28x%2Cy%29%5D%3D%282x%2By%2Cx%2By%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T[(x,y)]=(2x+y,x+y)' title='T[(x,y)]=(2x+y,x+y)' class='latex' />, so that these small directed line segments do not overlap:</p>
<p><a href="http://mth21202f08.files.wordpress.com/2008/10/matlab_vector_field2.jpg"><img class="alignnone size-large wp-image-785" title="matlab_vector_field2" src="http://mth21202f08.files.wordpress.com/2008/10/matlab_vector_field2.jpg?w=500&#038;h=375" alt="" width="500" height="375" /></a></p>
<p><!--[if gte mso 9]&gt;  Normal 0   false false false        MicrosoftInternetExplorer4  &lt;![endif]--><!--[if gte mso 9]&gt;   &lt;![endif]--> <!--[if gte mso 10]&gt; &lt;!   /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} --> <!--[endif]--></p>
<p>This was produced with the following MATLAB code:</p>
<p style="padding-left:30px;">&gt;&gt; [x,y]=meshgrid(-1:1/10:1,-1:1/10:1);<br />
&gt;&gt; u=2*x+y;<br />
&gt;&gt; v=x+y;<br />
&gt;&gt; quiver(x,y,u,v,1)</p>
<p>We see a rather blurred line running from top left to bottom right of the picture, and the vectors near that line seem to curve over.</p>
<p>Generally, <em>Mathematica</em>® produces better graphics than MATLAB. Below is a graphic produced with the following <em>Mathematica</em>® code:</p>
<p style="padding-left:30px;"><strong>Needs["VectorFieldPlots`"];</strong><strong> </strong></p>
<p style="padding-left:30px;"><strong>VectorFieldPlot[{2*x + y, x + y}, {x, -1, 1}, {y, -1, 1}, PlotPoints -&gt; 20, ScaleFactor -&gt; 0.2, Axes-&gt;True]</strong></p>
<p><a href="http://mth21202f08.files.wordpress.com/2008/10/mathematica_vectorfield.jpg"><img class="aligncenter size-full wp-image-790" title="mathematica_vectorfield" src="http://mth21202f08.files.wordpress.com/2008/10/mathematica_vectorfield.jpg?w=500" alt=""   /></a></p>
<p>Here we can see a little more clearly the curving of the vectors near a line running from top left to bottom right.</p>
<h4>Finding invariant lines</h4>
<p>How could we find that line that seems to run from top left to bottom right of the picture?</p>
<p>The line seems to go through the origin, so if we could find any non-zero vector on that line, we would know what the line is, because all other vectors on the line would just be multiples of that vector.</p>
<p>The characteristic property that looks like it will help us find the line is that if <img src='http://s0.wp.com/latex.php?latex=%28x%2Cy%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(x,y)' title='(x,y)' class='latex' /> is a vector on the line then <img src='http://s0.wp.com/latex.php?latex=T%5B%28x%2Cy%29%5D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T[(x,y)]' title='T[(x,y)]' class='latex' /> is also on the line &#8211; just look at how the vectors seem to point on the line. So, we are looking for a non-zero vector <img src='http://s0.wp.com/latex.php?latex=%28x%2Cy%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(x,y)' title='(x,y)' class='latex' />  &#8211; that is, either <img src='http://s0.wp.com/latex.php?latex=x%5Cneq+0+%5Ctextrm%7B+or+%7D+y%5Cneq+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x&#92;neq 0 &#92;textrm{ or } y&#92;neq 0' title='x&#92;neq 0 &#92;textrm{ or } y&#92;neq 0' class='latex' /> &#8211; such that <img src='http://s0.wp.com/latex.php?latex=T%5B%28x%2Cy%29%5D%3D%5Clambda%28x%2Cy%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T[(x,y)]=&#92;lambda(x,y)' title='T[(x,y)]=&#92;lambda(x,y)' class='latex' /> for some real number <img src='http://s0.wp.com/latex.php?latex=%5Clambda&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;lambda' title='&#92;lambda' class='latex' />. In other words, <img src='http://s0.wp.com/latex.php?latex=2x%2By%3D%5Clambda+x+%5Ctextrm%7B+and+%7D+x%2By+%3D+%5Clambda+y&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='2x+y=&#92;lambda x &#92;textrm{ and } x+y = &#92;lambda y' title='2x+y=&#92;lambda x &#92;textrm{ and } x+y = &#92;lambda y' class='latex' /> for some <img src='http://s0.wp.com/latex.php?latex=%5Clambda&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;lambda' title='&#92;lambda' class='latex' /> and for some <img src='http://s0.wp.com/latex.php?latex=%28x%2Cy%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(x,y)' title='(x,y)' class='latex' /> with either <img src='http://s0.wp.com/latex.php?latex=x+%5Cneq+0+%5Ctextrm%7B+or+%7D+y%5Cneq+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x &#92;neq 0 &#92;textrm{ or } y&#92;neq 0' title='x &#92;neq 0 &#92;textrm{ or } y&#92;neq 0' class='latex' /> (or both).</p>
<p>This gives us the two equations:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%28%5Clambda-2%29x-y%3D0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(&#92;lambda-2)x-y=0' title='(&#92;lambda-2)x-y=0' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=-x+%2B+%28%5Clambda-1%29y%3D0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='-x + (&#92;lambda-1)y=0' title='-x + (&#92;lambda-1)y=0' class='latex' /></p>
<p>Substituting <img src='http://s0.wp.com/latex.php?latex=x%3D%28%5Clambda-1%29y&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x=(&#92;lambda-1)y' title='x=(&#92;lambda-1)y' class='latex' /> gives us <img src='http://s0.wp.com/latex.php?latex=%28%28%5Clambda-2%29%28%5Clambda-1%29-1%29y%3D0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='((&#92;lambda-2)(&#92;lambda-1)-1)y=0' title='((&#92;lambda-2)(&#92;lambda-1)-1)y=0' class='latex' />, and substituting <img src='http://s0.wp.com/latex.php?latex=y%3D%28%5Clambda-2%29x&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y=(&#92;lambda-2)x' title='y=(&#92;lambda-2)x' class='latex' />  gives us <img src='http://s0.wp.com/latex.php?latex=%28%28%5Clambda-2%29%28%5Clambda-1%29-1%29x%3D0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='((&#92;lambda-2)(&#92;lambda-1)-1)x=0' title='((&#92;lambda-2)(&#92;lambda-1)-1)x=0' class='latex' />.</p>
<p>Since one of <img src='http://s0.wp.com/latex.php?latex=x%2C+y&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x, y' title='x, y' class='latex' /> is non-zero this gives us <img src='http://s0.wp.com/latex.php?latex=%28%5Clambda-2%29%28%5Clambda-1%29-1%3D0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(&#92;lambda-2)(&#92;lambda-1)-1=0' title='(&#92;lambda-2)(&#92;lambda-1)-1=0' class='latex' />.</p>
<p>This is a quadratic for <img src='http://s0.wp.com/latex.php?latex=%5Clambda&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;lambda' title='&#92;lambda' class='latex' /> with roots <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7B1%7D%7B2%7D%283%5Cpm%5Csqrt%7B5%7D%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{1}{2}(3&#92;pm&#92;sqrt{5})' title='&#92;frac{1}{2}(3&#92;pm&#92;sqrt{5})' class='latex' />.</p>
<p>Substituting <img src='http://s0.wp.com/latex.php?latex=%5Clambda%3D%5Cfrac%7B1%7D%7B2%7D%283-%5Csqrt%7B5%7D%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;lambda=&#92;frac{1}{2}(3-&#92;sqrt{5})' title='&#92;lambda=&#92;frac{1}{2}(3-&#92;sqrt{5})' class='latex' /> in the equation <img src='http://s0.wp.com/latex.php?latex=%28%5Clambda-2%29x-y%3D0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(&#92;lambda-2)x-y=0' title='(&#92;lambda-2)x-y=0' class='latex' /> gives us the equation <img src='http://s0.wp.com/latex.php?latex=y%3D-%5Cfrac%7B1%7D%7B2%7D%281%2B%5Csqrt%7B5%7D%29x&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y=-&#92;frac{1}{2}(1+&#92;sqrt{5})x' title='y=-&#92;frac{1}{2}(1+&#92;sqrt{5})x' class='latex' /> for the line we see running from the top left to the bottom right of the picture.</p>
<p>Of course, the other root, <img src='http://s0.wp.com/latex.php?latex=%5Clambda+%3D%5Cfrac%7B1%7D%7B2%7D%283%2B%5Csqrt%7B5%7D%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;lambda =&#92;frac{1}{2}(3+&#92;sqrt{5})' title='&#92;lambda =&#92;frac{1}{2}(3+&#92;sqrt{5})' class='latex' />, gives us another invariant line with equation <img src='http://s0.wp.com/latex.php?latex=y%3D%5Cfrac%7B1%7D%7B2%7D%28-1%2B%5Csqrt%7B5%7D%29x&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y=&#92;frac{1}{2}(-1+&#92;sqrt{5})x' title='y=&#92;frac{1}{2}(-1+&#92;sqrt{5})x' class='latex' />. This line is a little harder to see from the vector field picture. Both lines are shown below:</p>
<p><a href="http://mth21202f08.files.wordpress.com/2008/10/eigenspaces.jpg"><img class="aligncenter size-full wp-image-809" title="eigenspaces" src="http://mth21202f08.files.wordpress.com/2008/10/eigenspaces.jpg?w=500" alt=""   /></a></p>
<p>This graphic was produced using the following <em>Mathematica</em>® code:</p>
<p style="padding-left:30px;"><strong>Needs["VectorFieldPlots`"];</strong></p>
<p style="padding-left:30px;"><strong>A1 = VectorFieldPlot[{2*x + y, x + y}, {x, -1, 1}, {y, -1, 1}, PlotPoints -&gt; 20, ScaleFactor -&gt; 0.2, Axes -&gt; True];<br />
A2 = Plot[-x*(1 + Sqrt[5])/2, {x, -1, 1}];<br />
A3 = Plot[x*(-1 + Sqrt[5])/2, {x, -1.5, 1.5}];<br />
Show[A1, A2, A3]</strong></p>
<h4>Connection with a system of linear differential equations</h4>
<p>The curl of the directed line segments away from the line <img src='http://s0.wp.com/latex.php?latex=y%3D-%5Cfrac%7B1%7D%7B2%7D%281%2B%5Csqrt%7B5%7D%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y=-&#92;frac{1}{2}(1+&#92;sqrt{5})' title='y=-&#92;frac{1}{2}(1+&#92;sqrt{5})' class='latex' /> indicates a flow on the plane, such that if we placed a leaf in the flow it would follow the directed line segments as time progressed.</p>
<p>The introduction of time as a parameter means that we are thinking of the <img src='http://s0.wp.com/latex.php?latex=x-y&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x-y' title='x-y' class='latex' /> coordinates changing with time as the leaf follows the flow. The leaf&#8217;s path will be such that the instantaneous rate of change of the leaf&#8217;s coordinates will be given by the directed line segment at that point. This gives us a linked pair of differential equations for the coordinates, as functions of time, along a flow line:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdx%7D%7Bdt%7D%3D2x%2By&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{dx}{dt}=2x+y' title='&#92;frac{dx}{dt}=2x+y' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdy%7D%7Bdt%7D%3Dx%2By&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{dy}{dt}=x+y' title='&#92;frac{dy}{dt}=x+y' class='latex' /></p>
<h4>Some examples to try</h4>
<p>1.    (a) Plot the vector field for the linear function <img src='http://s0.wp.com/latex.php?latex=T%5B%28x%2Cy%29%5D%3D%28x%2By%2Cx%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T[(x,y)]=(x+y,x)' title='T[(x,y)]=(x+y,x)' class='latex' />.</p>
<p style="padding-left:30px;">(b) Find any invariant lines, and write down the differential equations corresponding to a flow for which the vectors in the vector field are tangent to the flow.</p>
<p style="padding-left:30px;">(c) Try to describe the flow geometrically, in words.</p>
<p>2. Repeat this for the linear functions <img src='http://s0.wp.com/latex.php?latex=T%5B%28x%2Cy%29%5D%3D%28ax%2Bby%2C+cx%2Bdy%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T[(x,y)]=(ax+by, cx+dy)' title='T[(x,y)]=(ax+by, cx+dy)' class='latex' /> for several choices of <span style="text-decoration:underline;">integers</span> <img src='http://s0.wp.com/latex.php?latex=a%2C+b%2C+c%2C+d&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a, b, c, d' title='a, b, c, d' class='latex' /> chosen <span style="text-decoration:underline;">randomly </span>in the range <img src='http://s0.wp.com/latex.php?latex=-5+%5Cleq+a%2C+b%2C+c%2C+d+%5Cleq+5&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='-5 &#92;leq a, b, c, d &#92;leq 5' title='-5 &#92;leq a, b, c, d &#92;leq 5' class='latex' />.</p>
<a href="http://polldaddy.com/poll/1023126/">View This Poll</a>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mth21202f08.wordpress.com/747/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mth21202f08.wordpress.com/747/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mth21202f08.wordpress.com/747/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mth21202f08.wordpress.com/747/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mth21202f08.wordpress.com/747/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mth21202f08.wordpress.com/747/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mth21202f08.wordpress.com/747/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mth21202f08.wordpress.com/747/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mth21202f08.wordpress.com/747/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mth21202f08.wordpress.com/747/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mth21202f08.wordpress.com/747/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mth21202f08.wordpress.com/747/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mth21202f08.wordpress.com/747/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mth21202f08.wordpress.com/747/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mth21202f08.wordpress.com&amp;blog=4207098&amp;post=747&amp;subd=mth21202f08&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mth21202f08.wordpress.com/2008/10/20/third-3-week-block-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3896fed97c942d30add82053f85729d2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Editor</media:title>
		</media:content>

		<media:content url="http://mth21202f08.files.wordpress.com/2008/10/x-y_plane.jpg" medium="image">
			<media:title type="html">x-y_plane</media:title>
		</media:content>

		<media:content url="http://mth21202f08.files.wordpress.com/2008/10/unit_square.jpg" medium="image">
			<media:title type="html">unit_square</media:title>
		</media:content>

		<media:content url="http://mth21202f08.files.wordpress.com/2008/10/paralllelogram.jpg" medium="image">
			<media:title type="html">paralllelogram</media:title>
		</media:content>

		<media:content url="http://mth21202f08.files.wordpress.com/2008/10/matlab_vector_field2.jpg?w=500" medium="image">
			<media:title type="html">matlab_vector_field2</media:title>
		</media:content>

		<media:content url="http://mth21202f08.files.wordpress.com/2008/10/mathematica_vectorfield.jpg" medium="image">
			<media:title type="html">mathematica_vectorfield</media:title>
		</media:content>

		<media:content url="http://mth21202f08.files.wordpress.com/2008/10/eigenspaces.jpg" medium="image">
			<media:title type="html">eigenspaces</media:title>
		</media:content>
	</item>
		<item>
		<title>Second 3-week block: project guide</title>
		<link>http://mth21202f08.wordpress.com/2008/09/22/second-3-week-block-project-guide/</link>
		<comments>http://mth21202f08.wordpress.com/2008/09/22/second-3-week-block-project-guide/#comments</comments>
		<pubDate>Mon, 22 Sep 2008 19:18:09 +0000</pubDate>
		<dc:creator>Author</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://mth21202f08.wordpress.com/?p=687</guid>
		<description><![CDATA[Explore how exact solutions to first order differential equations differ from Euler approximations. Experiment with Euler approximations to the Lorenz equations for various parameter values and initial conditions. The Lotka-Volterra predator-prey equations are where y is the number of predators, &#8230; <a href="http://mth21202f08.wordpress.com/2008/09/22/second-3-week-block-project-guide/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mth21202f08.wordpress.com&amp;blog=4207098&amp;post=687&amp;subd=mth21202f08&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<ul>
<li>Explore how exact solutions to first order differential equations differ from Euler approximations.</li>
<li>Experiment with Euler approximations to the Lorenz equations for various parameter values and initial conditions.</li>
<li>The <a href="http://en.wikipedia.org/wiki/Lotka-Volterra_equation">Lotka-Volterra predator-prey equations</a> are <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdx%7D%7Bdt%7D+%3D+x%28%5Calpha+-+%5Cbeta+y%29%2C+%5Cfrac%7Bdy%7D%7Bdt%7D+%3D+-+y%28%5Cgamma+-+%5Cdelta+x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{dx}{dt} = x(&#92;alpha - &#92;beta y), &#92;frac{dy}{dt} = - y(&#92;gamma - &#92;delta x)' title='&#92;frac{dx}{dt} = x(&#92;alpha - &#92;beta y), &#92;frac{dy}{dt} = - y(&#92;gamma - &#92;delta x)' class='latex' /> where y is the number of predators, x is the number of prey, and <img src='http://s0.wp.com/latex.php?latex=%5Calpha%2C+%5Cbeta%2C+%5Cgamma%2C%5Cdelta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha, &#92;beta, &#92;gamma,&#92;delta' title='&#92;alpha, &#92;beta, &#92;gamma,&#92;delta' class='latex' /> are parameters that tune the interaction of the predators and prey. Explore solutions of the predator-prey equations for varying parameter values and initial conditions.</li>
<li>Explore the behavior of the <a href="http://en.wikipedia.org/wiki/R%C3%B6ssler_attractor">Rössler system of differential equations</a> <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdx%7D%7Bdt%7D+%3D-y-z%2C+%5Cfrac%7Bdy%7D%7Bdt%7D+%3Dx%2Bay%2C+%5Cfrac%7Bdz%7D%7Bdt%7D+%3Db%2Bz%28x-c%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{dx}{dt} =-y-z, &#92;frac{dy}{dt} =x+ay, &#92;frac{dz}{dt} =b+z(x-c)' title='&#92;frac{dx}{dt} =-y-z, &#92;frac{dy}{dt} =x+ay, &#92;frac{dz}{dt} =b+z(x-c)' class='latex' /> for various parameter values and initial conditions.</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mth21202f08.wordpress.com/687/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mth21202f08.wordpress.com/687/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mth21202f08.wordpress.com/687/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mth21202f08.wordpress.com/687/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mth21202f08.wordpress.com/687/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mth21202f08.wordpress.com/687/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mth21202f08.wordpress.com/687/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mth21202f08.wordpress.com/687/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mth21202f08.wordpress.com/687/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mth21202f08.wordpress.com/687/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mth21202f08.wordpress.com/687/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mth21202f08.wordpress.com/687/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mth21202f08.wordpress.com/687/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mth21202f08.wordpress.com/687/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mth21202f08.wordpress.com&amp;blog=4207098&amp;post=687&amp;subd=mth21202f08&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mth21202f08.wordpress.com/2008/09/22/second-3-week-block-project-guide/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3896fed97c942d30add82053f85729d2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Editor</media:title>
		</media:content>
	</item>
		<item>
		<title>• Second 3-week block: Example 1</title>
		<link>http://mth21202f08.wordpress.com/2008/09/22/%e2%80%a2-second-3-week-block-example-1/</link>
		<comments>http://mth21202f08.wordpress.com/2008/09/22/%e2%80%a2-second-3-week-block-example-1/#comments</comments>
		<pubDate>Mon, 22 Sep 2008 18:20:32 +0000</pubDate>
		<dc:creator>Author</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://mth21202f08.wordpress.com/?p=619</guid>
		<description><![CDATA[Systems of non-linear differential equations In this 3 week block we are going to address a major issue in using differential equations to model physical or biological phenomena: the nature of the solution curves to a system of coupled non-linear &#8230; <a href="http://mth21202f08.wordpress.com/2008/09/22/%e2%80%a2-second-3-week-block-example-1/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mth21202f08.wordpress.com&amp;blog=4207098&amp;post=619&amp;subd=mth21202f08&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h3>Systems of non-linear differential equations</h3>
<p>In this 3 week block we are going to address a major issue in using differential equations to model physical or biological phenomena: the nature of the solution curves to a system of coupled non-linear differential equations.</p>
<p>These types of systems of differential equations arise in most serious modeling of physical and biological phenomena. There are very few known exact methods of solution for these systems of differential equations. As a result, people working with these types of systems of differential equations have to resort to numerical methods for obtaining approximations to solution curves.</p>
<p>You have already used one such method in the first week: Euler&#8217;s method. We will see, in more detail in this 3-week block, that Euler&#8217;s method does not produce an accurate enough solution for long enough values of the variables, to be a serious method for obtaining approximate numerical solutions.</p>
<p>More powerful methods &#8211; with smaller error -  are needed and we will focus on Runge-Kutta methods.</p>
<h3>Edward Lorenz&#8217;s equations and the Lorenz attractor</h3>
<p><a href="http://en.wikipedia.org/wiki/Edward_Norton_Lorenz">Edward Lorenz</a> (born in New England &#8211; West Hartford, Connecticut in 1917, and died in April 2008 in Cambridge, Massachusetts, aged 90) set up a simplified model of convection rolls arising in the equations of the atmosphere, in 1963.</p>
<div id="attachment_625" class="wp-caption aligncenter" style="width: 208px"><a href="http://mth21202f08.files.wordpress.com/2008/09/edward_lorenz.jpg"><img class="size-full wp-image-625" title="edward_lorenz" src="http://mth21202f08.files.wordpress.com/2008/09/edward_lorenz.jpg?w=500" alt=""   /></a><p class="wp-caption-text">Edward Lorenz</p></div>
<p>His simplified model involves 3 linked differential equations of 3 variables. Specifically, the equations are:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdx%7D%7Bdt%7D+%3D+%5Csigma+%28y+-+x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{dx}{dt} = &#92;sigma (y - x)' title='&#92;frac{dx}{dt} = &#92;sigma (y - x)' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdy%7D%7Bdt%7D+%3D+x+%28%5Crho+-+z%29+-+y&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{dy}{dt} = x (&#92;rho - z) - y' title='&#92;frac{dy}{dt} = x (&#92;rho - z) - y' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdz%7D%7Bdt%7D+%3D+xy+-+%5Cbeta+z&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{dz}{dt} = xy - &#92;beta z' title='&#92;frac{dz}{dt} = xy - &#92;beta z' class='latex' /></p>
<p>In these equations, all parameters <img src='http://s0.wp.com/latex.php?latex=%5Csigma%2C%5Crho%2C+%5Cbeta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sigma,&#92;rho, &#92;beta' title='&#92;sigma,&#92;rho, &#92;beta' class='latex' /> are positive.</p>
<p>The parameters <img src='http://s0.wp.com/latex.php?latex=%5Csigma+&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sigma ' title='&#92;sigma ' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5Crho+&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;rho ' title='&#92;rho ' class='latex' />  are related to physical properties of a fluid in motion: kinematic viscosity and heat flow (the <a href="http://en.wikipedia.org/wiki/Prandtl_number">Prandtl number</a> and <a href="http://en.wikipedia.org/wiki/Rayleigh_number">Rayleigh number</a>, respectively). In these equations it is common to take <img src='http://s0.wp.com/latex.php?latex=%5Csigma+%3D+10%2C+%5Cbeta+%3D+8%2F3&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sigma = 10, &#92;beta = 8/3' title='&#92;sigma = 10, &#92;beta = 8/3' class='latex' />.</p>
<p>Different values of <img src='http://s0.wp.com/latex.php?latex=%5Crho&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;rho' title='&#92;rho' class='latex' /> give qualitatively different solution curves for this system of equations. For example, for <img src='http://s0.wp.com/latex.php?latex=%5Crho+%3D+28&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;rho = 28' title='&#92;rho = 28' class='latex' /> the solution is chaotic, meaning that nearby points diverge approximately exponentially rapidly (so prediction with time is difficult to impossible). The solution curves for these values form an object in 3-space that is known as the Lorentz attractor:</p>
<div id="attachment_630" class="wp-caption aligncenter" style="width: 233px"><a href="http://mth21202f08.files.wordpress.com/2008/09/lorenz_attractor.jpg"><img class="size-full wp-image-630" title="lorenz_attractor" src="http://mth21202f08.files.wordpress.com/2008/09/lorenz_attractor.jpg?w=500" alt=""   /></a><p class="wp-caption-text">The Lorenz attractor</p></div>
<p>For other values of <img src='http://s0.wp.com/latex.php?latex=%5Crho+&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;rho ' title='&#92;rho ' class='latex' /> the system has solutions that are periodic, but knotted in space.  A classic example of a knotted solution occurs when <img src='http://s0.wp.com/latex.php?latex=%5Crho+%3D+99.96&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;rho = 99.96' title='&#92;rho = 99.96' class='latex' /></p>
<h3>Euler approximation to solution curves</h3>
<h4>Excel</h4>
<p>The method for setting up an Euler approximation to a <em>system </em>of first-order differential equations is scarcely more difficult than for a single first-order eqation. We just have to remember that in the Euler approximation formula the variables are <em>linked</em>.</p>
<p>Just as you did for a single differential equation, we can write Excel formulas to carry out Euler&#8217;s method for the 3 linked Lorenz equations. Below is such a spreadsheet, with the formulas shown (to enlarge the image, click on it):</p>
<p style="text-align:center;"><a href="http://mth21202f08.files.wordpress.com/2008/09/lorenz_euler1.jpg"><img class="size-large wp-image-642 aligncenter" title="lorenz_euler1" src="http://mth21202f08.files.wordpress.com/2008/09/lorenz_euler1.jpg?w=549&#038;h=134" alt="" width="549" height="134" /></a></p>
<p style="text-align:left;">Excel does not have a built-in feature that allows XYZ scatter plots, so we cannot easily plot the points <img src='http://s0.wp.com/latex.php?latex=%28x%28t%29%2Cy%28t%29%2Cz%28t%29%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(x(t),y(t),z(t))' title='(x(t),y(t),z(t))' class='latex' /> in three-dimensional space, as <img src='http://s0.wp.com/latex.php?latex=t&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='t' title='t' class='latex' /> varies.</p>
<p style="text-align:left;">However, there are some things we can do:</p>
<ul>
<li>We can plot each of <img src='http://s0.wp.com/latex.php?latex=x%28t%29%2Cy%28t%29%2Cz%28t%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x(t),y(t),z(t)' title='x(t),y(t),z(t)' class='latex' /> as functions of <img src='http://s0.wp.com/latex.php?latex=t&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='t' title='t' class='latex' />:</li>
</ul>
<p style="text-align:left;"><a href="http://mth21202f08.files.wordpress.com/2008/09/lorenz_euler2.jpg"><img class="aligncenter size-full wp-image-646" title="lorenz_euler2" src="http://mth21202f08.files.wordpress.com/2008/09/lorenz_euler2.jpg?w=500&#038;h=341" alt="" width="500" height="341" /></a></p>
<ul>
<li>We can plot each of
<ul>
<li>y(t) versus x(t):</li>
</ul>
<p><a href="http://mth21202f08.files.wordpress.com/2008/09/lorenz_euler3.jpg"><img class="aligncenter size-full wp-image-648" title="lorenz_euler3" src="http://mth21202f08.files.wordpress.com/2008/09/lorenz_euler3.jpg?w=500&#038;h=341" alt="" width="500" height="341" /></a></p>
<ul>
<li>z(t) versus x(t):</li>
</ul>
</li>
</ul>
<p style="text-align:center;"><a href="http://mth21202f08.files.wordpress.com/2008/09/lorenz_euler4.jpg"><img class="size-full wp-image-649 aligncenter" title="lorenz_euler4" src="http://mth21202f08.files.wordpress.com/2008/09/lorenz_euler4.jpg?w=500&#038;h=341" alt="" width="500" height="341" /></a></p>
<blockquote>
<ul>
<li>z(t) versus y(t):</li>
</ul>
</blockquote>
<p><a href="http://mth21202f08.files.wordpress.com/2008/09/lorenz_euler5.jpg"><img class="aligncenter size-full wp-image-650" title="lorenz_euler5" src="http://mth21202f08.files.wordpress.com/2008/09/lorenz_euler5.jpg?w=500&#038;h=341" alt="" width="500" height="341" /></a></p>
<h4>MATLAB</h4>
<p>MATLAB comes equipped with a 3D plot capability, so the first thing for us to do if we are to understand how a 3D plot arises from an Euler approximation to the Lorenz system of differential equations, is to implement Euler&#8217;s method for a system of differential equations in MATLAB .</p>
<p>To do this, we can either do it &#8220;inline&#8221; following the MATLAB prompt, or we can define an M-file to run. We will do the latter, as on pp. 94-95 of the text <em>Differential Equations With MATLAB</em>, modified for a system of differential equations rather than a single differential equation.</p>
<p>A very well laid out explanation of Euler&#8217;s method in MATLAB for a system of differential equations appears on the Website <a href="https://people.scs.fsu.edu/~burkardt/math2071/lab_03.html">Simple ODE Methods</a>. The code below is based on the code at that Web site.</p>
<p>Before we write code to numerically approximate solutions to a system of differential equations, we will first write the code for a single differential equation. Because MATLAB handles vectors so easily, we will then simply modify the code for a single differential equation to a system of equations by replacing a single solution function by a <em>vector </em>of solution functions.</p>
<p>We wiil first write a MATLAB M file called euler.m (saved as &#8220;euler&#8221;),  the code for which appears below:</p>
<p style="padding-left:30px;"><span style="color:#0000ff;">% Euler&#8217;s method for a single differential equation.</span></p>
<p style="padding-left:30px;"><span style="color:#0000ff;">% The differential equation is dy/dt = f(t,y). </span></p>
<p style="padding-left:30px;"><span style="color:#800080;">function [ t, y ] = euler ( f, t_range, y_initial, nstep )<br />
</span></p>
<p style="padding-left:30px;"><span style="color:#800080;"><span style="color:#0000ff;">% We set a range of time values, from t(1) to t(2).</span><br />
</span></p>
<p style="padding-left:30px;"><span style="color:#800080;">t(1) = t_range(1);</span></p>
<p style="padding-left:30px;"><span style="color:#800080;"><span style="color:#0000ff;">% We define dt by dividing the time range into an equal number of specified steps.</span><br />
</span></p>
<p style="padding-left:30px;"><span style="color:#800080;">dt = ( t_range(2) &#8211; t_range(1) ) / nstep;</span></p>
<p style="padding-left:30px;"><span style="color:#800080;"><span style="color:#0000ff;">% We set the initial value of y at the beginning time t(1).</span><br />
</span></p>
<p style="padding-left:30px;"><span style="color:#800080;"> y(1) = y_initial;</span></p>
<p style="padding-left:30px;"><span style="color:#0000ff;">% We use Euler&#8217;s method to update the value of y at new time steps.</span></p>
<p style="padding-left:30px;"><span style="color:#800080;"><span style="color:#0000ff;">%  &#8220;feval&#8221; is used instead of &#8220;eval&#8221; because we are passing the <span style="text-decoration:underline;">name</span> of f to the program.</span><br />
</span></p>
<p style="padding-left:30px;"><span style="color:#800080;">for i = 1 : nstep<br />
t(i+1) = t(i) + dt;<br />
y(i+1) = y(i) + dt * feval ( f, t(i), y(i) );<br />
end </span></p>
<p style="padding-left:30px;"><span style="color:#800080;"><span style="color:#0000ff;">% The following command plots y as a function of t.</span><br />
</span></p>
<p style="padding-left:30px;"><span style="color:#800080;">plot(t,y)</span></p>
<p>The M File euler.m returns two data vectors (= lists):</p>
<ol>
<li> t, the value of the independent variable at nstep+1 equally spaced points;</li>
<li>y, the value of the dependent variable at each t.</li>
</ol>
<p>and plots y as a function of t over the specified time interval.</p>
<p>Let&#8217;s implement this for the first order differential equation <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdy%7D%7Bdt%7D%3Dy%28%5Cfrac%7B2%7D%7Bt%7D-1%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{dy}{dt}=y(&#92;frac{2}{t}-1)' title='&#92;frac{dy}{dt}=y(&#92;frac{2}{t}-1)' class='latex' /> for <img src='http://s0.wp.com/latex.php?latex=0.1+%5Cleq+t+%5Cleq+9&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='0.1 &#92;leq t &#92;leq 9' title='0.1 &#92;leq t &#92;leq 9' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=y%280.1%29%3D0.1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y(0.1)=0.1' title='y(0.1)=0.1' class='latex' />.</p>
<p>For this example, <img src='http://s0.wp.com/latex.php?latex=f%28t%2Cy%29%3Dy%28%5Cfrac%7B2%7D%7Bt%7D-1%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(t,y)=y(&#92;frac{2}{t}-1)' title='f(t,y)=y(&#92;frac{2}{t}-1)' class='latex' />.</p>
<p>We set up a simple M file, let&#8217;s call it test_example.m (saved as &#8220;test_example) that describes this function:</p>
<p style="padding-left:30px;"><span style="color:#800080;">function yprime = test_example ( t, y )<br />
yprime = y*(2./t-1); </span></p>
<p>Now to run this in the command line we set up the initial condition, the time range, and the number of steps to take, and call &#8220;test_example&#8221; as an argument to euler.m:</p>
<p>&gt;&gt; y_init = 0.1;<br />
&gt;&gt; [ t, y ] = euler ( &#8216;test_example&#8217;, [ 0.1, 9.0 ], y_init, 200 );</p>
<p>Note the following things:</p>
<ul>
<li>we specify the initial value of y at the beginning time;</li>
<li>the name of the function test_example appears in single quotes;</li>
<li>the time interval is specified;</li>
<li>the number of steps is specified.</li>
</ul>
<p>After running this program we get the following graphic output:</p>
<p><a href="http://mth21202f08.files.wordpress.com/2008/09/euler_method4.jpg"><img class="aligncenter size-full wp-image-679" title="euler_method4" src="http://mth21202f08.files.wordpress.com/2008/09/euler_method4.jpg?w=500" alt=""   /></a></p>
<p>We now want to modify euler.m so that it can calculate a numerical approximation to the Lorenz equations. We will do this in a general way by writing the code for a system of first-order equations, in an M file called euler_system.m (saved as &#8220;euler_system&#8221;):</p>
<p style="padding-left:30px;"><span style="color:#0000ff;">% Euler&#8217;s method for a system of differential equations.</span></p>
<p style="padding-left:30px;"><span style="color:#0000ff;">% The differential equations are dy/dt = f(t,y) where y is a vector of unknown functions. </span></p>
<p style="padding-left:30px;"><span style="color:#800080;">function [ t, y ] = euler_system( f, t_range, y_initial, nstep )</span></p>
<p style="padding-left:30px;"><span style="color:#800080;"><span style="color:#0000ff;">% We set a range of time values, from t(1) to t(2).</span></span></p>
<p style="padding-left:30px;"><span style="color:#800080;">t(1) = t_range(1);</span></p>
<p style="padding-left:30px;"><span style="color:#800080;"><span style="color:#0000ff;">% We define dt by dividing the time range into an equal number of specified steps.</span></span><span style="color:#800080;"> </span></p>
<p style="padding-left:30px;"><span style="color:#800080;">dt = ( t_range(2) &#8211; t_range(1) ) / nstep;</span></p>
<p style="padding-left:30px;"><span style="color:#800080;"><span style="color:#0000ff;">% We set the initial value of the vector y at the beginning time t(1).</span></span></p>
<p style="padding-left:30px;"><span style="color:#800080;">y(:,1) = y_initial;</span></p>
<p style="padding-left:30px;"><span style="color:#0000ff;">% We use Euler&#8217;s method to update the value of y at new time steps.</span></p>
<p style="padding-left:30px;"><span style="color:#800080;"><span style="color:#0000ff;">%  &#8220;feval&#8221; is used instead of &#8220;eval&#8221; because we are passing the <span style="text-decoration:underline;">name</span> of f to the program.</span></span></p>
<p style="padding-left:30px;"><span style="color:#800080;">for i = 1 : nstep<br />
t(i+1) = t(i) + dt;<br />
y(:,i+1) = y(:,i) + dt * feval ( f, t(i), y(:,i) );<br />
end </span></p>
<p style="padding-left:30px;"><span style="color:#800080;"><span style="color:#0000ff;">% The following command plots the components of y as functions of t.</span><br />
</span></p>
<p style="padding-left:30px;"><span style="color:#800080;">plot(t,y)</span></p>
<p style="padding-left:30px;"><span style="color:#800080;"><span style="color:#0000ff;">% We also want a 3D plot of the vector components as they vary with t.</span><br />
</span></p>
<p style="padding-left:30px;"><span style="color:#800080;">plot3(y(1,:),y(2,:),y(3,:))</span></p>
<p>There is no need to specify how many component differential equations there are -  MATLAB figures that from the form of the variables in the prescription for the function f, which is in a separate M file.</p>
<p>The colon  in <span style="color:#800080;"><strong>y(:,1) = y_initial</strong> <span style="color:#000000;">is used because y is a column vector (that&#8217;s what the &#8220;1&#8243; tells us) with as many components (= rows) as there are unknown functions.</span></span></p>
<p>Now we write an M file, lorenz_system.m, which returns the derivative function as a column vector:</p>
<p style="padding-left:30px;"><span style="color:#800080;">function yprime = lorenz_system ( t, y )<br />
yprime = [ 10.0* (y(2)-y(1)); y(1)*(28.0-y(3))-y(2);y(1)*y(2)-8*y(3)/3 ]; </span></p>
<p>To run this in the command line we set up the vector of initial condition, the time range, and the number of steps to take, and call &#8220;lorenz_system&#8221; as an argument to euler_system.m:</p>
<p style="padding-left:30px;"><span style="color:#800080;">&gt;&gt; y_init = [ rand(); </span><span style="color:#800080;">rand()</span><span style="color:#800080;">; </span><span style="color:#800080;">rand()</span><span style="color:#800080;"> ];</span></p>
<p style="padding-left:30px;"><span style="color:#800080;">&gt;&gt; [ t, y ] = euler_system ( &#8216;lorenz_system&#8217;, [ 0.0, 20.0 ], y_init, 1000 );</span></p>
<p>After running this program we get the following graphic output:</p>
<p><a href="http://mth21202f08.files.wordpress.com/2008/09/lorenz_euler6.jpg"><img class="aligncenter size-full wp-image-684" title="lorenz_euler6" src="http://mth21202f08.files.wordpress.com/2008/09/lorenz_euler6.jpg?w=500&#038;h=403" alt="" width="500" height="403" /></a></p>
<p><a href="http://mth21202f08.files.wordpress.com/2008/09/lorenz_euler7.jpg"><img class="aligncenter size-full wp-image-707" title="lorenz_euler7" src="http://mth21202f08.files.wordpress.com/2008/09/lorenz_euler7.jpg?w=500&#038;h=342" alt="" width="500" height="342" /></a></p>
<p><a></a></p>
<h3>MATLAB&#8217;s Numerical ODE solvers</h3>
<p>MatLab has a number of built-in packages for obtaining approximate numerical solutions to differential equations and systems of differential equations. The one we use to get a plot of the Lorenz attractor is ode45.</p>
<p style="padding-left:30px;"><span style="color:#0000ff;">To get background information about ode45 (and other ode solvers):</span></p>
<blockquote>
<ol>
<li><span style="color:#0000ff;">click on the MATLAB help link at the top of the command window;</span></li>
<li><span style="color:#0000ff;">enter &#8220;ode45&#8243; in the search window and press &#8220;GO&#8221;;</span></li>
<li><span style="color:#0000ff;">in the Demo Results window click on the first line containing the phrase &#8220;ode45&#8243;;</span></li>
<li><span style="color:#0000ff;">a new window opens with the background information.</span></li>
</ol>
</blockquote>
<p style="padding-left:30px;">To use this for the Lorenz system we set up two M-files (ref. <a href="http://www.math.tamu.edu/~mpilant/math696/lecture16-notes.html">this Web site</a>).</p>
<p style="padding-left:30px;">The first one, g.m (save it as &#8220;g&#8221;), is as follows:</p>
<p style="padding-left:60px;"><span style="color:#800080;">function xdot = g(t,x)</span></p>
<p style="padding-left:60px;"><span style="color:#800080;">xdot = zeros(3,1);</span></p>
<p style="padding-left:60px;"><span style="color:#800080;">sig = 10.0;</span></p>
<p style="padding-left:60px;"><span style="color:#800080;">rho = 28.0;</span></p>
<p style="padding-left:60px;"><span style="color:#800080;">bet = 8.0/3.0;</span></p>
<p style="padding-left:60px;"><span style="color:#800080;">xdot(1) = sig*(x(2)-x(1));</span></p>
<p style="padding-left:60px;"><span style="color:#800080;">xdot(2) = rho*x(1)-x(2)-x(1)*x(3);</span></p>
<p style="padding-left:60px;"><span style="color:#800080;">xdot(3) = x(1)*x(2)-bet*x(3);</span></p>
<p style="padding-left:30px;">The second, lorenz_demo.m (save it as &#8220;lorenz_demo&#8221;), is as follows:</p>
<p style="padding-left:60px;"><span style="color:#800080;">function lorenz_demo(time)</span></p>
<p style="padding-left:60px;"><span style="color:#800080;">% Usage: lorenz_demo(time)</span></p>
<p style="padding-left:60px;"><span style="color:#800080;">% time=end point of time interval</span></p>
<p style="padding-left:60px;"><span style="color:#800080;">% This function integrates the lorenz attractor</span></p>
<p style="padding-left:60px;"><span style="color:#800080;">% from t=0 to t=time</span></p>
<p style="padding-left:60px;"><span style="color:#800080;">[t,x] = ode45(&#8216;g&#8217;,[0 time],[1;2;3]);</span></p>
<p style="padding-left:60px;"><span style="color:#800080;">disp(&#8216;press any key to continue &#8230;&#8217;)</span></p>
<p style="padding-left:60px;"><span style="color:#800080;">pause</span></p>
<p style="padding-left:60px;"><span style="color:#800080;">plot3(x(:,1),x(:,2),x(:,3))</span></p>
<p style="padding-left:60px;"><span style="color:#800080;">print -deps lorenz.eps</span></p>
<p style="padding-left:30px;">Save these as M-files and then enter &#8220;lorenz_demo(200)&#8221; at the MATLAB prompt.</p>
<p style="padding-left:30px;"><a href="http://mth21202f08.files.wordpress.com/2008/09/lorenz_euler8.jpg"><img class="aligncenter size-full wp-image-710" title="lorenz_euler8" src="http://mth21202f08.files.wordpress.com/2008/09/lorenz_euler8.jpg?w=500&#038;h=369" alt="" width="500" height="369" /></a></p>
<h3 style="padding-left:30px;">MATLAB&#8217;s built-in demonstration of the Lorenz attractor</h3>
<p style="padding-left:30px;">MATLAB has a built-in demonstration of the dynamics of the Lorenz attractor in time. Just type &#8220;lorenz&#8221; after the MATLAB prompt.</p>
<p style="padding-left:30px;">To see the code, do the following:</p>
<ol style="padding-left:30px;">
<li>click on the MATLAB help link at the top of the command window;</li>
<li>enter &#8220;lorenz&#8221; in the search window and press &#8220;GO&#8221;;</li>
<li>in the Demo Results window click on &#8220;Lorenz Attractor Animation&#8221;;</li>
<li>when the new window opens click on &#8220;Open lorenz.m in the Editor&#8221;.</li>
</ol>
<h3 style="padding-left:30px;">MATLAB help</h3>
<p style="padding-left:30px;">In addition to the book <em>Differential Equations with MATLAB</em>, you might find the following pages helpful:</p>
<ul style="padding-left:30px;">
<li><a href="http://www.math.mtu.edu/~msgocken/intro/intro.html">A Practical Introduction to MATLAB</a></li>
<li><a href="http://www.mathworks.com/access/helpdesk/help/techdoc/matlab.shtml">MATLAB</a> help</li>
</ul>
<p style="text-align:left;padding-left:30px;">
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mth21202f08.wordpress.com/619/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mth21202f08.wordpress.com/619/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mth21202f08.wordpress.com/619/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mth21202f08.wordpress.com/619/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mth21202f08.wordpress.com/619/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mth21202f08.wordpress.com/619/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mth21202f08.wordpress.com/619/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mth21202f08.wordpress.com/619/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mth21202f08.wordpress.com/619/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mth21202f08.wordpress.com/619/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mth21202f08.wordpress.com/619/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mth21202f08.wordpress.com/619/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mth21202f08.wordpress.com/619/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mth21202f08.wordpress.com/619/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mth21202f08.wordpress.com&amp;blog=4207098&amp;post=619&amp;subd=mth21202f08&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mth21202f08.wordpress.com/2008/09/22/%e2%80%a2-second-3-week-block-example-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3896fed97c942d30add82053f85729d2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Editor</media:title>
		</media:content>

		<media:content url="http://mth21202f08.files.wordpress.com/2008/09/edward_lorenz.jpg" medium="image">
			<media:title type="html">edward_lorenz</media:title>
		</media:content>

		<media:content url="http://mth21202f08.files.wordpress.com/2008/09/lorenz_attractor.jpg" medium="image">
			<media:title type="html">lorenz_attractor</media:title>
		</media:content>

		<media:content url="http://mth21202f08.files.wordpress.com/2008/09/lorenz_euler1.jpg?w=499" medium="image">
			<media:title type="html">lorenz_euler1</media:title>
		</media:content>

		<media:content url="http://mth21202f08.files.wordpress.com/2008/09/lorenz_euler2.jpg" medium="image">
			<media:title type="html">lorenz_euler2</media:title>
		</media:content>

		<media:content url="http://mth21202f08.files.wordpress.com/2008/09/lorenz_euler3.jpg" medium="image">
			<media:title type="html">lorenz_euler3</media:title>
		</media:content>

		<media:content url="http://mth21202f08.files.wordpress.com/2008/09/lorenz_euler4.jpg" medium="image">
			<media:title type="html">lorenz_euler4</media:title>
		</media:content>

		<media:content url="http://mth21202f08.files.wordpress.com/2008/09/lorenz_euler5.jpg" medium="image">
			<media:title type="html">lorenz_euler5</media:title>
		</media:content>

		<media:content url="http://mth21202f08.files.wordpress.com/2008/09/euler_method4.jpg" medium="image">
			<media:title type="html">euler_method4</media:title>
		</media:content>

		<media:content url="http://mth21202f08.files.wordpress.com/2008/09/lorenz_euler6.jpg" medium="image">
			<media:title type="html">lorenz_euler6</media:title>
		</media:content>

		<media:content url="http://mth21202f08.files.wordpress.com/2008/09/lorenz_euler7.jpg" medium="image">
			<media:title type="html">lorenz_euler7</media:title>
		</media:content>

		<media:content url="http://mth21202f08.files.wordpress.com/2008/09/lorenz_euler8.jpg" medium="image">
			<media:title type="html">lorenz_euler8</media:title>
		</media:content>
	</item>
		<item>
		<title>• Possible differential equations for the first 3 week block task</title>
		<link>http://mth21202f08.wordpress.com/2008/09/01/possible-differential-equations-for-the-first-3-week-block-task/</link>
		<comments>http://mth21202f08.wordpress.com/2008/09/01/possible-differential-equations-for-the-first-3-week-block-task/#comments</comments>
		<pubDate>Mon, 01 Sep 2008 13:56:30 +0000</pubDate>
		<dc:creator>Author</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://mth21202f08.wordpress.com/?p=434</guid>
		<description><![CDATA[Tenenbaum &#38; Pollard pp. 55-56, pp. 44-45.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mth21202f08.wordpress.com&amp;blog=4207098&amp;post=434&amp;subd=mth21202f08&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Tenenbaum &amp; Pollard pp. 55-56, pp. 44-45.</p>
<ul>
<li><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdy%7D%7Bdx%7D%3D%5Cfrac%7By%5E2%2B1%7D%7Bx%5E2%2B1%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{dy}{dx}=&#92;frac{y^2+1}{x^2+1}' title='&#92;frac{dy}{dx}=&#92;frac{y^2+1}{x^2+1}' class='latex' /></li>
<li><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdx%7D%7Bdt%7Dcot%28t%29-x%3D2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{dx}{dt}cot(t)-x=2' title='&#92;frac{dx}{dt}cot(t)-x=2' class='latex' /></li>
<li><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdy%7D%7Bdx%7D%3D%5Cfrac%7By%5E3%7D%7B%28y-2%29x%5E2%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{dy}{dx}=&#92;frac{y^3}{(y-2)x^2}' title='&#92;frac{dy}{dx}=&#92;frac{y^3}{(y-2)x^2}' class='latex' /></li>
<li><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdy%7D%7Bdx%7D%3D%5Cfrac%7By%5E2-1%7D%7B2y%2Bxy%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{dy}{dx}=&#92;frac{y^2-1}{2y+xy}' title='&#92;frac{dy}{dx}=&#92;frac{y^2-1}{2y+xy}' class='latex' /></li>
<li><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdy%7D%7Bdx%7D%3Dylog%28y%29cot%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{dy}{dx}=ylog(y)cot(x)' title='&#92;frac{dy}{dx}=ylog(y)cot(x)' class='latex' /></li>
<li><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdy%7D%7Bdx%7D%3D-x%28y%2B1%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{dy}{dx}=-x(y+1)' title='&#92;frac{dy}{dx}=-x(y+1)' class='latex' /></li>
<li><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdy%7D%7Bdx%7D%3D%5Cfrac%7B2y%7D%7Bx%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{dy}{dx}=&#92;frac{2y}{x}' title='&#92;frac{dy}{dx}=&#92;frac{2y}{x}' class='latex' /></li>
<li><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdy%7D%7Bdx%7D%3D%5Cfrac%7Bx-y%7D%7Bx%2By%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{dy}{dx}=&#92;frac{x-y}{x+y}' title='&#92;frac{dy}{dx}=&#92;frac{x-y}{x+y}' class='latex' /></li>
</ul>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mth21202f08.wordpress.com/434/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mth21202f08.wordpress.com/434/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mth21202f08.wordpress.com/434/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mth21202f08.wordpress.com/434/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mth21202f08.wordpress.com/434/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mth21202f08.wordpress.com/434/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mth21202f08.wordpress.com/434/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mth21202f08.wordpress.com/434/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mth21202f08.wordpress.com/434/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mth21202f08.wordpress.com/434/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mth21202f08.wordpress.com/434/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mth21202f08.wordpress.com/434/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mth21202f08.wordpress.com/434/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mth21202f08.wordpress.com/434/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mth21202f08.wordpress.com/434/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mth21202f08.wordpress.com/434/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mth21202f08.wordpress.com&amp;blog=4207098&amp;post=434&amp;subd=mth21202f08&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mth21202f08.wordpress.com/2008/09/01/possible-differential-equations-for-the-first-3-week-block-task/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3896fed97c942d30add82053f85729d2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Editor</media:title>
		</media:content>
	</item>
		<item>
		<title>• First 3-week block: Example 1</title>
		<link>http://mth21202f08.wordpress.com/2008/08/10/example-first-3-week-block/</link>
		<comments>http://mth21202f08.wordpress.com/2008/08/10/example-first-3-week-block/#comments</comments>
		<pubDate>Sun, 10 Aug 2008 20:12:05 +0000</pubDate>
		<dc:creator>Author</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://mth21202f08.wordpress.com/?p=32</guid>
		<description><![CDATA[The differential equation I will use as an example comes about in the following way: We have a small hot body in large cooler environment. The small hot body loses heat to the environment and so drops in temperature. The &#8230; <a href="http://mth21202f08.wordpress.com/2008/08/10/example-first-3-week-block/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mth21202f08.wordpress.com&amp;blog=4207098&amp;post=32&amp;subd=mth21202f08&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The differential equation I will use as an example comes about in the following way:</p>
<p>We have a small hot body in large cooler environment. The small hot body loses heat to the environment and so drops in temperature. The environment is large enough that the small amount of heat gained from the small hot body does not significantly raise the temperature of the environment. However, as time progresses the environment is warming as result of the impact of the rising sun.</p>
<p>To get a mathematical form for a differential equation we need to know something about the rate of change of the small hot body. We get this information from <a href="http://en.wikipedia.org/wiki/Heat_transfer#Newton.27s_law_of_cooling">Newton&#8217;s law of cooling</a>, which states that the rate of change of temperature of a hot body with respect to time is proportional to the difference between the temperature of the body and the temperature of the environment. If the temperature of the environment were constant we could write Newton&#8217;s law of cooling as:</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7BdT%7D%7Bdt%7D%3D-k%5E2%28T-T_%7Benv%7D%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{dT}{dt}=-k^2(T-T_{env})' title='&#92;frac{dT}{dt}=-k^2(T-T_{env})' class='latex' /></p>
<p>where <img src='http://s0.wp.com/latex.php?latex=T&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T' title='T' class='latex' /> is the temperature of the hot body at time <img src='http://s0.wp.com/latex.php?latex=t&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='t' title='t' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=T_%7Benv%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T_{env}' title='T_{env}' class='latex' /> is the constant temperature of the environment, and <img src='http://s0.wp.com/latex.php?latex=k%5E2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='k^2' title='k^2' class='latex' /> is a positive constant.</p>
<p>However, we are assuming that the environment is warming up as time progresses, so let&#8217;s assume this warming is progressing at a constant rate, at least for a reasonable time period. In other words, we&#8217;re assuming that <img src='http://s0.wp.com/latex.php?latex=T_%7Benv%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T_{env}' title='T_{env}' class='latex' /> is changing as a <em>linear </em>function of <img src='http://s0.wp.com/latex.php?latex=t%3A+T_%7Benv%7D%28t%29%3Dat%2Bb+%5Ctextrm%7B+where+%7D+a+%3E+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='t: T_{env}(t)=at+b &#92;textrm{ where } a &gt; 0' title='t: T_{env}(t)=at+b &#92;textrm{ where } a &gt; 0' class='latex' />.</p>
<p>So now our differential equation for the temperature <img src='http://s0.wp.com/latex.php?latex=T&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T' title='T' class='latex' /> of the hot body, as a function of time, is</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7BdT%7D%7Bdt%7D%3D-k%5E2%28T-%28at%2Bb%29%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{dT}{dt}=-k^2(T-(at+b))' title='&#92;frac{dT}{dt}=-k^2(T-(at+b))' class='latex' /> &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;(*)</p>
<p style="text-align:left;">The problem is this: given the differential equation (*), how does the temperature of the hot body change with time?</p>
<p style="text-align:left;">As it stands we cannot answer this question by giving a specific numerical function <img src='http://s0.wp.com/latex.php?latex=T&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T' title='T' class='latex' /> because we do not know the initial temperature of the hot body, or the constants <img src='http://s0.wp.com/latex.php?latex=k%2C+a+%5Ctextrm%7B+and+%7D+b&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='k, a &#92;textrm{ and } b' title='k, a &#92;textrm{ and } b' class='latex' />. The problem of determining the behavior of the temperature of the hot body from the differential equation has, therefore, 4 free parameters. Let&#8217;s narrow this down to a problem with only 1 free parameter &#8211; the initial temperature of the hot body, by specifying the other parameters.</p>
<p style="text-align:left;">Let&#8217;s suppose that at time <img src='http://s0.wp.com/latex.php?latex=t+%3D+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='t = 0' title='t = 0' class='latex' /> (which could be any clock time &#8211; e.g. 6 a.m.) the temperature of the environment is <img src='http://s0.wp.com/latex.php?latex=45%5E0+F&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='45^0 F' title='45^0 F' class='latex' /> and that the temperature rises steadily so that 360 minutes (= 6 hours) later the temperature of the environment is <img src='http://s0.wp.com/latex.php?latex=75%5E0+F&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='75^0 F' title='75^0 F' class='latex' />. The rate of change of temperature (measured in degrees per minute) is <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7B30%7D%7B360%7D%3D%5Cfrac%7B1%7D%7B12%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{30}{360}=&#92;frac{1}{12}' title='&#92;frac{30}{360}=&#92;frac{1}{12}' class='latex' /> so in the differential equation (*), <img src='http://s0.wp.com/latex.php?latex=a%3D%5Cfrac%7B1%7D%7B12%7D%5Ctextrm%7B+and+%7D+b%3D45&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a=&#92;frac{1}{12}&#92;textrm{ and } b=45' title='a=&#92;frac{1}{12}&#92;textrm{ and } b=45' class='latex' />.</p>
<p style="text-align:left;">We do not know the value for k, and can only reasonably obtain this from experiment. however, a reaonably typical value for a hot body such as a hot cup of coffee is <img src='http://s0.wp.com/latex.php?latex=k%5E2%3D0.05&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='k^2=0.05' title='k^2=0.05' class='latex' /> which gives <img src='http://s0.wp.com/latex.php?latex=k+%5Capprox+0.22&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='k &#92;approx 0.22' title='k &#92;approx 0.22' class='latex' />.</p>
<p style="text-align:left;">With these parameter values the differential equation (*) becomes;</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7BdT%7D%7Bdt%7D%3D-0.05%28T-%28t%2F12%2B45%29%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{dT}{dt}=-0.05(T-(t/12+45))' title='&#92;frac{dT}{dt}=-0.05(T-(t/12+45))' class='latex' /> &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;(**)</p>
<p style="text-align:left;">At first glance it looks like there are no free parameters in (**), but there is one, lying hidden. It is the initial temperature of the hot body. The differential equation (**) can &#8211; and should &#8211; be thought of as a prescription for movement in a dynamical system &#8211; the transfer of heat from the hot body to the environment. As such, (**) is a prescription for how the heat flow goes with time: in particular, how the temperature <span style="text-decoration:underline;">changes</span> with time. What (**) does not tell us is what the temperature <img src='http://s0.wp.com/latex.php?latex=T&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T' title='T' class='latex' /> of the hot body was at time <img src='http://s0.wp.com/latex.php?latex=t%3D0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='t=0' title='t=0' class='latex' />. Without that knowledge we can only know the way in which the temperature changes -which is what (**) tells us &#8211; but not the actual value of the temperature at any given time.</p>
<p style="text-align:left;">So we know have a differential equation (**) with one free parameter &#8211; the value <img src='http://s0.wp.com/latex.php?latex=T%280%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T(0)' title='T(0)' class='latex' />. This differential equation is a <span style="text-decoration:underline;">first-order</span> equation because it involves only the <span style="text-decoration:underline;">first</span> derivative of the variable <img src='http://s0.wp.com/latex.php?latex=T&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T' title='T' class='latex' />.</p>
<p style="text-align:left;">The basic problem of differential equations, illustrated by the differential equation (**), is: how do we get some understanding of the behavior of the solutions of the differential equation from the differential equation itself? To put it more picturesquely, if less precisely: the differential equation is a local prescription for change. It tells us how the dependent variable changes at a particular value of the independent variable. What we seek is a global, overall, idea of the behavior of the solution curves.</p>
<p style="text-align:left;">We now turn to some very simple techniques for obtaining that global picture of the solution curves to (**).</p>
<p style="text-align:left;">
<h3 style="text-align:left;">Direction fields</h3>
<p>(Also known as <a href="http://en.wikipedia.org/wiki/Slope_field">slope fields</a>)</p>
<p>Tenenbaum &amp; Pollard pp. 38-41.</p>
<p>Hunt, Lipsman, Osborn &amp; Rosenberg pp. 65-71</p>
<p>At any given time, t, the differential equation tells us how the temperature is undergoing a change at that time. The differential equation tells us how the dynamics of heat exchange is changing, and points us from the current temperature to temperatures at close future times.  You all know by now that in physics, mathematics and engineering we indicate pointing by vectors. The idea of a direction field is to place, at each time t, a small vector indicating the magnitude and direction in the change of temperature, as governed by the differential equation. The great beauty of a direction field is that if we draw the direction vectors sufficiently well then we can literally see how a solution curve behaves with time. We get an overall picture of the solution of a differential equation. This is what we mean by a global solution. The differential equation tells us how things change at any given time. The direction field, drawn well, gives us a picture of the overall change over a range of time. This is a process of integration, and it is your eye that does the integration.</p>
<p>If we assume the hot body starts off at a higher temperature than the environment at time <img src='http://s0.wp.com/latex.php?latex=t%3D0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='t=0' title='t=0' class='latex' /> then (**) tells us that the rate of change of the temperature of the hot body is negative.</p>
<div id="attachment_462" class="wp-caption aligncenter" style="width: 510px"><a href="http://mth21202f08.files.wordpress.com/2008/09/direction_field1.jpg"><img class="size-full wp-image-462" src="http://mth21202f08.files.wordpress.com/2008/09/direction_field1.jpg?w=500&#038;h=375" alt="Direction field for the differential equation (**)" width="500" height="375" /></a><p class="wp-caption-text">Direction field for the differential equation (**)</p></div>
<p>The direction field above was constructed using MatLab. You can use MatLab on the computers in the Mathematics Department Computer Lab, room 218, Liberal arts Building. For working at home, if you don&#8217;t have MatLab you can use the open-source software <a href="http://www.gnu.org/software/octave/">Octave</a>, which is designed to be similar to MatLab (and, being open source software it is freely available).</p>
<h3><a href="http://en.wikipedia.org/wiki/Euler%27s_method">Euler&#8217;s method</a></h3>
<p>Euler&#8217;s method consists in taking an approximation to the derivative, with small steps in the independent variable. In the example for this block the independent variable is time, t. So we take a small time step <img src='http://s0.wp.com/latex.php?latex=%5CDelta+t&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Delta t' title='&#92;Delta t' class='latex' /> and we approximate the derivative <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7BdT%7D%7Bdt%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{dT}{dt}' title='&#92;frac{dT}{dt}' class='latex' /> at time t by <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7BT%28t%2B%5CDelta+t%29+-T%28t%29%7D%7B%5CDelta+t%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{T(t+&#92;Delta t) -T(t)}{&#92;Delta t}' title='&#92;frac{T(t+&#92;Delta t) -T(t)}{&#92;Delta t}' class='latex' />. This means <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7BT%28t%2B%5CDelta+t%29+-T%28t%29%7D%7B%5CDelta+t%7D%5Capprox+%5Cfrac%7BdT%7D%7Bdt%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{T(t+&#92;Delta t) -T(t)}{&#92;Delta t}&#92;approx &#92;frac{dT}{dt}' title='&#92;frac{T(t+&#92;Delta t) -T(t)}{&#92;Delta t}&#92;approx &#92;frac{dT}{dt}' class='latex' /> so that <img src='http://s0.wp.com/latex.php?latex=T%28t%2B%5CDelta+t%29+%5Capprox+T%28t%29%2B%5CDelta%28t%29%5Cfrac%7BdT%7D%7Bdt%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T(t+&#92;Delta t) &#92;approx T(t)+&#92;Delta(t)&#92;frac{dT}{dt}' title='T(t+&#92;Delta t) &#92;approx T(t)+&#92;Delta(t)&#92;frac{dT}{dt}' class='latex' />.</p>
<p>We <span style="text-decoration:underline;">know</span> the form of <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7BdT%7D%7Bdt%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{dT}{dt}' title='&#92;frac{dT}{dt}' class='latex' /> from the differential equation (**) so we use the above approximation to estimate <img src='http://s0.wp.com/latex.php?latex=T%28t%2B%5CDelta+t%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T(t+&#92;Delta t)' title='T(t+&#92;Delta t)' class='latex' /> from knowledge of <img src='http://s0.wp.com/latex.php?latex=T%28t%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T(t)' title='T(t)' class='latex' />. To start this process we need an initial value for <img src='http://s0.wp.com/latex.php?latex=T%280%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T(0)' title='T(0)' class='latex' />.</p>
<p>This simple approximation to a numerical solution to the differential equation (**) can be easily implemented in a spreadsheet, and the updating feature of a spreadsheet can easily allow us to see the effect of changing the initial condition <img src='http://s0.wp.com/latex.php?latex=T%280%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T(0)' title='T(0)' class='latex' />:</p>
<div id="attachment_466" class="wp-caption aligncenter" style="width: 510px"><a href="http://mth21202f08.files.wordpress.com/2008/09/euler_method3.jpg"><img class="size-full wp-image-466" src="http://mth21202f08.files.wordpress.com/2008/09/euler_method3.jpg?w=500&#038;h=450" alt="Numerical solutions to (**) with different initial conditions, obtained using Euler's method." width="500" height="450" /></a><p class="wp-caption-text">Numerical solutions to (**) with different initial conditions, obtained using Euler&#39;s method</p></div>
<p>However, spreadsheets do not have good numerical accuracy, so we will use MatLab instead. This also gives you practice getting used to the MatLab environment.</p>
<p>Euler&#8217;s method in MatLab is described on pp. 91-95 of Hunt, Lipsman, Osborn &amp; Rosenberg.</p>
<p>The basic problem with Euler&#8217;s method is that it has low accuracy over extended time periods. Basically we need to take <img src='http://s0.wp.com/latex.php?latex=%5CDelta+t&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Delta t' title='&#92;Delta t' class='latex' /> very small to get good accuracy, but that gives us a trade-off in the overall time for which we get a numerical approximation to the solution.</p>
<h3>Analytical techniques</h3>
<h4>(1) Substitution</h4>
<p>We define a new function <img src='http://s0.wp.com/latex.php?latex=S+%5Ctextrm%7B+of+%7D+t&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S &#92;textrm{ of } t' title='S &#92;textrm{ of } t' class='latex' /> by <img src='http://s0.wp.com/latex.php?latex=S+%3D+T-at%2Bc&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S = T-at+c' title='S = T-at+c' class='latex' /> and try to choose the constant <img src='http://s0.wp.com/latex.php?latex=c&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='c' title='c' class='latex' /> so that <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7BdS%7D%7Bdt%7D%3D-k%5E2S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{dS}{dt}=-k^2S' title='&#92;frac{dS}{dt}=-k^2S' class='latex' /> &#8211; the reason being that this would give us a simpler differential equation for <img src='http://s0.wp.com/latex.php?latex=S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S' title='S' class='latex' /> than we had previously for <img src='http://s0.wp.com/latex.php?latex=T&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T' title='T' class='latex' />.</p>
<p>With the substitution <img src='http://s0.wp.com/latex.php?latex=S+%3D+T-at%2Bc&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S = T-at+c' title='S = T-at+c' class='latex' /> we have <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7BdS%7D%7Bdt%7D%3D%5Cfrac%7BdT%7D%7Bdt%7D-a%3D-k%5E2%28T-%28at%2Bb%29%29-a+%3D-k%5E2%28T-at-b%2Ba%2Fk%5E2%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{dS}{dt}=&#92;frac{dT}{dt}-a=-k^2(T-(at+b))-a =-k^2(T-at-b+a/k^2)' title='&#92;frac{dS}{dt}=&#92;frac{dT}{dt}-a=-k^2(T-(at+b))-a =-k^2(T-at-b+a/k^2)' class='latex' /> so if we choose <img src='http://s0.wp.com/latex.php?latex=c%3Da%2Fk%5E2-b&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='c=a/k^2-b' title='c=a/k^2-b' class='latex' /> then we have <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7BdS%7D%7Bdt%7D%3D-k%5E2S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{dS}{dt}=-k^2S' title='&#92;frac{dS}{dt}=-k^2S' class='latex' />.</p>
<p>The differential equation of <img src='http://s0.wp.com/latex.php?latex=S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S' title='S' class='latex' /> is simpler than that for <img src='http://s0.wp.com/latex.php?latex=T&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T' title='T' class='latex' />, and involves only one parameter, <img src='http://s0.wp.com/latex.php?latex=k&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='k' title='k' class='latex' />.</p>
<p>You might recall that <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bde%5E%7B-k%5E2t%7D%7D%7Bdt%7D%3D-k%5E2e%5E%7B-k%5E2t%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{de^{-k^2t}}{dt}=-k^2e^{-k^2t}' title='&#92;frac{de^{-k^2t}}{dt}=-k^2e^{-k^2t}' class='latex' /> so you might suspect that <img src='http://s0.wp.com/latex.php?latex=S%3De%5E%7B-k%5E2t%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S=e^{-k^2t}' title='S=e^{-k^2t}' class='latex' /> or perhaps, <img src='http://s0.wp.com/latex.php?latex=S%3DAe%5E%7B-k%5E2t%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S=Ae^{-k^2t}' title='S=Ae^{-k^2t}' class='latex' /> allowing for the fact that we have another parameter to account for: the temperature <img src='http://s0.wp.com/latex.php?latex=T%28o%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T(o)' title='T(o)' class='latex' /> of the hot body at time 0. This guess is, in fact, correct, and we will see why by using separation of variables and integration.</p>
<p>Substitution is dealt with in Tennenbaum &amp; Pollard pp. 101-103.</p>
<h4>(2) Separation of variables</h4>
<p>Here&#8217;s the intuitive idea:</p>
<p>it is very tempting to write the differential equation <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7BdS%7D%7Bdt%7D%3D-k%5E2S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{dS}{dt}=-k^2S' title='&#92;frac{dS}{dt}=-k^2S' class='latex' /> as <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7BdS%7D%7BS%7D%3D-k%5E2dt&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{dS}{S}=-k^2dt' title='&#92;frac{dS}{S}=-k^2dt' class='latex' />, whatever that might mean</p>
<p>Following the formalism where it leads has a long and venerable history in mathematics: that is, for example, how <a href="http://en.wikipedia.org/wiki/Complex_number">complex numbers</a> were discovered. However, blind formalism, where we accept formal manipulation as correct no matter what, can lead to absurd thinking. Here&#8217;s an example: let&#8217;s just imagine we can blindly make sense of the infinite sum <img src='http://s0.wp.com/latex.php?latex=1%2B2%2B4%2B8%2B16%2B%5Cldots&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='1+2+4+8+16+&#92;ldots' title='1+2+4+8+16+&#92;ldots' class='latex' /> in which each term in the sum is twice the one before. Let&#8217;s call this sum <img src='http://s0.wp.com/latex.php?latex=%5CSigma&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Sigma' title='&#92;Sigma' class='latex' /> so <img src='http://s0.wp.com/latex.php?latex=%5CSigma%3D1%2B2%2B4%2B8%2B16%2B%5Cldots&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Sigma=1+2+4+8+16+&#92;ldots' title='&#92;Sigma=1+2+4+8+16+&#92;ldots' class='latex' />. Now let&#8217;s formally suppose we can multiply all the terms in <img src='http://s0.wp.com/latex.php?latex=%5CSigma&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Sigma' title='&#92;Sigma' class='latex' /> by 2: <img src='http://s0.wp.com/latex.php?latex=2%5CSigma%3D2%2B4%2B8%2B16%2B%5Cldots&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='2&#92;Sigma=2+4+8+16+&#92;ldots' title='2&#92;Sigma=2+4+8+16+&#92;ldots' class='latex' />. Now operate formally and subtract <img src='http://s0.wp.com/latex.php?latex=2%5CSigma+%5Ctextrm%7B+from+%7D+%5CSigma&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='2&#92;Sigma &#92;textrm{ from } &#92;Sigma' title='2&#92;Sigma &#92;textrm{ from } &#92;Sigma' class='latex' /> to get <img src='http://s0.wp.com/latex.php?latex=-%5CSigma+%3D+1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='-&#92;Sigma = 1' title='-&#92;Sigma = 1' class='latex' />, which is obviously not true!</p>
<p>So <em>blind </em>formal manipulation is not always a good idea. But <em>inspired </em>formal manipulation, as we have done with the differential equation, might be productive.</p>
<p>Her&#8217;s a little more formal manipulation of the differential equation that is very suggestive:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cint%5Cfrac%7BdS%7D%7BS%7D%3D-%5Cint+k%5E2dt&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;int&#92;frac{dS}{S}=-&#92;int k^2dt' title='&#92;int&#92;frac{dS}{S}=-&#92;int k^2dt' class='latex' />.</p>
<p>Thinking of an integral as an anti-derivative (why not?) this seems to give us <img src='http://s0.wp.com/latex.php?latex=ln%28S%29%3D-k%5E2t%2Bc&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='ln(S)=-k^2t+c' title='ln(S)=-k^2t+c' class='latex' /> where <img src='http://s0.wp.com/latex.php?latex=c&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='c' title='c' class='latex' /> is constant, so <img src='http://s0.wp.com/latex.php?latex=S%3De%5Ece%5E%7B-k%5E2t%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S=e^ce^{-k^2t}' title='S=e^ce^{-k^2t}' class='latex' /> as we had previously guessed.</p>
<p>This technique is called separation of variables because we manipulate the differential equation into a form where all the occurrences of the variable <img src='http://s0.wp.com/latex.php?latex=S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S' title='S' class='latex' /> are on one side of the equation, and all the occurrences of the variable <img src='http://s0.wp.com/latex.php?latex=t&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='t' title='t' class='latex' /> are on the other side of the equation.</p>
<p>Separation of variables is described in Tenebaum &amp; Pollard pp. 47-55.</p>
<h3>Computer-aided solutions</h3>
<p>Almost any technique you know of, or anyone knows of, is encoded in standard computer packages that allow exact solutions of differential equations. such packages include Maple, Mathematica, and  MatLab, as well as their open source equivalents.</p>
<p>Here&#8217;s how we go about finding solutions to the differential equation (**) using MatLab:</p>
<p>(Hunt, Lipsman, Osborn &amp; Rosenberg pp. 65-71)</p>
<p><strong>&gt;&gt; dsolve(&#8216;DT=-0.05*(T-(t/12+45))&#8217;,'t&#8217;</strong><strong>)</strong></p>
<p>The result is:</p>
<p>ans =130/3+1/12*t+exp(-1/20*t)*C1</p>
<p>The &#8211; unknown &#8211; constant <img src='http://s0.wp.com/latex.php?latex=C1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='C1' title='C1' class='latex' /> comes about because we did not yet specify <img src='http://s0.wp.com/latex.php?latex=T%280%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T(0)' title='T(0)' class='latex' />. Once we do that we get a solution with no free parameters:</p>
<p><strong>&gt;&gt; dsolve(&#8216;DT=-0.05*(T-(t/12+45))&#8217;, &#8216;T(0)=200&#8242;, &#8216;t&#8217;</strong><strong>)</strong></p>
<p>ans =</p>
<p>130/3+1/12*t+470/3*exp(-1/20*t)</p>
<p>So the computer does the hard work of finding an exact anyltic solution for us, when there is such an anlytic solution.</p>
<p>Of course, what we weould like ot know is how the oslution behaves as time increases. One way to do this is to look at a graph of <img src='http://s0.wp.com/latex.php?latex=T&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T' title='T' class='latex' /> versus <img src='http://s0.wp.com/latex.php?latex=t&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='t' title='t' class='latex' />.</p>
<p>In MatLab we can do this by naming the solution:</p>
<p><strong>&gt;&gt; SOL = dsolve(&#8216;DT=-0.05*(T-(t/12+45))&#8217;, &#8216;T(0)=200&#8242;, &#8216;t&#8217;</strong><strong>)</strong></p>
<p>and then plotting it:</p>
<p><strong>&gt;&gt; ezplot(SOL,[0,360])</strong></p>
<div id="attachment_509" class="wp-caption aligncenter" style="width: 474px"><img class="size-large wp-image-509" src="http://mth21202f08.files.wordpress.com/2008/09/cooling2.jpg?w=500" alt="Temperature T versus time t, <img src='http://s0.wp.com/latex.php?latex=0+%5Cleq+t+%5Cleq+360&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='0 &#92;leq t &#92;leq 360' title='0 &#92;leq t &#92;leq 360' class='latex' />&#8221; width=&#8221;464&#8243; height=&#8221;349&#8243; /><p class="wp-caption-text">Temperature T versus time t, <img src='http://s0.wp.com/latex.php?latex=0+%5Cleq+t+%5Cleq+360&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='0 &#92;leq t &#92;leq 360' title='0 &#92;leq t &#92;leq 360' class='latex' /></p></div>
<p>Finally: does this make sense? Should the temperature-time curve dip like this then rise? Does this solution make sense in terms of the model we had?</p>
<p style="text-align:left;">
<p style="text-align:left;">
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mth21202f08.wordpress.com/32/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mth21202f08.wordpress.com/32/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mth21202f08.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mth21202f08.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mth21202f08.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mth21202f08.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mth21202f08.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mth21202f08.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mth21202f08.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mth21202f08.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mth21202f08.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mth21202f08.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mth21202f08.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mth21202f08.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mth21202f08.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mth21202f08.wordpress.com/32/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mth21202f08.wordpress.com&amp;blog=4207098&amp;post=32&amp;subd=mth21202f08&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mth21202f08.wordpress.com/2008/08/10/example-first-3-week-block/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3896fed97c942d30add82053f85729d2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Editor</media:title>
		</media:content>

		<media:content url="http://mth21202f08.files.wordpress.com/2008/09/direction_field1.jpg" medium="image">
			<media:title type="html">Direction field for the differential equation (**)</media:title>
		</media:content>

		<media:content url="http://mth21202f08.files.wordpress.com/2008/09/euler_method3.jpg" medium="image">
			<media:title type="html">Numerical solutions to (**) with different initial conditions, obtained using Euler's method.</media:title>
		</media:content>

		<media:content url="http://mth21202f08.files.wordpress.com/2008/09/cooling2.jpg?w=500" medium="image">
			<media:title type="html">Temperature T versus time t, $latex 0 \leq t \leq 360$</media:title>
		</media:content>
	</item>
	</channel>
</rss>
