<?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>Natrix's Weblog</title>
	<atom:link href="http://natrix.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://natrix.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Mon, 31 Oct 2011 19:44:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='natrix.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Natrix's Weblog</title>
		<link>http://natrix.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://natrix.wordpress.com/osd.xml" title="Natrix&#039;s Weblog" />
	<atom:link rel='hub' href='http://natrix.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Differential Equations: Epilogue</title>
		<link>http://natrix.wordpress.com/2009/03/29/differential-equations-epilogue/</link>
		<comments>http://natrix.wordpress.com/2009/03/29/differential-equations-epilogue/#comments</comments>
		<pubDate>Sun, 29 Mar 2009 01:44:49 +0000</pubDate>
		<dc:creator>natrix</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://natrix.wordpress.com/?p=173</guid>
		<description><![CDATA[This is one of the few college level classes I have taken where I was able to both enjoy the structure of this course and learn far more than just the core mathematics goals. Although vector fields, Euler&#8217;s method, phase space, initial conditions, and the concept of domain transforms were the main objective of this [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=natrix.wordpress.com&amp;blog=4702616&amp;post=173&amp;subd=natrix&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is one of the few college level classes I have taken where I was able to both enjoy the structure of this course and learn far more than just the core mathematics goals. Although vector fields, Euler&#8217;s method, phase space, initial conditions, and the concept of domain transforms were the main objective of this course, there was much more offered. Over the course of the semester I was able to increase my proficiency with MATLAB in addition to an introduction to the LaTeX typesetting system. This course also provided an excellent HTML refresher course. I would recommend this class to anyone with an interest in calculus, engineering, or technical writing.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/natrix.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/natrix.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/natrix.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/natrix.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/natrix.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/natrix.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/natrix.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/natrix.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/natrix.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/natrix.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/natrix.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/natrix.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/natrix.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/natrix.wordpress.com/173/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=natrix.wordpress.com&amp;blog=4702616&amp;post=173&amp;subd=natrix&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://natrix.wordpress.com/2009/03/29/differential-equations-epilogue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/68561fb437f4e16d78499ac7d6d629c9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">natrix</media:title>
		</media:content>
	</item>
		<item>
		<title>Fourth 3-week block task</title>
		<link>http://natrix.wordpress.com/2008/12/02/fourth-3-week-block-task/</link>
		<comments>http://natrix.wordpress.com/2008/12/02/fourth-3-week-block-task/#comments</comments>
		<pubDate>Tue, 02 Dec 2008 16:59:33 +0000</pubDate>
		<dc:creator>natrix</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://natrix.wordpress.com/?p=143</guid>
		<description><![CDATA[The Laplace Transform and The Big Picture The Laplace Transform is a method discovered by Pierre-Simon Laplace (1749 &#8211; 1827), a French mathematician and astronomer. The transform converts an ordinary differential equation in one domain into a much easier to solve algebraic equation in a different domain, then the solved algebraic equation is then converted [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=natrix.wordpress.com&amp;blog=4702616&amp;post=143&amp;subd=natrix&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The Laplace Transform and The Big Picture</p>
<p>The Laplace Transform is a method discovered by Pierre-Simon Laplace (1749 &#8211; 1827), a French mathematician and astronomer. The transform converts an ordinary differential equation in one domain into a much easier to solve algebraic equation in a different domain, then the solved algebraic equation is then converted back into the original domain.</p>
<p>The definition of the Laplace Transform is</p>
<p><img src='http://s0.wp.com/latex.php?latex=F%28s%29+%3D+%5Cmathscr%7BL%7D%5Bf%28t%29%5D+%3D+%5Cint_%7B-%5Cinfty%7D%5E%7B0%7De%5E%7B-st%7Df%28t%29dt&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='F(s) = &#92;mathscr{L}[f(t)] = &#92;int_{-&#92;infty}^{0}e^{-st}f(t)dt' title='F(s) = &#92;mathscr{L}[f(t)] = &#92;int_{-&#92;infty}^{0}e^{-st}f(t)dt' class='latex' /></p>
<p>for <img src='http://s0.wp.com/latex.php?latex=t+%5Cge+0&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='t &#92;ge 0' title='t &#92;ge 0' class='latex' />, real numbers only.</p>
<p><b>Example 1, solve the function</b></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdx%7D%7Bdt%7D+%2B+x+%3D+e%5E%7B-t%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;frac{dx}{dt} + x = e^{-t}' title='&#92;frac{dx}{dt} + x = e^{-t}' class='latex' /></p>
<p>for <img src='http://s0.wp.com/latex.php?latex=x%28t%29&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='x(t)' title='x(t)' class='latex' /></p>
<p>the Laplace Transform is applied on it yeilding <img src='http://s0.wp.com/latex.php?latex=%5Cmathscr%7BL%7D%5Bx%5D+%3D+%5Cfrac%7B1%7D%7B%28s%2B1%29%5E2%7D+%2B+%5Cfrac%7Ba%7D%7Bs%2B1%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;mathscr{L}[x] = &#92;frac{1}{(s+1)^2} + &#92;frac{a}{s+1}' title='&#92;mathscr{L}[x] = &#92;frac{1}{(s+1)^2} + &#92;frac{a}{s+1}' class='latex' /> where <img src='http://s0.wp.com/latex.php?latex=a+%3D+x%280%29&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='a = x(0)' title='a = x(0)' class='latex' /></p>
<p>Using a table, each sum is converted back into the t domain, yeilding <img src='http://s0.wp.com/latex.php?latex=x%28t%29+%3D+e%5E%7B-t%7D%28t+%2B+a%29&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='x(t) = e^{-t}(t + a)' title='x(t) = e^{-t}(t + a)' class='latex' /></p>
<p>Original function</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdx%7D%7Bdt%7D+%2B+x+%3D+e%5E%7B-t%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;frac{dx}{dt} + x = e^{-t}' title='&#92;frac{dx}{dt} + x = e^{-t}' class='latex' /></p>
<p>using formula <img src='http://s0.wp.com/latex.php?latex=%5Cmathscr%7BL%7D%5B%5Cfrac%7Bdx%7D%7Bdt%7D%5D+%3D+-x%280%29+%2B+s%5Cmathscr%7BL%7D%5Bx%5D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;mathscr{L}[&#92;frac{dx}{dt}] = -x(0) + s&#92;mathscr{L}[x]' title='&#92;mathscr{L}[&#92;frac{dx}{dt}] = -x(0) + s&#92;mathscr{L}[x]' class='latex' /></p>
<p>through substitution</p>
<p><img src='http://s0.wp.com/latex.php?latex=-x%280%29+%2B+s%5Cmathscr%7BL%7D%5Bx%5D+%2B+%5Cmathscr%7BL%7D%5Bx%5D+%3D+%5Cmathscr%7BL%7D%5Be%5E%7B-t%7D%5D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='-x(0) + s&#92;mathscr{L}[x] + &#92;mathscr{L}[x] = &#92;mathscr{L}[e^{-t}]' title='-x(0) + s&#92;mathscr{L}[x] + &#92;mathscr{L}[x] = &#92;mathscr{L}[e^{-t}]' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=s%5Cmathscr%7BL%7D%5Bx%5D+%2B+%5Cmathscr%7BL%7D%5Bx%5D+%3D+%5Cmathscr%7BL%7D%5Be%5E%7B-t%7D%5D+%2B+x%280%29&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='s&#92;mathscr{L}[x] + &#92;mathscr{L}[x] = &#92;mathscr{L}[e^{-t}] + x(0)' title='s&#92;mathscr{L}[x] + &#92;mathscr{L}[x] = &#92;mathscr{L}[e^{-t}] + x(0)' class='latex' /></p>
<p>factoring <img src='http://s0.wp.com/latex.php?latex=%5Cmathscr%7BL%7D%5Bx%5D%28s+%2B+1%29+%3D+%5Cmathscr%7BL%7D%5Be%5E%7B-t%7D%5D+%2B+x%280%29&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;mathscr{L}[x](s + 1) = &#92;mathscr{L}[e^{-t}] + x(0)' title='&#92;mathscr{L}[x](s + 1) = &#92;mathscr{L}[e^{-t}] + x(0)' class='latex' /></p>
<p>using <img src='http://s0.wp.com/latex.php?latex=%5Cmathscr%7BL%7D%5Be%5E%7B-t%7D%5D+%3D+%5Cfrac%7B1%7D%7Bs%2B1%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;mathscr{L}[e^{-t}] = &#92;frac{1}{s+1}' title='&#92;mathscr{L}[e^{-t}] = &#92;frac{1}{s+1}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cmathscr%7BL%7D%5Bx%5D%28s+%2B+1%29+%3D+%5Cfrac%7B1%7D%7Bs%2B1%7D+%2B+x%280%29&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;mathscr{L}[x](s + 1) = &#92;frac{1}{s+1} + x(0)' title='&#92;mathscr{L}[x](s + 1) = &#92;frac{1}{s+1} + x(0)' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cmathscr%7BL%7D%5Bx%5D+%3D+%5Cfrac%7B%5Cfrac%7B1%7D%7Bs%2B1%7D%7D%7Bs%2B1%7D+%2B+%5Cfrac%7Bx%280%29%7D%7Bs%2B1%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;mathscr{L}[x] = &#92;frac{&#92;frac{1}{s+1}}{s+1} + &#92;frac{x(0)}{s+1}' title='&#92;mathscr{L}[x] = &#92;frac{&#92;frac{1}{s+1}}{s+1} + &#92;frac{x(0)}{s+1}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cmathscr%7BL%7D%5Bx%5D+%3D+%5Cfrac%7B1%7D%7B%28s%2B1%29%5E2%7D+%2B+%5Cfrac%7Bx%280%29%7D%7Bs%2B1%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;mathscr{L}[x] = &#92;frac{1}{(s+1)^2} + &#92;frac{x(0)}{s+1}' title='&#92;mathscr{L}[x] = &#92;frac{1}{(s+1)^2} + &#92;frac{x(0)}{s+1}' class='latex' /></p>
<p>After we solve for <img src='http://s0.wp.com/latex.php?latex=%5Cmathscr%7BL%7D%5Bx%5D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;mathscr{L}[x]' title='&#92;mathscr{L}[x]' class='latex' /> we plug the solution into Matlab using the &#8220;ilaplace&#8221; function which solves for the inverse Laplace transform</p>
<blockquote><p>&gt;&gt; syms a s t; ilaplace(a/(s+1)+1/((s+1)^2),s,t)</p>
<p>ans =</p>
<p>t/exp(t) + a/exp(t)</p></blockquote>
<p>Simplifying the above answer</p>
<p><img src='http://s0.wp.com/latex.php?latex=x%28t%29+%3D+%5Cfrac%7Bt%7D%7Be%5Et%7D+%2B+%5Cfrac%7Ba%7D%7Be%5Et%7D+%3D+te%5E%7B-t%7D+%2B+ae%5E%7B-t%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='x(t) = &#92;frac{t}{e^t} + &#92;frac{a}{e^t} = te^{-t} + ae^{-t}' title='x(t) = &#92;frac{t}{e^t} + &#92;frac{a}{e^t} = te^{-t} + ae^{-t}' class='latex' /></p>
<p>after factoring</p>
<p><img src='http://s0.wp.com/latex.php?latex=x%28t%29+%3D+e%5E%7B-t%7D%28t+%2B+a%29&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='x(t) = e^{-t}(t + a)' title='x(t) = e^{-t}(t + a)' class='latex' /></p>
<p><a href="http://natrix.files.wordpress.com/2008/12/image001.png"><img class="alignnone size-full wp-image-154" title="image001" src="http://natrix.files.wordpress.com/2008/12/image001.png" alt="image001" width="683" height="467" /></a></p>
<p>t	x(t), a = -1		x(t), a = 0			x(t), a = 1<br />
0	=(2.7818^-A2)*(A2-1)		=(2.7818^-A2)*(A2)			=(2.7818^-A2)*(A2+1)<br />
0.1	=(2.7818^-A3)*(A3-1)		=(2.7818^-A3)*(A3)			=(2.7818^-A3)*(A3+1)<br />
0.2	-0.651965788		0.162991447			0.977948681<br />
0.3	-0.514991747		0.220710749			0.956413244<br />
0.4	&#8230;		&#8230;			&#8230;</p>
<p><b>Example 2, solve the equation</b></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bd%5E2x%7D%7Bdt%5E2%7D+-2%5Cfrac%7Bdx%7D%7Bdt%7D+%2B5x+%3D+0&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;frac{d^2x}{dt^2} -2&#92;frac{dx}{dt} +5x = 0' title='&#92;frac{d^2x}{dt^2} -2&#92;frac{dx}{dt} +5x = 0' class='latex' /></p>
<p>Where <img src='http://s0.wp.com/latex.php?latex=%5Cmathscr%7BL%7D%5Bx%28t%29%5D+%3D+%5Cfrac%7B-3a%7D%7B-s%5E2%2B2s-5%7D+-+%5Cfrac%7Bb%7D%7B-s%5E2%2B2s-5%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;mathscr{L}[x(t)] = &#92;frac{-3a}{-s^2+2s-5} - &#92;frac{b}{-s^2+2s-5}' title='&#92;mathscr{L}[x(t)] = &#92;frac{-3a}{-s^2+2s-5} - &#92;frac{b}{-s^2+2s-5}' class='latex' /> where <img src='http://s0.wp.com/latex.php?latex=a+%3D+x%280%29&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='a = x(0)' title='a = x(0)' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=b+%3D+%5Cfrac%7Bdx%7D%7Bdt%7D%280%29&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='b = &#92;frac{dx}{dt}(0)' title='b = &#92;frac{dx}{dt}(0)' class='latex' /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/natrix.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/natrix.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/natrix.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/natrix.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/natrix.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/natrix.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/natrix.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/natrix.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/natrix.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/natrix.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/natrix.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/natrix.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/natrix.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/natrix.wordpress.com/143/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=natrix.wordpress.com&amp;blog=4702616&amp;post=143&amp;subd=natrix&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://natrix.wordpress.com/2008/12/02/fourth-3-week-block-task/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/68561fb437f4e16d78499ac7d6d629c9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">natrix</media:title>
		</media:content>

		<media:content url="http://natrix.files.wordpress.com/2008/12/image001.png" medium="image">
			<media:title type="html">image001</media:title>
		</media:content>
	</item>
		<item>
		<title>Third 3-week block task</title>
		<link>http://natrix.wordpress.com/2008/10/23/third-3-week-block-task/</link>
		<comments>http://natrix.wordpress.com/2008/10/23/third-3-week-block-task/#comments</comments>
		<pubDate>Thu, 23 Oct 2008 19:12:00 +0000</pubDate>
		<dc:creator>natrix</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://natrix.wordpress.com/?p=91</guid>
		<description><![CDATA[Overview: In this third 3 week block, systems of linear differential equations will be the focus. The definition, possible solution forms, and some graphical examples will be presented and discussed. Part 1: Systems of linear differential equations A system of linear differential equations is a set of linked formulas in the form Where a, b, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=natrix.wordpress.com&amp;blog=4702616&amp;post=91&amp;subd=natrix&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Overview:</strong></p>
<p>In this third 3 week block, systems of linear differential equations will be the focus. The definition, possible solution forms, and some graphical examples will be presented and discussed.</p>
<p><strong>Part 1: Systems of linear differential equations</strong></p>
<p>A system of linear differential equations is a set of linked formulas in the form</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdx%7D%7Bdt%7D%3Dax%2Bby&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;frac{dx}{dt}=ax+by' title='&#92;frac{dx}{dt}=ax+by' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdy%7D%7Bdt%7D%3Dcx%2Bdy&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;frac{dy}{dt}=cx+dy' title='&#92;frac{dy}{dt}=cx+dy' class='latex' /></p>
<p>Where a, b, c, d are constants. In other systems of linear DE&#8217;s, these constants can be variables with respect to t but for this project they will be constants.</p>
<p><strong>Part 2: The linear transformation, and eigenvalues</strong></p>
<p>A linear transformation is a function between two vector spaces where linear interpolation is preserved. In other words, by knowing the characteristics of a vector (the magnitude and direction) at any two points, it is possible to interpolate any vector on a line connecting the two points. For example, on the line AB, the vector originating at point C can be accurately modeled by knowing the vectors at points A and B.</p>
<p><a href="http://natrix.files.wordpress.com/2008/11/linearstuff.jpg"><img class="alignnone size-full wp-image-114" title="linearstuff" src="http://natrix.files.wordpress.com/2008/11/linearstuff.jpg" alt="linearstuff" width="661" height="630" /></a></p>
<p><strong>Part 3: The three possible general vector field cases, and invariant lines<br />
</strong></p>
<p>There are three possible general shapes for the vector fields for a system of two linked linear DE&#8217;s &#8211; eigenvalues with real roots (<img src='http://s0.wp.com/latex.php?latex=1%2C+-2&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='1, -2' title='1, -2' class='latex' />), complex roots (<img src='http://s0.wp.com/latex.php?latex=1%5Cpm+i&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='1&#92;pm i' title='1&#92;pm i' class='latex' />), and imaginary roots (<img src='http://s0.wp.com/latex.php?latex=%5Cpm+i&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;pm i' title='&#92;pm i' class='latex' />).</p>
<p><strong>Case 1a, two real roots:</strong></p>
<p>Original function:</p>
<p><img src='http://s0.wp.com/latex.php?latex=T%5B%28x%2Cy%29%5D+%3D+%28x%2By%2C+x%29&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='T[(x,y)] = (x+y, x)' title='T[(x,y)] = (x+y, x)' class='latex' /></p>
<p>Solving for eigenvalues by hand:</p>
<p><img src='http://s0.wp.com/latex.php?latex=x%2By+%3D+%5Clambda+x&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='x+y = &#92;lambda x' title='x+y = &#92;lambda x' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=x+%3D+%5Clambda+y&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='x = &#92;lambda y' title='x = &#92;lambda y' class='latex' />,  <img src='http://s0.wp.com/latex.php?latex=y+%3D+%5Cfrac%7B1%7D%7B%5Clambda%7D+x&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='y = &#92;frac{1}{&#92;lambda} x' title='y = &#92;frac{1}{&#92;lambda} x' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Clambda+y+%2B+y+%3D+%5Clambda%5E2+y&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;lambda y + y = &#92;lambda^2 y' title='&#92;lambda y + y = &#92;lambda^2 y' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Clambda+%3D+1+%2B+%5Cfrac%7B1%7D%7B%5Clambda%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;lambda = 1 + &#92;frac{1}{&#92;lambda}' title='&#92;lambda = 1 + &#92;frac{1}{&#92;lambda}' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7B1%7D%7B%5Clambda%7D+%3D+%5Clambda+-+1&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;frac{1}{&#92;lambda} = &#92;lambda - 1' title='&#92;frac{1}{&#92;lambda} = &#92;lambda - 1' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Clambda%5E2+-+%5Clambda+-1+%3D+0&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;lambda^2 - &#92;lambda -1 = 0' title='&#92;lambda^2 - &#92;lambda -1 = 0' class='latex' /></p>
<p>&#8230;after solving for the roots using the quadratic formula&#8230;</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7B1+%5Cpm+%5Csqrt%7B5%7D%7D%7B2%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;frac{1 &#92;pm &#92;sqrt{5}}{2}' title='&#92;frac{1 &#92;pm &#92;sqrt{5}}{2}' class='latex' /></p>
<p>Therefore, the equation of the &#8220;creases&#8221; is</p>
<p><img src='http://s0.wp.com/latex.php?latex=y+%3D+%28%7B%5Cfrac%7B1+%5Cpm+%5Csqrt%7B5%7D%7D%7B2%7D%7D%29%5E%7B-1%7D+x&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='y = ({&#92;frac{1 &#92;pm &#92;sqrt{5}}{2}})^{-1} x' title='y = ({&#92;frac{1 &#92;pm &#92;sqrt{5}}{2}})^{-1} x' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=y+%3D+0.618+x&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='y = 0.618 x' title='y = 0.618 x' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=y+%3D+-1.618+x&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='y = -1.618 x' title='y = -1.618 x' class='latex' /></p>
<p>Solving for eigenvalues using Matlab (the easy way):</p>
<p>Eiguenvalues can be solved in Matlab by entering a, b, c, and d into a matrix, then performing the eig() function upon the matrix. The matrix is entered with the form</p>
<p><code><img src='http://s0.wp.com/latex.php?latex=A+%3D+%5Cbegin%7Bvmatrix%7D1%261%5C%5C+1%260+%5Cend%7Bvmatrix%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='A = &#92;begin{vmatrix}1&amp;1&#92;&#92; 1&amp;0 &#92;end{vmatrix}' title='A = &#92;begin{vmatrix}1&amp;1&#92;&#92; 1&amp;0 &#92;end{vmatrix}' class='latex' /></code></p>
<blockquote><p><em> &gt;&gt; A = [1 1; 1 0]</em></p>
<p><em>A =</em></p>
<p><em> 1     1<br />
1     0</em></p>
<p><em>&gt;&gt; eig(A)</em></p>
<p><em>ans =</em></p>
<p><em> -0.6180<br />
1.6180</em></p></blockquote>
<p>-0.6180 and 1.6180 match the values calculated by hand, which is a good thing.</p>
<p>Mathametica code:</p>
<blockquote>
<p style="padding-left:30px;"><em>Needs["VectorFieldPlots`"];</em></p>
<p style="padding-left:30px;"><em>A1 = VectorFieldPlot[{x + y, x}, {x, -1, 1}, {y, -1, 1}, PlotPoints -&gt; 20, ScaleFactor &gt; 0.2, Axes -&gt; True];<br />
A2 = Plot[-x*(1 + Sqrt[5])/2, {x, -1, 1}];<br />
A3 = Plot[x*(1 - Sqrt[5])/2, {x, -1.5, 1.5}];<br />
Show[A1, A2, A3]</em></p></blockquote>
<p><a href="http://natrix.files.wordpress.com/2008/10/crap.jpg"><img class="alignnone size-full wp-image-92" title="crap" src="http://natrix.files.wordpress.com/2008/10/crap.jpg" alt="" width="319" height="432" /></a></p>
<p>Here, the invariant lines at <img src='http://s0.wp.com/latex.php?latex=y+%3D+-0.618x&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='y = -0.618x' title='y = -0.618x' class='latex' /> and $\latex y = 1.618x$ are the &#8220;creases&#8221; where vectors lying on the on these lines are exactly parallel to them.</p>
<p>It is possible to have two real roots which are both positive or negative &#8211; a solution with two positive roots</p>
<p><strong>Case 1b, one real root</strong></p>
<p>Using the equation <img src='http://s0.wp.com/latex.php?latex=T%5B%28x%2Cy%29%5D+%3D+%28x%2C+y%29&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='T[(x,y)] = (x, y)' title='T[(x,y)] = (x, y)' class='latex' /></p>
<p>we can solve for the eigenvalues using the following Matlab code</p>
<blockquote><p>&gt;&gt; a = [1 0; 0 1]</p>
<p>a =</p>
<p>1     0<br />
0     1</p>
<p>&gt;&gt; eig(a)</p>
<p>ans =</p>
<p>1<br />
1</p></blockquote>
<blockquote><p>Needs["VectorFieldPlots`"];<br />
VectorFieldPlot[{x, y}, {x, -1, 1}, {y, -1, 1}, PlotPoints -&gt; 20,<br />
ScaleFactor -&gt; 0.2, Axes -&gt; True]</p></blockquote>
<p><a href="http://natrix.files.wordpress.com/2008/11/onerealroot.png"><img class="alignnone size-full wp-image-130" title="onerealroot" src="http://natrix.files.wordpress.com/2008/11/onerealroot.png" alt="onerealroot" width="360" height="359" /></a></p>
<p>Similarly, if the eigenvalue was -1 instead of 1, the vectors would be pointing inward instead of outward.</p>
<p><strong>Case 1c, two positive real roots</strong><br />
<img src='http://s0.wp.com/latex.php?latex=T%5B%28x%2Cy%29%5D+%3D+%283x%2B3y%2C+x%2B3y%29&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='T[(x,y)] = (3x+3y, x+3y)' title='T[(x,y)] = (3x+3y, x+3y)' class='latex' /></p>
<blockquote><p>&gt;&gt; a = [3 3; 1 3]; eig(a)</p>
<p>ans =</p>
<p>4.7321<br />
1.2679</p>
<p>&gt;&gt;</p></blockquote>
<blockquote><p>Needs["VectorFieldPlots`"];<br />
A1 = VectorFieldPlot[{3*x + 3*y, x + 3*y}, {x, -1, 1}, {y, -1, 1},<br />
PlotPoints -&gt; 20, ScaleFactor -&gt; 0.2, Axes -&gt; True]<br />
A2 = Plot[x*4.7321, {x, -1/4.7321, 1/4.7321}];<br />
A3 = Plot[x*1.2679, {x, -1/1.2679, 1/1.2679}];<br />
Show[A1, A2, A3]</p></blockquote>
<p><a href="http://natrix.files.wordpress.com/2008/11/twopositiveroots.png"><a href="http://natrix.files.wordpress.com/2008/11/twopositiveroots1.png"><img class="alignnone size-full wp-image-132" title="twopositiveroots1" src="http://natrix.files.wordpress.com/2008/11/twopositiveroots1.png" alt="twopositiveroots1" width="360" height="343" /></a><br />
</a></p>
<p>Something isn&#8217;t quite right here&#8230; the graph above needs work</p>
<p><strong>Case 2, two complex roots:</strong></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdx%7D%7Bdt%7D+%3D+-x%2By&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;frac{dx}{dt} = -x+y' title='&#92;frac{dx}{dt} = -x+y' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdy%7D%7Bdt%7D+%3D+-x-y&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;frac{dy}{dt} = -x-y' title='&#92;frac{dy}{dt} = -x-y' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=T%5B%28x%2Cy%29%5D+%3D+%28-x%2By%2C+-x-y%29&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='T[(x,y)] = (-x+y, -x-y)' title='T[(x,y)] = (-x+y, -x-y)' class='latex' /></p>
<p>Eigen values in Matlab</p>
<p>A, C, D = -1</p>
<p>B = 1</p>
<blockquote><p><em>&gt;&gt; A = [-1 1; -1 -1]; eig(A)</em></p>
<p><em>ans =</em></p>
<p><em>-1.0000 + 1.0000i<br />
-1.0000 &#8211; 1.0000i</em></p></blockquote>
<p>So the eiguen values for this system of linear DE&#8217;s are <img src='http://s0.wp.com/latex.php?latex=-1+%5Cpm+i&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='-1 &#92;pm i' title='-1 &#92;pm i' class='latex' /><br />
Graphing the vector field in Mathematica&#8230;</p>
<blockquote><p><em>Needs["VectorFieldPlots`"];<br />
VectorFieldPlot[{-x + y, -x - y}, {x, -1, 1}, {y, -1, 1},<br />
PlotPoints -&gt; 20, ScaleFactor -&gt; 0.2, Axes -&gt; True]</em></p></blockquote>
<p><a href="http://natrix.files.wordpress.com/2008/10/spiral.jpg"><img class="alignnone size-full wp-image-103" title="spiral" src="http://natrix.files.wordpress.com/2008/10/spiral.jpg" alt="" width="360" height="357" /></a></p>
<p>Case 3, two imaginary roots:</p>
<p>Calculating eiguenvalues in Matlab:</p>
<blockquote><p>&gt;&gt; A = [0 1; -1 0]</p>
<p>A =</p>
<p>0     1<br />
-1     0</p>
<p>&gt;&gt; eig(A)</p>
<p>ans =</p>
<p>0 + 1.0000i<br />
0 &#8211; 1.0000i</p></blockquote>
<p><span>Needs["VectorFieldPlots`"];<br />
VectorFieldPlot[{y, -x}, {x, -1, 1}, {y, -1, 1}, PlotPoints -&gt; 20,<br />
ScaleFactor -&gt; 0.2, Axes -&gt; True]</span></p>
<p><span><a href="http://natrix.files.wordpress.com/2008/11/case3.jpg"><img class="alignnone size-full wp-image-109" title="case3" src="http://natrix.files.wordpress.com/2008/11/case3.jpg" alt="case3" width="360" height="359" /></a></span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/natrix.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/natrix.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/natrix.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/natrix.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/natrix.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/natrix.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/natrix.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/natrix.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/natrix.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/natrix.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/natrix.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/natrix.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/natrix.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/natrix.wordpress.com/91/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=natrix.wordpress.com&amp;blog=4702616&amp;post=91&amp;subd=natrix&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://natrix.wordpress.com/2008/10/23/third-3-week-block-task/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/68561fb437f4e16d78499ac7d6d629c9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">natrix</media:title>
		</media:content>

		<media:content url="http://natrix.files.wordpress.com/2008/11/linearstuff.jpg" medium="image">
			<media:title type="html">linearstuff</media:title>
		</media:content>

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

		<media:content url="http://natrix.files.wordpress.com/2008/11/onerealroot.png" medium="image">
			<media:title type="html">onerealroot</media:title>
		</media:content>

		<media:content url="http://natrix.files.wordpress.com/2008/11/twopositiveroots1.png" medium="image">
			<media:title type="html">twopositiveroots1</media:title>
		</media:content>

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

		<media:content url="http://natrix.files.wordpress.com/2008/11/case3.jpg" medium="image">
			<media:title type="html">case3</media:title>
		</media:content>
	</item>
		<item>
		<title>Second 3-week block task</title>
		<link>http://natrix.wordpress.com/2008/10/07/second-3-week-block-task/</link>
		<comments>http://natrix.wordpress.com/2008/10/07/second-3-week-block-task/#comments</comments>
		<pubDate>Tue, 07 Oct 2008 19:34:02 +0000</pubDate>
		<dc:creator>natrix</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://natrix.wordpress.com/?p=53</guid>
		<description><![CDATA[DRAFT PART ONE: Excel for Euler&#8217;s method for several linked DE&#8217;s The Lorenz Attractor The first part of the second 3-week block task I worked on was the Lorenz attractor. In this case, the attractor is an entity in 3-dimensional space about which a particle &#8220;orbits&#8221; a chaotic pattern depending on what the time is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=natrix.wordpress.com&amp;blog=4702616&amp;post=53&amp;subd=natrix&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>DRAFT</p>
<p>PART ONE: Excel for Euler&#8217;s method for several linked DE&#8217;s</p>
<p><a href="http://upload.wikimedia.org/wikipedia/commons/thumb/f/f4/Lorenz_attractor.svg/600px-Lorenz_attractor.svg.png"><img class="alignnone" src="http://upload.wikimedia.org/wikipedia/commons/thumb/f/f4/Lorenz_attractor.svg/600px-Lorenz_attractor.svg.png" alt="" width="325" height="325" /></a><br />
The Lorenz Attractor</p>
<p>The first part of the second 3-week block task I worked on was the Lorenz attractor. In this case, the attractor is an entity in 3-dimensional space about which a particle &#8220;orbits&#8221; a chaotic pattern depending on what the time is set to. The exact path a particle travels with respect to time is extremely sensitive to initial conditions. For example, consider the following initial conditions:</p>
<p>Point A = (1,2,3.0000)</p>
<p>Point B = (1,2,3.0001)</p>
<p>Even with a tiny difference in initial conditions, the two particles only follow a similar path for a very short period of time.</p>
<p>Although the exact pattern is chaotic and difficult to predict, the behavior of the particle follows certain boundaries defined by the following equations:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdx%7D%7Bdt%7D+%3D+%5Csigma+%28y+-+x%29&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;frac{dx}{dt} = &#92;sigma (y - x)' title='&#92;frac{dx}{dt} = &#92;sigma (y - x)' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdy%7D%7Bdt%7D+%3D+x+%28%5Crho+-+z%29+-+y&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;frac{dy}{dt} = x (&#92;rho - z) - y' title='&#92;frac{dy}{dt} = x (&#92;rho - z) - y' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdz%7D%7Bdt%7D+%3D+xy+-+%5Cbeta+z&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;frac{dz}{dt} = xy - &#92;beta z' title='&#92;frac{dz}{dt} = xy - &#92;beta z' class='latex' /></p>
<p>One of the easiest and quickest ways to obtain a rough understanding of how these three equations interact is to implement a Euler approximation in Excel.</p>
<p>In the table below, the values of <img src='http://s0.wp.com/latex.php?latex=%5Csigma&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;sigma' title='&#92;sigma' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=%5Crho&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;rho' title='&#92;rho' class='latex' />, and <img src='http://s0.wp.com/latex.php?latex=%5Cbeta&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;beta' title='&#92;beta' class='latex' />, have an enormous influence on the general shape of the attractor where <img src='http://s0.wp.com/latex.php?latex=%5CDelta+t&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;Delta t' title='&#92;Delta t' class='latex' /> is the step used for the Euler approximation. The smaller the value used in this approximation, the more accurate the solution. Ideally <img src='http://s0.wp.com/latex.php?latex=%5CDelta+t&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;Delta t' title='&#92;Delta t' class='latex' /> should be infinitely small to achieve the best possible accuracy, but this would require an infinite amount of computing power, so a compromise between simplicity and accuracy is needed. Using the &#8220;RAND()&#8221; function, we are able to setup <a href="http://www.inventgeek.com/Projects/alpharad/overview.aspx">&#8220;random&#8221;</a> initial conditions which will later prove that the general shape of the attractor is not dependent on specific initial conditions. The values used in Table 1 were given in order to create an attractor which looks similar to the one at the top of this page.<br />
<img src='http://s0.wp.com/latex.php?latex=x%28t_1%29+%3D+x%28t_0%29+%2B+%5CDelta+t+%28%5Csigma+y%28t_0%29+-+x%28t_0%29%29&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='x(t_1) = x(t_0) + &#92;Delta t (&#92;sigma y(t_0) - x(t_0))' title='x(t_1) = x(t_0) + &#92;Delta t (&#92;sigma y(t_0) - x(t_0))' class='latex' /><br />
<img src='http://s0.wp.com/latex.php?latex=y%28t_1%29+%3D+y%28t_0%29+%2B+%5CDelta+t+%28x%28t_0%29+%28%5Crho+-+z%28t_0%29%29+-+y%28t_0%29%29&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='y(t_1) = y(t_0) + &#92;Delta t (x(t_0) (&#92;rho - z(t_0)) - y(t_0))' title='y(t_1) = y(t_0) + &#92;Delta t (x(t_0) (&#92;rho - z(t_0)) - y(t_0))' class='latex' /><br />
<img src='http://s0.wp.com/latex.php?latex=z%28t_1%29+%3D+z%28t_0%29+%2B+%5CDelta+t+%28x%28t_0%29+y%28t_0%29+-+%5Cbeta+z%28t_0%29%29&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='z(t_1) = z(t_0) + &#92;Delta t (x(t_0) y(t_0) - &#92;beta z(t_0))' title='z(t_1) = z(t_0) + &#92;Delta t (x(t_0) y(t_0) - &#92;beta z(t_0))' class='latex' /></p>
<pre>sigma	10	t		x(t)			y(t)				z(t)
rho	28	0		=RAND()			=RAND()				=RAND()
beta	=8/3	=C2+$B$4	=D2+$B$4*($B$1*(E2-D2))	=E2+$B$4*(D2*($B$2-F2)-E2)	=F2+$B$4*(D2*E2-$B$3*F2)
delta t	0.02	=C3+$B$4	=D3+$B$4*($B$1*(E3-D3))	=E3+$B$4*(D3*($B$2-F3)-E3)	=F3+$B$4*(D3*E3-$B$3*F3)
		...		...			...				...</pre>
<p>Table 1</p>
<p>Graphing our 3 differential equations in Excel yields the following graph:<br />
<a href="http://natrix.files.wordpress.com/2008/10/lorenzexcel.jpg"><img class="alignnone size-full wp-image-71" title="lorenzexcel" src="http://natrix.files.wordpress.com/2008/10/lorenzexcel.jpg" alt="" width="527" height="309" /></a><br />
Figure 1</p>
<p>In Figure 1 our 3 differential equations are graphed with respect to <img src='http://s0.wp.com/latex.php?latex=t&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='t' title='t' class='latex' /> but this doesn&#8217;t give us a very good picture of what is really going on. Unfortunately, the closest we can get to a real 3D rendering in Excel is a &#8220;squashed&#8221; 2D image of only 2 out of the 3 data series in a simple X-Y plot. Graphing <img src='http://s0.wp.com/latex.php?latex=x%28t%29&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='x(t)' title='x(t)' class='latex' /> vs <img src='http://s0.wp.com/latex.php?latex=y%28t%29&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='y(t)' title='y(t)' class='latex' /> gives us a rough approximation of the Lorenz attractor.</p>
<p><a href="http://natrix.files.wordpress.com/2008/10/lorenzexcelxvsy.jpg"><img class="alignnone size-full wp-image-72" title="lorenzexcelxvsy" src="http://natrix.files.wordpress.com/2008/10/lorenzexcelxvsy.jpg" alt="" width="519" height="269" /></a><br />
Figure 2</p>
<p>As stated before, the exact initial values generated by the RAND() function do not affect the general shape of the attractor, since it does not change very much at all when the spreadsheet is modified, triggering the RAND() function to generate new values. At this point, this is about as far as we can explore differential equations using Euler&#8217;s method in Excel without having to do some serious Excel programming. Instead of using Excel for the rest of this project, MATLAB is used which is much more powerful and can generate 3D plots with ease.</p>
<p>2. MATLAB &#8211; Euler&#8217;s method for single DE</p>
<p>In MATLAB we created a new &#8220;m-file&#8221; using the example code provided to us. This code calculates a solution to a single differential equation defined in another m-file. Using the same equation I used in the first 3-week block task, I modified the &#8220;test_example.m&#8221; file to evaluate a solution for <img src='http://s0.wp.com/latex.php?latex=%5Cfrac+%7Bdy%7D%7Bdx%7D+%3D+%5Cfrac%7Bx-y%7D%7Bx%2By%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;frac {dy}{dx} = &#92;frac{x-y}{x+y}' title='&#92;frac {dy}{dx} = &#92;frac{x-y}{x+y}' class='latex' /> The &#8220;test_example.m&#8221; file defines the equation where &#8220;euler.m&#8221; defines how a Euler&#8217;s method solution is calculated from the given equation.</p>
<blockquote><p>&#8220;euler.m&#8221;, courtesy of <a href="https://people.scs.fsu.edu/~burkardt/math2071/lab_03.html">Simple ODE Methods</a><br />
1 % Euler’s method for a single differential equation.<br />
2 % The differential equation is dy/dt = f(t,y).<br />
3 function [ t, y ] = euler ( f, t_range, y_initial, nstep )<br />
4 % We set a range of time values, from t(1) to t(2).<br />
5 t(1) = t_range(1);<br />
6 % We define dt by dividing the time range into an equal number of specified steps.<br />
7 dt = ( t_range(2) &#8211; t_range(1) ) / nstep;<br />
8 % We set the initial value of y at the beginning time t(1).<br />
9 y(1) = y_initial;<br />
10 % We use Euler’s method to update the value of y at new time steps.<br />
11 % “feval” is used instead of “eval” because we are passing the name of f to the program.<br />
12 for i = 1 : nstep<br />
13 t(i+1) = t(i) + dt;<br />
14 y(i+1) = y(i) + dt * feval ( f, t(i), y(i) );<br />
15 end<br />
16 % The following command plots y as a function of t.<br />
17 plot(t,y)</p></blockquote>
<blockquote><p>&#8220;test_example.m&#8221;<br />
1 function yprime = test_example(t,y)<br />
2 yprime = (t-y)./(t+y);</p></blockquote>
<p>&gt;&gt; y_init = 3;<br />
Here, the initial y value is 3, just as in the First 3-week block task.<br />
&gt;&gt; [ t, y ] = euler ( &#8216;test_example&#8217;, [ 0.0, 8.0 ], y_init, 80 );<br />
The value 80 was calculated from the span, 8.0 &#8211; 0.0, divided by the number of steps from the previous project, 0.1.</p>
<p><a href="http://natrix.files.wordpress.com/2008/10/something.jpg"><img class="alignnone size-full wp-image-75" title="something" src="http://natrix.files.wordpress.com/2008/10/something.jpg" alt="" width="433" height="324" /></a><br />
Figure 3</p>
<p>As expected, this graph is nearly identical to the one produced in the previous project using ezplot and dsolve, proving that our system for finding solutions to differential equations using MATLAB is functioning.</p>
<p>3. MATLAB &#8211; Euler&#8217;s method for several DE&#8217;s</p>
<p>In order to execute Euler&#8217;s method for multiple DE&#8217;s, and to plot the Lorenz Attractor in 3D, the example m-file &#8220;euler.m&#8221; is modified on the following lines and saved as &#8220;euler_system.m&#8221;</p>
<blockquote><p>9 y(:,1) = y_initial;<br />
14 y(:,i+1) = y(:,i) + dt * feval ( f, t(i), y(:,i) );<br />
18 % We also want a 3D plot of the vector components as they vary with t.<br />
19 plot3(y(1,:),y(2,:),y(3,:))</p></blockquote>
<p>Also, instead of using &#8220;test_example.m&#8221; we use a slightly modified version, which I called &#8220;lorenz.m&#8221; which includes the 3 DE&#8217;s for the Lorenz Attractor.</p>
<blockquote><p>1 function yprime = lorenz(t,y)<br />
2 yprime = [10.0*(y(2)-y(1));y(1)*(28-y(3))-y(2);y(1)*y(2)-8*y(3)/3];</p></blockquote>
<p>To call the new function, the following commands are entered into MATLAB<br />
&gt;&gt; y_init=[rand();rand();rand()];<br />
Here, the initial values are set by the rand() function, which generates &#8220;random&#8221; numbers somewhere between 0 and 1.<br />
&gt;&gt; [ t, y ] = euler_system ( &#8216;lorenz&#8217;, [ 0.0, 20.0 ], y_init, 2000);<br />
Here, 0.0 is the initial value for t, where 20.0 is the final value. The initial values for x, y, and z are passed in through y_init, and the number of steps is set to 2000.</p>
<p><a href="http://natrix.files.wordpress.com/2008/10/lorenz.jpg"><img class="alignnone size-full wp-image-86" title="lorenz" src="http://natrix.files.wordpress.com/2008/10/lorenz.jpg" alt="" width="375" height="281" /></a></p>
<p>4. ode45 for numerical systems</p>
<p>5. Predator-Prey differential equations</p>
<p>The Lotka–Volterra equations is a basic model for the rise and fall of the population for a population consisting of predators and prey, foxes and rabbits for example.</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdx%7D%7Bdt%7D+%3D+x%28%5Calpha+-+%5Cbeta+y%29&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;frac{dx}{dt} = x(&#92;alpha - &#92;beta y)' title='&#92;frac{dx}{dt} = x(&#92;alpha - &#92;beta y)' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdy%7D%7Bdt%7D+%3D+-y%28%5Cgamma+-+%5Csigma+x%29&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;frac{dy}{dt} = -y(&#92;gamma - &#92;sigma x)' title='&#92;frac{dy}{dt} = -y(&#92;gamma - &#92;sigma x)' class='latex' /></p>
<p>where</p>
<p>x = number of prey</p>
<p>y = number of predators</p>
<p>t = time</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Calpha+%5Cbeta+%5Cgamma+%5Csigma&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;alpha &#92;beta &#92;gamma &#92;sigma' title='&#92;alpha &#92;beta &#92;gamma &#92;sigma' class='latex' /> represent the interaction of the two species.</p>
<p>The easiest way to understand these two differential equations is to model them in Excel using Euler&#8217;s method.</p>
<pre>alpha	1	time		 x(t) 				y(t)
beta	2	0		=RAND() 			=RAND()
gamma	3	=C2+$B$5	=D2+$B$5*(D2*($B$1-$B$2*E2))	=E2+$B$5*(-E2*($B$3-$B$4*D2))
sigma	4	=C3+$B$5	=D3+$B$5*(D3*($B$1-$B$2*E3))	=E3+$B$5*(-E3*($B$3-$B$4*D3))
delta t	0.02 	...		...				...</pre>
<p><a href="http://natrix.files.wordpress.com/2008/11/lotka-volterra.png"><img class="alignnone size-full wp-image-140" title="lotka-volterra" src="http://natrix.files.wordpress.com/2008/11/lotka-volterra.png" alt="lotka-volterra" width="699" height="336" /></a></p>
<p>The next step is to solve this system in Matlab, using tools which are much more accurate than Euler&#8217;s method.</p>
<p>Using the following Matlab code I adapted and commented from Jay Votta&#8217;s project, we are able to use the &#8220;ode23&#8243; function to find solutions for the predator/prey differential equations using the same initial conditions used in Excel. In theory, the image should look very similar.</p>
<p>M-file created:</p>
<blockquote><p>function yprime = lotka(t,y)<br />
yprime = diag([1 - 2*y(2), -3 + 4*y(1)])*y;<br />
% where 1, 2, 3, and 4 = alpha, beta, gamma, sigma</p></blockquote>
<p>Then, the following commands are entered in order to generate the graph below</p>
<blockquote><p>&gt;&gt; y0 = [0.4 0.9]; % initial conditions from Excel<br />
&gt;&gt; tfinal = 10; % time at final conditions from Excel<br />
&gt;&gt; [t,y] = ode23(&#8216;lotka&#8217;,[t0 tfinal],y0); % creates an array using the M-file, solved with the ode23 function<br />
&gt;&gt; subplot(1,2,1) % initializes the left graph<br />
&gt;&gt; plot(t,y) % populates the graph on the left, predators and prey vs. time<br />
&gt;&gt; subplot(1,2,2) % initializes the right graph<br />
&gt;&gt; plot(y(:,1),y(:,2)) % populates the graph on the right, predators vs. prey</p></blockquote>
<p><a href="http://natrix.files.wordpress.com/2008/12/predatorprey1.png"><img class="alignnone size-full wp-image-151" title="predatorprey1" src="http://natrix.files.wordpress.com/2008/12/predatorprey1.png" alt="predatorprey1" width="976" height="215" /></a></p>
<p>The solution for the given initial conditions are very similar between Matlab and Excel. Also, one interesting thing about the predators vs. prey graph illustrates that the population changes are stable and cyclical, coming full circle. Perhaps it is possible to model an unstable system using different initial conditions and different values for <img src='http://s0.wp.com/latex.php?latex=%5Calpha+%5Cbeta+%5Cgamma+%5Csigma&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;alpha &#92;beta &#92;gamma &#92;sigma' title='&#92;alpha &#92;beta &#92;gamma &#92;sigma' class='latex' /> where general shape of the population in the graph above and to the right either spirals out of control, or it spirals inward to 0. Another interesting direction to explore would be to run a simulation in realtime using this model and manually perturb the amount of predators and/or prey at a given time at different spots in the cycle to see where the system is most vunerable to the smallest change. Assuming this model is somewhat accurate, I could this being extremely useful for a conservation group to predict when it would be safe to allow hunting and when hunting would cause a serious ecological problem.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/natrix.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/natrix.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/natrix.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/natrix.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/natrix.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/natrix.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/natrix.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/natrix.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/natrix.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/natrix.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/natrix.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/natrix.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/natrix.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/natrix.wordpress.com/53/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=natrix.wordpress.com&amp;blog=4702616&amp;post=53&amp;subd=natrix&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://natrix.wordpress.com/2008/10/07/second-3-week-block-task/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/68561fb437f4e16d78499ac7d6d629c9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">natrix</media:title>
		</media:content>

		<media:content url="http://upload.wikimedia.org/wikipedia/commons/thumb/f/f4/Lorenz_attractor.svg/600px-Lorenz_attractor.svg.png" medium="image" />

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

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

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

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

		<media:content url="http://natrix.files.wordpress.com/2008/11/lotka-volterra.png" medium="image">
			<media:title type="html">lotka-volterra</media:title>
		</media:content>

		<media:content url="http://natrix.files.wordpress.com/2008/12/predatorprey1.png" medium="image">
			<media:title type="html">predatorprey1</media:title>
		</media:content>
	</item>
		<item>
		<title>First 3-week block task</title>
		<link>http://natrix.wordpress.com/2008/09/16/first-3-week-block-task/</link>
		<comments>http://natrix.wordpress.com/2008/09/16/first-3-week-block-task/#comments</comments>
		<pubDate>Tue, 16 Sep 2008 16:16:38 +0000</pubDate>
		<dc:creator>natrix</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://natrix.wordpress.com/?p=28</guid>
		<description><![CDATA[For my first 3-week block task, I have chosen the following differential equation: Equation 1 Our first step in understanding Equation 1 was to graph the solution to the differential equation for the initial condition , initially using Excel and later by means of using MATLAB. In Excel, we use Euler&#8217;s method to graph the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=natrix.wordpress.com&amp;blog=4702616&amp;post=28&amp;subd=natrix&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>For my first 3-week block task, I have chosen the following differential equation:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdy%7D%7Bdx%7D+%3D+%5Cfrac%7Bx-y%7D%7Bx%2By%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;frac{dy}{dx} = &#92;frac{x-y}{x+y}' title='&#92;frac{dy}{dx} = &#92;frac{x-y}{x+y}' class='latex' /><br />
Equation 1</p>
<p>Our first step in understanding Equation 1 was to graph the solution to the differential equation for the initial condition <img src='http://s0.wp.com/latex.php?latex=f%280%29+%3D+3&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='f(0) = 3' title='f(0) = 3' class='latex' />, initially using Excel and later by means of using MATLAB.</p>
<p>In Excel, we use Euler&#8217;s method to graph the solution to a differential equation. Since Euler&#8217;s method involves using a small step to find the next point recursevley I chose a step of 0.1 in order to minimize error. The X and Y points are as follows:</p>
<col span="2" width="75"></col>
<p><!--EndFragment--></p>
<table style="width:174px;height:149px;" border="0" cellspacing="0" cellpadding="0" width="174"><!--StartFragment--></p>
<tbody></tbody>
<tbody></tbody>
<tbody></tbody>
<tbody></tbody>
<tbody>
<tr>
<td width="75" height="13" align="left">x</td>
<td width="75" align="right">y</td>
</tr>
<tr>
<td height="13" align="left">0.0</td>
<td align="right">3.00</td>
</tr>
<tr>
<td height="13" align="left">0.1</td>
<td align="right">2.90</td>
</tr>
<tr>
<td height="13" align="left">0.2</td>
<td align="right">2.81</td>
</tr>
<tr>
<td height="13" align="left">0.3</td>
<td align="right">2.72</td>
</tr>
<tr>
<td height="13" align="left">0.4</td>
<td align="right">2.64</td>
</tr>
<tr>
<td height="13" align="left">0.5</td>
<td align="right">2.57</td>
</tr>
<tr>
<td height="13" align="left">0.6</td>
<td align="right">2.50</td>
</tr>
</tbody>
</table>
<p>&#8230;<br />
<!--EndFragment--> </p>
<table style="width:173px;height:116px;" border="0" cellspacing="0" cellpadding="0" width="173"><!--StartFragment--><br />
<col span="2" width="75"></col>
<tbody></tbody>
<tbody></tbody>
<tbody></tbody>
<tbody></tbody>
<tbody>
<tr>
<td width="75" height="13" align="left">7.4</td>
<td width="75" align="right">3.46</td>
</tr>
<tr>
<td height="13" align="left">7.5</td>
<td align="right">3.50</td>
</tr>
<tr>
<td height="13" align="left">7.6</td>
<td align="right">3.53</td>
</tr>
<tr>
<td height="13" align="left">7.7</td>
<td align="right">3.57</td>
</tr>
<tr>
<td height="13" align="left">7.8</td>
<td align="right">3.61</td>
</tr>
<tr>
<td height="13" align="left">7.9</td>
<td align="right">3.64</td>
</tr>
<tr>
<td height="13" align="left">8.0</td>
<td align="right">3.68</td>
</tr>
</tbody>
</table>
<p> <br />
Graphing the data above, yeilds the following curve:</p>
<p><a href="http://natrix.files.wordpress.com/2008/09/image001.png"><img class="alignnone size-medium wp-image-41" title="image001" src="http://natrix.files.wordpress.com/2008/09/image001.png?w=300&#038;h=255" alt="" width="300" height="255" /></a></p>
<p>Figure 0</p>
<p>Although the curve in Figure 0 is a quick and dirty approximation of what the actual curve for <img src='http://s0.wp.com/latex.php?latex=f%280%29+%3D+3&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='f(0) = 3' title='f(0) = 3' class='latex' /> looks like, in order to get an exact answer we need to use an application slightly more powerful for math than Excel.</p>
<p>After opening up MATLAB, we enter the following code:</p>
<p>&gt;&gt; sol = dsolve(&#8216;Dy = (x-y)/(x+y)&#8217;, &#8216;y(0) = 3&#8242;, &#8216;x&#8217;)<br />
&gt;&gt; ezplot(sol, [0 8])</p>
<p>Which yields the following result:</p>
<p><a href="http://natrix.files.wordpress.com/2008/09/fig1.jpg"><img class="alignnone size-medium wp-image-32" title="fig1" src="http://natrix.files.wordpress.com/2008/09/fig1.jpg?w=300&#038;h=225" alt="" width="300" height="225" /></a><br />
Figure 1</p>
<p>Knowing the result for <img src='http://s0.wp.com/latex.php?latex=f%280%29+%3D+3&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='f(0) = 3' title='f(0) = 3' class='latex' /> we have a rough idea what the vector field should look like. At the very least, the vectors which originate very close to the curve in Figure 1 should be nearly parallel.</p>
<p>In order to graph the vector field for Equation 1, my teammate and I entered the following code:</p>
<p>&gt;&gt; [x, y] = meshgrid(1:0.5:8, 1:0.5:8);<br />
&gt;&gt; S = (x-y)/(x+y);<br />
Warning: Matrix is singular to working precision.</p>
<p>However, this yielded a warning informing us that there was a singularity. In the Fall 2007 semester I took ECE 250, a course which is an introduction into MATLAB. In that course I learned that the simple 4-function operators of addition, subtraction, multiplication, and division sometimes need to have a period preceeding them in order to tell MATLAB that you are performing a calculation on an element-by-element basis. Element-by-element means that we evaluate a certian equation with respect to each value in the 2-dimensional array defined by the &#8220;meshgrid&#8221; function. Using our improved code below, it produced a graph we expected.</p>
<p>&gt;&gt; [x, y] = meshgrid(0:0.5:8, 2:0.5:4);<br />
&gt;&gt; S = (x-y)./(x+y);<br />
&gt;&gt; quiver(x, y, ones(size(S)), S), axis tight</p>
<p><a href="http://natrix.files.wordpress.com/2008/09/fig2.jpg"><img class="alignnone size-medium wp-image-33" title="fig2" src="http://natrix.files.wordpress.com/2008/09/fig2.jpg?w=300&#038;h=225" alt="" width="300" height="225" /></a></p>
<p>Figure 2</p>
<p>Here we can see that the vector field is overwhelming negative for values less than <img src='http://s0.wp.com/latex.php?latex=x%282%29&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='x(2)' title='x(2)' class='latex' />, leveling off, and then overwhelming positive for values greater than <img src='http://s0.wp.com/latex.php?latex=x%285%29&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='x(5)' title='x(5)' class='latex' /> for the domain and range which is visible in Figure 2. This corresponds to the result we obtained in Figure 1.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/natrix.wordpress.com/28/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/natrix.wordpress.com/28/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/natrix.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/natrix.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/natrix.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/natrix.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/natrix.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/natrix.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/natrix.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/natrix.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/natrix.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/natrix.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/natrix.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/natrix.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/natrix.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/natrix.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=natrix.wordpress.com&amp;blog=4702616&amp;post=28&amp;subd=natrix&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://natrix.wordpress.com/2008/09/16/first-3-week-block-task/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/68561fb437f4e16d78499ac7d6d629c9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">natrix</media:title>
		</media:content>

		<media:content url="http://natrix.files.wordpress.com/2008/09/image001.png?w=300" medium="image">
			<media:title type="html">image001</media:title>
		</media:content>

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

		<media:content url="http://natrix.files.wordpress.com/2008/09/fig2.jpg?w=300" medium="image">
			<media:title type="html">fig2</media:title>
		</media:content>
	</item>
		<item>
		<title>Exploring MATLAB</title>
		<link>http://natrix.wordpress.com/2008/09/09/exploring-matlab/</link>
		<comments>http://natrix.wordpress.com/2008/09/09/exploring-matlab/#comments</comments>
		<pubDate>Tue, 09 Sep 2008 17:58:55 +0000</pubDate>
		<dc:creator>natrix</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://natrix.wordpress.com/?p=15</guid>
		<description><![CDATA[In the first few days of class, MATLAB was introduced for solving and graphing differential equations. Here is the first problem we completed: Equation 1 Using the MATLAB function &#8220;meshgrid&#8221;, we are able to generate a basic 2-dimensional array of values from -2 to 3, with steps of 0.2 for the T axis and -1 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=natrix.wordpress.com&amp;blog=4702616&amp;post=15&amp;subd=natrix&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In the first few days of class, MATLAB was introduced for solving and graphing differential equations. Here is the first problem we completed:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7Bdy%7D%7Bdt%7D+%3D+e%5E%7B-t%7D+-2+%5Ccdot+y&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;frac{dy}{dt} = e^{-t} -2 &#92;cdot y' title='&#92;frac{dy}{dt} = e^{-t} -2 &#92;cdot y' class='latex' /></p>
<p>Equation 1</p>
<p style="text-align:left;">Using the MATLAB function &#8220;meshgrid&#8221;, we are able to generate a basic 2-dimensional array of values from -2 to 3, with steps of 0.2 for the T axis and -1 to 2 with steps of 0.2 for the Y axis. These are the points where we will evaluate the function. Using the &#8220;quiver&#8221; function we are able to generate a 2-dimensional plot of the data generating a vector field.</p>
<p>&gt;&gt; [T, Y] = meshgrid(-2:0.2:3, -1:0.2:2);</p>
<p>&gt;&gt; S = exp(-T) &#8211; 2*Y;</p>
<p>&gt;&gt; quiver(T, Y, ones(size(S)), S), axis tight</p>
<p style="text-align:left;">
<p><a href="http://natrix.files.wordpress.com/2008/09/20080909_1.jpg"><img class="size-medium wp-image-17 alignnone" title="20080909_1" src="http://natrix.files.wordpress.com/2008/09/20080909_1.jpg?w=300&#038;h=225" alt="" width="300" height="225" /></a></p>
<p style="text-align:left;">Figure 1</p>
<p style="text-align:left;">Unfortunately, most of the vector lines are difficult to see since they haven&#8217;t been normalized yet. To do that, we divide each vector by the length of itself, forcing them all to the same size in order to see a better representation of the direction of the vector field.</p>
<p style="text-align:left;">&gt;&gt; [T, Y] = meshgrid(-2:0.2:3, -1:0.2:2);</p>
<p style="text-align:left;">&gt;&gt; S = exp(-T) &#8211; 2*Y;</p>
<p style="text-align:left;">&gt;&gt; L = sqrt(1 + S.^2);</p>
<p style="text-align:left;">&gt;&gt; quiver(T, Y, 1./L, S./L, 0.5), axis tight</p>
<p style="text-align:left;">
<p style="text-align:left;"><a href="http://natrix.files.wordpress.com/2008/09/20080909_2.jpg"><img class="alignnone size-medium wp-image-23" title="20080909_2" src="http://natrix.files.wordpress.com/2008/09/20080909_2.jpg?w=300&#038;h=225" alt="" width="300" height="225" /></a></p>
<p style="text-align:left;">Figure 2</p>
<p style="text-align:left;">
<p style="text-align:left;">In Figure 2, we have traded off magnitude information for a better visualization of directional information. In order to fully understand what is happening with in Equation 1 it is best to have both graphs.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/natrix.wordpress.com/15/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/natrix.wordpress.com/15/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/natrix.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/natrix.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/natrix.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/natrix.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/natrix.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/natrix.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/natrix.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/natrix.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/natrix.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/natrix.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/natrix.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/natrix.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/natrix.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/natrix.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=natrix.wordpress.com&amp;blog=4702616&amp;post=15&amp;subd=natrix&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://natrix.wordpress.com/2008/09/09/exploring-matlab/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/68561fb437f4e16d78499ac7d6d629c9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">natrix</media:title>
		</media:content>

		<media:content url="http://natrix.files.wordpress.com/2008/09/20080909_1.jpg?w=300" medium="image">
			<media:title type="html">20080909_1</media:title>
		</media:content>

		<media:content url="http://natrix.files.wordpress.com/2008/09/20080909_2.jpg?w=300" medium="image">
			<media:title type="html">20080909_2</media:title>
		</media:content>
	</item>
		<item>
		<title>First LaTeX post</title>
		<link>http://natrix.wordpress.com/2008/09/09/first-latex-post/</link>
		<comments>http://natrix.wordpress.com/2008/09/09/first-latex-post/#comments</comments>
		<pubDate>Tue, 09 Sep 2008 17:20:26 +0000</pubDate>
		<dc:creator>natrix</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://natrix.wordpress.com/?p=10</guid>
		<description><![CDATA[I am working on the differential equation<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=natrix.wordpress.com&amp;blog=4702616&amp;post=10&amp;subd=natrix&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img src="http://outreach.jach.hawaii.edu/pressroom/2006_jcmbday/Maxwell.jpg" alt="" width="289" height="360" /></p>
<p>I am working on the differential equation <img src='http://s0.wp.com/latex.php?latex=%5Cnabla+%5Ctimes+%5Cmathbf%7BH%7D+%3D+%5Cmathbf%7BJ%7D_f+%2B+%5Cfrac%7B%5Cpartial%5Cmathbf%7BD%7D%7D%7B%5Cpartial+t%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;nabla &#92;times &#92;mathbf{H} = &#92;mathbf{J}_f + &#92;frac{&#92;partial&#92;mathbf{D}}{&#92;partial t}' title='&#92;nabla &#92;times &#92;mathbf{H} = &#92;mathbf{J}_f + &#92;frac{&#92;partial&#92;mathbf{D}}{&#92;partial t}' class='latex' /></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/natrix.wordpress.com/10/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/natrix.wordpress.com/10/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/natrix.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/natrix.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/natrix.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/natrix.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/natrix.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/natrix.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/natrix.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/natrix.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/natrix.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/natrix.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/natrix.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/natrix.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/natrix.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/natrix.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=natrix.wordpress.com&amp;blog=4702616&amp;post=10&amp;subd=natrix&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://natrix.wordpress.com/2008/09/09/first-latex-post/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/68561fb437f4e16d78499ac7d6d629c9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">natrix</media:title>
		</media:content>

		<media:content url="http://outreach.jach.hawaii.edu/pressroom/2006_jcmbday/Maxwell.jpg" medium="image" />
	</item>
	</channel>
</rss>
