<?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>JennaMichelle</title>
	<atom:link href="http://jcloutier1.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://jcloutier1.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Thu, 28 May 2009 00:54:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='jcloutier1.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>JennaMichelle</title>
		<link>http://jcloutier1.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://jcloutier1.wordpress.com/osd.xml" title="JennaMichelle" />
	<atom:link rel='hub' href='http://jcloutier1.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Block 6 Assignment</title>
		<link>http://jcloutier1.wordpress.com/2009/05/20/block-6-assignment/</link>
		<comments>http://jcloutier1.wordpress.com/2009/05/20/block-6-assignment/#comments</comments>
		<pubDate>Thu, 21 May 2009 02:57:36 +0000</pubDate>
		<dc:creator>jcloutier1</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://jcloutier1.wordpress.com/?p=228</guid>
		<description><![CDATA[Objective For this 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: Specific first and second-order linear differential equations: (a) The first two first-order equations on p. 466 (b) Any two second-order equations on p. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jcloutier1.wordpress.com&amp;blog=6347397&amp;post=228&amp;subd=jcloutier1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h1><span style="color:#c0c0c0;">Objective</span></h1>
<p><span style="color:#c0c0c0;">For this  block<strong>, </strong>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:</span></p>
<p><span style="color:#c0c0c0;"><strong>Specific first and second-order linear differential equations</strong>:</span></p>
<p><span style="color:#c0c0c0;">(a) The first two first-order equations on p. 466</span></p>
<p><span style="color:#c0c0c0;">(b) Any two second-order equations on p. 466.</span></p>
<p><span style="color:#c0c0c0;">(c) Two examples of linear systems from pp. 470-471.</span></p>
<p><span style="color:#c0c0c0;">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.</span></p>
<h1><span style="color:#ff99cc;">First-Order Equations</span></h1>
<p><span style="color:#ff99cc;"> </span></p>
<p><span style="color:#ff99cc;">Problem 1: <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdy%7D%7Bdt%7D+-+y+%3D+e%5E%7B3t%7D%2C+y%280%29+%3D+2&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac{dy}{dt} - y = e^{3t}, y(0) = 2' title='&#92;frac{dy}{dt} - y = e^{3t}, y(0) = 2' class='latex' /></span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3E%5Cfrac+%7Bdy%7D%7Bdt%7D+-+y+%3De%5E%7B3t%7D&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;&#92;frac {dy}{dt} - y =e^{3t}' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;&#92;frac {dy}{dt} - y =e^{3t}' class='latex' /> , <img src='http://s0.wp.com/latex.php?latex=y%280%29+%3D+2&amp;bg=000000&amp;fg=808080&amp;s=0' alt='y(0) = 2' title='y(0) = 2' class='latex' /></span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3E%5Cmathcal%7BL%7D+%5B+%5Cfrac%7Bdy%7D%7Bdt%7D-y+%5D+%3D+%5Cmathcal%7BL%7D+%5Be%5E%7B3t%7D%5D+%3D+%5Cfrac%7B1%7D%7Bs-3%7D&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;&#92;mathcal{L} [ &#92;frac{dy}{dt}-y ] = &#92;mathcal{L} [e^{3t}] = &#92;frac{1}{s-3}' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;&#92;mathcal{L} [ &#92;frac{dy}{dt}-y ] = &#92;mathcal{L} [e^{3t}] = &#92;frac{1}{s-3}' class='latex' /><br />
</span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3E%5Cmathcal%7BL%7D%5B+%5Cfrac%7Bdy%7D%7Bdt%7D+%5D+%3D+%5Cmathcal%7BL%7D+%5B+y%280%29+%5D+%2B%5Cfrac%7B1%7D%7Bs-3%7D&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;&#92;mathcal{L}[ &#92;frac{dy}{dt} ] = &#92;mathcal{L} [ y(0) ] +&#92;frac{1}{s-3}' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;&#92;mathcal{L}[ &#92;frac{dy}{dt} ] = &#92;mathcal{L} [ y(0) ] +&#92;frac{1}{s-3}' class='latex' /></span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3E%28s-1%29+%5Cmathscr%7BL%7D%5By%5D+-2+%3D+%5Cfrac%7B1%7D%7Bs-3%7D&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;(s-1) &#92;mathscr{L}[y] -2 = &#92;frac{1}{s-3}' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;(s-1) &#92;mathscr{L}[y] -2 = &#92;frac{1}{s-3}' class='latex' /></span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3E%5Cmathscr%7BL%7D%5By%5D+%3D+%5Cfrac%7B%5Cfrac%7B1%7D%7Bs-3%7D+%2B2%7D%7Bs-1%7D&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;&#92;mathscr{L}[y] = &#92;frac{&#92;frac{1}{s-3} +2}{s-1}' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;&#92;mathscr{L}[y] = &#92;frac{&#92;frac{1}{s-3} +2}{s-1}' class='latex' /></span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3E%5Cmathscr%7BL%7D%5By%5D+%3D%5Cfrac+%7B3%7D%7B2%2A%28s-1%29%7D%2B%5Cfrac%7B1%7D%7B2%2A%28s-3%29%7D&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;&#92;mathscr{L}[y] =&#92;frac {3}{2*(s-1)}+&#92;frac{1}{2*(s-3)}' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;&#92;mathscr{L}[y] =&#92;frac {3}{2*(s-1)}+&#92;frac{1}{2*(s-3)}' class='latex' /></span></p>
<p><span style="color:#ff99cc;">The MATLAB code I used was:</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; syms s t;</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; ilaplace(3/(2*(s-1))+ 1/(2*(s-3)),s,t)</span></p>
<p><span style="color:#c0c0c0;">ans =</span></p>
<p><span style="color:#c0c0c0;">3/2*exp(t)+1/2*exp(3*t)</span></p>
<p><span style="color:#ff99cc;">To plot I used:</span></p>
<p style="text-align:center;"><span style="color:#c0c0c0;">&gt;&gt; ezplot ‘3/2*exp(t)+1/2*exp(3*t)’</span><br />
<a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20six/?action=view&amp;current=block6.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20six/block6.jpg" border="0" alt="Photobucket" /></a></p>
<p><span style="color:#ff99cc;">The solution comes from -∞ to +∞ along the y-axis at 0 in the direction of the x-axis. When the graph approaches about x = 3, the slope of the graph increases towards +∞ in the y- direction. After x =4, the slope of the graph increases rapidly between x =4 &amp; x =5 towards+∞ in the y- direction. (Following the exponential trend.)<br />
</span></p>
<p><span style="color:#ff99cc;"><br />
</span></p>
<p><span style="color:#ff99cc;">Problem 2: <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdy%7D%7Bdt%7D+%2B+y+%3D+3cos%28t%29%2C+y%280%29+%3D+2&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac{dy}{dt} + y = 3cos(t), y(0) = 2' title='&#92;frac{dy}{dt} + y = 3cos(t), y(0) = 2' class='latex' /></span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%5Cmathscr%7BL%7D+%5B+%5Cfrac%7Bdy%7D%7Bdt%7D%2By+%5D+%3D+%5Cmathscr%7BL%7D+%5B3+%5Ccos+%28t%29%5D&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;mathscr{L} [ &#92;frac{dy}{dt}+y ] = &#92;mathscr{L} [3 &#92;cos (t)]' title='&#92;mathscr{L} [ &#92;frac{dy}{dt}+y ] = &#92;mathscr{L} [3 &#92;cos (t)]' class='latex' /></span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%5Cmathscr%7BL%7D+%5B%5Cfrac%7Bdy%7D%7Bdt%7D%5D%2B+%5Cmathscr%7BL%7D%5By%5D+%3D+%5Cfrac%7B3s%7D%7Bs%5E2%2B1%7D&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;mathscr{L} [&#92;frac{dy}{dt}]+ &#92;mathscr{L}[y] = &#92;frac{3s}{s^2+1}' title='&#92;mathscr{L} [&#92;frac{dy}{dt}]+ &#92;mathscr{L}[y] = &#92;frac{3s}{s^2+1}' class='latex' /></span></p>
<p><span style="color:#ff99cc;">$latexs \mathscr{L}[y] &#8211; y(0) + \mathscr{L}[y] = \frac{3s}{s^2+1}$</span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%5Cmathscr%7BL%7D%5By%5D+%3D+y%280%29+-+s+%5Cmathscr%7BL%7D%5By%5D+%2B+%5Cfrac%7B3s%7D%7Bs%5E2%2B1%7D&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;mathscr{L}[y] = y(0) - s &#92;mathscr{L}[y] + &#92;frac{3s}{s^2+1}' title='&#92;mathscr{L}[y] = y(0) - s &#92;mathscr{L}[y] + &#92;frac{3s}{s^2+1}' class='latex' /></span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%28s%2B1%29+%5Cmathscr%7BL%7D%5By%5D+%3D+2+%2B+%5Cfrac%7B3s%7D%7Bs%5E2%2B1%7D&amp;bg=000000&amp;fg=808080&amp;s=0' alt='(s+1) &#92;mathscr{L}[y] = 2 + &#92;frac{3s}{s^2+1}' title='(s+1) &#92;mathscr{L}[y] = 2 + &#92;frac{3s}{s^2+1}' class='latex' /></span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%5Cmathscr%7BL%7D%5By%5D+%3D+%5Cfrac%7B%5Cfrac%7B3s%7D%7Bs%5E2%2B1%7D+-+2%7D%7Bs%2B1%7D&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;mathscr{L}[y] = &#92;frac{&#92;frac{3s}{s^2+1} - 2}{s+1}' title='&#92;mathscr{L}[y] = &#92;frac{&#92;frac{3s}{s^2+1} - 2}{s+1}' class='latex' /></span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%5Cmathscr%7BL%7D%5By%5D+%3D+%5Cfrac%7B3s%7D%7B2%2A%28s%5E2+%2B+1%29%7D+%2B+%5Cfrac%7B3%7D%7B2%2A%28s%5E2+%2B+1%29%7D+-+%5Cfrac%7B7%7D%7B2%2A%28s+%2B+1%29%7D&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;mathscr{L}[y] = &#92;frac{3s}{2*(s^2 + 1)} + &#92;frac{3}{2*(s^2 + 1)} - &#92;frac{7}{2*(s + 1)}' title='&#92;mathscr{L}[y] = &#92;frac{3s}{2*(s^2 + 1)} + &#92;frac{3}{2*(s^2 + 1)} - &#92;frac{7}{2*(s + 1)}' class='latex' /></span></p>
<p><span style="color:#ff99cc;">The MATLAB code I used was:</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; syms s t;</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; ilaplace(3*s/(2*(s^2+1))+ 3/(2*(s^2+1)) – 7/(2*(s+1)),s,t)</span></p>
<p><span style="color:#c0c0c0;">ans =</span></p>
<p><span style="color:#c0c0c0;">3/2*cos(t)+3/2*sin(t)-7/2*exp(-t)</span></p>
<p><span style="color:#ff99cc;">To plot I used:</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; ezplot ‘3/2*cos(t)+3/2*sin(t)-7/2*exp(-t)’</span></p>
<p style="text-align:center;"><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20six/?action=view&amp;current=block62.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20six/block62.jpg" border="0" alt="Photobucket" /></a></p>
<p style="text-align:left;"><span style="color:#ff99cc;">The function goes from -∞ to +∞ in the y direction. The slope is at first very steep then around x= -1.5 it looks as if it goes level; however, it doesn&#8217;t. It does show the exp<span style="color:#ff99cc;">onential features, but the function also has ‘cos and sin’ in it. </span></span><span style="color:#ff99cc;">The graph below shows that at approximately x = .5, the function starts to follow the sin wave towards +∞ in the x direction. Don’t just trust your first graph.</span></p>
<p style="text-align:center;"><span style="color:#ff99cc;"> </span><br />
<a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20six/?action=view&amp;current=block63.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20six/block63.jpg" border="0" alt="Photobucket" /></a></p>
<p><span style="color:#ff99cc;"><br />
</span></p>
<h1><span style="color:#ff99cc;">Second-Order Equations</span></h1>
<p><span style="color:#ff99cc;"> </span></p>
<p><span style="color:#ff99cc;">Problem 3:  Number 3 on p. 466:</span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bd%5E2+y%7D%7Bdt%5E2%7D+%2B+4y+%3D+0%2C+y%280%29%3D2%2C+y%27%280%29%3D3&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac{d^2 y}{dt^2} + 4y = 0, y(0)=2, y&#039;(0)=3' title='&#92;frac{d^2 y}{dt^2} + 4y = 0, y(0)=2, y&#039;(0)=3' class='latex' /></span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%5Cmathscr%7BL%7D+%5B%5Cfrac%7Bd%5E2y%7D%7Bdt%5E2%7D+%2B+4y%5D+%3D+%5Cmathscr%7BL%7D+%5B0%5D&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;mathscr{L} [&#92;frac{d^2y}{dt^2} + 4y] = &#92;mathscr{L} [0]' title='&#92;mathscr{L} [&#92;frac{d^2y}{dt^2} + 4y] = &#92;mathscr{L} [0]' class='latex' /></span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3Es%5E2+%5Cmathscr%7BL%7D%5By%5D+%2B+s+y%280%29+-+y%27%280%29+%2B4+%5Cmathscr%7BL%7D%5By%5D+%3D+0&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;s^2 &#92;mathscr{L}[y] + s y(0) - y&#039;(0) +4 &#92;mathscr{L}[y] = 0' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;s^2 &#92;mathscr{L}[y] + s y(0) - y&#039;(0) +4 &#92;mathscr{L}[y] = 0' class='latex' /></span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3E%28s%5E2%2B4%29+%5Cmathscr%7BL%7D%5By%5D+-+2s+-+3+%3D+0&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;(s^2+4) &#92;mathscr{L}[y] - 2s - 3 = 0' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;(s^2+4) &#92;mathscr{L}[y] - 2s - 3 = 0' class='latex' /></span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3E%5Cmathscr%7BL%7D%5By%5D+%3D+%5Cfrac%7B2s-3%7D%7Bs%5E2%2B4%7D&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;&#92;mathscr{L}[y] = &#92;frac{2s-3}{s^2+4}' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;&#92;mathscr{L}[y] = &#92;frac{2s-3}{s^2+4}' class='latex' /></span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3Ey%28t%29+%3D+2+%5Ccos%28t%29+-+%5Cfrac%7B3%7D%7B2%7D+%5Csin%282t%29&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;y(t) = 2 &#92;cos(t) - &#92;frac{3}{2} &#92;sin(2t)' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;y(t) = 2 &#92;cos(t) - &#92;frac{3}{2} &#92;sin(2t)' class='latex' /></span></p>
<p><span style="color:#ff99cc;">The MATLAB code I used was: </span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; syms s t;</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; ilaplace((2*s – 3)/(s^2 + 4))<br />
</span></p>
<p><span style="color:#c0c0c0;">ans =</span></p>
<p><span style="color:#c0c0c0;">2*cos(2*t)-3/2*sin(2*t)</span></p>
<p><span style="color:#ff99cc;">To plot I used:</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; ezplot ‘2*cos(2*t)-3/2*sin(2*t)’</span></p>
<p style="text-align:center;"><span style="color:#c0c0c0;"> </span><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20six/?action=view&amp;current=block64.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20six/block64.jpg" border="0" alt="Photobucket" /></a></p>
<p><span style="color:#ff99cc;">The graph displays a function like a basic sin and cos wave with a magnitude of about 2.5.<br />
</span></p>
<p><span style="color:#ff99cc;"> </span></p>
<p><span style="color:#ff99cc;">Problem 4:  Number 4 on p. 466:</span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bd%5E2+y%7D%7Bdt%5E2%7D+%2B+16y+%3D+0%2C+y%280%29%3D7%2C+y%27%280%29%3D0&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac{d^2 y}{dt^2} + 16y = 0, y(0)=7, y&#039;(0)=0' title='&#92;frac{d^2 y}{dt^2} + 16y = 0, y(0)=7, y&#039;(0)=0' class='latex' /></span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3E%5Cfrac%7Bd%5E2+y%7D%7Bdt%5E2%7D+%2B+16y+%3D+0%2C+y%280%29%3D7%2C+y%E2%80%99%280%29%3D0&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;&#92;frac{d^2 y}{dt^2} + 16y = 0, y(0)=7, y’(0)=0' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;&#92;frac{d^2 y}{dt^2} + 16y = 0, y(0)=7, y’(0)=0' class='latex' /></span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3E%5Cmathscr%7BL%7D+%5B%5Cfrac%7Bd%5E2y%7D%7Bdt%5E2%7D+%2B+16y%5D+%3D+%5Cmathscr%7BL%7D+%5B0%5D&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;&#92;mathscr{L} [&#92;frac{d^2y}{dt^2} + 16y] = &#92;mathscr{L} [0]' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;&#92;mathscr{L} [&#92;frac{d^2y}{dt^2} + 16y] = &#92;mathscr{L} [0]' class='latex' /></span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3Es%5E2+%5Cmathscr%7BL%7D%5By%5D+%2B+s+y%280%29+-+y%27%280%29+%2B16+%5Cmathscr%7BL%7D%5By%5D+%3D+0&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;s^2 &#92;mathscr{L}[y] + s y(0) - y&#039;(0) +16 &#92;mathscr{L}[y] = 0' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;s^2 &#92;mathscr{L}[y] + s y(0) - y&#039;(0) +16 &#92;mathscr{L}[y] = 0' class='latex' /></span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3E%28s%5E2%2B16%29+%5Cmathscr%7BL%7D%5By%5D+-+7s+%3D+0&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;(s^2+16) &#92;mathscr{L}[y] - 7s = 0' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;(s^2+16) &#92;mathscr{L}[y] - 7s = 0' class='latex' /></span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3E%5Cm%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3Eathscr%7BL%7D%5By%5D+%3D+%5Cfrac%7B7s%7D%7Bs%5E2%2B16%7D&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;&#92;m&lt;span style=&quot;color:#ff99cc;&quot;&gt;athscr{L}[y] = &#92;frac{7s}{s^2+16}' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;&#92;m&lt;span style=&quot;color:#ff99cc;&quot;&gt;athscr{L}[y] = &#92;frac{7s}{s^2+16}' class='latex' /></span></span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=y%28t%29+%3D+7+%5Ccos%284t%29&amp;bg=000000&amp;fg=808080&amp;s=0' alt='y(t) = 7 &#92;cos(4t)' title='y(t) = 7 &#92;cos(4t)' class='latex' /></span></p>
<p><span style="color:#ff99cc;">The MATLAB code I used was:</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; syms s t;</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; ilaplace(7*s/(s^2+16))</span></p>
<p><span style="color:#c0c0c0;">ans =</span></p>
<p><span style="color:#c0c0c0;">7*cos(4*t)</span></p>
<p><span style="color:#ff99cc;">To plot I used:</span></p>
<p style="text-align:left;"><span style="color:#c0c0c0;">&gt;&gt; ezplot ‘7*cos(4*t)’</span></p>
<p style="text-align:center;"><span style="color:#c0c0c0;"> </span><br />
<a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20six/?action=view&amp;current=block65.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20six/block65.jpg" border="0" alt="Photobucket" /></a></p>
<p><span style="color:#ff99cc;">So you can see this is a basic cos function with the magnitude of 7 &amp; the ’stretch’  of 4t from -∞ to +∞ in the x direction.</span></p>
<p><span style="color:#ff99cc;"> </span></p>
<p><span style="color:#ff99cc;"> </span></p>
<h1><span style="color:#ff99cc;">Linear Systems of Equations</span></h1>
<p><span style="color:#ff99cc;"> </span></p>
<p><span style="color:#ff99cc;">Problem 5: Problem 1, p 470</span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdx%7D%7Bdt%7D-2y%3D0&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac{dx}{dt}-2y=0' title='&#92;frac{dx}{dt}-2y=0' class='latex' /></span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3E%5Cfrac%7Bdy%7D%7Bdt%7D%2Bx-3y%3D2&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;&#92;frac{dy}{dt}+x-3y=2' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;&#92;frac{dy}{dt}+x-3y=2' class='latex' /></span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3Ex%280%29%3D3%2C+y%280%29%3D0&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;x(0)=3, y(0)=0' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;x(0)=3, y(0)=0' class='latex' /></span></p>
<p><span style="color:#ff99cc;">dx/dt:</span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3E%5Cfrac%7Bdx%7D%7Bdt%7D-2y%3D0&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;&#92;frac{dx}{dt}-2y=0' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;&#92;frac{dx}{dt}-2y=0' class='latex' /></span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3E%5Cmathscr%7BL%7D+%5B%5Cfrac%7Bdx%7D%7Bdt%7D%5D+-+2+%5Cmathscr%7BL%7D+%5By%5D+%3D+%5Cmathscr%7BL%7D+%5B0%5D&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;&#92;mathscr{L} [&#92;frac{dx}{dt}] - 2 &#92;mathscr{L} [y] = &#92;mathscr{L} [0]' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;&#92;mathscr{L} [&#92;frac{dx}{dt}] - 2 &#92;mathscr{L} [y] = &#92;mathscr{L} [0]' class='latex' /></span></p>
<p><span style="color:#ff99cc;"> </span></p>
<p><span style="color:#ff99cc;"> </span><span style="color:#ff99cc;">dy/dt:</span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3E%5Cfrac+%7Bdy%7D%7Bdt%7D%2Bx-3y%3D2&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;&#92;frac {dy}{dt}+x-3y=2' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;&#92;frac {dy}{dt}+x-3y=2' class='latex' /></span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3E%5Cmathscr%7BL%7D+%5B+%5Cfrac%7Bdy%7D%7Bdt%7D%5D+%2B%5Cmathscr%7BL%7D%5Bx%5D+-+%5Cmathscr%7BL%7D+%5B3y%5D+%3D+%5Cmathscr%7BL%7D+%5B2%5D&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;&#92;mathscr{L} [ &#92;frac{dy}{dt}] +&#92;mathscr{L}[x] - &#92;mathscr{L} [3y] = &#92;mathscr{L} [2]' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;&#92;mathscr{L} [ &#92;frac{dy}{dt}] +&#92;mathscr{L}[x] - &#92;mathscr{L} [3y] = &#92;mathscr{L} [2]' class='latex' /></span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3E%28s-3%29+%5Cmathscr%7BL%7D+%5By%5D+-+%5Cmathscr%7BL%7D+%5Bx%5D+%3D+%5Cfrac+%7B2%7D%7Bs%7D&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;(s-3) &#92;mathscr{L} [y] - &#92;mathscr{L} [x] = &#92;frac {2}{s}' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;(s-3) &#92;mathscr{L} [y] - &#92;mathscr{L} [x] = &#92;frac {2}{s}' class='latex' /></span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3E%5Cmathscr%7BL%7D+%5Bx%5D+%3D+%5Cfrac%7B2%7D%7Bs%7D+-+%28s-3%29+%5Cmathscr%7BL%7D+%5By%5D&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;&#92;mathscr{L} [x] = &#92;frac{2}{s} - (s-3) &#92;mathscr{L} [y]' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;&#92;mathscr{L} [x] = &#92;frac{2}{s} - (s-3) &#92;mathscr{L} [y]' class='latex' /></span></p>
<p><span style="color:#ff99cc;"> </span></p>
<p><span style="color:#ff99cc;">Solving System for x(s):</span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3E%5Cmathscr%7BL%7D+%5Bx%5D+%3D+%5Cfrac%7B2%7D%7Bs%7D+-+%28s%2B3%29%28%5Cfrac%7B-1%7D%7Bs%5E2%2B3s%2B2%7D%29&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;&#92;mathscr{L} [x] = &#92;frac{2}{s} - (s+3)(&#92;frac{-1}{s^2+3s+2})' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;&#92;mathscr{L} [x] = &#92;frac{2}{s} - (s+3)(&#92;frac{-1}{s^2+3s+2})' class='latex' /></span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3Ex%28s%29+%3D+%5Cfrac%7B-1%7D%7Bs%2B2%7D+%2B+%5Cfrac%7B2%7D%7Bs%2B1%7D+%2B+%5Cfrac%7B2%7D%7Bs%7D&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;x(s) = &#92;frac{-1}{s+2} + &#92;frac{2}{s+1} + &#92;frac{2}{s}' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;x(s) = &#92;frac{-1}{s+2} + &#92;frac{2}{s+1} + &#92;frac{2}{s}' class='latex' /></span></p>
<p><span style="color:#ff99cc;"> </span></p>
<p><span style="color:#ff99cc;">x(t):</span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3Ex%28t%29+%3D+%5Cfrac%7B2%7D%7Be%5Et%7D+-+%5Cfrac%7B1%7D%7Be%5E%7B2t%7D%7D%2B2&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;x(t) = &#92;frac{2}{e^t} - &#92;frac{1}{e^{2t}}+2' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;x(t) = &#92;frac{2}{e^t} - &#92;frac{1}{e^{2t}}+2' class='latex' /></span></p>
<p><span style="color:#ff99cc;"> </span></p>
<p><span style="color:#ff99cc;">Solving System for y(s):</span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3Es%5B%5Cfrac%7B2%7D%7Bs%7D+-+%28s-3%29+%5Cmathscr%7BL%7D+%5By%5D%5D+-+3+-2%5Cmathscr%7BL%7D+%5By%5D+%3D0&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;s[&#92;frac{2}{s} - (s-3) &#92;mathscr{L} [y]] - 3 -2&#92;mathscr{L} [y] =0' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;s[&#92;frac{2}{s} - (s-3) &#92;mathscr{L} [y]] - 3 -2&#92;mathscr{L} [y] =0' class='latex' /></span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3E2+-+%28s%5E2-3s%29%5Cmathscr%7BL%7D+%5By%5D+-+3+-2%5Cmathscr%7BL%7D+%5By%5D+%3D+0&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;2 - (s^2-3s)&#92;mathscr{L} [y] - 3 -2&#92;mathscr{L} [y] = 0' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;2 - (s^2-3s)&#92;mathscr{L} [y] - 3 -2&#92;mathscr{L} [y] = 0' class='latex' /></span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3E%28-s%5E2+%2B+3s+-2%29%5Cmathscr%7BL%7D+%5By%5D+%3D+1&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;(-s^2 + 3s -2)&#92;mathscr{L} [y] = 1' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;(-s^2 + 3s -2)&#92;mathscr{L} [y] = 1' class='latex' /></span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3Ey%28s%29+%3D+%5Cfrac%7B-1%7D%7Bs%5E2-3s%2B2%7D&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;y(s) = &#92;frac{-1}{s^2-3s+2}' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;y(s) = &#92;frac{-1}{s^2-3s+2}' class='latex' /></span></p>
<p><span style="color:#ff99cc;"> </span></p>
<p><span style="color:#ff99cc;">y(t):</span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3Ey%28t%29+%3D+e%5E%7Bt%7D+-+e%5E%7B2%2At%7D&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;y(t) = e^{t} - e^{2*t}' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;y(t) = e^{t} - e^{2*t}' class='latex' /></span></p>
<p><span style="color:#ff99cc;"><br />
</span></p>
<p><span style="color:#ff99cc;">The MATLAB code I used was:</span></p>
<p><span style="color:#ff99cc;">For \mathscr{L}[y]:</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; syms s t;</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; ilaplace(-1/(s^2 – 3*s + 2))</span></p>
<p><span style="color:#c0c0c0;">ans =</span></p>
<p><span style="color:#c0c0c0;">-exp(2*t)+exp(t)</span></p>
<p><span style="color:#c0c0c0;"> </span></p>
<p><span style="color:#ff99cc;">For \mathscr{L}[x]:</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; syms s t;</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; ilaplace(-1/(s+2) + 2/(s+1) + 2/s)</span></p>
<p><span style="color:#c0c0c0;">ans =</span></p>
<p><span style="color:#c0c0c0;">-exp(-2*t)+2*exp(-t)+2</span></p>
<p><span style="color:#ff99cc;"> <span style="color:#ff99cc;">To plot I used:<br />
</span></span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; x= @(t) -exp(-2*t)+2*exp(-t)+2;</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; fplot (x, [-4,4,-4,4])</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; hold on</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt;y =@(t) -exp(2*t)+exp(t);</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt;fplot (y, [-4,4,-4,4], ‘r’)</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; grid on</span><br />
<a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20six/?action=view&amp;current=block66.jpg" target="_blank"><img src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20six/block66.jpg" border="0" alt="Photobucket" /></a></p>
<p><span style="color:#ff99cc;">The blue line displays the X and red line displays the Y. The X comes with a steep slope from -∞, hits x= 0 @ y =3 then drops slowly and levels off at y = 2 and continues to +∞ The Y: It is coming from -∞ with a slight slope to about y=.25 till about x=-.5 and then the function just drops rapidly between x=0 and x = 1.</span></p>
<p><span style="color:#ff99cc;"> </span></p>
<p><span style="color:#ff99cc;">Problem 6: Problem 2, p.460</span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdx%7D%7Bdt%7D+%2B+y+%3D+3e%5E%282t%29&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac{dx}{dt} + y = 3e^(2t)' title='&#92;frac{dx}{dt} + y = 3e^(2t)' class='latex' /></span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3E%5Cfrac%7Bdy%7D%7Bdt%7D+%2B+x+%3D+0&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;&#92;frac{dy}{dt} + x = 0' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;&#92;frac{dy}{dt} + x = 0' class='latex' /></span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3Ex%280%29%3D2%2C+y%280%29%3D0&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;x(0)=2, y(0)=0' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;x(0)=2, y(0)=0' class='latex' /></span></p>
<p><span style="color:#ff99cc;"> </span><span style="color:#ff99cc;">dy/dt:</span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3E%5Cfrac+%7Bdy%7D%7Bdt%7D%2Bx%3D0&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;&#92;frac {dy}{dt}+x=0' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;&#92;frac {dy}{dt}+x=0' class='latex' /></span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3E%5Cmathscr%7BL%7D+%5B+%5Cfrac%7Bdy%7D%7Bdt%7D%5D+%2B%5Cmathscr%7BL%7D%5Bx%5D+%3D+%5Cmathscr%7BL%7D+%5B0%5D&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;&#92;mathscr{L} [ &#92;frac{dy}{dt}] +&#92;mathscr{L}[x] = &#92;mathscr{L} [0]' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;&#92;mathscr{L} [ &#92;frac{dy}{dt}] +&#92;mathscr{L}[x] = &#92;mathscr{L} [0]' class='latex' /></span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3Es+%5Cmathscr%7BL%7D+%5By%5D+-+y%280%29+%2B+%5Cmathscr%7BL%7D+%5Bx%5D+%3D+0&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;s &#92;mathscr{L} [y] - y(0) + &#92;mathscr{L} [x] = 0' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;s &#92;mathscr{L} [y] - y(0) + &#92;mathscr{L} [x] = 0' class='latex' /></span></p>
<p><span style="color:#ff99cc;">$ latex \mathscr{L} [x] = -s \mathscr{L} [y] + 0 $</span></p>
<p><span style="color:#ff99cc;"> </span></p>
<p><span style="color:#ff99cc;">Solving System for x(s):</span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3Ex%28s%29+%3D+-s%28%5Cfrac%7B3%7D%7B%281-s%5E2%29%28s-2%29%7D+%2B+%5Cfrac%7B2%7D%7B1-s%5E2%7D%29&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;x(s) = -s(&#92;frac{3}{(1-s^2)(s-2)} + &#92;frac{2}{1-s^2})' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;x(s) = -s(&#92;frac{3}{(1-s^2)(s-2)} + &#92;frac{2}{1-s^2})' class='latex' /></span></p>
<p><span style="color:#ff99cc;"> </span></p>
<p><span style="color:#ff99cc;"> </span><span style="color:#ff99cc;">x(t):</span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3Ex%28t%29+%3D+%5Cfrac%7B1%7D%7B2e%5Et%7D+%2B+%5Cfrac%7Be%5E%7B2t%7D%7D%7B2%7D+-+%5Cfrac%7Be%5Et%7D%7B2%7D+-%5Cfrac%7B1%7D%7B2%7D&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;x(t) = &#92;frac{1}{2e^t} + &#92;frac{e^{2t}}{2} - &#92;frac{e^t}{2} -&#92;frac{1}{2}' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;x(t) = &#92;frac{1}{2e^t} + &#92;frac{e^{2t}}{2} - &#92;frac{e^t}{2} -&#92;frac{1}{2}' class='latex' /></span></p>
<p><span style="color:#ff99cc;"> </span></p>
<p><span style="color:#ff99cc;">Solving System for y(s):</span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3Es%28-s%5Cmathscr%7BL%7D+%5By%5D%29+-+2+%2B+%5Cmathscr%7BL%7D+%5By%5D+%3D%5Cfrac%7B3%7D%7Bs-2%7D&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;s(-s&#92;mathscr{L} [y]) - 2 + &#92;mathscr{L} [y] =&#92;frac{3}{s-2}' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;s(-s&#92;mathscr{L} [y]) - 2 + &#92;mathscr{L} [y] =&#92;frac{3}{s-2}' class='latex' /></span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3E%28-s%5E2%2B1%29%5Cmathscr%7BL%7D+%5By%5D+%3D+%5Cfrac%7B3%7D%7Bs-2%7D+%2B2&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;(-s^2+1)&#92;mathscr{L} [y] = &#92;frac{3}{s-2} +2' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;(-s^2+1)&#92;mathscr{L} [y] = &#92;frac{3}{s-2} +2' class='latex' /></span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3Ey%28s%29+%3D+%5Cfrac%7B3%7D%7B%281-s%5E2%29%28s-2%29%7D+%2B+%5Cfrac%7B2%7D%7B1-s%5E2%7D&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;y(s) = &#92;frac{3}{(1-s^2)(s-2)} + &#92;frac{2}{1-s^2}' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;y(s) = &#92;frac{3}{(1-s^2)(s-2)} + &#92;frac{2}{1-s^2}' class='latex' /></span></p>
<p><span style="color:#ff99cc;"> </span></p>
<p><span style="color:#ff99cc;"> </span><span style="color:#ff99cc;">y(t):</span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3Ey%28t%29+%3D+%5Cfrac%7B1%7D%7B2e%5Et%7D+-+e%5E%7B2t%7D+%2B+%5Cfrac%7Be%5Et%7D%7B2%7D&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;y(t) = &#92;frac{1}{2e^t} - e^{2t} + &#92;frac{e^t}{2}' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;y(t) = &#92;frac{1}{2e^t} - e^{2t} + &#92;frac{e^t}{2}' class='latex' /></span></p>
<p><span style="color:#ff99cc;">The MATLAB code I used was:</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; syms s t;<br />
</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; ilaplace(-s*(3/((1-s^2)*(s-2)) + 2/(1 – s^2)))</span></p>
<p><span style="color:#c0c0c0;">ans =</span></p>
<p><span style="color:#c0c0c0;">-sinh(t)+2*exp(2*t)<br />
</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; syms s t;</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; ilaplace(3/((1-s^2)*(s-2)) + 2/(1 – s^2))</span></p>
<p><span style="color:#c0c0c0;">ans =</span></p>
<p><span style="color:#c0c0c0;">cosh(t)-exp(2*t)</span></p>
<p><span style="color:#ff99cc;"> To plot I used: </span><span style="color:#ff99cc;"><br />
</span></p>
<p><span style="color:#ff99cc;">&gt;&gt; x= @(t) -sinh(t)+2*exp(2*t);</span></p>
<p><span style="color:#ff99cc;">&gt;&gt; fplot (x, [-1,1,-10,10])</span></p>
<p><span style="color:#ff99cc;">&gt;&gt; hold on</span></p>
<p><span style="color:#ff99cc;">&gt;&gt;y =@(t) cosh(t)-exp(2*t);</span></p>
<p><span style="color:#ff99cc;">&gt;&gt;fplot (y, [-1,1,-10,10], ‘r’)</span></p>
<p><span style="color:#ff99cc;">&gt;&gt; grid on</span></p>
<p style="text-align:center;"><span style="color:#ff99cc;"><br />
</span><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20six/?action=view&amp;current=block67.jpg" target="_blank"><span style="color:#000000;"> </span><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20six/block67.jpg" border="0" alt="Photobucket" /></a></p>
<p style="text-align:left;"><span style="color:#ff99cc;">Once again, the blue line displays the X while the red line displays the Y. The X shows a function coming from – ∞ in the x direction and its slope becomes increasingly greater. The Y shows a function coming from about the same location as the X but it slops drps but not as much as the X.</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jcloutier1.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jcloutier1.wordpress.com/228/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jcloutier1.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jcloutier1.wordpress.com/228/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jcloutier1.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jcloutier1.wordpress.com/228/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jcloutier1.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jcloutier1.wordpress.com/228/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jcloutier1.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jcloutier1.wordpress.com/228/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jcloutier1.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jcloutier1.wordpress.com/228/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jcloutier1.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jcloutier1.wordpress.com/228/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jcloutier1.wordpress.com&amp;blog=6347397&amp;post=228&amp;subd=jcloutier1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jcloutier1.wordpress.com/2009/05/20/block-6-assignment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d531027de84f742f203422af9da6c271?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jcloutier1</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20six/block6.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20six/block62.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20six/block63.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20six/block64.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20six/block65.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20six/block66.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20six/block67.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>
	</item>
		<item>
		<title>Block 5 Assignment</title>
		<link>http://jcloutier1.wordpress.com/2009/03/23/block-five-assignment/</link>
		<comments>http://jcloutier1.wordpress.com/2009/03/23/block-five-assignment/#comments</comments>
		<pubDate>Mon, 23 Mar 2009 12:27:50 +0000</pubDate>
		<dc:creator>jcloutier1</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://jcloutier1.wordpress.com/?p=54</guid>
		<description><![CDATA[Objective 1. (a) Plot the vector field for the linear function T[(x,y)] = (x + y, x). (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. (c) Try to describe the flow geometrically, in words. 2. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jcloutier1.wordpress.com&amp;blog=6347397&amp;post=54&amp;subd=jcloutier1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h1><span style="color:#c0c0c0;">Objective<br />
</span></h1>
<p><span style="color:#c0c0c0;">1.</span></p>
<p><span style="color:#c0c0c0;"> (a) Plot the vector field for the linear function T[(x,y)] = (x + y, x).</span></p>
<p><span style="color:#c0c0c0;">(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.</span></p>
<p><span style="color:#c0c0c0;">(c) Try to describe the flow geometrically, in words.</span></p>
<p><span style="color:#c0c0c0;">2. Repeat this for the linear functions T[(x,y)] = (ax + by, cx + dy) for several choices of integers a, b, c, d chosen randomly in the range -5 ≤ a, b, c, d ≤ 5.</span></p>
<p><span style="color:#c0c0c0;"><br />
</span></p>
<h1><span style="color:#ff99cc;">Introduction</span></h1>
<p><span style="color:#ff99cc;">For the fifth block, systems of linear differential equations was discussed&#8211;which is provided on pages 287-300, 325-337, 353-377 of the text.</span></p>
<p><span style="color:#ff99cc;">An example of systems of linear differential equations is two differential equations such as:</span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdx%7D%7Bdt%7D%3Dax%2Bby&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac{dx}{dt}=ax+by' title='&#92;frac{dx}{dt}=ax+by' class='latex' /></span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdy%7D%7Bdt%7D%3Dcx%2Bdy&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac{dy}{dt}=cx+dy' title='&#92;frac{dy}{dt}=cx+dy' class='latex' /></span></p>
<p><span style="color:#ff99cc;">where <img src='http://s0.wp.com/latex.php?latex=a%2Cb%2Cc%2Cd+&amp;bg=000000&amp;fg=808080&amp;s=0' alt='a,b,c,d ' title='a,b,c,d ' class='latex' /> are constants</span></p>
<p><span style="color:#ff99cc;">(*There is no higher order term in x and y since we are dealing with linear differential equations.)</span></p>
<p><span style="color:#ff99cc;">Two linear differential equations: <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdx%7D%7Bdt%7D%3D2x%2By&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac{dx}{dt}=2x+y' title='&#92;frac{dx}{dt}=2x+y' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdy%7D%7Bdt%7D%3Dx%2By&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac{dy}{dt}=x+y' title='&#92;frac{dy}{dt}=x+y' class='latex' /> give you the formula of <img src='http://s0.wp.com/latex.php?latex=T%28x%2Cy%29%3D+%282x+%2B+y%2C+x+%2B+y%29&amp;bg=000000&amp;fg=808080&amp;s=0' alt='T(x,y)= (2x + y, x + y)' title='T(x,y)= (2x + y, x + y)' class='latex' /></span></p>
<p><span style="color:#ff99cc;"><br />
</span><br />
<a href="http://s616.photobucket.com/albums/tt250/jcloutier1/?action=view&amp;current=unit.png" target="_blank"><img src="http://i616.photobucket.com/albums/tt250/jcloutier1/unit.png" border="0" alt="Photobucket" /></a><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/?action=view&amp;current=parallelogram.png" target="_blank"><img src="http://i616.photobucket.com/albums/tt250/jcloutier1/parallelogram.png" border="0" alt="Photobucket" /></a></p>
<p><span style="color:#ff99cc;">The unit sq<span style="color:#ff99cc;">uare in the first graph transforms into the second graph displaying the parallelogram.</span></span></p>
<h1><span style="color:#ff99cc;">Part 1<br />
</span></h1>
<h2><span style="color:#ff99cc;">Part A: Plot the vector field for the linear function T[(x,y)] = (x + y, x).</span></h2>
<p><span style="color:#ff99cc;">To plot this vector field I used the MATLAB code:</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; [x,y]=meshgrid(-1:1/10:1,-1:1/10:1);</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; u=x+y;</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; v=x;</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; DW=sqrt(u.^2+v.^2);</span></p>
<p style="text-align:left;"><span style="color:#c0c0c0;">&gt;&gt; quiver(x,y,u./DW,v./DW,.5)</span><br />
<a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20five/?action=view&amp;current=block5.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20five/block5.jpg" border="0" alt="Photobucket" /></a><span style="color:#ff99cc;">A better (zoomed) version of the vector field is shown below:</span><span style="color:#c0c0c0;"> </span></p>
<p><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20five/?action=view&amp;current=block52.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20five/block52.jpg" border="0" alt="Photobucket" width="450" height="337" /></a></p>
<p><span style="color:#ff99cc;">The vector field has the slope of about 1 and the field lines are going from left to right in a diagonal. When it hits approximately 0, the vector lines switch direction. It seems as though there is a ‘X’ made and in between each line, the vector fields are in the shape of parabolas.</span></p>
<p><span style="color:#ff99cc;"><br />
</span></p>
<h2><span style="color:#ff99cc;">Part 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.</span></h2>
<p><span style="color:#ff99cc;"> </span></p>
<p><span style="color:#ff99cc;">Problems: </span></p>
<p><span style="color:#ff99cc;">1. </span><span style="color:#ff99cc;">$latex</span><span style="color:#ff99cc;"> x + y = \lambda x$ and 2. </span><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3Ex+%3D+%5Clambda+y&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;x = &#92;lambda y' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;x = &#92;lambda y' class='latex' /></span></p>
<p><span style="color:#ff99cc;"> </span></p>
<p><span style="color:#ff99cc;">1. </span><span style="color:#ff99cc;">$latex</span><span style="color:#ff99cc;"> ( \lambda &#8211; 1) x &#8211; y = 0$ (*Bringing all variables to one side.)<br />
</span></p>
<p><span style="color:#ff99cc;">2. </span><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%5C%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3Elambda+y+-+x+%3D+0&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;lambda y - x = 0' title='&#92;&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;lambda y - x = 0' class='latex' /> </span><span style="color:#ff99cc;">(*Bringing all variables to one side.)</span></p>
<p><span style="color:#ff99cc;"> </span></p>
<p><span style="color:#ff99cc;">1. <img src='http://s0.wp.com/latex.php?latex=x+%3D+%5Clambda+y&amp;bg=000000&amp;fg=808080&amp;s=0' alt='x = &#92;lambda y' title='x = &#92;lambda y' class='latex' /> (*</span><span style="color:#ff99cc;">Substitution)</span></p>
<p><span style="color:#ff99cc;">2. <img src='http://s0.wp.com/latex.php?latex=y+%3D+%28%5Clambda+-+1%29x&amp;bg=000000&amp;fg=808080&amp;s=0' alt='y = (&#92;lambda - 1)x' title='y = (&#92;lambda - 1)x' class='latex' /> </span><span style="color:#ff99cc;">(*</span><span style="color:#ff99cc;">Substitution)</span></p>
<p><span style="color:#ff99cc;"> </span></p>
<p><span style="color:#ff99cc;">1. <img src='http://s0.wp.com/latex.php?latex=%28%28+%5Clambda+-+1%29%28+%5Clambda+y%29%29+-+y+%3D+0&amp;bg=000000&amp;fg=808080&amp;s=0' alt='(( &#92;lambda - 1)( &#92;lambda y)) - y = 0' title='(( &#92;lambda - 1)( &#92;lambda y)) - y = 0' class='latex' /> (*Plugging it back into the equation.)<br />
</span></p>
<p><span style="color:#ff99cc;">2. <img src='http://s0.wp.com/latex.php?latex=%5Clambda+%28+%5Clambda+-+1%29x+-+x+%3D+0&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;lambda ( &#92;lambda - 1)x - x = 0' title='&#92;lambda ( &#92;lambda - 1)x - x = 0' class='latex' /> </span><span style="color:#ff99cc;">(*Plugging it back into the equation.)</span></p>
<p><span style="color:#ff99cc;"> </span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%28+%5Clambda+-+1%29+%28+%5Clambda%29+-+1+%3D+0&amp;bg=000000&amp;fg=808080&amp;s=0' alt='( &#92;lambda - 1) ( &#92;lambda) - 1 = 0' title='( &#92;lambda - 1) ( &#92;lambda) - 1 = 0' class='latex' /> (*</span><span style="color:#ff99cc;">X &amp; Y are non-zeros.)</span></p>
<p><span style="color:#ff99cc;"> </span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3E%5Cfrac%7B1%7D%7B2%7D+%281+%5Cpm+%5Csqrt%7B5%7D+%29&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;&#92;frac{1}{2} (1 &#92;pm &#92;sqrt{5} )' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;&#92;frac{1}{2} (1 &#92;pm &#92;sqrt{5} )' class='latex' /> (*</span><span style="color:#ff99cc;">Quadratic for λ.)</span></p>
<p><span style="color:#ff99cc;"> </span></p>
<p><span style="color:#ff99cc;">1. <img src='http://s0.wp.com/latex.php?latex=-+%5Cfrac%7B1%7D%7B2%7D+%281+%2B+%5Csqrt%7B5%7D%29x+&amp;bg=000000&amp;fg=808080&amp;s=0' alt='- &#92;frac{1}{2} (1 + &#92;sqrt{5})x ' title='- &#92;frac{1}{2} (1 + &#92;sqrt{5})x ' class='latex' /> (*</span><span style="color:#ff99cc;">Line solution.)</span></p>
<p><span style="color:#ff99cc;">2. <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7B1%7D%7B2%7D+%28%5Csqrt%7B5%7D+-+1%29x+&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac{1}{2} (&#92;sqrt{5} - 1)x ' title='&#92;frac{1}{2} (&#92;sqrt{5} - 1)x ' class='latex' /> (*</span><span style="color:#ff99cc;">Line solution.)</span></p>
<p><span style="color:#ff99cc;"><br />
</span></p>
<p><span style="color:#ff99cc;">The MATLAB code I used was:</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; [x,y]=meshgrid(-1:1/10:1,-1:1/10:1);</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; u=x+y;</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; v=x;</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; DW=sqrt(u.^2+v.^2);</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; quiver(x,y,u./DW,v./DW,.5)</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; hold on</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; x = -1:.1:1;</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; y1 = -1/2*(1+sqrt(5))*x;</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; y2 = 1/2*(sqrt(5)-1)*x;</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; plot(x,y1)</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; plot(x,y2)</span></p>
<p style="text-align:left;"><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20five/?action=view&amp;current=block53.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20five/block53.jpg" border="0" alt="Photobucket" /></a><span style="color:#ff99cc;">A better (zoomed) version of the vector field is shown below:</span></p>
<p style="text-align:center;"><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20five/?action=view&amp;current=block54.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20five/block54.jpg" border="0" alt="Photobucket" /></a></p>
<p><span style="color:#ff99cc;">As you can see, the vector lines are split into four quadrants (on a 45 degree turn of the normal quadrants).</span></p>
<p><span style="color:#ff99cc;"><br />
</span></p>
<h2><span style="color:#ff99cc;">Part C: Try to describe the flow geometrically, in words.</span></h2>
<p><span style="color:#ff99cc;">The vector fields follow one of the tangent lines, <img src='http://s0.wp.com/latex.php?latex=-%5Cfrac%7B1%7D%7B2%7D%281+%2B+%5Csqrt%7B5%7D%29x&amp;bg=000000&amp;fg=808080&amp;s=0' alt='-&#92;frac{1}{2}(1 + &#92;sqrt{5})x' title='-&#92;frac{1}{2}(1 + &#92;sqrt{5})x' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7B1%7D%7B2%7D%28%5Csqrt%7B5%7D+-+1%29x&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac{1}{2}(&#92;sqrt{5} - 1)x' title='&#92;frac{1}{2}(&#92;sqrt{5} - 1)x' class='latex' /> then curves and follows the others direction. Approximately a 90 degree direction change closer to the tangent lines and progressively less as it moves away from the lines.</span></p>
<p><span style="color:#ff99cc;"><br />
</span></p>
<h1><span style="color:#ff99cc;">Part 2<br />
</span></h1>
<h2><span style="color:#ff99cc;">Part A: Plot the vector field for the linear function T[(x,y)] = (2x + y, x + y).</span></h2>
<p><span style="color:#ff99cc;">The MATLAB code I used was:</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; [x,y]=meshgrid(-1:1/10:1,-1:1/10:1);</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; u=2*x+y;</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; v=x+y;</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; DW=sqrt(u.^2+v.^2);</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; quiver(x,y,u./DW,v./DW,.5)</span></p>
<p style="text-align:left;"><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20five/?action=view&amp;current=block56.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20five/block56.jpg" border="0" alt="Photobucket" /></a><span style="color:#ff99cc;">A better (zoomed) version of the vector field is shown below:</span></p>
<p style="text-align:center;"><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20five/?action=view&amp;current=block57.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20five/block57.jpg" border="0" alt="Photobucket" /></a></p>
<p><span style="color:#ff99cc;">From looking at the graphs, it seems as though there is a tangent line that has a slope of 1 going from left to right at a  45 degree angle. All of the vector segments seem to protrude around the origin (0,0) then splits to either side of the tangent line. </span></p>
<p><span style="color:#ff99cc;"><br />
</span></p>
<h2><span style="color:#ff99cc;">Part 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.</span></h2>
<p><span style="color:#ff99cc;">Problems: 1. <img src='http://s0.wp.com/latex.php?latex=2x+%2B+y+%3D+%5Clambda+x&amp;bg=000000&amp;fg=808080&amp;s=0' alt='2x + y = &#92;lambda x' title='2x + y = &#92;lambda x' class='latex' /> and 2. <img src='http://s0.wp.com/latex.php?latex=x+%2B+y%3D+%5Clambda+y&amp;bg=000000&amp;fg=808080&amp;s=0' alt='x + y= &#92;lambda y' title='x + y= &#92;lambda y' class='latex' /></span></p>
<p><span style="color:#ff99cc;"> </span></p>
<p><span style="color:#ff99cc;">1. <img src='http://s0.wp.com/latex.php?latex=%28%5Clambda+-+2%29x+-+y+%3D+0&amp;bg=000000&amp;fg=808080&amp;s=0' alt='(&#92;lambda - 2)x - y = 0' title='(&#92;lambda - 2)x - y = 0' class='latex' /> (*Bringing all variables to one side.)<br />
</span></p>
<p><span style="color:#ff99cc;">2. <img src='http://s0.wp.com/latex.php?latex=-x+%2B%28%5Clambda+-+1%29y%3D+0&amp;bg=000000&amp;fg=808080&amp;s=0' alt='-x +(&#92;lambda - 1)y= 0' title='-x +(&#92;lambda - 1)y= 0' class='latex' /> </span><span style="color:#ff99cc;">(*Bringing all variables to one side.)</span></p>
<p><span style="color:#ff99cc;"> </span></p>
<p><span style="color:#ff99cc;">1. <img src='http://s0.wp.com/latex.php?latex=x+%3D+%28%5Clambda+-+1%29+y+&amp;bg=000000&amp;fg=808080&amp;s=0' alt='x = (&#92;lambda - 1) y ' title='x = (&#92;lambda - 1) y ' class='latex' /> (*Using substitution.)<br />
</span></p>
<p><span style="color:#ff99cc;">2. <img src='http://s0.wp.com/latex.php?latex=y+%3D+%28%5Clambda+-+2%29x+&amp;bg=000000&amp;fg=808080&amp;s=0' alt='y = (&#92;lambda - 2)x ' title='y = (&#92;lambda - 2)x ' class='latex' /> </span><span style="color:#ff99cc;">(*Using substitution.)</span></p>
<p><span style="color:#ff99cc;"><br />
</span></p>
<p><span style="color:#ff99cc;">1. <img src='http://s0.wp.com/latex.php?latex=%28%28%5Clambda+-+2%29%28%5Clambda+-+1%29+-+1%29+y+%3D+0+&amp;bg=000000&amp;fg=808080&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' /> (*Plugging in.)</span></p>
<p><span style="color:#ff99cc;">2. <img src='http://s0.wp.com/latex.php?latex=%28%28%5Clambda+-+2%29+%28%5Clambda+-+1%29+-+1%29+x+%3D+0+&amp;bg=000000&amp;fg=808080&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' /> (*Plugging in.)<br />
</span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3E%28%5Clambda+-+2%29%28%5Clambda+-+1%29+-+1+%3D+0&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;(&#92;lambda - 2)(&#92;lambda - 1) - 1 = 0' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;(&#92;lambda - 2)(&#92;lambda - 1) - 1 = 0' class='latex' /> (*</span><span style="color:#ff99cc;">X &amp; Y are non-zeros.)</span></p>
<p><span style="color:#ff99cc;"> </span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7B1%7D%7B2%7D%283+%5Cpm+%5Csqrt%7B5%7D%29+&amp;bg=000000&amp;fg=808080&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' /> </span><span style="color:#ff99cc;">(*Quadratic for λ.)</span></p>
<p><span style="color:#ff99cc;"><br />
</span></p>
<p><span style="color:#ff99cc;">1. <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7B1%7D%7B2%7D%281+%2B+%5Csqrt%7B5%7D%29x+&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac{1}{2}(1 + &#92;sqrt{5})x ' title='&#92;frac{1}{2}(1 + &#92;sqrt{5})x ' class='latex' /> (*</span><span style="color:#ff99cc;">Line solution.)</span></p>
<p><span style="color:#ff99cc;">2. <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7B1%7D%7B2%7D%28-+1+%2B%5Csqrt%7B5%7D%29x+&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac{1}{2}(- 1 +&#92;sqrt{5})x ' title='&#92;frac{1}{2}(- 1 +&#92;sqrt{5})x ' class='latex' /> </span><span style="color:#ff99cc;">(*</span><span style="color:#ff99cc;">Line solution.)</span></p>
<p><span style="color:#ff99cc;"><br />
</span></p>
<p><span style="color:#ff99cc;">The MATLAB code I used was:</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; [x,y]=meshgrid(-1:1/10:1,-1:1/10:1);</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; u=2*x+y;</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; v=x+y;</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; DW=sqrt(u.^2+v.^2);</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; quiver(x,y,u./DW,v./DW,.5)</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; hold on</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; x = -.5:.1:.5;</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; y1 = 1/2*(1+sqrt(5))*x;</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; plot(x,y1)</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; x = -1:.1:1;</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; y2 =1/2*(sqrt(5)-1)*x;</span></p>
<p style="text-align:left;"><span style="color:#c0c0c0;">&gt;&gt; plot(x,y2)</span><br />
<span style="color:#ff99cc;"> </span><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20five/?action=view&amp;current=block5partb.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20five/block5partb.jpg" border="0" alt="Photobucket" /></a><span style="color:#ff99cc;">A better (zoomed) version of the vector field is shown below:</span></p>
<p style="text-align:center;"><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20five/?action=view&amp;current=block5partb2.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20five/block5partb2.jpg" border="0" alt="Photobucket" /></a></p>
<p><span style="color:#ff99cc;">You can see that the <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7B1%7D%7B2%7D%281+%2B+%5Csqrt%7B5%7D%29x+&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac{1}{2}(1 + &#92;sqrt{5})x ' title='&#92;frac{1}{2}(1 + &#92;sqrt{5})x ' class='latex' /> tangent line is where all of the vector lines originate from.</span></p>
<h2><span style="color:#ff99cc;">Part C: Try to describe the flow geometrically, in words. </span></h2>
<p><span style="color:#ff99cc;">The vector lines seem to spill outward as if the origin (0,0). If the field was 3D, it would be in the shape of a vortex, but its not a particular singular point, it would be along the <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7B1%7D%7B2%7D%281+%2B+%5Csqrt%7B5%7D%29x+&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac{1}{2}(1 + &#92;sqrt{5})x ' title='&#92;frac{1}{2}(1 + &#92;sqrt{5})x ' class='latex' /> tangent line in which the vector field would be come out from. A good visual example would be to take a piece of paper and crease it. now bend the two ends slightly, that would be the depiction.</span></p>
<p><span style="color:#ff99cc;">1. Use Matlab, go through all the cases:</span></p>
<p><span style="color:#ff99cc;">* Case 1: Two real roots</span></p>
<p><span style="color:#ff99cc;">* Case 2: One real root</span></p>
<p><span style="color:#ff99cc;">* Case 3: Two complex roots which are complex conjugates</span></p>
<p><span style="color:#ff99cc;">for the roots of the characteristic equation, describing the geometry of the solutions of the differential equations.</span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdx%7D%7Bdt%7D+%3D+ax+%2B+by+&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac{dx}{dt} = ax + by ' title='&#92;frac{dx}{dt} = ax + by ' class='latex' /><br />
</span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdx%7D%7Bdt%7D+%3D+cx+%2B+dy+&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac{dx}{dt} = cx + dy ' title='&#92;frac{dx}{dt} = cx + dy ' class='latex' /><br />
</span></p>
<p><span style="color:#ff99cc;">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=000000&amp;fg=808080&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' /></span></p>
<p><strong><span style="color:#ff99cc;">Case 1: Two real roots</span></strong></p>
<p><span style="color:#ff99cc;">a = 4, b = 1, c = 3, d = 2</span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=x%27+%3D+4x+%2B+y+&amp;bg=000000&amp;fg=808080&amp;s=0' alt='x&#039; = 4x + y ' title='x&#039; = 4x + y ' class='latex' /><br />
</span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=y%27+%3D+3x+%2B+2y+&amp;bg=000000&amp;fg=808080&amp;s=0' alt='y&#039; = 3x + 2y ' title='y&#039; = 3x + 2y ' class='latex' /><br />
</span></p>
<p><span style="color:#ff99cc;">Solve for roots:</span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=4x+%2B+y+%3D+%5Clambda+x&amp;bg=000000&amp;fg=808080&amp;s=0' alt='4x + y = &#92;lambda x' title='4x + y = &#92;lambda x' class='latex' /></span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=3x+%2B+2y+%3D+%5Clambda+y&amp;bg=000000&amp;fg=808080&amp;s=0' alt='3x + 2y = &#92;lambda y' title='3x + 2y = &#92;lambda y' class='latex' /></span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%284+-+%5Clambda%29x+%2B+y+%3D+0&amp;bg=000000&amp;fg=808080&amp;s=0' alt='(4 - &#92;lambda)x + y = 0' title='(4 - &#92;lambda)x + y = 0' class='latex' /></span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%283x+%2B+%282+-+%5Clambda%29y+%3D+0&amp;bg=000000&amp;fg=808080&amp;s=0' alt='(3x + (2 - &#92;lambda)y = 0' title='(3x + (2 - &#92;lambda)y = 0' class='latex' /></span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%284+-+%5Clambda%29%282+-+%5Clambda%29+-+%281%29%283%29+%3D+0&amp;bg=000000&amp;fg=808080&amp;s=0' alt='(4 - &#92;lambda)(2 - &#92;lambda) - (1)(3) = 0' title='(4 - &#92;lambda)(2 - &#92;lambda) - (1)(3) = 0' class='latex' /></span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3E%5Clambda+%5E2+-+6+%5Clambda+%2B+5+%3D+0&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;&#92;lambda ^2 - 6 &#92;lambda + 5 = 0' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;&#92;lambda ^2 - 6 &#92;lambda + 5 = 0' class='latex' /> (</span><span style="color:#ff99cc;">\lambda ^2 &#8211; 6 \lambda + 5 = 0)</span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3E%28+%5Clambda+-+1%29%28+%5Clambda+-+5%29+%3D+0&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;( &#92;lambda - 1)( &#92;lambda - 5) = 0' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;( &#92;lambda - 1)( &#92;lambda - 5) = 0' class='latex' /> (</span><span style="color:#ff99cc;">( \lambda &#8211; 1)( \lambda &#8211; 5) = 0)</span></p>
<p><span style="color:#ff99cc;">Roots: λ = 1, 5</span></p>
<p><span style="color:#ff99cc;"> </span></p>
<p><span style="color:#ff99cc;">Invariant Lines:</span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3E%284+-+%5Clambda%29+x+%2B+y+%3D+0&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;(4 - &#92;lambda) x + y = 0' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;(4 - &#92;lambda) x + y = 0' class='latex' /> (</span><span style="color:#ff99cc;">(4 &#8211; \lambda) x + y = 0)</span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3Ey+%3D+-+%284+-+%5Clambda%29+x+&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;y = - (4 - &#92;lambda) x ' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;y = - (4 - &#92;lambda) x ' class='latex' /> (</span><span style="color:#ff99cc;"> </span><span style="color:#ff99cc;">y = &#8211; (4 &#8211; \lambda) x)</span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3Ey+%3D+-+%284+-+1%29x&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;y = - (4 - 1)x' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;y = - (4 - 1)x' class='latex' /> (</span><span style="color:#ff99cc;"> </span><span style="color:#ff99cc;">y = &#8211; (4 &#8211; 1)x)</span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3Ey+%3D+-+%284+-+5%29x&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;y = - (4 - 5)x' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;y = - (4 - 5)x' class='latex' /> (</span><span style="color:#ff99cc;">y = &#8211; (4 &#8211; 5)x)</span></p>
<p><span style="color:#ff99cc;"> </span><span style="color:#ff99cc;">y = -3x , x</span></p>
<p><span style="color:#ff99cc;"><br />
</span></p>
<p><span style="color:#ff99cc;">The MATLAB code I used was:</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; [x,y]=meshgrid(-1:1/10:1,-1:1/10:1);</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; u=4*x+y;</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; v=3*x+2*y;</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt;DW=sqrt(u.^2+v.^2);</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; quiver(x,y,u,v,1.25)</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt;hold on</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; ezplot (’-3*x’, [-1,1,-1,1])</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; ezplot (’x&#8217;, [-1,1,-1,1])</span></p>
<p style="text-align:center;"><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20five/?action=view&amp;current=block5partc.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20five/block5partc.jpg" border="0" alt="Photobucket" /></a></p>
<p><span style="color:#ff99cc;">The vector field is coming out from the origin of [0,0] and goes outward (almost like an inverted cone). However, at the 3x invariant line, the vector fields seem to curve to the left or the right. The farther the way from the line, the vector lines are getting longer which means they are increasing in magnitude, so they are protruding from the inverted cone and continuing in the Z direction at a rapid rate.</span></p>
<p><strong><span style="color:#ff99cc;">Case 2: One real root</span></strong></p>
<p><span style="color:#ff99cc;">a = -4, b = 7, c = 0, d = -4</span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=x%27+%3D-+4x+%2B+7+&amp;bg=000000&amp;fg=808080&amp;s=0' alt='x&#039; =- 4x + 7 ' title='x&#039; =- 4x + 7 ' class='latex' /><br />
</span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3Ey%27+%3D+-4+y&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;y&#039; = -4 y' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;y&#039; = -4 y' class='latex' />   (y&#8217;=-4y)<br />
</span></p>
<p><span style="color:#ff99cc;">Solve for roots:</span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3E-4x+%2B+7y+%3D+%5Clambda+x+&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;-4x + 7y = &#92;lambda x ' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;-4x + 7y = &#92;lambda x ' class='latex' /> (-4x+7t=lambda x)<br />
</span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3E-4y+%3D+%5Clambda+y+&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;-4y = &#92;lambda y ' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;-4y = &#92;lambda y ' class='latex' /> (-4y=lambda y)<br />
</span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3E%28-4+-+%5Clambda%29+x+%2B+7y+%3D+0+&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;(-4 - &#92;lambda) x + 7y = 0 ' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;(-4 - &#92;lambda) x + 7y = 0 ' class='latex' /> (-4-lambda)x +7y=0)<br />
</span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3E%28-4+-+%5Clambda%29+y+%3D+0+&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;(-4 - &#92;lambda) y = 0 ' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;(-4 - &#92;lambda) y = 0 ' class='latex' /> (-4-lambda)y=0)<br />
</span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3E%28-4+-+%5Clambda%29%28-4+-+%5Clambda%29+%2B+7%280%29+%3D+0&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;(-4 - &#92;lambda)(-4 - &#92;lambda) + 7(0) = 0' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;(-4 - &#92;lambda)(-4 - &#92;lambda) + 7(0) = 0' class='latex' /> (</span><span style="color:#ff99cc;"> </span><span style="color:#ff99cc;">(-4 &#8211; \lambda)(-4 &#8211; \lambda) + 7(0) = 0)</span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%28-4+%E2%80%93+%5Clambda%29%5E2+%3D+0&amp;bg=000000&amp;fg=808080&amp;s=0' alt='(-4 – &#92;lambda)^2 = 0' title='(-4 – &#92;lambda)^2 = 0' class='latex' /> (</span><span style="color:#ff99cc;">(-4 – \lambda)^2 = 0)</span></p>
<p><span style="color:#ff99cc;">Roots: <img src='http://s0.wp.com/latex.php?latex=%5Clambda+%3D+-+4&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;lambda = - 4' title='&#92;lambda = - 4' class='latex' /> </span><span style="color:#ff99cc;"><br />
</span></p>
<p><span style="color:#ff99cc;">Invariant Lines:</span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3E%28-4+-+%5Clambda%29x+%2B+7y+%3D+0&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;(-4 - &#92;lambda)x + 7y = 0' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;(-4 - &#92;lambda)x + 7y = 0' class='latex' /> (</span><span style="color:#ff99cc;">(-4 &#8211; \lambda)x + 7y = 0)</span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3Ey+%3D+%5Cfrac%7B-1%7D%7B7%7D%28-4+-+%5Clambda%29x&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;y = &#92;frac{-1}{7}(-4 - &#92;lambda)x' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;y = &#92;frac{-1}{7}(-4 - &#92;lambda)x' class='latex' /> (</span><span style="color:#ff99cc;">y = \frac{-1}{7}(-4 &#8211; \lambda)x)</span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3Ey+%3D+%5Cfrac%7B-1%7D%7B7%7D%28-4+-+%28-4%29%29&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;y = &#92;frac{-1}{7}(-4 - (-4))' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;y = &#92;frac{-1}{7}(-4 - (-4))' class='latex' /> (</span><span style="color:#ff99cc;">y = \frac{-1}{7}(-4 &#8211; (-4)))</span></p>
<p><span style="color:#ff99cc;"> </span><span style="color:#ff99cc;">y = 0</span></p>
<p><span style="color:#ff99cc;"><br />
</span></p>
<p><span style="color:#ff99cc;">The MATLAB code I used was:</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; [x,y]=meshgrid(-1:1/10:1,-1:1/10:1);</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; u=-4*x+7*y;</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; v=-4*y;</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; quiver(x,y,u,v,1.25)</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt;hold on</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt;ezplot (’0′, [-1,1,-1,1])</span></p>
<p style="text-align:center;"><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20five/?action=view&amp;current=block5partc2.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20five/block5partc2.jpg" border="0" alt="Photobucket" /></a></p>
<p><span style="color:#ff99cc;">There is downward spiral that goes from the origin of [0,0] and approaches the single invariant line. The vector lines get shorter and shorter with the approach of the invariant line from -∞ to +∞. (Almost looking like a whirlpool.)</span></p>
<p><span style="color:#ff99cc;"><br />
</span></p>
<p><strong><span style="color:#ff99cc;">Case 3: Two complex roots which are complex conjugates</span></strong></p>
<p><span style="color:#ff99cc;">a = 2, b = 1, c = 2, d = 1</span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=x%27+%3D+2x+%2B+y&amp;bg=000000&amp;fg=808080&amp;s=0' alt='x&#039; = 2x + y' title='x&#039; = 2x + y' class='latex' /></span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3Ey%27+%3D+2x+%2B+y&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;y&#039; = 2x + y' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;y&#039; = 2x + y' class='latex' /> (</span><span style="color:#ff99cc;">y&#8217; = 2x + y)</span></p>
<p><span style="color:#ff99cc;">Solve for roots:</span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3E2x+%2B+y+%3D+%5Clambda+x&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;2x + y = &#92;lambda x' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;2x + y = &#92;lambda x' class='latex' /> (</span><span style="color:#ff99cc;">2x + y = \lambda x)</span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3E2x+%2B+y+%3D+%5Clambda+y&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;2x + y = &#92;lambda y' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;2x + y = &#92;lambda y' class='latex' /> (</span><span style="color:#ff99cc;">2x + y = \lambda y)</span></p>
<p><span style="color:#ff99cc;">Roots: </span><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%3C%2Fspan%3E%3Cspan+style%3D%22color%3A%23ff99cc%3B%22%3E%5Clambda+%3D+%5Cfrac+%7B1%7D%7B2%7Dy+-+sqrt%7B17%7D&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;&#92;lambda = &#92;frac {1}{2}y - sqrt{17}' title='&lt;/span&gt;&lt;span style=&quot;color:#ff99cc;&quot;&gt;&#92;lambda = &#92;frac {1}{2}y - sqrt{17}' class='latex' /> (</span><span style="color:#ff99cc;"> </span><span style="color:#ff99cc;">\lambda = \frac {1}{2}y &#8211; sqrt{17})</span></p>
<p><span style="color:#ff99cc;">Invariant Lines:</span></p>
<p><span style="color:#ff99cc;"> </span><span style="color:#ff99cc;">y = x</span></p>
<p><span style="color:#ff99cc;"> </span><span style="color:#ff99cc;">y = -2x</span></p>
<p><span style="color:#ff99cc;">The MATLAB code I used was:</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; [x,y]=meshgrid(-1:1/10:1,-1:1/10:1);</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; u=2*x+y;</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; v=2*x+y;</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt;DW=sqrt(u.^2+v.^2);</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt; quiver(x,y,u,v,1.25)</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt;hold on</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt;ezplot (’x&#8217;, [-1,1,-1,1])</span></p>
<p><span style="color:#c0c0c0;">&gt;&gt;ezplot(’-2*x’, [-1,1,-1,1])</span></p>
<p style="text-align:center;"><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20five/?action=view&amp;current=block5partc3.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20five/block5partc3.jpg" border="0" alt="Photobucket" /></a></p>
<p style="text-align:center;">
<p style="text-align:center;">
<p style="text-align:center;">
<p><span style="color:#c0c0c0;"><br />
</span></p>
<div id="_mcePaste" style="overflow:hidden;position:absolute;left:-10000px;top:8445px;width:1px;height:1px;"><span style="color:#ff99cc;">mbda)(-4 &#8211; \lambda) + 7(0) = 0)</span></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jcloutier1.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jcloutier1.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jcloutier1.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jcloutier1.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jcloutier1.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jcloutier1.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jcloutier1.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jcloutier1.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jcloutier1.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jcloutier1.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jcloutier1.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jcloutier1.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jcloutier1.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jcloutier1.wordpress.com/54/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jcloutier1.wordpress.com&amp;blog=6347397&amp;post=54&amp;subd=jcloutier1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jcloutier1.wordpress.com/2009/03/23/block-five-assignment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d531027de84f742f203422af9da6c271?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jcloutier1</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/unit.png" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/parallelogram.png" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20five/block5.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20five/block52.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20five/block53.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20five/block54.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20five/block56.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20five/block57.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20five/block5partb.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20five/block5partb2.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20five/block5partc.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20five/block5partc2.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20five/block5partc3.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>
	</item>
		<item>
		<title>Block 4 Assignment</title>
		<link>http://jcloutier1.wordpress.com/2009/03/04/block-4-assignment/</link>
		<comments>http://jcloutier1.wordpress.com/2009/03/04/block-4-assignment/#comments</comments>
		<pubDate>Wed, 04 Mar 2009 13:15:41 +0000</pubDate>
		<dc:creator>jcloutier1</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://jcloutier1.wordpress.com/?p=29</guid>
		<description><![CDATA[For my fourth post we learned about variable separable equations--which are differential equations that produce an exact solution.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jcloutier1.wordpress.com&amp;blog=6347397&amp;post=29&amp;subd=jcloutier1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h1 style="text-align:center;"><span style="color:#C0C0C0;">Objective</span></h1>
<p><span style="color:#C0C0C0;">1. Choose 6 examples from pp. 24, 25, 26, problems 12-16 pp. 76-77 of the text and carry out the integrations in the variables separable method outlined above, to obtain exact solutions for these differential equations.</span></p>
<p><span style="color:#C0C0C0;">2. In each case, compare your exact solution with that obtained using dsolve in MATLAB</span></p>
<h2><span style="color:#C0C0C0;"><span style="color:#ffffff;"><br />
</span></span></h2>
<p><span style="color:#ff99cc;"><br />
</span></p>
<h1><span style="color:#ff99cc;"><strong>Introduction</strong></span></h1>
<p><span style="color:#ff99cc;">For my fourth post we learned about variable separable equations&#8211;which are differential equations that produce an exact solution.</span></p>
<p><span style="color:#ff99cc;">A differential equation is expressed in the differential form of:</span></p>
<p><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=y%27%28x%29%3D%5Cfrac%7Bdy%7D%7Bdx%7D%3D%5Clim_%7B%5CDelta+x+%5Cto+0%7D%5Cfrac%7By%28x%2B%5CDelta+x%29-y%28x%29%7D%7B%5CDelta+x%7D&amp;bg=000000&amp;fg=808080&amp;s=0' alt='y&#039;(x)=&#92;frac{dy}{dx}=&#92;lim_{&#92;Delta x &#92;to 0}&#92;frac{y(x+&#92;Delta x)-y(x)}{&#92;Delta x}' title='y&#039;(x)=&#92;frac{dy}{dx}=&#92;lim_{&#92;Delta x &#92;to 0}&#92;frac{y(x+&#92;Delta x)-y(x)}{&#92;Delta x}' class='latex' /></span></p>
<p><span style="color:#ff99cc;">(Newton used <img src='http://s0.wp.com/latex.php?latex=y%27%28x%29&amp;bg=000000&amp;fg=808080&amp;s=0' alt='y&#039;(x)' title='y&#039;(x)' class='latex' /> whereas Leibniz used <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdy%7D%7Bdx%7D&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac{dy}{dx}' title='&#92;frac{dy}{dx}' class='latex' />)</span></p>
<p><span style="color:#C0C0C0;">An example we learned in class was <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdy%7D%7Bdx%7D%3Dy%5E2x&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac{dy}{dx}=y^2x' title='&#92;frac{dy}{dx}=y^2x' class='latex' />&#8211;which is a variable seperable equation unlike <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdy%7D%7Bdx%7D%3Dy%5E2%2Bx&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac{dy}{dx}=y^2+x' title='&#92;frac{dy}{dx}=y^2+x' class='latex' />. A variable separable equation is when a differential equation, <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdy%7D%7Bdx%7D%3Df%28x%2Cy%29&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac{dy}{dx}=f(x,y)' title='&#92;frac{dy}{dx}=f(x,y)' class='latex' />, can be written as the function <img src='http://s0.wp.com/latex.php?latex=f%28x%2Cy%29%3Dg%28x%29h%28y%29&amp;bg=000000&amp;fg=808080&amp;s=0' alt='f(x,y)=g(x)h(y)' title='f(x,y)=g(x)h(y)' class='latex' /> for some functions <img src='http://s0.wp.com/latex.php?latex=g%28x%29&amp;bg=000000&amp;fg=808080&amp;s=0' alt='g(x)' title='g(x)' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=h%28y%29&amp;bg=000000&amp;fg=808080&amp;s=0' alt='h(y)' title='h(y)' class='latex' />.</span></p>
<p><span style="color:#C0C0C0;">The example , <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdy%7D%7Bdx%7D%3Dy%5E2x&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac{dy}{dx}=y^2x' title='&#92;frac{dy}{dx}=y^2x' class='latex' />, can be written as <img src='http://s0.wp.com/latex.php?latex=f%28x%2Cy%29%3Dg%28x%29h%28y%29&amp;bg=000000&amp;fg=808080&amp;s=0' alt='f(x,y)=g(x)h(y)' title='f(x,y)=g(x)h(y)' class='latex' /> where <img src='http://s0.wp.com/latex.php?latex=g%28x%29%3Dx&amp;bg=000000&amp;fg=808080&amp;s=0' alt='g(x)=x' title='g(x)=x' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=h%28y%29%3Dy%5E2&amp;bg=000000&amp;fg=808080&amp;s=0' alt='h(y)=y^2' title='h(y)=y^2' class='latex' />. We then rewrite the equation, <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdy%7D%7Bdx%7D%3Dg%28x%29h%28y%29&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac{dy}{dx}=g(x)h(y)' title='&#92;frac{dy}{dx}=g(x)h(y)' class='latex' /> as <img src='http://s0.wp.com/latex.php?latex=%5Cfrac+%7B1%7D%7Bh%28y%29%7D+%5Cfrac%7Bdy%7D%7Bdx%7D%3Dg%28x%29&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac {1}{h(y)} &#92;frac{dy}{dx}=g(x)' title='&#92;frac {1}{h(y)} &#92;frac{dy}{dx}=g(x)' class='latex' /> (not involving any values of <img src='http://s0.wp.com/latex.php?latex=y&amp;bg=000000&amp;fg=808080&amp;s=0' alt='y' title='y' class='latex' /> for which <img src='http://s0.wp.com/latex.php?latex=h%28y%29%3D0&amp;bg=000000&amp;fg=808080&amp;s=0' alt='h(y)=0' title='h(y)=0' class='latex' />). In this form, we can then carry out an integration with respect to the variable <img src='http://s0.wp.com/latex.php?latex=x&amp;bg=000000&amp;fg=808080&amp;s=0' alt='x' title='x' class='latex' /> to get<img src='http://s0.wp.com/latex.php?latex=%5Cint+%5Cfrac%7B1%7D%7Bh%28y%29%7D+%5Cfrac%7Bdy%7D%7Bdx%7Ddx%3D%5Cint+g%28x%29dx&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;int &#92;frac{1}{h(y)} &#92;frac{dy}{dx}dx=&#92;int g(x)dx' title='&#92;int &#92;frac{1}{h(y)} &#92;frac{dy}{dx}dx=&#92;int g(x)dx' class='latex' /> (not involving any values of <img src='http://s0.wp.com/latex.php?latex=y&amp;bg=000000&amp;fg=808080&amp;s=0' alt='y' title='y' class='latex' /> for which <img src='http://s0.wp.com/latex.php?latex=h%28y%29%3D0&amp;bg=000000&amp;fg=808080&amp;s=0' alt='h(y)=0' title='h(y)=0' class='latex' />).</span></p>
<p><span style="color:#C0C0C0;">Also the equation, </span><span style="color:#C0C0C0;"><img src='http://s0.wp.com/latex.php?latex=%5Cint+%5Cfrac%7B1%7D%7Bh%28y%29%7D+%5Cfrac%7Bdy%7D%7Bdx%7Ddx%3D%5Cint+g%28x%29dx&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;int &#92;frac{1}{h(y)} &#92;frac{dy}{dx}dx=&#92;int g(x)dx' title='&#92;int &#92;frac{1}{h(y)} &#92;frac{dy}{dx}dx=&#92;int g(x)dx' class='latex' />, can be rewritten as </span><span style="color:#C0C0C0;"><img src='http://s0.wp.com/latex.php?latex=%5Cint+%5Cfrac%7B1%7D%7Bh%28y%29%7Ddy%3D%5Cint+g%28x%29dx&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;int &#92;frac{1}{h(y)}dy=&#92;int g(x)dx' title='&#92;int &#92;frac{1}{h(y)}dy=&#92;int g(x)dx' class='latex' /></span><span style="color:#C0C0C0;"> when using substitution.</span></p>
<h1 style="text-align:center;"><span style="color:#C0C0C0;">Example One</span></h1>
<h1 style="text-align:center;"><span style="color:#C0C0C0;"><img src='http://s0.wp.com/latex.php?latex=4xy+dx%2B+%28x%5E2%2B1%29+dy%3D0&amp;bg=000000&amp;fg=808080&amp;s=0' alt='4xy dx+ (x^2+1) dy=0' title='4xy dx+ (x^2+1) dy=0' class='latex' /></span></h1>
<p style="text-align:center;"><span style="color:#C0C0C0;">(provided on page 24 of the text, problem #1)</span></p>
<h2 style="text-align:left;"><span style="color:#ff99cc;">Using the Variables Seperable Method:</span></h2>
<h2><span style="color:#c0c0c0;"><img src='http://s0.wp.com/latex.php?latex=4xy+dx%2B+%28x%5E2%2B1%29+dy%3D0&amp;bg=000000&amp;fg=808080&amp;s=0' alt='4xy dx+ (x^2+1) dy=0' title='4xy dx+ (x^2+1) dy=0' class='latex' /></span></h2>
<h2><span style="color:#c0c0c0;"><img src='http://s0.wp.com/latex.php?latex=%28x%5E2%2B1%29+dy%3D-4xy+dx&amp;bg=000000&amp;fg=808080&amp;s=0' alt='(x^2+1) dy=-4xy dx' title='(x^2+1) dy=-4xy dx' class='latex' /> (*It is easier to bring the <img src='http://s0.wp.com/latex.php?latex=4xy+dx&amp;bg=000000&amp;fg=808080&amp;s=0' alt='4xy dx' title='4xy dx' class='latex' /> to the other side of the equal sign.)</span></h2>
<h2><span style="color:#c0c0c0;"><img src='http://s0.wp.com/latex.php?latex=%5Cfrac+%7B%28x%5E2%2B1%29+dy%3D-4xy+dx%7D%7By%7D&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac {(x^2+1) dy=-4xy dx}{y}' title='&#92;frac {(x^2+1) dy=-4xy dx}{y}' class='latex' /> (*My first step on trying to get the variables, x and y, on either side.)</span></h2>
<h2><span style="color:#c0c0c0;"><img src='http://s0.wp.com/latex.php?latex=%5Cfrac+%7B%28x%5E2%2B1%29%7D%7By%7D+dy%3D-4x+dx&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac {(x^2+1)}{y} dy=-4x dx' title='&#92;frac {(x^2+1)}{y} dy=-4x dx' class='latex' /></span></h2>
<h2><span style="color:#c0c0c0;"><img src='http://s0.wp.com/latex.php?latex=%5Cfrac+%7B%5Cfrac+%7B%28x%5E2%2B1%29%7D%7By%7D+dy%3D-4x+dx%7D%7B%28x%5E2%2B1%29%7D&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac {&#92;frac {(x^2+1)}{y} dy=-4x dx}{(x^2+1)}' title='&#92;frac {&#92;frac {(x^2+1)}{y} dy=-4x dx}{(x^2+1)}' class='latex' /></span></h2>
<h2><span style="color:#c0c0c0;"><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7B1%7D%7By%7D+dy%3D%5Cfrac%7B-4x%7D%7B%28x%5E2%2B1%29%7Ddx&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac{1}{y} dy=&#92;frac{-4x}{(x^2+1)}dx' title='&#92;frac{1}{y} dy=&#92;frac{-4x}{(x^2+1)}dx' class='latex' /></span></h2>
<h2><span style="color:#c0c0c0;"><img src='http://s0.wp.com/latex.php?latex=%5Cint%5Cfrac%7B1%7D%7By%7D+dy%3D%5Cint%5Cfrac%7B-4x%7D%7B%28x%5E2%2B1%29%7Ddx&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;int&#92;frac{1}{y} dy=&#92;int&#92;frac{-4x}{(x^2+1)}dx' title='&#92;int&#92;frac{1}{y} dy=&#92;int&#92;frac{-4x}{(x^2+1)}dx' class='latex' /> (*The next step is to integrate.)</span></h2>
<h2><span style="color:#c0c0c0;"><img src='http://s0.wp.com/latex.php?latex=ln%28y%29%2Bc%3D-2ln%28x%5E2%2B1%29%2Bc&amp;bg=000000&amp;fg=808080&amp;s=0' alt='ln(y)+c=-2ln(x^2+1)+c' title='ln(y)+c=-2ln(x^2+1)+c' class='latex' /> (*Whereas C is some constant.)</span></h2>
<h2><span style="color:#c0c0c0;"><img src='http://s0.wp.com/latex.php?latex=%5Cfrac+%7Bln%28y%29%2Bc%3D-2ln%28x%5E2%2B1%29%2Bc%7D%7Bln%7D&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac {ln(y)+c=-2ln(x^2+1)+c}{ln}' title='&#92;frac {ln(y)+c=-2ln(x^2+1)+c}{ln}' class='latex' /></span></h2>
<h2><span style="color:#c0c0c0;"><img src='http://s0.wp.com/latex.php?latex=cy%3D%5Cfrac%7Bc%7D%7B%28x%5E2%2B1%29%5E2%7D&amp;bg=000000&amp;fg=808080&amp;s=0' alt='cy=&#92;frac{c}{(x^2+1)^2}' title='cy=&#92;frac{c}{(x^2+1)^2}' class='latex' /></span></h2>
<h2><span style="color:#ff99cc;">Therefore:</span></h2>
<h2><span style="color:#c0c0c0;"><img src='http://s0.wp.com/latex.php?latex=y%3D%5Cfrac%7Bc%7D%7B%28x%5E2%2B1%29%5E2%7D&amp;bg=000000&amp;fg=808080&amp;s=0' alt='y=&#92;frac{c}{(x^2+1)^2}' title='y=&#92;frac{c}{(x^2+1)^2}' class='latex' /></span></h2>
<h2><span style="color:#ff99cc;">Using MATLAB&#8217;s DSOLVE:</span></h2>
<h2><span style="color:#c0c0c0;">&gt;&gt;dsolve(&#8216;Dy = -4*x*y/(x^2+1)&#8217;, &#8216;x&#8217;)</span></h2>
<h2><span style="color:#c0c0c0;">ans =<br />
C1/(x^2+1)^2</span></h2>
<h2><span style="color:#c0c0c0;">&gt;&gt;ezplot &#8216;-2/(x^2+1)^2&#8242;</span></h2>
<h1><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20four/?action=view&amp;current=block4-1.jpg" target="_blank"><img src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20four/block4-1.jpg" border="0" alt="Photobucket" /></a></h1>
<h1 style="text-align:center;"><span style="color:#C0C0C0;">Example Two</span></h1>
<h1 style="text-align:center;"><span style="color:#C0C0C0;">$<span style="color:#c0c0c0;">latex tan x dy+2y dx$</span></span></h1>
<p style="text-align:center;"><span style="color:#c0c0c0;">(provided on page 24 of the text, problem #2)</span></p>
<p style="text-align:center;">
<h2 style="text-align:left;"><span style="color:#ff99cc;">Using the Variables Seperable Method:</span></h2>
<h2><span style="color:#c0c0c0;"><img src='http://s0.wp.com/latex.php?latex=tan+x+dy%2B2y+dx%3D0&amp;bg=000000&amp;fg=808080&amp;s=0' alt='tan x dy+2y dx=0' title='tan x dy+2y dx=0' class='latex' /></span></h2>
<h2><span style="color:#c0c0c0;"><img src='http://s0.wp.com/latex.php?latex=tan+x+dy%2B2y+dx%3D0&amp;bg=000000&amp;fg=808080&amp;s=0' alt='tan x dy+2y dx=0' title='tan x dy+2y dx=0' class='latex' /></span></h2>
<h2><span style="color:#c0c0c0;"><img src='http://s0.wp.com/latex.php?latex=tan+x+dy%3D-2y+dx&amp;bg=000000&amp;fg=808080&amp;s=0' alt='tan x dy=-2y dx' title='tan x dy=-2y dx' class='latex' /></span></h2>
<h2><span style="color:#c0c0c0;"><img src='http://s0.wp.com/latex.php?latex=-%5Cfrac%7B1%7D%7B2y%7D+dy%3D%5Cfrac%7B1%7D%7Btan+x%7D+dx&amp;bg=000000&amp;fg=808080&amp;s=0' alt='-&#92;frac{1}{2y} dy=&#92;frac{1}{tan x} dx' title='-&#92;frac{1}{2y} dy=&#92;frac{1}{tan x} dx' class='latex' /></span></h2>
<h2><span style="color:#c0c0c0;"><img src='http://s0.wp.com/latex.php?latex=-%5Cint%5Cfrac%7B1%7D%7B2y%7D+dy%3D%5Cint%5Cfrac%7B1%7D%7Btan+x%7D+dx&amp;bg=000000&amp;fg=808080&amp;s=0' alt='-&#92;int&#92;frac{1}{2y} dy=&#92;int&#92;frac{1}{tan x} dx' title='-&#92;int&#92;frac{1}{2y} dy=&#92;int&#92;frac{1}{tan x} dx' class='latex' /></span></h2>
<h2><span style="color:#c0c0c0;"><img src='http://s0.wp.com/latex.php?latex=-%5Cfrac%7B1%7D%7B2%7Dlny%2Bc%3D%5Cint%5Cfrac%7Bcos+x%7D%7Bsin+x%7Ddx&amp;bg=000000&amp;fg=808080&amp;s=0' alt='-&#92;frac{1}{2}lny+c=&#92;int&#92;frac{cos x}{sin x}dx' title='-&#92;frac{1}{2}lny+c=&#92;int&#92;frac{cos x}{sin x}dx' class='latex' /> (*We know this using Trigonemtric Identities.)</span></h2>
<h2><span style="color:#c0c0c0;"><img src='http://s0.wp.com/latex.php?latex=-2%5B+-%5Cfrac%7B1%7D%7B2%7Dln+y%2Bc%3Dln%28sin+x%29%2Bc%5D&amp;bg=000000&amp;fg=808080&amp;s=0' alt='-2[ -&#92;frac{1}{2}ln y+c=ln(sin x)+c]' title='-2[ -&#92;frac{1}{2}ln y+c=ln(sin x)+c]' class='latex' /></span></h2>
<h2><span style="color:#c0c0c0;"><img src='http://s0.wp.com/latex.php?latex=ln+y%2Bc%3D-2ln%28sin+x%29%2Bc%5D&amp;bg=000000&amp;fg=808080&amp;s=0' alt='ln y+c=-2ln(sin x)+c]' title='ln y+c=-2ln(sin x)+c]' class='latex' /></span></h2>
<h2><span style="color:#c0c0c0;"><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bln+y%2Bc%3D-2ln%28sin+x%29%2Bc%5D%7D%7Bln%7D&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac{ln y+c=-2ln(sin x)+c]}{ln}' title='&#92;frac{ln y+c=-2ln(sin x)+c]}{ln}' class='latex' /></span></h2>
<h2><span style="color:#ff99cc;">Therefore:</span></h2>
<h2><span style="color:#c0c0c0;"><img src='http://s0.wp.com/latex.php?latex=y%3D%5Cfrac%7Bc%7D%7B%28sinx%29%5E2%7D&amp;bg=000000&amp;fg=808080&amp;s=0' alt='y=&#92;frac{c}{(sinx)^2}' title='y=&#92;frac{c}{(sinx)^2}' class='latex' /></span></h2>
<h2><span style="color:#ff99cc;">Using MATLAB&#8217;s DSOLVE:</span></h2>
<h2><span style="color:#c0c0c0;">&gt;&gt;dsolve(&#8216;-2*y/tanx&#8217;, &#8216;x&#8217;)</span></h2>
<h2><span style="color:#c0c0c0;">ans =<br />
-2*C1/(-1+cos(2*x))</span></h2>
<h2><span style="color:#c0c0c0;">&gt;&gt;ezplot &#8216;-2/(-1+cos(2*x)&#8217;</span></h2>
<p style="text-align:center;"><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20four/?action=view&amp;current=block4-2.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20four/block4-2.jpg" border="0" alt="Photobucket" width="661" height="495" /></a></p>
<h1 style="text-align:center;"><span style="color:#c0c0c0;">Example Three</span></h1>
<h1 style="text-align:center;"><span style="color:#c0c0c0;"><img src='http://s0.wp.com/latex.php?latex=xy+dx%2B+%28x%2B1%29+dy%3D0&amp;bg=000000&amp;fg=808080&amp;s=0' alt='xy dx+ (x+1) dy=0' title='xy dx+ (x+1) dy=0' class='latex' /></span></h1>
<p style="text-align:center;"><span style="color:#c0c0c0;">(provided on page 25 of the text, problem #5)</span></p>
<p style="text-align:center;">
<h2 style="text-align:left;"><span style="color:#ff99cc;">Using the Variables Seperable Method:</span></h2>
<h2><span style="color:#c0c0c0;"><img src='http://s0.wp.com/latex.php?latex=xy+dx+%2B+%28x%2B1%29dy%3D0&amp;bg=000000&amp;fg=808080&amp;s=0' alt='xy dx + (x+1)dy=0' title='xy dx + (x+1)dy=0' class='latex' /></span></h2>
<h2><span style="color:#c0c0c0;"><img src='http://s0.wp.com/latex.php?latex=%28x%2B1%29dy%3D-xy+dx&amp;bg=000000&amp;fg=808080&amp;s=0' alt='(x+1)dy=-xy dx' title='(x+1)dy=-xy dx' class='latex' /></span></h2>
<h2><span style="color:#c0c0c0;"><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7B1%7D%7By%7D+dy%3D%5Cfrac%7B-x%7D%7Bx%2B1%7Ddx&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac{1}{y} dy=&#92;frac{-x}{x+1}dx' title='&#92;frac{1}{y} dy=&#92;frac{-x}{x+1}dx' class='latex' /></span></h2>
<h2><span style="color:#c0c0c0;"><img src='http://s0.wp.com/latex.php?latex=%5Cint%5Cfrac%7B1%7D%7By%7D+dy%3D%5Cint%5Cfrac%7B-x%7D%7Bx%2B1%7Ddx&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;int&#92;frac{1}{y} dy=&#92;int&#92;frac{-x}{x+1}dx' title='&#92;int&#92;frac{1}{y} dy=&#92;int&#92;frac{-x}{x+1}dx' class='latex' /></span></h2>
<h2><span style="color:#c0c0c0;"><img src='http://s0.wp.com/latex.php?latex=ln%28y%29%2Bc%3D%5Cint%5Cfrac%7B1-%28x%2B1%29%7D%7Bx%2B1%7Ddx&amp;bg=000000&amp;fg=808080&amp;s=0' alt='ln(y)+c=&#92;int&#92;frac{1-(x+1)}{x+1}dx' title='ln(y)+c=&#92;int&#92;frac{1-(x+1)}{x+1}dx' class='latex' /></span></h2>
<h2><span style="color:#c0c0c0;"><img src='http://s0.wp.com/latex.php?latex=ln%28cy%29%3D%5Cint+%5Cfrac%7B1%7D%7Bx%2B1%7Ddx-%5Cint+dx&amp;bg=000000&amp;fg=808080&amp;s=0' alt='ln(cy)=&#92;int &#92;frac{1}{x+1}dx-&#92;int dx' title='ln(cy)=&#92;int &#92;frac{1}{x+1}dx-&#92;int dx' class='latex' /></span></h2>
<h2><span style="color:#c0c0c0;"><img src='http://s0.wp.com/latex.php?latex=ln%28cy%29%3Dln%28c%28x%2B1%29%29-x&amp;bg=000000&amp;fg=808080&amp;s=0' alt='ln(cy)=ln(c(x+1))-x' title='ln(cy)=ln(c(x+1))-x' class='latex' /></span></h2>
<h2><span style="color:#c0c0c0;"><img src='http://s0.wp.com/latex.php?latex=cy%3Dc%28x%2B1%29%2Ae%5E-x&amp;bg=000000&amp;fg=808080&amp;s=0' alt='cy=c(x+1)*e^-x' title='cy=c(x+1)*e^-x' class='latex' /></span></h2>
<h2><span style="color:#ff99cc;">Therefore:</span></h2>
<h2><span style="color:#c0c0c0;"><img src='http://s0.wp.com/latex.php?latex=y%3Dc%28x%2B1%29%2Ae%5E-x&amp;bg=000000&amp;fg=808080&amp;s=0' alt='y=c(x+1)*e^-x' title='y=c(x+1)*e^-x' class='latex' /></span></h2>
<h2><span style="color:#ff99cc;">Using MATLAB&#8217;s DSOLVE:</span></h2>
<h2><span style="color:#c0c0c0;">&gt;&gt;dsolve(&#8216;Dy=x*y/(x+1)&#8217;, &#8216;x&#8217;)</span></h2>
<h2><span style="color:#c0c0c0;">ans =<br />
C1*exp(-x)*(x+1)</span></h2>
<h2><span style="color:#c0c0c0;">&gt;&gt;ezplot &#8216;exp(-x)*(x+1)&#8217;</span></h2>
<p style="text-align:center;"><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20four/?action=view&amp;current=block4-4.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20four/block4-4.jpg" border="0" alt="Photobucket" width="561" height="420" /></a></p>
<p style="text-align:center;">
<p style="text-align:center;">
<p style="text-align:center;">
<p style="text-align:center;">
<p style="text-align:center;">
<p style="text-align:center;">
<p style="text-align:center;">
<p style="text-align:center;">
<p style="text-align:center;">
<p style="text-align:center;">
<p style="text-align:center;">
<h1 style="text-align:center;"><span style="color:#c0c0c0;">Example Four</span></h1>
<h1 style="text-align:center;"><span style="color:#c0c0c0;"><img src='http://s0.wp.com/latex.php?latex=x%5Cfrac%7Bdx%7D%7Bdy%7D+%2B+t%3D1&amp;bg=000000&amp;fg=808080&amp;s=0' alt='x&#92;frac{dx}{dy} + t=1' title='x&#92;frac{dx}{dy} + t=1' class='latex' /></span></h1>
<p style="text-align:center;"><span style="color:#c0c0c0;">(provided on page 25 of the text, problem #10)</span></p>
<p style="text-align:center;"><span style="color:#c0c0c0;"> </span></p>
<h2 style="text-align:left;"><span style="color:#ff99cc;">Using the Variables Seperable Method:</span></h2>
<h2><span style="color:#c0c0c0;"><img src='http://s0.wp.com/latex.php?latex=x%5Cfrac%7Bdx%7D%7Bdy%7D+%2B+t%3D1&amp;bg=000000&amp;fg=808080&amp;s=0' alt='x&#92;frac{dx}{dy} + t=1' title='x&#92;frac{dx}{dy} + t=1' class='latex' /></span></h2>
<h2><span style="color:#c0c0c0;"><span style="color:#c0c0c0;"><img src='http://s0.wp.com/latex.php?latex=x%5Cfrac%7Bdx%7D%7Bdy%7D%3D1-t&amp;bg=000000&amp;fg=808080&amp;s=0' alt='x&#92;frac{dx}{dy}=1-t' title='x&#92;frac{dx}{dy}=1-t' class='latex' /> (*Seperating the variables.)</span></span></h2>
<h2><span style="color:#c0c0c0;"><span style="color:#c0c0c0;"><img src='http://s0.wp.com/latex.php?latex=%5Cint+x%5Cfrac%7Bdx%7D%7Bdy%7D+dt%3D%5Cint+1-t+dt&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;int x&#92;frac{dx}{dy} dt=&#92;int 1-t dt' title='&#92;int x&#92;frac{dx}{dy} dt=&#92;int 1-t dt' class='latex' /> (*Taking the integration.)</span></span></h2>
<h2><span style="color:#c0c0c0;"><span style="color:#c0c0c0;"><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bx%5E2%7D%7B2%7D%3Dt-%5Cfrac%7Bt%5E2%7D%7B2%7D%2Bc&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac{x^2}{2}=t-&#92;frac{t^2}{2}+c' title='&#92;frac{x^2}{2}=t-&#92;frac{t^2}{2}+c' class='latex' /></span> </span></h2>
<h2><span style="color:#c0c0c0;"><span style="color:#c0c0c0;"><span style="color:#c0c0c0;"><img src='http://s0.wp.com/latex.php?latex=2%5B%5Cfrac%7Bx%5E2%7D%7B2%7D%3Dt-%5Cfrac%7Bt%5E2%7D%7B2%7D%2Bc%5D&amp;bg=000000&amp;fg=808080&amp;s=0' alt='2[&#92;frac{x^2}{2}=t-&#92;frac{t^2}{2}+c]' title='2[&#92;frac{x^2}{2}=t-&#92;frac{t^2}{2}+c]' class='latex' /> (*I multiply by 2 so x isn&#8217;t being divided by 2.)</span></span></span></h2>
<h2><span style="color:#c0c0c0;"><span style="color:#c0c0c0;"><span style="color:#c0c0c0;"><img src='http://s0.wp.com/latex.php?latex=x%3Dsqrt%282t-t%5E2%2Bc%29&amp;bg=000000&amp;fg=808080&amp;s=0' alt='x=sqrt(2t-t^2+c)' title='x=sqrt(2t-t^2+c)' class='latex' /></span></span> (*This is the answer after taking the square root of both sides.)</span></h2>
<h2><span style="color:#ff99cc;">Therefore:</span></h2>
<h2><span style="color:#c0c0c0;"><span style="color:#c0c0c0;"><span style="color:#c0c0c0;"><img src='http://s0.wp.com/latex.php?latex=x%3Dsqrt%282t-t%5E2%2Bc%29&amp;bg=000000&amp;fg=808080&amp;s=0' alt='x=sqrt(2t-t^2+c)' title='x=sqrt(2t-t^2+c)' class='latex' /></span></span></span></h2>
<h2><span style="color:#ff99cc;">Using MATLAB&#8217;s DSOLVE:</span></h2>
<h2><span style="color:#c0c0c0;">&gt;&gt;dsolve(&#8216;Dx=(t-1)/(x)&#8217;, &#8216;t&#8217;)</span></h2>
<h2><span style="color:#c0c0c0;">ans =<br />
-(-2*t+t^2+C1)^(1/2)</span></h2>
<h2><span style="color:#c0c0c0;">(-2*t+t^2+C1)^(1/2)</span></h2>
<h2><span style="color:#c0c0c0;">&gt;&gt;ezplot &#8216;-(-2*t+t^2+C1)^(1/2)&#8217;</span></h2>
<p style="text-align:center;"><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20four/?action=view&amp;current=block4-3.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20four/block4-3.jpg" border="0" alt="Photobucket" width="572" height="429" /></a></p>
<p style="text-align:center;">
<p style="text-align:center;">
<p style="text-align:center;">
<p style="text-align:center;">
<p style="text-align:center;">
<p style="text-align:center;">
<p style="text-align:center;">
<p style="text-align:center;">
<p style="text-align:center;">
<p style="text-align:center;">
<p style="text-align:center;">
<p style="text-align:center;">
<p style="text-align:center;">
<p style="text-align:center;">
<p style="text-align:center;">
<p style="text-align:center;">
<p style="text-align:center;">
<p style="text-align:center;">
<p style="text-align:center;">
<p style="text-align:center;"><span style="color:#c0c0c0;"> </span></p>
<p style="text-align:center;"><span style="color:#c0c0c0;"> </span></p>
<p style="text-align:center;"><span style="color:#c0c0c0;"> </span></p>
<h1 style="text-align:center;"><span style="color:#c0c0c0;">Example Five</span></h1>
<h1 style="text-align:center;"><span style="color:#c0c0c0;"><img src='http://s0.wp.com/latex.php?latex=xy%27+%2B+y+%3Dy%5E2+%2C+y%281%29%3D0.5&amp;bg=000000&amp;fg=808080&amp;s=0' alt='xy&#039; + y =y^2 , y(1)=0.5' title='xy&#039; + y =y^2 , y(1)=0.5' class='latex' /></span></h1>
<p style="text-align:center;"><span style="color:#c0c0c0;">(provided on page 77 of the text, problem #16)</span></p>
<p style="text-align:center;">
<h2 style="text-align:left;"><span style="color:#ff99cc;">Using the Variables Seperable Method:</span></h2>
<h2><span style="color:#c0c0c0;"><img src='http://s0.wp.com/latex.php?latex=y%27%3D%5Cfrac%7Bdy%7D%7Bdx%7D&amp;bg=000000&amp;fg=808080&amp;s=0' alt='y&#039;=&#92;frac{dy}{dx}' title='y&#039;=&#92;frac{dy}{dx}' class='latex' /></span></h2>
<h2><span style="color:#c0c0c0;"><img src='http://s0.wp.com/latex.php?latex=x%5Cfrac%7Bdy%7D%7Bdx%7D%2By%3Dy%5E2&amp;bg=000000&amp;fg=808080&amp;s=0' alt='x&#92;frac{dy}{dx}+y=y^2' title='x&#92;frac{dy}{dx}+y=y^2' class='latex' /></span></h2>
<h2><span style="color:#c0c0c0;"><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdy%7D%7Bdx%7D%3D%5Cfrac%7By%5E2-y%7D%7Bx%7D&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac{dy}{dx}=&#92;frac{y^2-y}{x}' title='&#92;frac{dy}{dx}=&#92;frac{y^2-y}{x}' class='latex' /></span></h2>
<h2><span style="color:#c0c0c0;"><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7B1%7D%7By%5E2-y%7Ddy%3D%5Cfrac%7B1%7D%7Bx%7Ddx&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac{1}{y^2-y}dy=&#92;frac{1}{x}dx' title='&#92;frac{1}{y^2-y}dy=&#92;frac{1}{x}dx' class='latex' /></span></h2>
<h2><span style="color:#c0c0c0;"><img src='http://s0.wp.com/latex.php?latex=%5Cint%5Cfrac%7B1%7D%7By%5E2-y%7Ddy%3D%5Cint%5Cfrac%7B1%7D%7Bx%7Ddx&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;int&#92;frac{1}{y^2-y}dy=&#92;int&#92;frac{1}{x}dx' title='&#92;int&#92;frac{1}{y^2-y}dy=&#92;int&#92;frac{1}{x}dx' class='latex' /></span></h2>
<h2><span style="color:#c0c0c0;"><img src='http://s0.wp.com/latex.php?latex=%3Dln%28x%29%2Bc&amp;bg=000000&amp;fg=808080&amp;s=0' alt='=ln(x)+c' title='=ln(x)+c' class='latex' /></span></h2>
<h2><span style="color:#ff99cc;">Using MATLAB&#8217;s DSOLVE:</span></h2>
<h2><span style="color:#c0c0c0;">&gt;&gt;dsolve(&#8216;Dy=(y^2)/(x)&#8217;, &#8216;x&#8217;)</span></h2>
<h2><span style="color:#c0c0c0;">ans =<br />
1/(1+C1*x)</span></h2>
<h2><span style="color:#c0c0c0;">&gt;&gt;ezplot &#8217;1/(1+x)&#8217;</span></h2>
<p style="text-align:center;"><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20four/?action=view&amp;current=block4-5.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20four/block4-5.jpg" border="0" alt="Photobucket" width="562" height="421" /></a></p>
<p><span style="color:#c0c0c0;"><br />
</span></p>
<p style="text-align:center;"><span style="color:#c0c0c0;"> </span></p>
<p style="text-align:center;"><span style="color:#c0c0c0;"> </span></p>
<p style="text-align:center;"><span style="color:#c0c0c0;"> </span></p>
<h1 style="text-align:center;"><span style="color:#c0c0c0;">Example Six</span></h1>
<h1 style="text-align:center;"><span style="color:#c0c0c0;"><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdy%7D%7Bdx%7D%3D%5Cfrac%7By%5E2+%2B2xy%7D%7Bx%5E2%7D&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac{dy}{dx}=&#92;frac{y^2 +2xy}{x^2}' title='&#92;frac{dy}{dx}=&#92;frac{y^2 +2xy}{x^2}' class='latex' /></span></h1>
<p style="text-align:center;"><span style="color:#c0c0c0;">(provided on page 26 of the text, problem #24)</span></p>
<h2 style="text-align:left;"><span style="color:#ff99cc;">Using the Variables Seperable Method:</span></h2>
<h2><span style="color:#c0c0c0;"><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdy%7D%7Bdx%7D%3D%5Cfrac%7By%5E2%2B2xy%7D%7Bx%5E2%7D&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac{dy}{dx}=&#92;frac{y^2+2xy}{x^2}' title='&#92;frac{dy}{dx}=&#92;frac{y^2+2xy}{x^2}' class='latex' /></span></h2>
<h2><span style="color:#ff99cc;">Using MATLAB&#8217;s DSOLVE:</span></h2>
<h2><span style="color:#c0c0c0;">&gt;&gt;dsolve(&#8216;(y^2+2*x*y)/(x^2)&#8217;, &#8216;x&#8217;)</span></h2>
<h2><span style="color:#c0c0c0;">ans =<br />
-x^2/(x-C1)</span></h2>
<h2><span style="color:#c0c0c0;">&gt;&gt;ezplot &#8216;-x^2/(x-1)&#8217;</span></h2>
<p><span style="color:#c0c0c0;"><br />
</span></p>
<p style="text-align:center;">
<p style="text-align:center;"><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20four/?action=view&amp;current=block4-6.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20four/block4-6.jpg" border="0" alt="Photobucket" width="596" height="439" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jcloutier1.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jcloutier1.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jcloutier1.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jcloutier1.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jcloutier1.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jcloutier1.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jcloutier1.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jcloutier1.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jcloutier1.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jcloutier1.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jcloutier1.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jcloutier1.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jcloutier1.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jcloutier1.wordpress.com/29/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jcloutier1.wordpress.com&amp;blog=6347397&amp;post=29&amp;subd=jcloutier1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jcloutier1.wordpress.com/2009/03/04/block-4-assignment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d531027de84f742f203422af9da6c271?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jcloutier1</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20four/block4-1.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20four/block4-2.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20four/block4-4.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20four/block4-3.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20four/block4-5.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20four/block4-6.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>
	</item>
		<item>
		<title>Block 3 Assignment</title>
		<link>http://jcloutier1.wordpress.com/2009/03/04/block-3-assignment/</link>
		<comments>http://jcloutier1.wordpress.com/2009/03/04/block-3-assignment/#comments</comments>
		<pubDate>Wed, 04 Mar 2009 13:15:25 +0000</pubDate>
		<dc:creator>jcloutier1</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://jcloutier1.wordpress.com/?p=27</guid>
		<description><![CDATA[Objective 1. Explore how exact solutions to first order differential equations differ from Euler approximations. 2. Experiment with Euler approximations to the Lorenz equations for various parameter values and initial conditions. 3. Choose one of the following: a. The Lotka-Volterra predator-prey equations are where y is the number of predators, x is the number of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jcloutier1.wordpress.com&amp;blog=6347397&amp;post=27&amp;subd=jcloutier1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h1 style="text-align:left;"><span style="color:#C0C0C0;">Objective</span></h1>
<p style="text-align:left;"><span style="color:#C0C0C0;">1. Explore how exact solutions to first order differential equations differ from Euler approximations.</span><br />
<span style="color:#C0C0C0;">2. Experiment with Euler approximations to the Lorenz equations for various parameter values and initial conditions.</span><br />
<span style="color:#C0C0C0;">3. Choose one of the following:</span></p>
<p style="padding-left:30px;text-align:left;"><span style="color:#C0C0C0;">a. The Lotka-Volterra predator-prey equations are <img src='http://s0.wp.com/latex.php?latex=%5Cfrac+%7Bdx%7D%7Bdt%7D%3Dx%28%5Calpha-%5Cbeta+y%29%2C+%5Cfrac%7Bdy%7D%7Bdt%7D%3D-y%28%5Cgamma-%5Cdelta+x%29&amp;bg=000000&amp;fg=808080&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=000000&amp;fg=808080&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.</span></p>
<p style="padding-left:30px;text-align:left;"><span style="color:#C0C0C0;">b. Explore the behavior of the Rossler system of differential equations <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=000000&amp;fg=808080&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.</span></p>
<h1 style="text-align:left;"><span style="color:#ff99cc;">Introduction</span></h1>
<p style="text-align:left;"><span style="color:#ff99cc;">For the <span style="color:#ff99cc;">third block we learned about Edward Lorenz (1917-2008) who was not only a mathematician but also a meteorologist from West Hartford, Connecticut. Lorenz studied at both Dartmouth College and Harvard University. He earned his two degrees at the Massachusetts Institute of Technology&#8211;where he also taught for many years. Edward Lorenz is also considered a &#8220;pioneer&#8221; of chaos theory (sensitivity to initial conditions). He is also known for the Lorenz attractor and the Butterfly effect.</span></span></p>
<p style="text-align:left;"><span style="color:#ff99cc;">A simplified model was set up by him of convection rolls in 1963. Strangely, Lorenz was not fascinated by biological or physical phenomena, but rather used his model to try and describe the weather. The simplified model consists of three linked differential equations using three different variables:</span></p>
<p style="text-align:left;"><span style="color:#c0c0c0;"><img src='http://s0.wp.com/latex.php?latex=%5Cfrac+%7Bdx%7D%7Bdt%7D%3D+%5Csigma%28y-x%29&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac {dx}{dt}= &#92;sigma(y-x)' title='&#92;frac {dx}{dt}= &#92;sigma(y-x)' class='latex' /></span></p>
<p style="text-align:left;"><span style="color:#c0c0c0;"><img src='http://s0.wp.com/latex.php?latex=%5Cfrac+%7Bdy%7D%7Bdt%7D%3D+x%28%5Crho-z%29-y&amp;bg=000000&amp;fg=808080&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' /></span></p>
<p style="text-align:left;"><span style="color:#c0c0c0;"><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdz%7D%7Bdt%7D%3Dxy+-+%5Cbeta+z&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac{dz}{dt}=xy - &#92;beta z' title='&#92;frac{dz}{dt}=xy - &#92;beta z' class='latex' /></span></p>
<p style="text-align:left;"><span style="color:#c0c0c0;">(where <img src='http://s0.wp.com/latex.php?latex=%5Csigma%2C+%5Crho%2C+&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;sigma, &#92;rho, ' title='&#92;sigma, &#92;rho, ' class='latex' />and <img src='http://s0.wp.com/latex.php?latex=%5Cbeta&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;beta' title='&#92;beta' class='latex' /> are positive numbers)</span></p>
<p style="text-align:left;"><span style="color:#ff99cc;">The parameters <img src='http://s0.wp.com/latex.php?latex=%5Csigma&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;sigma' title='&#92;sigma' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5Crho&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;rho' title='&#92;rho' class='latex' />  to physical properties of a fluid in motion: kinematic viscosity and heat flow (the Prandtl number and Rayleigh number, respectively). In these equations it is common to take <img src='http://s0.wp.com/latex.php?latex=%5Csigma%3D+10&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;sigma= 10' title='&#92;sigma= 10' class='latex' /> , <img src='http://s0.wp.com/latex.php?latex=%5Cbeta%3D%5Cfrac%7B8%7D%7B3%7D&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;beta=&#92;frac{8}{3}' title='&#92;beta=&#92;frac{8}{3}' class='latex' />.</span></p>
<p style="text-align:left;"><span style="color:#ff99cc;">The method for setting up an Euler approximation to a system of first-order differential equations is more difficult than for a single first-order equation (while keeping in mind that the Euler approximation formula the variables are the linked equations above). Luckily, MATLAB has a 3D plot capability. The two options that MATLAB provides us with to execute the comparison of the Euler approximation and the Lorenz Attractor, is the“inline” following the MATLAB prompt, or by defining an M-file to run.</span></p>
<p style="text-align:left;"><span style="color:#ff99cc;">After observing the error associated with the relationship between the error and the step size of the Euler approximations, it is noticeable that the smaller the step size, the the more accurate the approximation usually is. Also, after observing the Euler approximation from the previous block, we know that there is some error for every approximation of a non-linear solution because Euler’s method approximates by using a straight line in very small increments. There is still error even when every approximated points are on a curve corresponds to the exact solution, because those points are connected with line segments instead of curves like I previously mention.</span></p>
<p style="text-align:left;"><strong><span style="color:#ff99cc;">The Euler M-file is:</span></strong></p>
<p style="text-align:left;"><span style="color:#C0C0C0;">% Euler&#8217;s method for a single differential equation.<br />
% The differential equation is dy/dt = f(t,y).<br />
function [ t, y ] = euler ( f, t_range, y_initial, nstep )<br />
% We set a range of time values, from t(1) to t(2).<br />
t(1) = t_range(1);<br />
% We define dt by dividing the time range into an equal number of specified steps.<br />
dt = ( t_range(2) &#8211; t_range(1) ) / nstep;<br />
% We set the initial value of y at the beginning time t(1).<br />
y(1) = y_initial;<br />
% We use Euler&#8217;s method to update the value of y at new time steps.<br />
% &#8220;feval&#8221; is used instead of &#8220;eval&#8221; because we are passing the name of f to the program.<br />
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<br />
% The following command plots y as a function of t.<br />
plot(t,y)</span></p>
<p style="text-align:left;"><span style="color:#ff99cc;">The two data vectors the M-file returns are t&#8211;the value of the independent variable at nstep+1 equally spaced points&#8211;and y&#8211;the value of the dependent variable at each t. It also plots y as a function of t over the time limit specified.</span></p>
<p style="text-align:left;"><span style="color:#ff99cc;">The next step is to write a function specifying:</span></p>
<ul style="text-align:left;">
<li><span style="color:#ff99cc;">the name of the function  appears in single quotes</span></li>
<li><span style="color:#ff99cc;">the name of the function test_example appears in single quotes</span></li>
<li><span style="color:#ff99cc;">the initial value of y</span></li>
<li><span style="color:#ff99cc;">the number of steps</span></li>
</ul>
<p style="text-align:left;"><span style="color:#ff99cc;"><br />
</span></p>
<p style="text-align:left;"><strong><span style="color:#ff99cc;">The necessary function M-File is:</span></strong></p>
<p style="text-align:left;"><span style="color:#c0c0c0;">function yprime = test_example ( t, y )<br />
yprime = y*(2./t-1);</span></p>
<p style="text-align:left;"><span style="color:#c0c0c0;"><br />
</span></p>
<p style="text-align:left;"><span style="color:#ff99cc;">For the example, <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdy%7D%7Bdt%7D%3Dy%28%5Cfrac%7B1%7D%7Bt%7D-1%29&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac{dy}{dt}=y(&#92;frac{1}{t}-1)' title='&#92;frac{dy}{dt}=y(&#92;frac{1}{t}-1)' class='latex' />  for 0.1 ≤ t ≤ &amp; y(0.1) = 0.1, the plot will look like:</span></p>
<p style="text-align:center;"><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20three/?action=view&amp;current=block3graph1.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3graph1.jpg" border="0" alt="Photobucket" /></a></p>
<h1 style="text-align:left;"><span style="color:#ff99cc;">Euler’s Approximation for Lorenz Equations</span></h1>
<p style="text-align:left;"><span style="color:#ff99cc;">Now I will be exploring Euler Approximations for Lorenz Equations (previously mentioned in the beginning of this block). In order to find a first-order equation, we must modify euler.m file and call it euler_system.m</span></p>
<p style="text-align:left;"><strong><span style="color:#000000;"><span style="color:#ff99cc;">euler_system.m:</span></span></strong></p>
<p style="text-align:left;"><span style="color:#c0c0c0;">% Euler’s method for a system of differential equations.</span></p>
<p style="text-align:left;"><span style="color:#c0c0c0;">% The differential equations are dy/dt = f(t,y) where y is a vector of unknown functions.</span><span style="color:#c0c0c0;"> function [ t, y ] = euler_system( f, t_range, y_initial, nstep )</span></p>
<p style="text-align:left;"><span style="color:#c0c0c0;">% We set a range of time values, from t(1) to t(2).</span><span style="color:#c0c0c0;"> t(1) = t_range(1);</span></p>
<p style="text-align:left;"><span style="color:#c0c0c0;">% We define dt by dividing the time range into an equal number of specified steps.</span><span style="color:#c0c0c0;"> dt = ( t_range(2) – t_range(1) ) / nstep;</span></p>
<p style="text-align:left;"><span style="color:#c0c0c0;">% We set the initial value of the vector y at the beginning time t(1).</span><span style="color:#c0c0c0;"> y(:,1) = y_initial;</span></p>
<p style="text-align:left;"><span style="color:#c0c0c0;">% We use Euler’s method to update the value of y at new time steps.</span></p>
<p style="text-align:left;"><span style="color:#c0c0c0;">%  “feval” is used instead of “eval” because we are passing the name of f to the program.</span></p>
<p style="text-align:left;"><span style="color:#c0c0c0;">for i = 1 : nstep<br />
t(i+1) = t(i) + dt;<br />
y(:,i+1) = y(:,i) + dt * feval ( f, t(i), y(:,i) );</span></p>
<p style="text-align:left;"><span style="color:#c0c0c0;">end</span></p>
<p style="text-align:left;"><span style="color:#c0c0c0;">% The following command plots the components of y as functions of <span style="color:#c0c0c0;">t.</span></span><span style="color:#008000;"><span style="color:#c0c0c0;"> plot(t,y)</span></span></p>
<p style="text-align:left;"><span style="color:#008000;"><span style="color:#c0c0c0;">% We also want a 3D plot of the vector components as they vary with t.<br />
</span> <span style="color:#000000;"><span style="color:#c0c0c0;">plot3(y(1, : ),y(2, : ),y(3, : ))</span><br />
</span></span></p>
<p style="text-align:left;"><span style="color:#000000;"><br />
<span style="color:#ff99cc;"> The colon is used because y is a column vector (that is what the &#8217;1&#8242; is used for) which as as many components (= rows) as there are unknown functions. The graph will become more stable as it approaches 28 in which it peaks, but after 28 it becomes increasingly chaotic. </span><br />
</span></p>
<p style="text-align:left;"><span style="color:#ff99cc;">The following inputs are what I started with:<br />
ρ =5, t=[0,5] , y initial=(0,5,0)</span></p>
<p style="text-align:left;"><span style="color:#ff99cc;"><strong>lorenz_system.m:</strong></span></p>
<p style="text-align:left;"><span style="color:#c0c0c0;">function yprime = lorenz_system ( t, y )<br />
yprime = [ 10.0* (y(2)-y(1)); y(1)*(5.0-y(3))-y(2);y(1)*y(2)-8*y(3)/3 ]; </span></p>
<p style="text-align:left;"><span style="color:#c0c0c0;">&gt;&gt; y_init = [0; 5; 0];<br />
&gt;&gt; [ t, y ] = euler_system (’lorenz_system’, [ 0.0, 5 ], y_init, 1000 );</span></p>
<p style="text-align:left;"><span style="color:#c0c0c0;"><span style="color:#ff99cc;">Lorenz at p=5:</span><br />
</span></p>
<p style="text-align:center;"><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20three/?action=view&amp;current=block3p5.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3p5.jpg" border="0" alt="Photobucket" /></a></p>
<p style="text-align:center;"><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20three/?action=view&amp;current=block3p52.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3p52.jpg" border="0" alt="Photobucket" /></a></p>
<p style="text-align:center;">
<p style="text-align:left;"><span style="color:#c0c0c0;"><span style="color:#ff99cc;">Lorenz at p=10, t= [0,5], y initial=(0,5,0):</span></span></p>
<p style="text-align:center;">
<p style="text-align:center;"><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20three/?action=view&amp;current=block3p10.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3p10.jpg" border="0" alt="Photobucket" /></a><br />
<a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20three/?action=view&amp;current=block3p102.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3p102.jpg" border="0" alt="Photobucket" /></a></p>
<p style="text-align:center;">
<p style="text-align:left;"><span style="color:#c0c0c0;"><span style="color:#ff99cc;">Lorenz at p=15, t= [0,5], y initial=(0,5,0)</span></span></p>
<p style="text-align:center;"><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20three/?action=view&amp;current=block3p15.jpg" target="_blank"><img class="alignnone" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3p15.jpg" border="0" alt="Photobucket" /></a></p>
<p style="text-align:center;"><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20three/?action=view&amp;current=block3p152.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3p152.jpg" border="0" alt="Photobucket" /></a></p>
<p style="text-align:left;"><span style="color:#c0c0c0;"><span style="color:#ff99cc;">Lorenz at p=20, t= [0,10], y initial=(0,5,0)</span></span></p>
<p style="text-align:center;"><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20three/?action=view&amp;current=block3p20.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3p20.jpg" border="0" alt="Photobucket" /></a><br />
<a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20three/?action=view&amp;current=block3p202.jpg" target="_blank"><img src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3p202.jpg" border="0" alt="Photobucket" /></a></p>
<p style="text-align:center;">
<p style="text-align:center;">
<p style="text-align:center;">
<p style="text-align:center;">
<p style="text-align:left;"><span style="color:#c0c0c0;"><span style="color:#ff99cc;">Lorenz at p=25, t= [0,12], y initial=(0,5,0)</span></span></p>
<p style="text-align:center;"><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20three/?action=view&amp;current=block3p25.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3p25.jpg" border="0" alt="Photobucket" /></a><br />
<a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20three/?action=view&amp;current=block3p252.jpg" target="_blank"><img src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3p252.jpg" border="0" alt="Photobucket" /></a></p>
<p style="text-align:left;"><span style="color:#c0c0c0;"><span style="color:#ff99cc;">Lorenz at p=28, t= [0,15], y initial=(0,5,0)</span></span></p>
<p style="text-align:center;">
<p style="text-align:center;">
<p style="text-align:center;"><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20three/?action=view&amp;current=block3p28.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3p28.jpg" border="0" alt="Photobucket" /></a><br />
<a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20three/?action=view&amp;current=block3p282.jpg" target="_blank"><img src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3p282.jpg" border="0" alt="Photobucket" /></a></p>
<p style="text-align:left;"><span style="color:#c0c0c0;"><span style="color:#ff99cc;">Lorenz at p=50, y initial=(0,5,0)</span></span></p>
<p style="text-align:left;"><span style="color:#ff99cc;">at t=(0,5)</span></p>
<p style="text-align:left;"><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20three/?action=view&amp;current=block3p50.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3p50.jpg" border="0" alt="Photobucket" /></a><span style="color:#ff99cc;">at t=(0,10)</span></p>
<p style="text-align:left;"><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20three/?action=view&amp;current=block3p502.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3p502.jpg" border="0" alt="Photobucket" /></a><span style="color:#ff99cc;">at t=(0,11)</span></p>
<p style="text-align:center;"><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20three/?action=view&amp;current=block3p503.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3p503.jpg" border="0" alt="Photobucket" /></a></p>
<p style="text-align:left;"><span style="color:#ff99cc;">at t=(0,12)</span></p>
<p style="text-align:center;"><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20three/?action=view&amp;current=block3p504.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3p504.jpg" border="0" alt="Photobucket" /></a></p>
<p style="text-align:left;"><span style="color:#ff99cc;">at t=(0,13)</span></p>
<p style="text-align:center;"><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20three/?action=view&amp;current=block3p505.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3p505.jpg" border="0" alt="Photobucket" /></a></p>
<p style="text-align:center;">
<p style="text-align:left;"><span style="color:#ff99cc;">The graph has a lot less chaotic nature as the t value is smaller; it becomes progressively unrecognizable as it the value of t increases.</span></p>
<h1 style="text-align:left;"><span style="color:#000000;"><br />
</span></h1>
<h1 style="text-align:left;"><span style="color:#ff99cc;">Runge-Kutta for Lorenz Equations<br />
</span></h1>
<p style="text-align:left;"><span style="color:#000000;"><span style="color:#ff99cc;">As was discovered in the previous block, the Runge-Kutta (Ode 45) Method usually provides a better approximation.</span> </span></p>
<p style="text-align:left;"><span style="color:#000000;"><span style="color:#ff99cc;"><strong>g.m</strong></span><br />
</span></p>
<p style="text-align:left;"><span style="color:#c0c0c0;">function xdot = g(t,x)<br />
xdot = zeros(3,1);<br />
sig = 10.0;<br />
rho = 28.0; % change for desired rho<br />
bet = 8.0/3.0;<br />
xdot(1) = sig*(x(2)-x(1));<br />
xdot(2) = rho*x(1)-x(2)-x(1)*x(3);<br />
xdot(3) = x(1)*x(2)-bet*x(3);</span></p>
<p style="text-align:left;"><span style="color:#000000;"><span style="color:#ff99cc;"><strong>lorenz_demo.m</strong></span><br />
</span></p>
<p style="text-align:left;"><span style="color:#c0c0c0;">function lorenz_demo(time)</span></p>
<p style="text-align:left;"><span style="color:#c0c0c0;">% Usage: lorenz_demo(time)<br />
% time=end point of time interval<br />
% This function integrates the lorenz attractor</span></p>
<p style="text-align:left;"><span style="color:#c0c0c0;">% from t=0 to t=time<br />
[t,x] = ode45(’g’,[0 time],[1;2;3]);<br />
disp(’press any key to continue …’)<br />
pause</span></p>
<p style="text-align:left;"><span style="color:#c0c0c0;">plot3(x(:,1),x(:,2),x(:,3))<br />
print -deps lorenz.eps</span></p>
<p style="text-align:left;"><span style="color:#ff99cc;">(*The p value will be changing in the g.m like the euler.m file. The command line will call the “lorenz_demo(200)”&#8211;where the 200 specifies the time interval.)</span></p>
<p style="text-align:left;"><span style="color:#ff99cc;">at p=5:</span></p>
<p style="text-align:center;"><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20three/?action=view&amp;current=block3rk1.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3rk1.jpg" border="0" alt="Photobucket" /></a></p>
<p style="text-align:left;"><span style="color:#ff99cc;">at p=10:</span></p>
<p style="text-align:center;"><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20three/?action=view&amp;current=block3rk2.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3rk2.jpg" border="0" alt="Photobucket" /></a></p>
<p style="text-align:left;"><span style="color:#ff99cc;">at p=15:</span></p>
<p style="text-align:center;"><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20three/?action=view&amp;current=block3rk3.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3rk3.jpg" border="0" alt="Photobucket" /></a></p>
<p style="text-align:left;"><span style="color:#ff99cc;">at p=20:</span></p>
<p style="text-align:center;"><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20three/?action=view&amp;current=block3rk4.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3rk4.jpg" border="0" alt="Photobucket" /></a></p>
<p style="text-align:left;"><span style="color:#ff99cc;">at p=25:</span></p>
<p style="text-align:center;"><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20three/?action=view&amp;current=block3rk5.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3rk5.jpg" border="0" alt="Photobucket" /></a></p>
<p style="text-align:left;"><span style="color:#ff99cc;">at p=28:</span></p>
<p style="text-align:center;"><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20three/?action=view&amp;current=block3rk6.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3rk6.jpg" border="0" alt="Photobucket" /></a></p>
<p style="text-align:left;"><span style="color:#ff99cc;">The Runge-Kutta Method provides a much better approximation of the Lorentz attractor&#8211;compared to using the Euler&#8217;s Method&#8211;since the line is much smoother. It is a better representation of how the approximation is creating the object in 3D space. The Euler’s method was much more jagged, and wasn’t as defined where the Runge-Kutta Method produced a better graph using a much smaller time step.</span></p>
<h1 style="text-align:left;"><span style="color:#ff99cc;"> </span></h1>
<h1 style="text-align:left;"><span style="color:#ff99cc;"> Lotka-Volterra predator-prey equations</span></h1>
<p style="text-align:left;"><span style="color:#ff99cc;"> </span></p>
<p style="text-align:left;"><span style="color:#ff99cc;">Proposed independently by Alfred J. Lotka in 1925 and Vito Volterra in 1926 are </span><span style="color:#ff99cc;">the Lotka-Volterra equations. Also known as the predator-prey equations, they are a pair of first order, non-linear, differential equations frequently used to describe the dynamics of biological systems in which two species interact (one a predator and one its prey).<br />
</span></p>
<p style="text-align:left;"><span style="color:#ff99cc;"> </span></p>
<p style="text-align:left;"><strong><span style="color:#ff99cc;">The prey equation:</span></strong></p>
<p style="text-align:left;"><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdx%7D%7Bdt%7D+%3D+%5Csigma+x+-+%5Cbeta+xy&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac{dx}{dt} = &#92;sigma x - &#92;beta xy' title='&#92;frac{dx}{dt} = &#92;sigma x - &#92;beta xy' class='latex' /></span></p>
<p style="text-align:left;"><span style="color:#c0c0c0;">(*The change in the prey’s numbers is given by its own growth minus the rate at which it is preyed upon.)</span></p>
<p style="text-align:left;"><span style="color:#ff99cc;">The prey are assumed to have an unlimited food supply, and to reproduce exponentially unless subject to predation. The exponential growth is represented in equation above by the term αx. The rate of predation upon the prey is assumed to be proportional to the rate at which the predators and the prey meet; this is represented above by βxy. (There is no prediction if either x or y is zero.)<br />
</span></p>
<p style="text-align:left;"><span style="color:#ff99cc;"> </span></p>
<p style="text-align:left;"><strong><span style="color:#ff99cc;">The predator equation:</span></strong></p>
<p style="text-align:left;"><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdy%7D%7Bdt%7D+%3D+%5Calpha+xy+-+%5Cgamma+y&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac{dy}{dt} = &#92;alpha xy - &#92;gamma y' title='&#92;frac{dy}{dt} = &#92;alpha xy - &#92;gamma y' class='latex' /></span></p>
<p style="text-align:left;"><span style="color:#ff99cc;"><br />
</span></p>
<p style="text-align:left;"><span style="color:#ff99cc;">In this equation, δxy represents the growth of the predator population. (Note the similarity to the predation rate; however, a different constant is used as the rate at which the predator population grows is not necessarily equal to the rate at which it consumes the prey). γy represents the natural death of the predators; it is an exponential decay. Hence the equation represents the change in the predator population as the growth of the predator population, minus natural death.</span></p>
<p style="text-align:left;"><span style="color:#ff99cc;"> </span></p>
<p style="text-align:left;"><span style="color:#ff99cc;">Both equations use:</span></p>
<ul style="text-align:left;">
<li><span style="color:#ff99cc;">y is the number of some predator (for example, wolves)</span></li>
<li><span style="color:#ff99cc;">x is the number of its prey (for example, rabbits)</span></li>
<li><span style="color:#ff99cc;"><img src='http://s0.wp.com/latex.php?latex=%5Cfrac+%7Bdy%7D%7Bdt%7D&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac {dy}{dt}' title='&#92;frac {dy}{dt}' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdx%7D%7Bdt%7D&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac{dx}{dt}' title='&#92;frac{dx}{dt}' class='latex' /> represent the growth of the two populations against time</span></li>
<li><span style="color:#ff99cc;">time is represented by the variable t<br />
</span></li>
<li><span style="color:#ff99cc;">α, β, γ and δ are parameters representing the interaction of the two species</span></li>
</ul>
<p style="text-align:left;"><span style="color:#ff99cc;"> </span></p>
<p style="text-align:left;"><span style="color:#ff99cc;">The equations have periodic solutions which do not have a simple expression in terms of the usual trigonometric functions. However, an approximate linearised solution yields a simple harmonic motion with the population of predators following that of prey by 90°.</span></p>
<p style="text-align:left;"><span style="color:#ff99cc;">The equations would look like the following:</span></p>
<p style="text-align:left;"><span style="color:#ff99cc;"> </span></p>
<div id="_mcePaste" style="overflow:hidden;position:absolute;left:-10000px;top:13017px;width:1px;height:1px;text-align:left;">
<p><span style="color:#000000;">In this equation, δxy represents the growth of the predator population. (Note the similarity to the predation rate; however, a different constant is used as the rate at which the predator population grows is not necessarily equal to the rate at which it consumes the prey). γy represents the natural death of the predators; it is an exponential decay. Hence the equation represents the change in the predator population as the growth of the predator population, minus natural death.<br />
</span></p>
<p><span style="color:#000000;">Both equations use the following:</span></p>
<ul>
<li><span style="color:#000000;">y is the number of some predator (for example, wolves);</span></li>
<li><span style="color:#000000;">x is the number of its prey (for example, rabbits);</span></li>
<li><span style="color:#000000;">dy/dt and dx/dt represents the growth of the two populations against time;</span></li>
<li><span style="color:#000000;">t represents the time;</span></li>
<li><span style="color:#000000;">α, β, γ and δ are parameters representing the interaction of the two species.</span></li>
</ul>
<p><span style="color:#000000;">The equations have periodic solutions which do not have a simple expression in terms of the usual trigonometric functions. However, an approximate linearised solution yields a simple harmonic motion with the population of predators following that of prey by 90°.</span></p>
<p><span style="color:#000000;"><img src="http://michaelferreiramth212s09.wordpress.com/Users/MIKE_F%7E1/AppData/Local/Temp/moz-screenshot-1.jpg" alt="" /></span></p>
<p><span style="color:#000000;">The equations would look like the following:</span></p>
<p>In this equation, δxy represents the growth of the predator population. (Note the similarity to the predation rate; however, a different constant is used as the rate at which the predator population grows is not necessarily equal to the rate at which it consumes the prey). γy represents the natural death of the predators; it is an exponential decay. Hence the equation represents the change in the predator population as the growth of the predator population, minus natural death.</p>
<p>Both equations use the following:</p>
<p>* y is the number of some predator (for example, wolves);</p>
<p>* x is the number of its prey (for example, rabbits);</p>
<p>* dy/dt and dx/dt represents the growth of the two populations against time;</p>
<p>* t represents the time;</p>
<p>* α, β, γ and δ are parameters representing the interaction of the two species.</p>
<p>The equations have periodic solutions which do not have a simple expression in terms of the usual trigonometric functions. However, an approximate linearised solution yields a simple harmonic motion with the population of predators following that of prey by 90°.</p>
<p>The equations would look like the following:</p></div>
<p style="text-align:left;">
<p style="text-align:left;"><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20three/?action=view&amp;current=block3predprey.jpg" target="_blank"><img class="alignleft" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3predprey.jpg" border="0" alt="Photobucket" /></a></p>
<p style="text-align:left;">
<p style="text-align:left;">
<p style="text-align:left;">
<p style="text-align:left;">
<p style="text-align:left;">
<p style="text-align:left;">
<p style="text-align:left;"><span style="color:#ff99cc;">Another graph comparison:</span></p>
<p style="text-align:left;"><img src="/Users/jenna/AppData/Local/Temp/moz-screenshot-1.jpg" alt="" /></p>
<p style="text-align:left;"><img src="/Users/jenna/AppData/Local/Temp/moz-screenshot-2.jpg" alt="" /></p>
<p style="text-align:left;"><img src="/Users/jenna/AppData/Local/Temp/moz-screenshot.jpg" alt="" /></p>
<p style="text-align:left;"><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20three/?action=view&amp;current=predprey.gif" target="_blank"><img class="alignnone" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/predprey.gif" border="0" alt="Photobucket" /></a></p>
<p style="text-align:left;"><span style="color:#ff99cc;">The following are actual examples with varying parameter values and initial conditions using the m files shown below:</span></p>
<p style="text-align:left;"><strong><span style="color:#ff99cc;">lotka.m</span></strong></p>
<p style="text-align:left;"><span style="color:#c0c0c0;">function yp = lotka(t,y)</span></p>
<p style="text-align:left;"><span style="color:#c0c0c0;">yp = diag([1 - .01*y(2), -1 + .02*y(1)])*y;</span></p>
<p style="text-align:left;"><span style="color:#c0c0c0;"> </span></p>
<p style="text-align:left;"><span style="color:#ff99cc;"><strong>LV.m</strong></span></p>
<p style="text-align:left;"><span style="color:#c0c0c0;">t0 = 0; % this is the start time of the experiment</span></p>
<p style="text-align:left;"><span style="color:#c0c0c0;">tfinal = 20; % this is the end time of the experiment</span></p>
<p style="text-align:left;"><span style="color:#c0c0c0;">y0 = [5 3]‘; % these are the initial numbers of predator and prey</span></p>
<p style="text-align:left;"><span style="color:#c0c0c0;">[t,y] = ode45(’lotka’,[t0 tfinal],y0);</span></p>
<p style="text-align:left;"><span style="color:#c0c0c0;">figure;</span></p>
<p style="text-align:left;"><span style="color:#c0c0c0;">% Plot the result of the simulation two different ways.</span></p>
<p style="text-align:left;"><span style="color:#c0c0c0;">subplot(1,2,1)</span></p>
<p style="text-align:left;"><span style="color:#c0c0c0;">plot(t,y)</span></p>
<p style="text-align:left;"><span style="color:#c0c0c0;">title(’Time history’)</span></p>
<p style="text-align:left;"><span style="color:#c0c0c0;">legend(’Predators’,&#8217;Prey’)</span></p>
<p style="text-align:left;"><span style="color:#c0c0c0;">subplot(1,2,2)</span></p>
<p style="text-align:left;"><span style="color:#c0c0c0;">plot(y(:,1),y(:,2))</span></p>
<p style="text-align:left;"><span style="color:#c0c0c0;">title(’Phase plane plot’)</span></p>
<p style="text-align:left;"><span style="color:#ff99cc;"> </span></p>
<p style="text-align:left;"><span style="color:#ff99cc;">An example of start time to=0, tfinal = 100 and y0= [300 300]:</span></p>
<p style="text-align:center;"><span style="color:#ff99cc;"> </span><br />
<a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20three/?action=view&amp;current=block3predprey2.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3predprey2.jpg" border="0" alt="Photobucket" /></a></p>
<p style="text-align:center;">
<p style="text-align:center;"><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20three/?action=view&amp;current=block3predprey3.jpg" target="_blank"><img src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3predprey3.jpg" border="0" alt="Photobucket" width="322" height="402" /></a></p>
<p style="text-align:center;">
<p><span style="color:#ff99cc;">The first plot is the time (time being dimensionless) in which it shows the progression of the two species over time. One can also plot a solution which corresponds to the oscillatory nature of the population of the two species. At any given time, the solution is somewhere on the inside of these elliptical solutions. As you can see, as the number of predators decreases, the number of prey increases drastically, but right when the number of predators to approximately \frac {1}{4}th to \frac {1}{2}  of the maximum of prey, the prey drops drastically, close to zero. And the cycle repeats.</span></p>
<p><span style="color:#ff99cc;">The second plot shows the model system in which the predators thrive when there are plentiful prey but, ultimately, outstrip their food supply and decline. As the predator population is low the prey population will increase again. These dynamics continue in a cycle of growth and decline. A better representation would be the one created from wikipedia.</span></p>
<p style="text-align:center;"><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20three/?action=view&amp;current=block3predprey4.jpg" target="_blank"><img src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3predprey4.jpg" border="0" alt="Photobucket" /></a></p>
<p style="text-align:center;">
<p><span style="color:#ff99cc;">This depicts that there is a problem with the ’survival of the fittest.’  In each cycle, the baboon population is reduced to extremely low numbers yet recovers (while the cheetah population remains sizeable at the lowest baboon density). Given chance fluctuations, discrete numbers of individuals, and the family structure and life-cycle of baboons, the baboons actually go extinct and by consequence the cheetahs as well. This modeling problem has been called the “atto-fox problem“ an atto-fox being an imaginary 10-18 of a fox, in relation to rabies modeling in the UK.</span></p>
<p><span style="color:#ff99cc;">Here are a few more parameter values and initial conditions. (to=0, tfinal = 30 and y0= [2 5] so that we can see a better representation.)</span></p>
<p style="text-align:center;"><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20three/?action=view&amp;current=block3predprey5.jpg" target="_blank"><img src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3predprey5.jpg" border="0" alt="Photobucket" width="343" height="451" /></a></p>
<p style="text-align:center;">
<p style="text-align:center;"><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20three/?action=view&amp;current=block3predprey6.jpg" target="_blank"><img src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3predprey6.jpg" border="0" alt="Photobucket" width="279" height="440" /></a></p>
<p style="text-align:center;">
<p style="text-align:center;">
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jcloutier1.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jcloutier1.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jcloutier1.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jcloutier1.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jcloutier1.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jcloutier1.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jcloutier1.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jcloutier1.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jcloutier1.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jcloutier1.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jcloutier1.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jcloutier1.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jcloutier1.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jcloutier1.wordpress.com/27/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jcloutier1.wordpress.com&amp;blog=6347397&amp;post=27&amp;subd=jcloutier1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jcloutier1.wordpress.com/2009/03/04/block-3-assignment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d531027de84f742f203422af9da6c271?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jcloutier1</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3graph1.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3p5.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3p52.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3p10.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3p102.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3p15.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3p152.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3p20.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3p202.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3p25.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3p252.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3p28.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3p282.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3p50.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3p502.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3p503.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3p504.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3p505.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3rk1.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3rk2.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3rk3.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3rk4.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3rk5.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3rk6.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://michaelferreiramth212s09.wordpress.com/Users/MIKE_F%7E1/AppData/Local/Temp/moz-screenshot-1.jpg" medium="image" />

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3predprey.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/predprey.gif" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3predprey2.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3predprey3.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3predprey4.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3predprey5.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20three/block3predprey6.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>
	</item>
		<item>
		<title>Block 2 Assignment</title>
		<link>http://jcloutier1.wordpress.com/2009/03/04/block-2-assignment/</link>
		<comments>http://jcloutier1.wordpress.com/2009/03/04/block-2-assignment/#comments</comments>
		<pubDate>Wed, 04 Mar 2009 13:15:03 +0000</pubDate>
		<dc:creator>jcloutier1</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://jcloutier1.wordpress.com/?p=25</guid>
		<description><![CDATA[Objective Using: Euler’s method ode45 dsolve examine a variety of first-order differential equations and compare and contrast Euler’s method, MATLAB’s ode45 numerical solver, and an exact solution when there is one. Choose two examples from each of the following problem sets (6 examples in all) for a variety of inital conditions (not just those given [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jcloutier1.wordpress.com&amp;blog=6347397&amp;post=25&amp;subd=jcloutier1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h1><span style="color:#C0C0C0;">Objective</span></h1>
<p><span style="color:#C0C0C0;">Using:</span></p>
<ol>
<li><span style="color:#C0C0C0;">Euler’s method</span></li>
<li><span style="color:#C0C0C0;">ode45<br />
</span></li>
<li><span style="color:#C0C0C0;">dsolve</span></li>
</ol>
<p><span style="color:#C0C0C0;">examine a variety of first-order differential equations and compare and contrast Euler’s method, MATLAB’s ode45 numerical solver, and an exact solution when there is one. Choose two examples from each of the following problem sets (6 examples in all) for a variety of inital conditions (not just those given in the text):</span></p>
<ul>
<li><span style="color:#C0C0C0;">problems 2-5 on pp. 138-139 of the text, ;</span></li>
<li><span style="color:#C0C0C0;">problems 6-11 on p. 139 of the text;</span></li>
<li><span style="color:#C0C0C0;">problems 12-16 on p. 139 of the text</span></li>
</ul>
<h1><span style="color:#ff99cc;">Introduction</span></h1>
<p><span style="color:#ff99cc;">In the previous block assignment I learned about Euler&#8217;s method. However, in this block assignment, it was proven that there are some disadvantages of this method. Euler&#8217;s method is generally used for approximating numerical solutions to differential equations, yet, this method is subject to errors and can be very inaccurate. Another method, such as the Runge-Kutta method, is more accurate. This new method we learned about uses parabolas (degree 2 polynomials) and quartics (degree 4 polynomials) in order to approximate a differential equation, whereas Euler&#8217;s method approximates by using a straight line in very small increments. To show the comparisons of these two methods we used MATLAB&#8211;which has a built in solver for the Runge-Kutta method called ode45.</span></p>
<p><span style="color:#ff99cc;"><br />
</span></p>
<h2 style="text-align:center;"><span style="color:#C0C0C0;"><strong>Example One: Problem Two </strong></span></h2>
<h2 style="text-align:center;"><span style="color:#C0C0C0;"><strong><img src='http://s0.wp.com/latex.php?latex=%5Cfrac+%7Bdy%7D+%7Bdx%7D+%3D+x%5E4y+&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac {dy} {dx} = x^4y ' title='&#92;frac {dy} {dx} = x^4y ' class='latex' /></strong></span></h2>
<p><span style="color:#C0C0C0;"><br />
</span></p>
<p><span style="color:#C0C0C0;"><span style="color:#ff99cc;">Shown below is the differential equation using Euler&#8217;s method proving that the method is jagged and not very accurate.</span><br />
</span></p>
<p><span style="color:#C0C0C0;">[x,y]=ode45(’example1’,[-3,1],.1);</span></p>
<p><span style="color:#C0C0C0;">plot(x,y)</span></p>
<p style="text-align:center;"><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20two/?action=view&amp;current=2x4yeulerjpg.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20two/2x4yeulerjpg.jpg" border="0" alt="Photobucket" /></a></p>
<p><span style="color:#ff99cc;">In the graph below that is comparing both methods, the methods appear to be pretty accurate to one another when x is negative. However, as x approaches 1.5 Euler&#8217;s method becomes less accurate.<br />
</span></p>
<p style="text-align:center;"><span style="color:#ff99cc;"><br />
</span></p>
<p><span style="color:#C0C0C0;">[x,y]=ode45(&#8216;example1&#8242;,[-3,1],.1);<br />
plot(x,y)<br />
hold on<br />
[x,y]=euler(&#8216;example1&#8242;,[-3,1],.1,.2);<br />
plot(x,y,&#8217;r')<br />
hold off</span></p>
<p style="text-align:left;"><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20two/?action=view&amp;current=2x4ycombojpg.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20two/2x4ycombojpg.jpg" border="0" alt="Photobucket" /></a></p>
<p><span style="color:#ff99cc;">However, as you can see, by increasing the step size of the graph the methods differ greatly and proves that the Euler method isn&#8217;t the best option.</span></p>
<p><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20two/?action=view&amp;current=2x4ycombo2jpg.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20two/2x4ycombo2jpg.jpg" border="0" alt="Photobucket" /></a></p>
<h2 style="text-align:center;"><span style="color:#C0C0C0;"><strong>Example Two: Problem Three</strong></span></h2>
<h2 style="text-align:center;"><span style="color:#ff99cc;"><span style="color:#C0C0C0;"><strong><img src='http://s0.wp.com/latex.php?latex=%5Cfrac+%7Bdy%7D+%7Bdx%7D+%3D+-y%5E2cos%28x%29+&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac {dy} {dx} = -y^2cos(x) ' title='&#92;frac {dy} {dx} = -y^2cos(x) ' class='latex' /></strong></span></span></h2>
<p><span style="color:#C0C0C0;"><br />
</span></p>
<p><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20two/?action=view&amp;current=3-y2cosxeulerjpg.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20two/3-y2cosxeulerjpg.jpg" border="0" alt="Photobucket" /></a></p>
<p><span style="color:#C0C0C0;">[x,y]=ode45(&#8216;example2&#8242;,[-3,1],.1);<br />
plot(x,y)<br />
hold on<br />
[x,y]=euler(&#8216;example2&#8242;,[-3,1],.1,.2);<br />
plot(x,y,&#8217;r')<br />
hold off</span></p>
<p style="text-align:center;"><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20two/?action=view&amp;current=3-y2cosxcombojpg.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20two/3-y2cosxcombojpg.jpg" border="0" alt="Photobucket" /></a></p>
<p style="text-align:left;"><span style="color:#ff99cc;">The graph above displays an example of <img src='http://s0.wp.com/latex.php?latex=%5Cfrac+%7Bdy%7D+%7Bdx%7D+%3D+-y%5E2cos%28x%29+&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac {dy} {dx} = -y^2cos(x) ' title='&#92;frac {dy} {dx} = -y^2cos(x) ' class='latex' /> using both Euler&#8217;s Method (in red) and </span><span style="color:#C0C0C0;"><span style="color:#ff99cc;">MATLAB’s ode45 numerical solver (in blue).</span><br />
</span></p>
<p style="text-align:center;">
<h2 style="text-align:center;"><span style="color:#C0C0C0;"><strong>Example Three: Problem Nine</strong></span></h2>
<h2 style="text-align:center;"><span style="color:#f5d0fa;"><span style="color:#C0C0C0;"><strong><img src='http://s0.wp.com/latex.php?latex=%5Cfrac+%7Bdy%7D+%7Bdx%7D+%3D+e%5E%7B-y%7D&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac {dy} {dx} = e^{-y}' title='&#92;frac {dy} {dx} = e^{-y}' class='latex' /></strong></span></span></h2>
<p><span style="color:#f5d0fa;"><span style="color:#C0C0C0;"><strong></strong></span></span></p>
<p><span style="color:#C0C0C0;"><br />
</span></p>
<p style="text-align:left;"><span style="color:#C0C0C0;"><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20two/?action=view&amp;current=9exp-yeulerjpg.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20two/9exp-yeulerjpg.jpg" border="0" alt="Photobucket" /></a></span></p>
<p style="text-align:left;"><span style="color:#C0C0C0;">[x,y]=ode45(&#8216;example3&#8242;,[0,1.5],-3);<br />
plot(x,y)<br />
hold on<br />
[x,y]=euler(&#8216;example3&#8242;,[0,1.5],-3,.15);<br />
plot(x,y,&#8217;r')<br />
hold off</span></p>
<p style="text-align:center;"><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20two/?action=view&amp;current=9exp-ycombojpg.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20two/9exp-ycombojpg.jpg" border="0" alt="Photobucket" /></a></p>
<p style="text-align:center;"><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20two/?action=view&amp;current=9exp-ycombo2jpg.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20two/9exp-ycombo2jpg.jpg" border="0" alt="Photobucket" /></a></p>
<h2 style="text-align:center;"><span style="color:#C0C0C0;"><strong>Example Four: Problem Ten</strong></span></h2>
<h2 style="text-align:center;"><span style="color:#C0C0C0;"><strong><img src='http://s0.wp.com/latex.php?latex=%5Cfrac+%7Bdy%7D+%7Bdx%7D+%3D+x%2By+&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac {dy} {dx} = x+y ' title='&#92;frac {dy} {dx} = x+y ' class='latex' /></strong></span></h2>
<p style="text-align:center;"><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20two/?action=view&amp;current=10xyeulerjpg.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20two/10xyeulerjpg.jpg" border="0" alt="Photobucket" /></a></p>
<p><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20two/?action=view&amp;current=10xyeulerjpg.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20two/10xyeulerjpg.jpg" border="0" alt="Photobucket" /></a></p>
<p><span style="color:#C0C0C0;">[x,y]=ode45(&#8216;example4&#8242;,[0,2.5],.1);<br />
plot(x,y)<br />
hold on<br />
[x,y]=euler(&#8216;example4&#8242;,[0,2.5],.1,.1);<br />
plot(x,y,&#8217;r')<br />
hold off</span></p>
<p style="text-align:center;"><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20two/?action=view&amp;current=10xycombojpg.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20two/10xycombojpg.jpg" border="0" alt="Photobucket" /></a></p>
<h2 style="text-align:center;"><span style="color:#C0C0C0;"><strong>Example Five: Problem Twelve</strong></span></h2>
<h2 style="text-align:center;"><span style="color:#C0C0C0;"><strong><img src='http://s0.wp.com/latex.php?latex=%5Cfrac+%7Bdy%7D+%7Bdx%7D+%3D+e%5E-%28x%5E2%29+&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac {dy} {dx} = e^-(x^2) ' title='&#92;frac {dy} {dx} = e^-(x^2) ' class='latex' /></strong></span></h2>
<p><span style="color:#C0C0C0;"><br />
</span></p>
<p style="text-align:center;"><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20two/?action=view&amp;current=12exp-x2eulerjpg.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20two/12exp-x2eulerjpg.jpg" border="0" alt="Photobucket" /></a></p>
<p style="text-align:left;"><span style="color:#C0C0C0;">[x,y]=ode45(&#8216;example5&#8242;,[-3,3],.1);<br />
plot(x,y)<br />
hold on<br />
[x,y]=euler(&#8216;example5&#8242;,[-3,3],.1,.4);<br />
plot(x,y,&#8217;r')<br />
hold off</span></p>
<p style="text-align:center;"><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20two/?action=view&amp;current=12exp-x2combojpg.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20two/12exp-x2combojpg.jpg" border="0" alt="Photobucket" /></a></p>
<h2 style="text-align:center;"><span style="color:#C0C0C0;"><strong>Example Six: Problem Thirteen</strong></span></h2>
<h2 style="text-align:center;"><span style="color:#C0C0C0;"><strong><img src='http://s0.wp.com/latex.php?latex=%5Cfrac+%7Bdy%7D+%7Bdx%7D+%3D+x%5E3y-x%5E2y%5E2&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac {dy} {dx} = x^3y-x^2y^2' title='&#92;frac {dy} {dx} = x^3y-x^2y^2' class='latex' /></strong></span></h2>
<p><span style="color:#C0C0C0;"><br />
</span></p>
<p style="text-align:center;"><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20two/?action=view&amp;current=13x3y-x2y2eulerjpg.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20two/13x3y-x2y2eulerjpg.jpg" border="0" alt="Photobucket" /></a></p>
<p style="text-align:left;"><span style="color:#C0C0C0;">[x,y]=ode45(&#8216;example6&#8242;,[-1.5,1.5],.1);<br />
plot(x,y)<br />
hold on<br />
[x,y]=euler(&#8216;example6&#8242;,[-1.5,1.5],.1,.01);<br />
plot(x,y,&#8217;r')<br />
hold off</span></p>
<p style="text-align:left;"><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20two/?action=view&amp;current=13x3y-x2y2combojpg.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20two/13x3y-x2y2combojpg.jpg" border="0" alt="Photobucket" /></a><span style="color:#ff99cc;">From the graph above you can determine that Euler&#8217;s Method (the line in red) for this step size exhibits an inaccurate graph. When reading from left to right, one can see that the line segments aren&#8217;t accurate. However, on the graph below, both Euler&#8217;s Method and </span><span style="color:#C0C0C0;"><span style="color:#ff99cc;">MATLAB’s ode45 numerical solver look so similar they are almost exact. This graph is displayed when decreasing the step size.<br />
</span></span></p>
<p style="text-align:center;"><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/block%20two/?action=view&amp;current=13x3y-x2y2combo2jpg.jpg" target="_blank"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20two/13x3y-x2y2combo2jpg.jpg" border="0" alt="Photobucket" /></a></p>
<p><span style="color:#ff99cc;">For this block assignment I worked with Eric Donahoe.</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jcloutier1.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jcloutier1.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jcloutier1.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jcloutier1.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jcloutier1.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jcloutier1.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jcloutier1.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jcloutier1.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jcloutier1.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jcloutier1.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jcloutier1.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jcloutier1.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jcloutier1.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jcloutier1.wordpress.com/25/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jcloutier1.wordpress.com&amp;blog=6347397&amp;post=25&amp;subd=jcloutier1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jcloutier1.wordpress.com/2009/03/04/block-2-assignment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d531027de84f742f203422af9da6c271?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jcloutier1</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20two/2x4yeulerjpg.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20two/2x4ycombojpg.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20two/2x4ycombo2jpg.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20two/3-y2cosxeulerjpg.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20two/3-y2cosxcombojpg.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20two/9exp-yeulerjpg.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20two/9exp-ycombojpg.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20two/9exp-ycombo2jpg.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20two/10xyeulerjpg.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20two/10xyeulerjpg.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20two/10xycombojpg.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20two/12exp-x2eulerjpg.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20two/12exp-x2combojpg.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20two/13x3y-x2y2eulerjpg.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20two/13x3y-x2y2combojpg.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block%20two/13x3y-x2y2combo2jpg.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>
	</item>
		<item>
		<title>Block 1 Assignment</title>
		<link>http://jcloutier1.wordpress.com/2009/02/06/block-1-assignment/</link>
		<comments>http://jcloutier1.wordpress.com/2009/02/06/block-1-assignment/#comments</comments>
		<pubDate>Fri, 06 Feb 2009 13:51:37 +0000</pubDate>
		<dc:creator>jcloutier1</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://jcloutier1.wordpress.com/?p=4</guid>
		<description><![CDATA[Objective To solve the following problems graphically and numerically. Problem 1: Assigned problem: Problem 2: Number 18 in the text: Introduction For my first post, I will describe two differential equations using both graphically and numerically methods.A differential equation is a mathematical equation for an unknown function involving one or more variables relating the function [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jcloutier1.wordpress.com&amp;blog=6347397&amp;post=4&amp;subd=jcloutier1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h1><span style="color:#C0C0C0;"><strong>Objective</strong></span></h1>
<p><span style="color:#C0C0C0;">To solve the following problems graphically and numerically.</span></p>
<p><span style="color:#C0C0C0;">Problem 1:<br />
Assigned problem:<br />
<img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdy%7D%7Bdx%7D%3Dy%5E2%2Bt+&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac{dy}{dx}=y^2+t ' title='&#92;frac{dy}{dx}=y^2+t ' class='latex' /></span></p>
<p><span style="color:#C0C0C0;">Problem 2:<br />
Number 18 in the text:<br />
<img src='http://s0.wp.com/latex.php?latex=%5Cfrac+%7Bdy%7D+%7Bdt%7D+%3D+x%2By+&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac {dy} {dt} = x+y ' title='&#92;frac {dy} {dt} = x+y ' class='latex' /></span></p>
<p><span style="color:#C0C0C0;"><br />
</span></p>
<h1><span style="color:#ff99cc;"><strong>Introduction</strong></span></h1>
<p><span style="color:#ff99cc;">For my first post, I will describe two differential equations using both graphically and numerically methods.A differential equation is a mathematical equation for an unknown function involving one or more variables relating the function itself and its values and of its derivatives of different orders. Differential Equations occur whenever a deterministic relationship involving endless changing quantities (represented by functions) and their rates of change (expressed as derivatives) is known or suggested. The equations I will be explaining are <img src='http://s0.wp.com/latex.php?latex=%5Cfrac+%7Bdy%7D+%7Bdt%7D+%3D+y%5E2+%2B+t+&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac {dy} {dt} = y^2 + t ' title='&#92;frac {dy} {dt} = y^2 + t ' class='latex' /> &#8212;which was a problem given&#8212; and <img src='http://s0.wp.com/latex.php?latex=dy%3Dx%2By+&amp;bg=000000&amp;fg=808080&amp;s=0' alt='dy=x+y ' title='dy=x+y ' class='latex' /> &#8212;which is problem 18 in the text, A Course in Ordinary Differential Equations by Randall J. Swift and Stephen A. Wirkus.</span></p>
<p style="text-align:center;">
<p style="text-align:center;"><span style="color:#ff99cc;"><span style="color:#C0C0C0;"><strong><br />
</strong></span></span></p>
<h2 style="text-align:center;"><span style="color:#ff99cc;"><span style="color:#C0C0C0;"><strong>For the problem given: ( <img src='http://s0.wp.com/latex.php?latex=%5Cfrac+%7Bdy%7D+%7Bdt%7D+%3D+y%5E2+%2B+t+&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac {dy} {dt} = y^2 + t ' title='&#92;frac {dy} {dt} = y^2 + t ' class='latex' /> )</strong></span></span></h2>
<p style="text-align:left;"><span style="color:#ff99cc;">Using MATLAB, I will begin by plotting a direction field for this differential equation. To create the plot, the code for MATLAB I used was (using page 85 in the text as a guide):</span></p>
<p><span style="color:#C0C0C0;">&gt; [t,y]=Euler1(&#8216;Example1&#8242;,[0,2],1,.01);<br />
&gt; [T,Y]=meshgrid(-1:.5:3,-1:.5:2);<br />
&gt; DY=Y.^2+T;<br />
&gt; DT=ones(size(DY));<br />
&gt; DW=sqrt(DT.^2+DY.^2);<br />
&gt; quiver(T,Y,DT./DW,DY./DW,.2,&#8217;.');<br />
&gt; xlabel (&#8216;t&#8217;)<br />
&gt; ylabel (&#8216;y&#8217;)</span></p>
<p><span style="color:#ff99cc;"><strong>As a function:</strong><br />
<span style="color:#C0C0C0;">&gt; function f=Example2(tn,yn)<br />
&gt; f=(yn.^2+tn)</span></span></p>
<p><span style="color:#ff99cc;">*The meshgrid command used above generates X and Y arrays for 3-D plots. Each line segment has an associated length by default that is scaled so all the vectors fit in the window. Tangent lines of varying size would make the direction field very confusing, so each line is scaled by its magnitude to have the same length of 1. </span></p>
<p><span style="color:#ff99cc;">*The quiver command used above creates a &#8220;quiver&#8221; or velocity plot&#8211;which is a plot that displays velocity vectors as arrows by default. The ‘.’ is used as the last entry of the quiver command to tell MATLAB not to put an arrow to produce clearer graphs to see possible solution curves.</span></p>
<p><span style="color:#ff99cc;">The MATLAB code I used for the Euler&#8217;s Method is:</span></p>
<p><span style="color:#C0C0C0;">&gt; function [xout,yout]=Euler1(fname,xvals,y0,h)<br />
&gt; x0=xvals(1);xf=xvals(2);<br />
&gt; xn=x0;<br />
&gt; yn=y0;<br />
&gt; xout=xn;<br />
&gt; yout=yn;<br />
&gt; steps=(xf-x0)/h;<br />
&gt; for j=1:steps<br />
&gt; fn=feval(fname,xn,yn);<br />
&gt; xn=xn+h;<br />
&gt; yn=yn+h*fn;<br />
&gt; xout=[xout;xn];<br />
&gt; yout=[yout;yn];<br />
&gt; end</span></p>
<p style="text-align:center;"><span style="color:#ff99cc;"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/Example1b.jpg" alt="" /></span></p>
<p><span style="color:#ff99cc;">By adjusting the code to :</span></p>
<p><span style="color:#C0C0C0;">&gt; [T,Y]=meshgrid(-1:.5:3,-1:.5:2);</span></p>
<p><span style="color:#ff99cc;">You will receive the following plot:<br />
</span></p>
<p style="text-align:left;"><span style="color:#ff99cc;"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/Example1a.jpg" alt="" /></span></p>
<p style="text-align:left;"><span style="color:#ff99cc;">The first graph displays a large view of the direction field while the second graph displays a better view of what is going on. It is easier to see that the tangent lines have a &#8220;swooping&#8221; effect from left to right. The more the graph goes towards the right the direction field seems to become more vertical.</span></p>
<p style="text-align:left;"><span style="color:#ff99cc;">The Euler approximation yielded an appropriate solution to this equation. </span></p>
<p style="text-align:left;"><span style="color:#ff99cc;">Displayed below is the direction field lines that are tangent to the solution curve indicating it is a successful solution.</span></p>
<p style="text-align:center;"><a href="http://s616.photobucket.com/albums/tt250/jcloutier1/?action=view&amp;current=block1assignment.jpg" target="_blank"><img src="http://i616.photobucket.com/albums/tt250/jcloutier1/block1assignment.jpg" border="0" alt="Photobucket" /></a></p>
<p style="text-align:left;">
<p style="text-align:left;">
<p style="text-align:left;">
<p style="text-align:left;">
<h2 style="text-align:center;"><span style="color:#ff99cc;"><strong><span style="color:#C0C0C0;">For problem 18 in the text: ( </span></strong><span style="color:#C0C0C0;"><strong><img src='http://s0.wp.com/latex.php?latex=%5Cfrac+%7Bdy%7D+%7Bdt%7D+%3D+x%2By+&amp;bg=000000&amp;fg=808080&amp;s=0' alt='&#92;frac {dy} {dt} = x+y ' title='&#92;frac {dy} {dt} = x+y ' class='latex' /> )</strong></span></span></h2>
<p><span style="color:#C0C0C0;">&gt; [x,y]=Euler1(&#8216;Example2&#8242;,[0,2],1,.01);</span></p>
<p><span style="color:#C0C0C0;">&gt; [X,Y]=meshgrid(-1:.5:3,-1:.5:2);</span></p>
<p><span style="color:#C0C0C0;">&gt; DY=X+Y;</span></p>
<p><span style="color:#C0C0C0;">&gt; DX=ones(size(DY));</span></p>
<p><span style="color:#C0C0C0;">&gt; DW=sqrt(DX.^2+DY.^2);</span></p>
<p><span style="color:#C0C0C0;">&gt; quiver(X,Y,DX./DW,DY./DW,.2,&#8217;.');</span></p>
<p><span style="color:#C0C0C0;">&gt; hold on</span></p>
<p><span style="color:#C0C0C0;">&gt; plot (x,y)</span></p>
<p><span style="color:#C0C0C0;">&gt; hold off</span></p>
<p><span style="color:#ff99cc;"><strong>As a function:</strong><br />
<span style="color:#C0C0C0;">&gt; function f=Example2(x,y)<br />
&gt; f= x+y</span></span></p>
<p style="text-align:center;"><span style="color:#ff99cc;"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/Example2b.jpg" alt="" /></span></p>
<p style="text-align:center;"><span style="color:#ff99cc;"><img class="aligncenter" src="http://i616.photobucket.com/albums/tt250/jcloutier1/Example2a.jpg" alt="" /></span></p>
<p style="text-align:center;">
<p style="text-align:left;"><span style="color:#ff99cc;">Like the previous, assigned problem, my second example shows tangent lines have a &#8220;swooping&#8221; effect from left to right. Also, the more the graph goes towards the right the direction field seems to become more vertical.</span></p>
<p style="text-align:left;"><span style="color:#ff99cc;">The Euler approximation yielded an appropriate solution to this equation. </span></p>
<p style="text-align:left;"><span style="color:#ff99cc;">Displayed below is the direction field lines that are tangent to the solution curve indicating it is a successful solution.</span></p>
<p style="text-align:center;"><span style="color:#ff99cc;"><br />
</span><br />
<a href="http://s616.photobucket.com/albums/tt250/jcloutier1/?action=view&amp;current=block1prob18.jpg" target="_blank"><img src="http://i616.photobucket.com/albums/tt250/jcloutier1/block1prob18.jpg" border="0" alt="Photobucket" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jcloutier1.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jcloutier1.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jcloutier1.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jcloutier1.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jcloutier1.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jcloutier1.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jcloutier1.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jcloutier1.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jcloutier1.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jcloutier1.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jcloutier1.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jcloutier1.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jcloutier1.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jcloutier1.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jcloutier1.wordpress.com&amp;blog=6347397&amp;post=4&amp;subd=jcloutier1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jcloutier1.wordpress.com/2009/02/06/block-1-assignment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d531027de84f742f203422af9da6c271?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jcloutier1</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/Example1b.jpg" medium="image" />

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/Example1a.jpg" medium="image" />

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block1assignment.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/Example2b.jpg" medium="image" />

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/Example2a.jpg" medium="image" />

		<media:content url="http://i616.photobucket.com/albums/tt250/jcloutier1/block1prob18.jpg" medium="image">
			<media:title type="html">Photobucket</media:title>
		</media:content>
	</item>
	</channel>
</rss>
