<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Riotstories</title>
	
	<link>http://www.riotstories.co.uk</link>
	<description>Steve Sinclair online</description>
	<lastBuildDate>Thu, 22 Mar 2012 20:07:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
<image>
<title>Riotstories Posts</title>
<url>http://riotstories.co.uk/wp-content/themes/child2011//images/feedimage.png</url>
<link>http://riotstories.co.uk/</link>
<width>1000</width>
<height>288</height>
<description>Riotstories Blog Posts</description>
</image>		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/riotstories" /><feedburner:info uri="riotstories" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><creativeCommons:license>http://creativecommons.org/licenses/by-sa/2.0/</creativeCommons:license><xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /><feedburner:emailServiceId>riotstories</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>Projectile Motion III: Air Resistance Quadratic in Speed</title>
		<link>http://feedproxy.google.com/~r/riotstories/~3/VCVdUKVZ8MU/</link>
		<comments>http://www.riotstories.co.uk/science/projectile/#comments</comments>
		<pubDate>Wed, 21 Mar 2012 18:11:55 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Science]]></category>
		<category><![CDATA[Air Resistance]]></category>
		<category><![CDATA[Physics]]></category>
		<category><![CDATA[Projectile Motion]]></category>
		<category><![CDATA[Quadratic in Speed]]></category>

		<guid isPermaLink="false">http://www.riotstories.co.uk/?p=1596</guid>
		<description><![CDATA[In this post projectile motion is considered where air resistance varies with the square of the speed i.e. is quadratic in the speed. the general equations of motion are developed and the exact solutions for limiting case motions are considered. <a href="http://www.riotstories.co.uk/science/projectile/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>In this final post on projectile motion I&#8217;ll look at motion when the air resistance is quadratic in the speed of the projectile. Previous posts considered the case where there was either no air resistance at all or where the air resistance was linear in the speed. The results in each of these cases can be found in the following to posts:</p>
<p><a href="http://www.riotstories.co.uk/science/projectiles-no-air-resistance/" title="Zero Air Resistance" target="_blank">Projectile Motion I: No Air Resistance</a><br />
<a href="http://www.riotstories.co.uk/science/projectile-motion-ii-air-resistance-linear-in-speed/" title="Air Resistance Linear in Speed" target="_blank">Projectile Motion II:Air Resistance Linear in Speed</a></p>
<p><span id="more-1596"></span></p>
<h1>General Equations of Motion</h1>
<p>Using the same co-ordinate system as before the general equations of motion for projectile can be written:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=m%5Cdfrac%7Bd%5E2%5Cunderline%20r%7D%7Bdt%5E2%7D%3Dm%5Cunderline%20g-b%5Cvert%20%5Cunderline%20v%5Cvert%5E2%20%5Chat%7B%5Cunderline%20v%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='m\dfrac{d^2\underline r}{dt^2}=m\underline g-b\vert \underline v\vert^2 \hat{\underline v}' title='m\dfrac{d^2\underline r}{dt^2}=m\underline g-b\vert \underline v\vert^2 \hat{\underline v}' class='latex' /></br></p>
<p>Where:</p>
<p>b is a constant and represents the coefficient of air resistance</p>
<p><img src='http://s.wordpress.com/latex.php?latex=%5Cunderline%20g%3D0%5Cunderline%20i-g%5Cunderline%20j&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\underline g=0\underline i-g\underline j' title='\underline g=0\underline i-g\underline j' class='latex' /> is the gravity vector. In our co-ordinate system gravity points downwards so the y component is negative. </p>
<p><img src='http://s.wordpress.com/latex.php?latex=%5Cunderline%20v%3Dv_%7Bx%7D%5Cunderline%20i%2Bv_%7By%7D%5Cunderline%20j&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\underline v=v_{x}\underline i+v_{y}\underline j' title='\underline v=v_{x}\underline i+v_{y}\underline j' class='latex' /> is the velocity vector with x and y components.</p>
<p><img src='http://s.wordpress.com/latex.php?latex=%5Cvert%20%5Cunderline%20v%5Cvert%5E2%3D%5Csqrt%7Bv_%7Bx%7D%5E2%2Bv_%7By%7D%5E2%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\vert \underline v\vert^2=\sqrt{v_{x}^2+v_{y}^2}' title='\vert \underline v\vert^2=\sqrt{v_{x}^2+v_{y}^2}' class='latex' /> is the magnitude of the velocity vector i.e. the speed.</p>
<p><img src='http://s.wordpress.com/latex.php?latex=%5Chat%7B%5Cunderline%20v%7D%3D%5Cdfrac%7B%5Cunderline%20v%7D%7B%5Cvert%20%5Cunderline%20v%5Cvert%5E2%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\hat{\underline v}=\dfrac{\underline v}{\vert \underline v\vert^2}' title='\hat{\underline v}=\dfrac{\underline v}{\vert \underline v\vert^2}' class='latex' /> is the unit vector in the direction of <img src='http://s.wordpress.com/latex.php?latex=%5Cunderline%20v&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\underline v' title='\underline v' class='latex' /></br></p>
<p>In addition, we have the following boundary conditions (i.e. initial values at t=0):</p>
<p><img src='http://s.wordpress.com/latex.php?latex=%5Cunderline%20r%5Cleft%280%5Cright%29%3D0%2C%20%5Cdfrac%7Bd%5Cunderline%20r%7D%7Bdt%7D%3Dv_%7Bx_%7B0%7D%7D%5Cunderline%20i%2Bv_%7By_%7B0%7D%7D%5Cunderline%20j&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\underline r\left(0\right)=0, \dfrac{d\underline r}{dt}=v_{x_{0}}\underline i+v_{y_{0}}\underline j' title='\underline r\left(0\right)=0, \dfrac{d\underline r}{dt}=v_{x_{0}}\underline i+v_{y_{0}}\underline j' class='latex' /> at t=0</p>
<h3>EOM x-Direction</h3>
<p>For motion in the x-direction we can now write the equation of motion as:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=m%20%5Cdfrac%7Bd%5E2x%7D%7Bdt%5E2%7D%3D-bv_%7Bx%7D%5Csqrt%7Bv_%7Bx%7D%5E2%2Bv_%7By%7D%5E2%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='m \dfrac{d^2x}{dt^2}=-bv_{x}\sqrt{v_{x}^2+v_{y}^2}' title='m \dfrac{d^2x}{dt^2}=-bv_{x}\sqrt{v_{x}^2+v_{y}^2}' class='latex' />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equation&nbsp;(1)</br><br />
with initial conditions<br />
<img src='http://s.wordpress.com/latex.php?latex=%5Cdot%7Bx%7D%3Dv_%7Bx0%7D%3Dv_%7B0%7D%5Ccos%5Ctheta&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\dot{x}=v_{x0}=v_{0}\cos\theta' title='\dot{x}=v_{x0}=v_{0}\cos\theta' class='latex' /><br />
<img src='http://s.wordpress.com/latex.php?latex=x%280%29%3D0&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='x(0)=0' title='x(0)=0' class='latex' /></p>
<h3>EOM y-direction</h3>
<p><img src='http://s.wordpress.com/latex.php?latex=%20m%20%5Cdfrac%7Bd%5E2y%7D%7Bdt%5E2%7D%3D-mg-bv_%7By%7D%5Csqrt%7Bv_%7Bx%7D%5E2%2Bv_%7By%7D%5E2%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt=' m \dfrac{d^2y}{dt^2}=-mg-bv_{y}\sqrt{v_{x}^2+v_{y}^2}' title=' m \dfrac{d^2y}{dt^2}=-mg-bv_{y}\sqrt{v_{x}^2+v_{y}^2}' class='latex' />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equation&nbsp;(2)</br><br />
with initial conditions<br />
<img src='http://s.wordpress.com/latex.php?latex=%5Cdot%7By%7D%3Dv_%7By0%7D%3Dv_%7B0%7D%5Csin%5Ctheta&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\dot{y}=v_{y0}=v_{0}\sin\theta' title='\dot{y}=v_{y0}=v_{0}\sin\theta' class='latex' /><br />
<img src='http://s.wordpress.com/latex.php?latex=y%280%29%3D0&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='y(0)=0' title='y(0)=0' class='latex' /></p>
<p>The first thing to notice about equations (1) and (2) is that they are: (a) nonlinear and (b) coupled (i.e. the behaviour in the x-direction depends on properties of motion in the y-direction and vice versa). These properties mean that solutions can&#8217;t be written in closed form i.e. no analytical solution can be derived for the general situation that we&#8217;ve defined to this point. instead, the general equations defined by (1) and (2) need to be solved numerically with relevant boundary conditions on a case by case basis. </p>
<h2>Solutions to EOM</h2>
<p>The general equations of motion for the x and y directions are nonlinear and coupled and for solutions in the general case require numerical methods (e.g. Runge Kutta). Special case solutions can be found by studying the situation where the motion is constrained to be purely horizontal (vertical velocity=0) or purely vertical (free fall under gravity, horizontal velocity=0). These cases are interesting in their own right and can be studied by solving equations 1 or 2 by setting the relevant velocity component =0 and looking at the behaviour of the solutions to the EOM with ther elevant boundary conditions.</p>
<p>I recently found a paper addressing this situation that shows that it is actually possible to derive analytical results in closed form using the Lambert function in certain specific circumstances. The  paper can be downloaded from this location, if you&#8217;re interested in this it&#8217;s well worth a read and working through the analysis:</p>
<p><a href="http://www.google.co.uk/url?sa=t&#038;rct=j&#038;q=&#038;esrc=s&#038;source=web&#038;cd=3&#038;ved=0CD4QFjAC&#038;url=http%3A%2F%2Fwww.scirp.org%2Fjournal%2FPaperDownload.aspx%3FpaperID%3D1457&#038;ei=6cdpT6zpD-rY0QXHurWICQ&#038;usg=AFQjCNFl9iSDIuuZH-NA6KuuNWFpj2JQCA&#038;sig2=3ba5u2OYcoq60dP87Bejqw" target="_blank">Analytic Approximations of Projectile Motion with<br />
Quadratic Air Resistance</a></p>
<p>The authors of the above paper consider 3 logical domains and solve the equations of motion (equations 1 and 2 above) in each of the domains. They provide comparisons between their solutions and the ideal case of zero air resistance along with comparisons with real flight data.</p>
<p>The 3 domains considered are:</p>
<h3>LAT &#8211; Low Angle Trajectory</h3>
<p>This is the region where <img src='http://s.wordpress.com/latex.php?latex=v_%7Bx%7D%5Cggg%20v_%7By%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='v_{x}\ggg v_{y}' title='v_{x}\ggg v_{y}' class='latex' /> i.e. where the motion of the projectile is mainly horizontal (low angles) and hence the horizontal velocity sifgnificantly exceeds the vertical velocity. Closed solutions are obtained using the Lambert function and useful algorithms are provided for calculating the Lambert function (these are useful in their own right for other applications).</p>
<h3>HAT &#8211; High Angle Trajectory</h3>
<p>In some ways this is the opposite of the LAT and has <img src='http://s.wordpress.com/latex.php?latex=v_%7By%7D%5Cggg%20v_%7Bx%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='v_{y}\ggg v_{x}' title='v_{y}\ggg v_{x}' class='latex' /> i.e. the vertical velocity greatly exceeds the horizontal velocity (high angles). again, closed solutions for the EOM is obtained.</p>
<h3>SAT &#8211; Split Angle Trajectory</h3>
<p>The so called split angle trajectory has <img src='http://s.wordpress.com/latex.php?latex=v_%7Bx%7D%5Capproxeq%20v_%7By%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='v_{x}\approxeq v_{y}' title='v_{x}\approxeq v_{y}' class='latex' /> i.e. middle angle trajectories.</p>
<p>The authors derive the solutions to the equations of motion in each of these ranges and compare the solutions with each other and with the ideal case (zero air resistance). Interesting discussion around the calculated trajectories and actual experimental flight data is provided.</p>
<p>If you&#8217;re interested in this sort of thing I highly recommend you grab a copy of the papere and have a read. Eork through the analysis, plot some trajectories using Excel, MATLAB, Mathematica, Java programming or whatever your particular weapon of choice happens to be.</p>
<p>That&#8217;s it on projectile motion. I had fun, if anyone reads this hopefully you&#8217;ll find it useful <img src='http://www.riotstories.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<div id="crp_related"><h3>Possibly Related Posts:</h3><div id=relposts><ul><li><a href="http://www.riotstories.co.uk/science/projectile-motion-ii-air-resistance-linear-in-speed/" rel="bookmark" class="crp_link"><span class="crp_title"> Projectile Motion II: Air Resistance Linear in Speed</span></a></li><li><a href="http://www.riotstories.co.uk/science/projectiles-no-air-resistance/" rel="bookmark" class="crp_link"><span class="crp_title"> Projectile Motion I: No Air Resistance</span></a></li><li><a href="http://www.riotstories.co.uk/science/frets/" rel="bookmark" class="crp_link"><span class="crp_title"> Guitar Frets</span></a></li><li><a href="http://www.riotstories.co.uk/science/seashells/" rel="bookmark" class="crp_link"><span class="crp_title"> Modelling Seashells</span></a></li><li><a href="http://www.riotstories.co.uk/web-development/edit-hosts-file-in-vista/" rel="bookmark" class="crp_link"><span class="crp_title"> Edit the .hosts file in Vista</span></a></li></ul></div></div><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/riotstories?a=VCVdUKVZ8MU:0J20PEkOPHE:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/riotstories?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/riotstories?a=VCVdUKVZ8MU:0J20PEkOPHE:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/riotstories?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/riotstories?a=VCVdUKVZ8MU:0J20PEkOPHE:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/riotstories?i=VCVdUKVZ8MU:0J20PEkOPHE:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/riotstories?a=VCVdUKVZ8MU:0J20PEkOPHE:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/riotstories?i=VCVdUKVZ8MU:0J20PEkOPHE:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/riotstories?a=VCVdUKVZ8MU:0J20PEkOPHE:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/riotstories?i=VCVdUKVZ8MU:0J20PEkOPHE:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/riotstories/~4/VCVdUKVZ8MU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.riotstories.co.uk/science/projectile/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.riotstories.co.uk/science/projectile/</feedburner:origLink></item>
		<item>
		<title>TI-68 Handbook</title>
		<link>http://feedproxy.google.com/~r/riotstories/~3/lOcEdNLuvHg/</link>
		<comments>http://www.riotstories.co.uk/science/ti68/#comments</comments>
		<pubDate>Mon, 19 Mar 2012 09:04:11 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Science]]></category>
		<category><![CDATA[Handbook]]></category>
		<category><![CDATA[Scientific Calculator]]></category>
		<category><![CDATA[Texas Instruments]]></category>
		<category><![CDATA[TI-68]]></category>
		<category><![CDATA[User Guide]]></category>

		<guid isPermaLink="false">http://www.riotstories.co.uk/?p=1630</guid>
		<description><![CDATA[You will find the user handbook here for the Texas Instruments TI-68 scientific calculator <a href="http://www.riotstories.co.uk/science/ti68/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Here is the user guide/handbook for the Texas Instruments TI-68 scientific calculator:</p>
<p><a href='http://www.riotstories.co.uk/wp-content/uploads/2012/03/TI-68-Handbook.pdf'>TI-68 Handbook/UserGuide</a></p>
<div id="crp_related"><h3>Possibly Related Posts:</h3><div id=relposts><ul><li><a href="http://www.riotstories.co.uk/music/paul-weller-guitar-tabs/" rel="bookmark" class="crp_link"><span class="crp_title"> Paul Weller Guitar Tabs</span></a></li><li><a href="http://www.riotstories.co.uk/space/curiosity-rover-overview/" rel="bookmark" class="crp_link"><span class="crp_title"> Curiosity Rover Mission &#8211; Video Overview and Summary</span></a></li><li><a href="http://www.riotstories.co.uk/wordpress/gravity-forms-css-targetting-examples/" rel="bookmark" class="crp_link"><span class="crp_title"> Gravity Forms: CSS Targeting Examples</span></a></li><li><a href="http://www.riotstories.co.uk/wordpress/add-author-biog-after-your-post/" rel="bookmark" class="crp_link"><span class="crp_title"> Add Author Biog After Your Post</span></a></li><li><a href="http://www.riotstories.co.uk/web-development/error-php-not-running/" rel="bookmark" class="crp_link"><span class="crp_title"> ERROR: PHP Not Running</span></a></li></ul></div></div><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/riotstories?a=lOcEdNLuvHg:s_XTzG20cM4:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/riotstories?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/riotstories?a=lOcEdNLuvHg:s_XTzG20cM4:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/riotstories?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/riotstories?a=lOcEdNLuvHg:s_XTzG20cM4:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/riotstories?i=lOcEdNLuvHg:s_XTzG20cM4:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/riotstories?a=lOcEdNLuvHg:s_XTzG20cM4:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/riotstories?i=lOcEdNLuvHg:s_XTzG20cM4:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/riotstories?a=lOcEdNLuvHg:s_XTzG20cM4:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/riotstories?i=lOcEdNLuvHg:s_XTzG20cM4:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/riotstories/~4/lOcEdNLuvHg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.riotstories.co.uk/science/ti68/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.riotstories.co.uk/science/ti68/</feedburner:origLink></item>
		<item>
		<title>Projectile Motion II: Air Resistance Linear in Speed</title>
		<link>http://feedproxy.google.com/~r/riotstories/~3/iwcQD7EN9hE/</link>
		<comments>http://www.riotstories.co.uk/science/projectile-motion-ii-air-resistance-linear-in-speed/#comments</comments>
		<pubDate>Tue, 13 Mar 2012 13:57:26 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Science]]></category>
		<category><![CDATA[Linear Air Resistance]]></category>
		<category><![CDATA[Physics]]></category>
		<category><![CDATA[Projectile Motion]]></category>

		<guid isPermaLink="false">http://www.riotstories.co.uk/?p=1431</guid>
		<description><![CDATA[In this post I'm looking at the behaviour of a projectile when there is air resistance rpesent and the air resistance is proportional to speed. Solutions to the EOm are derived and compared with the behaviour when there is no air resistance present (covered by a previous post). <a href="http://www.riotstories.co.uk/science/projectile-motion-ii-air-resistance-linear-in-speed/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h2>1. The Physical Situation</h2>
<p>In a previous post projectile motion was considered with no air resistance. What happens to the projectile motion when we include an air resistance factor? In reality including air resistance is very complex and in the general case leads to coupled nonlinear differential equations which don&#8217;t lend themselves to closed analytic solutions, instead they are usually solved using numerical integration methods on a case by case basis.</p>
<p>In this analysis a simple air resistance force that is linear in the speed of the projectile is considered<span id="more-1431"></span>. The force associated with this air resistance is opposite in direction to the velocity vector at any particular time. In addition to the force associated with the linear air resistance there is the force associated with uniform gravitational field acting on the projectile. The physical situation is shown in Figure 1.</p>
<p><img src="http://www.riotstories.co.uk//wp-content/themes/child2011/images/trajectory.jpg" alt="Projectile Trajectory" /><br />
<span class="figure">Figure 1: Trajectory of Projectile</span></p>
<h3>Forces Involved</h3>
<p>The force due to gravity acting on the projectile is <img src='http://s.wordpress.com/latex.php?latex=%5Cunderline%7BF_%7Bg%7D%7D%3D0%5Cunderline%7Bi%7D-mg%5Cunderline%7Bj%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\underline{F_{g}}=0\underline{i}-mg\underline{j}' title='\underline{F_{g}}=0\underline{i}-mg\underline{j}' class='latex' /></br></p>
<p>The force due to the air resistance is <img src='http://s.wordpress.com/latex.php?latex=%5Cunderline%7BF_%7Bresist%7D%7D%3D-b%5Cunderline%7Bv%7D%3D-bv_%7Bx%7D%5Cunderline%7Bi%7D-bv_%7By%7D%5Cunderline%7Bj%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\underline{F_{resist}}=-b\underline{v}=-bv_{x}\underline{i}-bv_{y}\underline{j}' title='\underline{F_{resist}}=-b\underline{v}=-bv_{x}\underline{i}-bv_{y}\underline{j}' class='latex' /></br></p>
<p>The total force acting on the projectile is <img src='http://s.wordpress.com/latex.php?latex=%5Cunderline%7BF_%7Btot%7D%7D%3D%5Cunderline%7BF_%7Bg%7D%7D%2B%5Cunderline%7BF_%7Bresist%7D%7D%3D-bv_%7Bx%7D%5Cunderline%7Bi%7D-%28mg%2Bbv_%7By%7D%29%5Cunderline%7Bj%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\underline{F_{tot}}=\underline{F_{g}}+\underline{F_{resist}}=-bv_{x}\underline{i}-(mg+bv_{y})\underline{j}' title='\underline{F_{tot}}=\underline{F_{g}}+\underline{F_{resist}}=-bv_{x}\underline{i}-(mg+bv_{y})\underline{j}' class='latex' /></br></p>
<h2>2. Equation of Motion (EOM)</h2>
<p>The equation of motion for the projectile is:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=m%5Cunderline%7B%5Cddot%7Br%7D%7D%3D%5Cunderline%7BF_%7Btot%7D%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='m\underline{\ddot{r}}=\underline{F_{tot}}' title='m\underline{\ddot{r}}=\underline{F_{tot}}' class='latex' /></br></p>
<p>This vector equation is actually 2 equations 1 for motion in the x-direction and 1 for motion in the y-direction as follows:</p>
<h3>EOM x-direction</h3>
<p><img src='http://s.wordpress.com/latex.php?latex=m%5Cddot%7Bx%7D%3D-bv_%7Bx%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='m\ddot{x}=-bv_{x}' title='m\ddot{x}=-bv_{x}' class='latex' /> with initial conditions x(0)=0 and <img src='http://s.wordpress.com/latex.php?latex=%5Cdot%7Bx%280%29%7D%3Dv_%7B0%7D%5Ccos%5Ctheta&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\dot{x(0)}=v_{0}\cos\theta' title='\dot{x(0)}=v_{0}\cos\theta' class='latex' /></br></p>
<h3>EOM y-direction</h3>
<p><img src='http://s.wordpress.com/latex.php?latex=m%5Cddot%7By%7D%3D-mg-bv_%7By%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='m\ddot{y}=-mg-bv_{y}' title='m\ddot{y}=-mg-bv_{y}' class='latex' /> with initial conditions y(0)=0 and <img src='http://s.wordpress.com/latex.php?latex=%5Cdot%7By%280%29%7D%3Dv_%7B0%7D%5Csin%5Ctheta&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\dot{y(0)}=v_{0}\sin\theta' title='\dot{y(0)}=v_{0}\sin\theta' class='latex' /></br></p>
<h2>3. Solutions to EOM</h2>
<p>The equations of motion above are ordinary second order linear differential equations which can be solved analytically using the boundary conditions to derive the constants of integration. Integrating each equation gives the following solutions</p>
<h3>x position</h3>
<p><img src='http://s.wordpress.com/latex.php?latex=x%28t%29%3D%7B%5Cdfrac%7Bm%20v_%7B0%7D%20%5Ccos%5Ctheta%7D%7Bb%7D%7D%5Cleft%281-e%5E%5Cfrac%7B-bt%7D%7Bm%7D%5Cright%29&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='x(t)={\dfrac{m v_{0} \cos\theta}{b}}\left(1-e^\frac{-bt}{m}\right)' title='x(t)={\dfrac{m v_{0} \cos\theta}{b}}\left(1-e^\frac{-bt}{m}\right)' class='latex' />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equation&nbsp;(1)</br></p>
<p>Note that in the limit <img src='http://s.wordpress.com/latex.php?latex=t%5Cto%5Cinfty&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='t\to\infty' title='t\to\infty' class='latex' /> we can see <img src='http://s.wordpress.com/latex.php?latex=x%28t%29%5Cto%20%5Cdfrac%7Bm%20v_%7B0%7D%5Ccos%5Ctheta%7D%7Bb%7D%3Dx_%7B%5Cinfty%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='x(t)\to \dfrac{m v_{0}\cos\theta}{b}=x_{\infty}' title='x(t)\to \dfrac{m v_{0}\cos\theta}{b}=x_{\infty}' class='latex' /></br></p>
<p>This is shown in Figure 1.</p>
<p><img src="/wp-content/themes/child2011/images/xfnt.png" alt="X Coordinate as a function of time" /><br />
Figure 1:x(t) converging to <img src='http://s.wordpress.com/latex.php?latex=x_%7B%5Cinfty%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='x_{\infty}' title='x_{\infty}' class='latex' /></p>
<h3>y position</h3>
<p><img src='http://s.wordpress.com/latex.php?latex=y%28t%29%3D%5Cdfrac%7Bm%7D%7Bb%7D%5Cleft%28%5Cdfrac%7Bmg%7D%7Bb%7D%2Bv_%7B0%7D%5Csin%5Ctheta%5Cright%29%5Cleft%281-e%5E%5Cfrac%7B-bt%7D%7Bm%7D%5Cright%29-%5Cdfrac%7Bmgt%7D%7Bb%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='y(t)=\dfrac{m}{b}\left(\dfrac{mg}{b}+v_{0}\sin\theta\right)\left(1-e^\frac{-bt}{m}\right)-\dfrac{mgt}{b}' title='y(t)=\dfrac{m}{b}\left(\dfrac{mg}{b}+v_{0}\sin\theta\right)\left(1-e^\frac{-bt}{m}\right)-\dfrac{mgt}{b}' class='latex' />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equation&nbsp;(2)</br></p>
<p>Differentiating these expressions once gives the speed in the x and y directions as functions of time and differentiating twice gives the acceleration. We get:</p>
<h3>Speed in x-direction</h3>
<p><img src='http://s.wordpress.com/latex.php?latex=v_%7Bx%7D%28t%29%3Dv_%7B0%7D%5Ccos%5Ctheta%20e%5E%5Cfrac%7B-b%20t%7D%7Bm%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='v_{x}(t)=v_{0}\cos\theta e^\frac{-b t}{m}' title='v_{x}(t)=v_{0}\cos\theta e^\frac{-b t}{m}' class='latex' /></br></p>
<h3>Speed in y-direction</h3>
<p><img src='http://s.wordpress.com/latex.php?latex=v_%7By%7D%28t%29%3D%5Cdfrac%7B-mg%7D%7Bb%7D%2B%5Cleft%28%5Cdfrac%7Bgm%7D%7Bb%7D%2Bv_%7B0%7D%5Csin%5Ctheta%5Cright%29e%5E%5Cfrac%7B-bt%7D%7Bm%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='v_{y}(t)=\dfrac{-mg}{b}+\left(\dfrac{gm}{b}+v_{0}\sin\theta\right)e^\frac{-bt}{m}' title='v_{y}(t)=\dfrac{-mg}{b}+\left(\dfrac{gm}{b}+v_{0}\sin\theta\right)e^\frac{-bt}{m}' class='latex' /></br></p>
<h3>Acceleration in x-direction</h3>
<p><img src='http://s.wordpress.com/latex.php?latex=a_%7Bx%7D%28t%29%3D%5Cdfrac%7B-b%20v_%7B0%7D%5Ccos%5Ctheta%7D%7Bm%7D%20e%5E%5Cfrac%7B-bt%7D%7Bm%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='a_{x}(t)=\dfrac{-b v_{0}\cos\theta}{m} e^\frac{-bt}{m}' title='a_{x}(t)=\dfrac{-b v_{0}\cos\theta}{m} e^\frac{-bt}{m}' class='latex' /></br></p>
<p>Note that unlike the case where there is no air resistance, acceleration in the horizontal direction in not zero.</p>
<h3>Acceleration in y-direction</h3>
<p><img src='http://s.wordpress.com/latex.php?latex=%5Cdfrac%7B-b%7D%7Bm%7D%5Cleft%28%5Cdfrac%7Bmg%7D%7Bb%7D%2Bv_%7B0%7D%5Csin%5Ctheta%5Cright%29e%5E%5Cfrac%7B-bt%7D%7Bm%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\dfrac{-b}{m}\left(\dfrac{mg}{b}+v_{0}\sin\theta\right)e^\frac{-bt}{m}' title='\dfrac{-b}{m}\left(\dfrac{mg}{b}+v_{0}\sin\theta\right)e^\frac{-bt}{m}' class='latex' /></br></p>
<h3>Equation of the Trajectory</h3>
<p>An explicit equation for the trajectory can be derived by using equation (1) to eliminate the time &#8220;t&#8221; and substituting that value into equation (2). We find:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=t%3D%5Cdfrac%7B-m%7D%7Bb%7D%5Cln%20%5Cleft%281-%5Cdfrac%7Bx%7D%7Bx_%7B%5Cinfty%7D%7D%5Cright%29&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='t=\dfrac{-m}{b}\ln \left(1-\dfrac{x}{x_{\infty}}\right)' title='t=\dfrac{-m}{b}\ln \left(1-\dfrac{x}{x_{\infty}}\right)' class='latex' /> where <img src='http://s.wordpress.com/latex.php?latex=x_%7B%5Cinfty%7D%3D%5Cdfrac%7Bmv_%7B0%7D%5Ccos%5Ctheta%7D%7Bb%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='x_{\infty}=\dfrac{mv_{0}\cos\theta}{b}' title='x_{\infty}=\dfrac{mv_{0}\cos\theta}{b}' class='latex' />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equation&nbsp;(3)</br></p>
<p><img src='http://s.wordpress.com/latex.php?latex=y%3D%5Cdfrac%7Bx%5Cleft%28v_%7B0%7D%5Csin%5Ctheta%2B%5Cdfrac%7Bmg%7D%7Bb%7D%5Cright%29%7D%7Bv_%7B0%7D%5Ccos%5Ctheta%7D%2B%5Cleft%28%5Cdfrac%7Bm%7D%7Bb%7D%5Cright%29%5E2g%5Cln%5Cleft%281-%5Cdfrac%7Bx%7D%7Bx_%7B%5Cinfty%7D%7D%5Cright%29&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='y=\dfrac{x\left(v_{0}\sin\theta+\dfrac{mg}{b}\right)}{v_{0}\cos\theta}+\left(\dfrac{m}{b}\right)^2g\ln\left(1-\dfrac{x}{x_{\infty}}\right)' title='y=\dfrac{x\left(v_{0}\sin\theta+\dfrac{mg}{b}\right)}{v_{0}\cos\theta}+\left(\dfrac{m}{b}\right)^2g\ln\left(1-\dfrac{x}{x_{\infty}}\right)' class='latex' />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equation&nbsp;(4)</br></p>
<p>This trajectory showing Y as a function of x is shown for representative values of the parameters in Figure 2.</p>
<p><img src="http://www.riotstories.co.uk//wp-content/themes/child2011/images/trajectory_linear.png" alt="Trajectory with air resistance" /><br />
Figure 2: Trajectory With Linear Air Resistance</p>
<p>The mathematical solutions to equation (2) are shown in Figure 3 but we are only interested in physical solutions i.e. those for which y is positive.</p>
<p><img src="http://www.riotstories.co.uk/wp-content/themes/child2011/images/mathematical.png" alt="Mathematical Solutions to the Trajectory" /><br />
Figure 3: Mathematical Solutions to the Trajectory</p>
<p>Figure 4 shows the trajectories for 2 projectiles with the same parameters, 1 projectile experiencing zero air resistance and the other experiencing linear air resistance as described in this post. The projectile with linear air resistance is the lower curve and shows a significantly reduced range compared to the &#8220;no air resistance&#8221; projectile (not surprisingly). Not only is the range reduced when air resistance is present but the shape of the trajectory is also changed. Specifically, the trajectory with no air resistance is described by a parabola which is symetric about the point of maximum height. When air resistance is present the trajectory is not symetric and is not parabolic. Instead it is skewed towards the high-z end of the flight because of the diminishing horizontal speed (remember the horizontal speed was constant in the case of no air resistance).</p>
<p><img src="http://www.riotstories.co.uk/wp-content/themes/child2011/images/bothtraj.png" alt="Comparison of Trajectories" /><br />
Figure 4: Comparison of Trajectories when Air Resistance Present</p>
<h2>4. Trajectory</h2>
<p>We can calculate some features of the trajectory by looking at the behaviour of the solutions to the EOM in specific limiting circumstances.</p>
<h3>Time to Maximum Height</h3>
<p>We can calculate the time of maximum height by solving <img src='http://s.wordpress.com/latex.php?latex=%5Cdfrac%7Bdy%7D%7Bdt%7D%3D0&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\dfrac{dy}{dt}=0' title='\dfrac{dy}{dt}=0' class='latex' /> for t where <img src='http://s.wordpress.com/latex.php?latex=y%28t%29&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='y(t)' title='y(t)' class='latex' /> is given by equation (2). We find:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=%5Cdfrac%7Bdy%7D%7Bdt%7D%3D%5Cdfrac%7B-mg%7D%7Bb%7D%2B%5Cleft%28%5Cdfrac%7Bgm%7D%7Bb%7D%2Bv_%7B0%7D%5Csin%5Ctheta%5Cright%29e%5E%5Cfrac%7B-bt%7D%7Bm%7D%3D0&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\dfrac{dy}{dt}=\dfrac{-mg}{b}+\left(\dfrac{gm}{b}+v_{0}\sin\theta\right)e^\frac{-bt}{m}=0' title='\dfrac{dy}{dt}=\dfrac{-mg}{b}+\left(\dfrac{gm}{b}+v_{0}\sin\theta\right)e^\frac{-bt}{m}=0' class='latex' /></br></p>
<p>From which <img src='http://s.wordpress.com/latex.php?latex=t_%7Bm%7D%3D%5Cleft%28%5Cdfrac%7Bm%7D%7Bb%7D%5Cright%29%5Cln%20%5Cleft%28%5Cdfrac%7Bb%5Cleft%28%5Cdfrac%7Bmg%7D%7Bb%7D%2Bv_%7B0%7D%5Csin%5Ctheta%5Cright%29%7D%7Bmg%7D%5Cright%29&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='t_{m}=\left(\dfrac{m}{b}\right)\ln \left(\dfrac{b\left(\dfrac{mg}{b}+v_{0}\sin\theta\right)}{mg}\right)' title='t_{m}=\left(\dfrac{m}{b}\right)\ln \left(\dfrac{b\left(\dfrac{mg}{b}+v_{0}\sin\theta\right)}{mg}\right)' class='latex' />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equation&nbsp;(5)</br></p>
<h3>Co-ordinates of Maximum Height</h3>
<p>We can calculate the x position of the maximum height by solving <img src='http://s.wordpress.com/latex.php?latex=%5Cdfrac%7Bdy%7D%7Bdx%7D%3D0&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\dfrac{dy}{dx}=0' title='\dfrac{dy}{dx}=0' class='latex' /> for x where y(x) is given by equation (4). We find:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=%5Cdfrac%7Bdy%7D%7Bdx%7D%3D%5Cdfrac%7B%5Csec%5Ctheta%5Cleft%28%5Cdfrac%7Bmg%7D%7Bb%7D%2Bv_%7B0%7D%5Csin%5Ctheta%5Cright%29%7D%7Bv_%7B0%7D%7D-%5Cdfrac%7Bmg%5Csec%5Ctheta%7D%7Bbv_%7B0%7D%5Cleft%281-%5Cdfrac%7Bbx%5Csec%5Ctheta%7D%7Bmv_%7B0%7D%7D%5Cright%29%7D%3D0&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\dfrac{dy}{dx}=\dfrac{\sec\theta\left(\dfrac{mg}{b}+v_{0}\sin\theta\right)}{v_{0}}-\dfrac{mg\sec\theta}{bv_{0}\left(1-\dfrac{bx\sec\theta}{mv_{0}}\right)}=0' title='\dfrac{dy}{dx}=\dfrac{\sec\theta\left(\dfrac{mg}{b}+v_{0}\sin\theta\right)}{v_{0}}-\dfrac{mg\sec\theta}{bv_{0}\left(1-\dfrac{bx\sec\theta}{mv_{0}}\right)}=0' class='latex' /></br></p>
<p>Which, when solved for x gives <img src='http://s.wordpress.com/latex.php?latex=x_%7Bm%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='x_{m}' title='x_{m}' class='latex' /> the horizontal co-ordinate of the maximum. We find:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=x_%7Bm%7D%3D%5Cdfrac%7Bmv_%7B0%7D%5E2%5Ccos%5Ctheta%5Csin%5Ctheta%7D%7B%5Cleft%28mg%2Bbv_%7B0%7D%5Csin%5Ctheta%5Cright%29%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='x_{m}=\dfrac{mv_{0}^2\cos\theta\sin\theta}{\left(mg+bv_{0}\sin\theta\right)}' title='x_{m}=\dfrac{mv_{0}^2\cos\theta\sin\theta}{\left(mg+bv_{0}\sin\theta\right)}' class='latex' />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equation&nbsp;(6)</br></p>
<p>We can calculate the y co-ordinate of the maximum (i.e. the maximum height reached) by evaluating equation (4) for <img src='http://s.wordpress.com/latex.php?latex=x%3Dx_%7Bm%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='x=x_{m}' title='x=x_{m}' class='latex' /> where <img src='http://s.wordpress.com/latex.php?latex=x_%7Bm%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='x_{m}' title='x_{m}' class='latex' /> is given by equation (5). Substituting equation (5) into equation(4) and doing some algebra results in:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=y_%7Bm%7D%3D%5Cdfrac%7Bm%7D%7Bb%5E2%7D%5Cleft%28mg%5Cln%5Cleft%28%5Cdfrac%7Bmg%7D%7Bmg%2Bbv_%7B0%7D%5Csin%5Ctheta%7D%5Cright%29%2Bbv_%7B0%7D%5Csin%5Ctheta%5Cright%29&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='y_{m}=\dfrac{m}{b^2}\left(mg\ln\left(\dfrac{mg}{mg+bv_{0}\sin\theta}\right)+bv_{0}\sin\theta\right)' title='y_{m}=\dfrac{m}{b^2}\left(mg\ln\left(\dfrac{mg}{mg+bv_{0}\sin\theta}\right)+bv_{0}\sin\theta\right)' class='latex' />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equation&nbsp;(7)</br></p>
<p>Taken together, equations (5),(6) and (7) define the maximum point in the trajectory. Notice that we couldn&#8217;t use the same convenient relationships as we did in the case of no air resistance (x velocity constant, trajectory symmetric, flight time= twice time to maximum height) because the trajectory with linear air resistance is not symmetric and the x velocity is not constant.</p>
<h3>Horizontal Range</h3>
<p>We can now look at the horizontal range. This is calculated by finding all the real solutions for x from equation (4) when we set y=0. In general we can&#8217;t solve this in closed form (i.e. write a general formula for the solution), instead it has to be solved numerically on a case by case basis.</p>
<p>However, we can make some progress if we restrict ourselves to instances where the air resistance is low. In our equations this means looking at the case where &#8220;b&#8221; is small. before proceeding with this analysis though, it gets messy with all the symbols and can make equations look more complex than they are, so concealing the essential points. To address this we can re-scale the variables so that the equations become dimensionless and (hopefully) simpler to write and manipulate.</p>
<p>For the x and y co-ordinates, a sensible quantity to use to scale the co-ordinates would be the maximum horizontal range in the absence of air resistance i.e. <img src='http://s.wordpress.com/latex.php?latex=%5Cdfrac%7Bv_%7B0%7D%5E2%7D%7Bg%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\dfrac{v_{0}^2}{g}' title='\dfrac{v_{0}^2}{g}' class='latex' />. We can therefore define <img src='http://s.wordpress.com/latex.php?latex=Y%3D%5Cdfrac%7Byg%7D%7Bv_%7B0%7D%5E2%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='Y=\dfrac{yg}{v_{0}^2}' title='Y=\dfrac{yg}{v_{0}^2}' class='latex' /> and <img src='http://s.wordpress.com/latex.php?latex=X%3D%5Cdfrac%7Bxg%7D%7Bv_%7B0%7D%5E2%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='X=\dfrac{xg}{v_{0}^2}' title='X=\dfrac{xg}{v_{0}^2}' class='latex' />. Using these new variables we can re-write equation (4) as:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=Y%3D%5Cdfrac%7BX%7D%7Bc%7D%5Cleft%28s%2B%5Cdfrac%7B1%7D%7BB%7D%5Cright%29%2B%5Cdfrac%7B1%7D%7BB%5E2%7D%5Cln%5Cleft%281-%5Cdfrac%7BBX%7D%7Bc%7D%5Cright%29&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='Y=\dfrac{X}{c}\left(s+\dfrac{1}{B}\right)+\dfrac{1}{B^2}\ln\left(1-\dfrac{BX}{c}\right)' title='Y=\dfrac{X}{c}\left(s+\dfrac{1}{B}\right)+\dfrac{1}{B^2}\ln\left(1-\dfrac{BX}{c}\right)' class='latex' />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equation&nbsp;(8)</br></p>
<p>Where <img src='http://s.wordpress.com/latex.php?latex=B%3D%5Cdfrac%7Bbv_%7B0%7D%7D%7Bmg%7D%2C%20c%3D%5Ccos%5Ctheta%2C%20s%3D%5Csin%5Ctheta&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='B=\dfrac{bv_{0}}{mg}, c=\cos\theta, s=\sin\theta' title='B=\dfrac{bv_{0}}{mg}, c=\cos\theta, s=\sin\theta' class='latex' /> for convenient writing.</br></p>
<p>If we assume <img src='http://s.wordpress.com/latex.php?latex=B%5CRightarrow0&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='B\Rightarrow0' title='B\Rightarrow0' class='latex' /> then we can expand the logarithm around zero and retain only terms linear in B (this means retaining terms up to the cubic term in B in the expansion). Writing the series expansion for the log around zero and doing some algebra results in the following quadratic:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=Y%3D%5Cdfrac%7B-BX%5E2%7D%7B3c%5E2%7D-%5Cdfrac%7BX%7D%7B2c%7D%2Bs&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='Y=\dfrac{-BX^2}{3c^2}-\dfrac{X}{2c}+s' title='Y=\dfrac{-BX^2}{3c^2}-\dfrac{X}{2c}+s' class='latex' /></br></p>
<p>The horizontal range is found by finding solutions to Y=0 i.e. <img src='http://s.wordpress.com/latex.php?latex=Y%3D%5Cdfrac%7B-BX%5E2%7D%7B3c%5E2%7D-%5Cdfrac%7BX%7D%7B2c%7D%2Bs%3D0&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='Y=\dfrac{-BX^2}{3c^2}-\dfrac{X}{2c}+s=0' title='Y=\dfrac{-BX^2}{3c^2}-\dfrac{X}{2c}+s=0' class='latex' /></br></p>
<p>Solving the quadratic gives the following roots for X:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=X%3D%5Cdfrac%7B-3c%5Cpm%5Csqrt3%5Cleft%28%5Csqrt%7B3c%5E2%2B16c%5E2sB%7D%20%5Cright%29%7D%7B4B%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='X=\dfrac{-3c\pm\sqrt3\left(\sqrt{3c^2+16c^2sB} \right)}{4B}' title='X=\dfrac{-3c\pm\sqrt3\left(\sqrt{3c^2+16c^2sB} \right)}{4B}' class='latex' /></br></p>
<p>Physical solutions require X to be positive so we&#8217;re only interested in the positive root of the quadratic. Since B is small we can expand the square root and like before only keep terms that result in a linear dependence on B. This emans retaining expansion terms upto <img src='http://s.wordpress.com/latex.php?latex=B%5E2&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='B^2' title='B^2' class='latex' />. Doing the algebra results in the solution:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=X%3D2cs%5Cleft%281-%5Cdfrac%7B4%7D%7B3%7DsB%5Cright%29%3Dsin2%5Ctheta%5Cleft%281-%5Cdfrac%7B4%7D%7B3%7DB%5Csin%5Ctheta%5Cright%29&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='X=2cs\left(1-\dfrac{4}{3}sB\right)=sin2\theta\left(1-\dfrac{4}{3}B\sin\theta\right)' title='X=2cs\left(1-\dfrac{4}{3}sB\right)=sin2\theta\left(1-\dfrac{4}{3}B\sin\theta\right)' class='latex' />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equation&nbsp;(9)</br></p>
<p>At this point we can check if this makes sense by checking the case where there is no air resistance i.e. B=0. In this case <img src='http://s.wordpress.com/latex.php?latex=X%3D2cs%2C%5CRightarrow%20x%3D%5Cdfrac%7Bv_%7B0%7D%5E2%5Csin2%5Ctheta%7D%7Bg%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='X=2cs,\Rightarrow x=\dfrac{v_{0}^2\sin2\theta}{g}' title='X=2cs,\Rightarrow x=\dfrac{v_{0}^2\sin2\theta}{g}' class='latex' /> which agrees with the results in the previous post where projectiles with no air resistance were analysed. So far so good.</p>
<p>For a fixed value of B the range is plotted in Figure X for various launch angles. As you can see there&#8217;s an optimum launch angle that gives a maximum range for the chosen value of B. We&#8217;ll calculate that optimum angle in the next section.</p>
<p><img src="http://www.riotstories.co.uk/wp-content/themes/child2011/images/range.png" alt="Horizontal range as a function on launch angle" /><br />
Figure 5: Horizontal Range v Launch Angle with Linear Air resistance Present</p>
<h3>Angle of Maximum Horizontal Range</h3>
<p>To calculate the angle giving maximum horizontal range we need to solve <img src='http://s.wordpress.com/latex.php?latex=%5Cdfrac%7BdX%7D%7Bd%5Ctheta%7D%3D0&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\dfrac{dX}{d\theta}=0' title='\dfrac{dX}{d\theta}=0' class='latex' /> for <img src='http://s.wordpress.com/latex.php?latex=%5Ctheta&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\theta' title='\theta' class='latex' />, we can then calculate the actual range by evaluating X at this angle. So, first things first, let&#8217;s calculate the angle for maximum range by evaluating the derivative of equation (9) and setting it to zero.</p>
<p><img src='http://s.wordpress.com/latex.php?latex=%5Cdfrac%7BdX%7D%7Bd%5Ctheta%7D%3D2%5Ccos2%5Ctheta%5Cleft%281-%5Cdfrac%7B4B%5Csin%5Ctheta%7D%7B3%7D%5Cright%29-%5Cdfrac%7B4B%5Ccos%5Ctheta%5Csin2%5Ctheta%7D%7B3%7D%3D0&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\dfrac{dX}{d\theta}=2\cos2\theta\left(1-\dfrac{4B\sin\theta}{3}\right)-\dfrac{4B\cos\theta\sin2\theta}{3}=0' title='\dfrac{dX}{d\theta}=2\cos2\theta\left(1-\dfrac{4B\sin\theta}{3}\right)-\dfrac{4B\cos\theta\sin2\theta}{3}=0' class='latex' />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equation&nbsp;(10)</br></p>
<p>We can check if this feels right by setting B=0 and confirming the solution is <img src='http://s.wordpress.com/latex.php?latex=%5Ctheta%3D%5Cpi%2F4&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\theta=\pi/4' title='\theta=\pi/4' class='latex' />, the result for no air resistance. If we set B=0 then we have <img src='http://s.wordpress.com/latex.php?latex=0%3D2%5Ccos2%5Ctheta&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='0=2\cos2\theta' title='0=2\cos2\theta' class='latex' /> which is true for <img src='http://s.wordpress.com/latex.php?latex=2%5Ctheta%3D%5Cpi%2F2%2C%20%5CRightarrow%20%5Ctheta%3D%5Cpi%2F4&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='2\theta=\pi/2, \Rightarrow \theta=\pi/4' title='2\theta=\pi/2, \Rightarrow \theta=\pi/4' class='latex' /> in the range of launch angles of relevance to us. So, looking good so far.</p>
<p>For the case B=0 we&#8217;ve just found that the solution for optimal angle is <img src='http://s.wordpress.com/latex.php?latex=%5Ctheta%3D%5Cpi%2F4&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\theta=\pi/4' title='\theta=\pi/4' class='latex' />. For B non zero but small, this allows us to assume a solution of the form <img src='http://s.wordpress.com/latex.php?latex=%5Ctheta%3D%5Cpi%2F4%2B%5Cepsilon%20B&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\theta=\pi/4+\epsilon B' title='\theta=\pi/4+\epsilon B' class='latex' /> and to solve for <img src='http://s.wordpress.com/latex.php?latex=%5Cepsilon&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\epsilon' title='\epsilon' class='latex' />.</p>
<p>With B small we can expand the trig entries in equation (10) to produce a simpler equation to solve. Calculating the series expansions for the trig terms in equation (10) we find:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=%5Ccos2%5Ctheta%3D-%5Csin2%5Cepsilon%20B%3D-2%5Cepsilon%20B&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\cos2\theta=-\sin2\epsilon B=-2\epsilon B' title='\cos2\theta=-\sin2\epsilon B=-2\epsilon B' class='latex' /><br />
<img src='http://s.wordpress.com/latex.php?latex=%5Csin%5Ctheta%3D%5Csin%5Cpi%2F4%2B%5Cepsilon%20B%5Ccos%5Cpi%2F4&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\sin\theta=\sin\pi/4+\epsilon B\cos\pi/4' title='\sin\theta=\sin\pi/4+\epsilon B\cos\pi/4' class='latex' /><br />
<img src='http://s.wordpress.com/latex.php?latex=%5Ccos%5Cepsilon%20B%3D1&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\cos\epsilon B=1' title='\cos\epsilon B=1' class='latex' /><br />
<img src='http://s.wordpress.com/latex.php?latex=%5Csin2%5Ctheta%3D%5Ccos%5Cepsilon%20B%3D1&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\sin2\theta=\cos\epsilon B=1' title='\sin2\theta=\cos\epsilon B=1' class='latex' /></br></p>
<p>Inserting these values into equation 910) and performing some algebra gives the result:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=%5Cdfrac%7B4B%7D%7B3%5Csqrt%7B2%7D%7D%2B4B%5Cepsilon%3D0%2C%20%5CRightarrow%5Cepsilon%3D%5Cdfrac%7B-1%7D%7B3%5Csqrt%7B2%7D%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\dfrac{4B}{3\sqrt{2}}+4B\epsilon=0, \Rightarrow\epsilon=\dfrac{-1}{3\sqrt{2}}' title='\dfrac{4B}{3\sqrt{2}}+4B\epsilon=0, \Rightarrow\epsilon=\dfrac{-1}{3\sqrt{2}}' class='latex' /></br></p>
<p>Giving the optimum angle for a specific value of B, <img src='http://s.wordpress.com/latex.php?latex=%5Ctheta%3D%5Cdfrac%7B%5Cpi%7D%7B4%7D-%5Cdfrac%7BB%7D%7B3%5Csqrt%7B2%7D%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\theta=\dfrac{\pi}{4}-\dfrac{B}{3\sqrt{2}}' title='\theta=\dfrac{\pi}{4}-\dfrac{B}{3\sqrt{2}}' class='latex' /> which reduces to <img src='http://s.wordpress.com/latex.php?latex=%5Cdfrac%7B%5Cpi%7D%7B4%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\dfrac{\pi}{4}' title='\dfrac{\pi}{4}' class='latex' /> in the absence of air resistance as expected.</p>
<p>The importrant point to take away from this result is that in the rpesence of air resistance, the optimum angle for maximum range is less than the result when there is no air resistance.</p>
<p>We can now calculate the range at this optimum angle by substituting the above result for <img src='http://s.wordpress.com/latex.php?latex=%5Ctheta&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\theta' title='\theta' class='latex' /> into equation (9) and evaluating. Remembering that B is small the trig terms in equation (9) reduce to:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=%5Csin2%5Ctheta%3D%5Csin%5Cleft%28%5Cdfrac%7B%5Cpi%7D%7B2%7D%2B2B%5Cepsilon%5Cright%29%3D%5Ccos%5Cleft%282B%5Cepsilon%5Cright%29%3D1&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\sin2\theta=\sin\left(\dfrac{\pi}{2}+2B\epsilon\right)=\cos\left(2B\epsilon\right)=1' title='\sin2\theta=\sin\left(\dfrac{\pi}{2}+2B\epsilon\right)=\cos\left(2B\epsilon\right)=1' class='latex' /></br><br />
<img src='http://s.wordpress.com/latex.php?latex=%5Csin%5Ctheta%3D%5Csin%5Cdfrac%7B%5Cpi%7D%7B4%7D%3D%5Cdfrac%7B1%7D%7B%5Csqrt%7B2%7D%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\sin\theta=\sin\dfrac{\pi}{4}=\dfrac{1}{\sqrt{2}}' title='\sin\theta=\sin\dfrac{\pi}{4}=\dfrac{1}{\sqrt{2}}' class='latex' /></p>
<p>So, from equation (9) we have:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=X%3D1-%5Cdfrac%7B4B%7D%7B3%5Csqrt%7B2%7D%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='X=1-\dfrac{4B}{3\sqrt{2}}' title='X=1-\dfrac{4B}{3\sqrt{2}}' class='latex' /></br></p>
<p>In the case where B=0 this reduces to X=1 or <img src='http://s.wordpress.com/latex.php?latex=x%3D%5Cdfrac%7Bv_%7B0%7D%5E2%7D%7Bg%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='x=\dfrac{v_{0}^2}{g}' title='x=\dfrac{v_{0}^2}{g}' class='latex' /> in agreement with the previous result for no air resistance. In the case where B is non zero the range is reduced, as expected.</p>
<h2>5. Comparison With No Air Resistance</h2>
<p>So, in the presence of air resistance we find:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=range%3D%5Cdfrac%7Bv_%7B0%7D%5E2%7D%7Bg%7D%5Csin2%5Ctheta%5Cleft%281-%5Cdfrac%7B4bv_%7B0%7D%5Csin%5Ctheta%7D%7B3mg%7D%5Cright%29&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='range=\dfrac{v_{0}^2}{g}\sin2\theta\left(1-\dfrac{4bv_{0}\sin\theta}{3mg}\right)' title='range=\dfrac{v_{0}^2}{g}\sin2\theta\left(1-\dfrac{4bv_{0}\sin\theta}{3mg}\right)' class='latex' /></br><br />
<img src='http://s.wordpress.com/latex.php?latex=%5Ctheta_%7Bmax%7D%3D%5Cdfrac%7B%5Cpi%7D%7B4%7D-%5Cdfrac%7Bbv_%7B0%7D%7D%7B3mg%5Csqrt%7B2%7D%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\theta_{max}=\dfrac{\pi}{4}-\dfrac{bv_{0}}{3mg\sqrt{2}}' title='\theta_{max}=\dfrac{\pi}{4}-\dfrac{bv_{0}}{3mg\sqrt{2}}' class='latex' /></br><br />
<img src='http://s.wordpress.com/latex.php?latex=z_%7Bmax%7D%3D%5Cdfrac%7Bv_%7B0%7D%5E2%7D%7Bg%7D-%5Cdfrac%7B4bv_%7B0%7D%5E3%7D%7B3mg%5E2%5Csqrt%7B2%7D%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='z_{max}=\dfrac{v_{0}^2}{g}-\dfrac{4bv_{0}^3}{3mg^2\sqrt{2}}' title='z_{max}=\dfrac{v_{0}^2}{g}-\dfrac{4bv_{0}^3}{3mg^2\sqrt{2}}' class='latex' /></br></p>
<p>A point to remember in all this is that the detailed analysis only applies for small values of &#8220;b&#8221; i.e. the air resistance factor. The results derived from the formulae above will begin to diverge from those obtained from numerical modelling of the trajectory as &#8220;b&#8221; increases. Beyond the divergence threshold solutions to equation (4) where y=0 have to be found numerically.</p>
<p>So, that&#8217;s it for projectiles with linear air resistance. There&#8217;s more you could do with this, writing a Java program to solve equation (4) and comparing the results with the calculations for small &#8220;b&#8221; to establish when the two approaches diverge for example. For now, however, this post is complete. A final post on projectile motion with quadratic air resistance will follow this one. have fun <img src='http://www.riotstories.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<div id="crp_related"><h3>Possibly Related Posts:</h3><div id=relposts><ul><li><a href="http://www.riotstories.co.uk/science/projectile/" rel="bookmark" class="crp_link"><span class="crp_title"> Projectile Motion III: Air Resistance Quadratic in Speed</span></a></li><li><a href="http://www.riotstories.co.uk/science/projectiles-no-air-resistance/" rel="bookmark" class="crp_link"><span class="crp_title"> Projectile Motion I: No Air Resistance</span></a></li><li><a href="http://www.riotstories.co.uk/science/frets/" rel="bookmark" class="crp_link"><span class="crp_title"> Guitar Frets</span></a></li><li><a href="http://www.riotstories.co.uk/science/seashells/" rel="bookmark" class="crp_link"><span class="crp_title"> Modelling Seashells</span></a></li><li><a href="http://www.riotstories.co.uk/wordpress/add-rss-subscription-icons-to-the-twenty-eleven-theme/" rel="bookmark" class="crp_link"><span class="crp_title"> Add RSS Subscription Icons to the Twenty Eleven Theme</span></a></li></ul></div></div><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/riotstories?a=iwcQD7EN9hE:EaPns_p_dfQ:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/riotstories?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/riotstories?a=iwcQD7EN9hE:EaPns_p_dfQ:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/riotstories?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/riotstories?a=iwcQD7EN9hE:EaPns_p_dfQ:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/riotstories?i=iwcQD7EN9hE:EaPns_p_dfQ:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/riotstories?a=iwcQD7EN9hE:EaPns_p_dfQ:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/riotstories?i=iwcQD7EN9hE:EaPns_p_dfQ:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/riotstories?a=iwcQD7EN9hE:EaPns_p_dfQ:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/riotstories?i=iwcQD7EN9hE:EaPns_p_dfQ:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/riotstories/~4/iwcQD7EN9hE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.riotstories.co.uk/science/projectile-motion-ii-air-resistance-linear-in-speed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.riotstories.co.uk/science/projectile-motion-ii-air-resistance-linear-in-speed/</feedburner:origLink></item>
		<item>
		<title>Projectile Motion I: No Air Resistance</title>
		<link>http://feedproxy.google.com/~r/riotstories/~3/wwoAz9y0B74/</link>
		<comments>http://www.riotstories.co.uk/science/projectiles-no-air-resistance/#comments</comments>
		<pubDate>Tue, 06 Mar 2012 12:30:15 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Science]]></category>
		<category><![CDATA[Monkey Hunter]]></category>
		<category><![CDATA[Physics]]></category>
		<category><![CDATA[Projectile Motion]]></category>

		<guid isPermaLink="false">http://www.riotstories.co.uk/?p=1311</guid>
		<description><![CDATA[Exact solutions to the equations of motion are derived for a classical projectile in a uniform gravitational field with zero air resistance. <a href="http://www.riotstories.co.uk/science/projectiles-no-air-resistance/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This is the first part of a 3 part post looking at projectile motion. Part I (this post), looks at the case where there is no air resistance (this situation will be familiar to anyone who has studied basic Physics). Part II adds in air resistance where the impeding force is a linear function of the projectile speed. Part III includes resistance where the force is a quadratic function of the speed.<span id="more-1311"></span></p>
<h2>1.&nbsp;Equations of Motion (EOM)</h2>
<p>The physical situation being considered is shown in Figure 1. We&#8217;re considering a projectile that hass mass &#8220;m&#8221; being launched at an arbitrary angle <img src='http://s.wordpress.com/latex.php?latex=%5Ctheta&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\theta' title='\theta' class='latex' /> to the horizontal axis with an arbitrary initial velocity <img src='http://s.wordpress.com/latex.php?latex=v_%7B0%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='v_{0}' title='v_{0}' class='latex' />. There is no air resistance and the only force acting on the projectile is the force of gravity &#8211; which for now we&#8217;ll take as being constant, g.</p>
<p><img src="http://www.riotstories.co.uk/wp-content/themes/child2011/images/projectilemotion.jpg" alt="Projectile Motion" /><br />
<span class="figure">Figure 1: Projectile Motion</span></p>
<p>We&#8217;ll constrain the projectile to move in only 2 dimensions, we&#8217;ll call them x and y with x along the horizontal, increasing left to right and y running vertically, increasing bottom to top. the position of the projectile at any time t can be written asa a position vector <img src='http://s.wordpress.com/latex.php?latex=%5Cunderline%7Br%28t%29%7D%3Dx%28t%29%5Cunderline%7Bi%7D%2By%28t%29%5Cunderline%7Bj%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\underline{r(t)}=x(t)\underline{i}+y(t)\underline{j}' title='\underline{r(t)}=x(t)\underline{i}+y(t)\underline{j}' class='latex' /></p>
<p>The motion of the projectile is governed by Newtons laws of motion, for the discussion here, Newtons 2nd law of motion is the important one. This can me written in general as:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=%5Cunderline%7BF%7D%3Dm%5Cunderline%7Ba%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\underline{F}=m\underline{a}' title='\underline{F}=m\underline{a}' class='latex' /> where F and a are both vector quantities</p>
<p><img src='http://s.wordpress.com/latex.php?latex=%5Cunderline%7BF%7D%3D0%5Cunderline%7Bi%7D-mg%5Cunderline%7Bj%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\underline{F}=0\underline{i}-mg\underline{j}' title='\underline{F}=0\underline{i}-mg\underline{j}' class='latex' /> i.e. gravity acts vertically in the negative y direction i.e. straight downwards and the force due to gravity on a mass m is the weight given by mg.</p>
<p>Newtons 2nd law can now be written as follows in vector form:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=m%5Cleft%28%5Cdfrac%7Bd%5E2x%7D%7Bdt%5E2%7D%5Cunderline%7Bi%7D%2B%5Cdfrac%7Bd%5E2y%7D%7Bdt%5E2%7D%5Cunderline%7Bj%7D%5Cright%29%3D0%5Cunderline%7Bi%7D-mg%5Cunderline%7Bj%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='m\left(\dfrac{d^2x}{dt^2}\underline{i}+\dfrac{d^2y}{dt^2}\underline{j}\right)=0\underline{i}-mg\underline{j}' title='m\left(\dfrac{d^2x}{dt^2}\underline{i}+\dfrac{d^2y}{dt^2}\underline{j}\right)=0\underline{i}-mg\underline{j}' class='latex' /></br></p>
<p>This allows us to write 2 separate equations of motion, 1 for motion in the x direction and 1 for motion in the y direction as follows:</p>
<h3>EOM x-direction</h3>
<p><img src='http://s.wordpress.com/latex.php?latex=m%5Cdfrac%7Bd%5E2x%7D%7Bdt%5E2%7D%3D0&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='m\dfrac{d^2x}{dt^2}=0' title='m\dfrac{d^2x}{dt^2}=0' class='latex' />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equation&nbsp;(1)</p>
<h3>EOM y-direction</h3>
<p><img src='http://s.wordpress.com/latex.php?latex=%5Cdfrac%7Bd%5E2x%7D%7Bdt%5E2%7D%3D-g&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\dfrac{d^2x}{dt^2}=-g' title='\dfrac{d^2x}{dt^2}=-g' class='latex' />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equation&nbsp;(2)</p>
<p>Straight away equation (1) shows that motion in the x direction is not subject to a force, therefore from Newtons 2nd Law there is no acceleration therefore the velocity in the x direction is constant (remember the velocity is a vector so has both magnitude and direction) which means the speed in the x-direction is constant.</p>
<p>Equation (2) shows that this is not the case in the y-direction where there is a force but the motion is independent of the mass of the projectile m. This might be surprising if you&#8217;ve never come across this subject before, you might think that heavier objects will fall faster. They don&#8217;t. In an ideal vacuum all objects fall at the same rate &#8211; see the video below from Apollo 15 where a hammer and feathere are relased at the same time and land at the same time:</p>
<span style="text-align:center; display: block;"><a href="http://www.riotstories.co.uk/science/projectiles-no-air-resistance/"><img src="http://img.youtube.com/vi/KDp1tiUsZw8/2.jpg" alt="" /></a></span>
<h2>2.&nbsp;Solutions to EOM</h2>
<p>To find the equation of motion for the particle we need to solve equations (1) and (2). In mathematical terms these are called ordinary differential equations. An important point to note is that both are linear and they are uncoupled. These properties make exact solutions possible. To solve equations (1) and (2) we need to know some starting values (called initial conditions). Well, we do know some. From Figure 1 we can see that x(t=0) = 0 and y(t=0) = 0 and the velocity in the x-direction is <img src='http://s.wordpress.com/latex.php?latex=v_%7B0%7D%5Ccos%5Ctheta&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='v_{0}\cos\theta' title='v_{0}\cos\theta' class='latex' /> with the velocity in the y-direction being <img src='http://s.wordpress.com/latex.php?latex=v_%7B0%7D%5Csin%5Ctheta&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='v_{0}\sin\theta' title='v_{0}\sin\theta' class='latex' /></p>
<p>To find the solution to equation (1) and (2) with initial conditions we need to integrate (1) and (2) and use the initial conditions to calculate the constants of integration.</p>
<p>Integrating equation (1) gives:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=x%5Cleft%28t%5Cright%29%3Dv_%7B0%7Dt%5Ccos%5Ctheta&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='x\left(t\right)=v_{0}t\cos\theta' title='x\left(t\right)=v_{0}t\cos\theta' class='latex' />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equation&nbsp;(3)</br></p>
<p>where the constant of integration is = 0</p>
<p>Integrating equation (2) gives:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=y%5Cleft%28t%5Cright%29%3Dv_%7B0%7Dt%5Csin%5Ctheta-%5Cdfrac%7B1%7D%7B2%7Dgt%5E2&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='y\left(t\right)=v_{0}t\sin\theta-\dfrac{1}{2}gt^2' title='y\left(t\right)=v_{0}t\sin\theta-\dfrac{1}{2}gt^2' class='latex' />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equation&nbsp;(4)</br></p>
<p>where the constant of integration is = 0</p>
<p>Equations (3) and (4) provide parametric equations for x and y. We could use the ideas in one of the previous posts where parametric equations were covered (see: <a href="http://www.riotstories.co.uk/science/seashells/" title="Modelling Seashells" target="_blank">http://www.riotstories.co.uk/science/seashells/</a> to plot x and y as functions of t.</p>
<p>Instead wew can express y as a function of x by using  equation (3) to eliminate &#8220;t&#8221; then substitute into (4) to get an explicit expression for y in terms of x alone. from equation (3) we find:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=t%3D%5Cdfrac%7Bx%28t%29%7D%7Bv_%7B0%7D%5Ccos%5Ctheta%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='t=\dfrac{x(t)}{v_{0}\cos\theta}' title='t=\dfrac{x(t)}{v_{0}\cos\theta}' class='latex' /></br></p>
<p>Substituting this into equation (4) and doing some algebra gives:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=y%3Dx%20%5Ctan%5Ctheta%20-%20%5Cdfrac%7Bg%20x%5E2%7D%7B2v_%7B0%7D%5E2%28%5Ccos%5E2%5Ctheta%29%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='y=x \tan\theta - \dfrac{g x^2}{2v_{0}^2(\cos^2\theta)}' title='y=x \tan\theta - \dfrac{g x^2}{2v_{0}^2(\cos^2\theta)}' class='latex' />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equation&nbsp;(5)</br></p>
<p>This curve is shown in Figure 2 and is parabolic.</p>
<p><img src="http://www.riotstories.co.uk/wp-content/themes/child2011/images/parabola.png" alt="Parabolic Trajectory" /><br />
<span class="figure">Figure 2: Trajectory y(x)</span></p>
<p>From equation (5) we can find</p>
<p><img src='http://s.wordpress.com/latex.php?latex=%5Cdfrac%7Bdy%7D%7Bdx%7D%3D%5Ctan%5Ctheta-%5Cdfrac%7Bgx%7B%5Csec%5E2%5Ctheta%7D%7D%7Bv_%7B0%7D%5E2%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\dfrac{dy}{dx}=\tan\theta-\dfrac{gx{\sec^2\theta}}{v_{0}^2}' title='\dfrac{dy}{dx}=\tan\theta-\dfrac{gx{\sec^2\theta}}{v_{0}^2}' class='latex' />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equation&nbsp;(6)</br></p>
<p>and</p>
<p><img src='http://s.wordpress.com/latex.php?latex=%5Cdfrac%7Bd%5E2y%7D%7Bdx%5E2%7D%3D%5Cdfrac%7B-g%5Csec%5E2%5Ctheta%7D%7Bv_%7B0%7D%5E2%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\dfrac{d^2y}{dx^2}=\dfrac{-g\sec^2\theta}{v_{0}^2}' title='\dfrac{d^2y}{dx^2}=\dfrac{-g\sec^2\theta}{v_{0}^2}' class='latex' />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equation&nbsp;(7)</br></p>
<h2>3.&nbsp;Features of the Trajectory</h2>
<p>We can now use the solutions of the EOM to determine some features of the trajectory.</p>
<h3>Maximum Height</h3>
<p>From equation (4) the maximum height (<img src='http://s.wordpress.com/latex.php?latex=y_%7Bmax%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='y_{max}' title='y_{max}' class='latex' />) can be calculated by solving <img src='http://s.wordpress.com/latex.php?latex=%5Cdfrac%7Bdy%7D%7Bdt%7D%3D0&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\dfrac{dy}{dt}=0' title='\dfrac{dy}{dt}=0' class='latex' /> for t to determine the time at which the maximum occurs (call this <img src='http://s.wordpress.com/latex.php?latex=t_%7Bmax%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='t_{max}' title='t_{max}' class='latex' /> then evaluating equation (4) for this value of <img src='http://s.wordpress.com/latex.php?latex=t%3Dt_%7Bmax%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='t=t_{max}' title='t=t_{max}' class='latex' />.</p>
<p>We find:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=t_%7Bmax%7D%3D%5Cdfrac%7Bv_%7B0%7D%5Csin%5Ctheta%7D%7Bg%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='t_{max}=\dfrac{v_{0}\sin\theta}{g}' title='t_{max}=\dfrac{v_{0}\sin\theta}{g}' class='latex' /></br></p>
<p><img src='http://s.wordpress.com/latex.php?latex=y_%7Bmax%7D%3D%5Cdfrac%7Bv_%7B0%7D%5E2%5Csin%5E2%5Ctheta%7D%7B2g%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='y_{max}=\dfrac{v_{0}^2\sin^2\theta}{2g}' title='y_{max}=\dfrac{v_{0}^2\sin^2\theta}{2g}' class='latex' /></br></p>
<h3>Flight Time</h3>
<p>The &#8220;flight time&#8221; of the projectile is twice the time to reach maximum height (it has to go up and come back down) i.e. <img src='http://s.wordpress.com/latex.php?latex=t_%7Bflight%7D%3D2%20t_%7Bmax%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='t_{flight}=2 t_{max}' title='t_{flight}=2 t_{max}' class='latex' /></br></p>
<p>This gives:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=t_%7Bflight%7D%3D2%5Cdfrac%7Bv_%7B0%7D%5Csin%5Ctheta%7D%7Bg%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='t_{flight}=2\dfrac{v_{0}\sin\theta}{g}' title='t_{flight}=2\dfrac{v_{0}\sin\theta}{g}' class='latex' /></br></p>
<h3>Range</h3>
<p>The range of the trajectory is the solution to equation (5) for y=0, or alternatively the solution to equation (3) for <img src='http://s.wordpress.com/latex.php?latex=t%3Dt_%7Bflight%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='t=t_{flight}' title='t=t_{flight}' class='latex' />. In either case we find:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=R%3D%5Cdfrac%7Bv_%7B0%7D%5E2%20%5Csin2%5Ctheta%7D%7Bg%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='R=\dfrac{v_{0}^2 \sin2\theta}{g}' title='R=\dfrac{v_{0}^2 \sin2\theta}{g}' class='latex' /></br></p>
<p>Clearly the range is maximised when <img src='http://s.wordpress.com/latex.php?latex=2%5Ctheta%3D%5Cdfrac%7B%5Cpi%7D%7B2%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='2\theta=\dfrac{\pi}{2}' title='2\theta=\dfrac{\pi}{2}' class='latex' /> giving <img src='http://s.wordpress.com/latex.php?latex=%5Ctheta%3D%5Cdfrac%7B%5Cpi%7D%7B4%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\theta=\dfrac{\pi}{4}' title='\theta=\dfrac{\pi}{4}' class='latex' /></br></p>
<h3>Radius of Curvature</h3>
<p>From mathematics the radius of curvature, <img src='http://s.wordpress.com/latex.php?latex=R_%7Bc%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='R_{c}' title='R_{c}' class='latex' /> is defined to be:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=%5Cdfrac%7B%5Cleft%281%2B%5Cleft%28%5Cdfrac%7Bdy%7D%7Bdx%7D%5Cright%29%5E2%5Cright%29%5E%7B%5Cdfrac%7B3%7D%7B2%7D%7D%7D%7B%5Cdfrac%7Bd%5E2y%7D%7Bdx%5E2%7D%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\dfrac{\left(1+\left(\dfrac{dy}{dx}\right)^2\right)^{\dfrac{3}{2}}}{\dfrac{d^2y}{dx^2}}' title='\dfrac{\left(1+\left(\dfrac{dy}{dx}\right)^2\right)^{\dfrac{3}{2}}}{\dfrac{d^2y}{dx^2}}' class='latex' /></br></p>
<p>So we can use equations (6) and (7) to calculate the radius of curvature of the trajectory at each point. However, at the top of the trajectory (i.e. point of maximum height) we already know that </p>
<img src='http://s.wordpress.com/latex.php?latex=%5Cdfrac%7Bdy%7D%7Bdx%7D%3D0&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\dfrac{dy}{dx}=0' title='\dfrac{dy}{dx}=0' class='latex' />
<p>so at this point </p>
<p><img src='http://s.wordpress.com/latex.php?latex=R_%7Bc%7D%3D%5Cdfrac%7Bv_%7B0%7D%5E2%5Ccos%5E2%5Ctheta%7D%7Bg%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='R_{c}=\dfrac{v_{0}^2\cos^2\theta}{g}' title='R_{c}=\dfrac{v_{0}^2\cos^2\theta}{g}' class='latex' /> from equation (7).</p>
<p>We have already calculated <img src='http://s.wordpress.com/latex.php?latex=y_%7Bmax%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='y_{max}' title='y_{max}' class='latex' /> so substituting the expressions we find:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=y_%7Bmax%7D-R_%7Bc%7D%3D%5Cdfrac%7Bv_%7B0%7D%5E2%5Cleft%281-3%20%5Ccos%5E2%5Ctheta%5Cright%29%7D%7B2g%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='y_{max}-R_{c}=\dfrac{v_{0}^2\left(1-3 \cos^2\theta\right)}{2g}' title='y_{max}-R_{c}=\dfrac{v_{0}^2\left(1-3 \cos^2\theta\right)}{2g}' class='latex' /></br></p>
<p>From this expression we find that <img src='http://s.wordpress.com/latex.php?latex=y_%7Bmax%7D-R_%7Bc%7D%3E0&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='y_{max}-R_{c}&gt;0' title='y_{max}-R_{c}&gt;0' class='latex' /> when <img src='http://s.wordpress.com/latex.php?latex=%5Ctheta%3E%5Carccos%5Cdfrac%7B1%7D%7B%5Csqrt%7B3%7D%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\theta&gt;\arccos\dfrac{1}{\sqrt{3}}' title='\theta&gt;\arccos\dfrac{1}{\sqrt{3}}' class='latex' /></br></p>
<h2>4.&nbsp;Inclined Plane</h2>
<p>How is the range of the projectile affected if instead of a the flat horizontal plane used so far, the projectile is fired up an inclined plane like that in Figure 3 where the plane is inclined to the positive x-axis at an angle &#8220;a&#8221; and the projectile is fired at an angle <img src='http://s.wordpress.com/latex.php?latex=%5Ctheta&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\theta' title='\theta' class='latex' /> to the plane.</p>
<p><img src="http://www.riotstories.co.uk/wp-content/themes/child2011/images/incline.jpg" alt="Inclined Plane" /><br />
<span class="figure">Figure 3: Inclined Plane</span></p>
<p>From the diagram we can see that <img src='http://s.wordpress.com/latex.php?latex=x%3DR%20%5Ccos%20a%20and%20y%3DR%20%5Csin%20a&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='x=R \cos a and y=R \sin a' title='x=R \cos a and y=R \sin a' class='latex' />. Substituting these values into equation (5) and solving for R gives 2 roots as follows:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=R%3D0%2C%20R%3D%5Cdfrac%7Bv_%7B0%7D%5E2%5B%5Csin%5Cleft%282%5Ctheta-a%5Cright%29-%5Csin%20a%5D%7D%7Bg%20%5Ccos%5E2%5Ctheta%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='R=0, R=\dfrac{v_{0}^2[\sin\left(2\theta-a\right)-\sin a]}{g \cos^2\theta}' title='R=0, R=\dfrac{v_{0}^2[\sin\left(2\theta-a\right)-\sin a]}{g \cos^2\theta}' class='latex' /></br></p>
<p>The first of these is just the origin and is of no physical interest. The second root is greates when <img src='http://s.wordpress.com/latex.php?latex=2%5Ctheta-a%20%3D%20%5Cdfrac%7B%5Cpi%7D%7B2%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='2\theta-a = \dfrac{\pi}{2}' title='2\theta-a = \dfrac{\pi}{2}' class='latex' /> from which we see that the maximum range up the inclined plane is achieved when <img src='http://s.wordpress.com/latex.php?latex=%5Ctheta%3D%5Cdfrac%7B%5Cpi%7D%7B4%7D%2B%5Cdfrac%7Ba%7D%7B2%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\theta=\dfrac{\pi}{4}+\dfrac{a}{2}' title='\theta=\dfrac{\pi}{4}+\dfrac{a}{2}' class='latex' /> i.e. an angle which is slightly greater than the case for a flat plane.</p>
<p>If we plug these values into the experssion for the range R we calculate <img src='http://s.wordpress.com/latex.php?latex=R_%7Bmax%7D%3D%5Cdfrac%7Bv_%7B0%7D%5E2%7D%7Bg%20%5Cleft%281%2B%5Csin%20a%5Cright%29%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='R_{max}=\dfrac{v_{0}^2}{g \left(1+\sin a\right)}' title='R_{max}=\dfrac{v_{0}^2}{g \left(1+\sin a\right)}' class='latex' /></br></p>
<p>As a check, setting a=0 in all these results for the inclined plane reduces the expressions and values to the same as we get for the horizontal plane &#8211; a useful check.</p>
<h2>5.&nbsp;The Monkey Hunter Experiment</h2>
<p>I thought it might be interesting to bring all these ideas together into a single example. It&#8217;s commonly referred to as the &#8220;Monkey Hunter&#8221; and you&#8217;ll find lots of Flash and Java animations on the internet illustrating the idea. I&#8217;m no good with Flash and I&#8217;m only a beginner with Java so I&#8217;ll give the graphics a miss &#8211; a quick Google search will uncover lots.</p>
<p>The basic idea is this: A hunter spots a monkey in a tree and wants to hit it with a dart gun (some modern day variants have the hunter replaced with a naturalist who throws bananas at the monkey instead of firing darts). The monkey in question is a special breed. He drops vertically from the tree immediately when the projectile is fired at him (dart, bullet, banana). The question is how should the hunter aim in order to hit the monkey ?</p>
<p>To analyse this problem let&#8217;s suppose the monkey is up a tree, a height &#8220;H&#8221; above the ground, the hunter is a horizontal distance &#8220;d&#8221; away from the tree, the line of sight from hunter to monkey makes an angle <img src='http://s.wordpress.com/latex.php?latex=%5Ctheta&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\theta' title='\theta' class='latex' /> with the horizontal and the projectile is launched with an initial velocity <img src='http://s.wordpress.com/latex.php?latex=v_%7B0%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='v_{0}' title='v_{0}' class='latex' />. There is no air resistance to worry about.</p>
<p>From previous work we can immediately write the EOM for the projectile and the monkey as follows:</p>
<h3>EOM for Monkey</h3>
<p><img src='http://s.wordpress.com/latex.php?latex=x%28t%29%20%3D%20d&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='x(t) = d' title='x(t) = d' class='latex' />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equation&nbsp;MH1</br></p>
<p><img src='http://s.wordpress.com/latex.php?latex=y%28t%29%20%3D%20H%20-%20%5Cdfrac%7B1%7D%7B2%7Dgt%5E2&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='y(t) = H - \dfrac{1}{2}gt^2' title='y(t) = H - \dfrac{1}{2}gt^2' class='latex' />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equation&nbsp;MH2</br></p>
<h3>EOM for Projectile</h3>
<p><img src='http://s.wordpress.com/latex.php?latex=x%28t%29%20%3D%20v_%7B0%7D%20%5Ccos%5Ctheta%20t&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='x(t) = v_{0} \cos\theta t' title='x(t) = v_{0} \cos\theta t' class='latex' />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equation&nbsp;MH3</br></p>
<p><img src='http://s.wordpress.com/latex.php?latex=y%28t%29%20%3D%20v_%7B0%7D%20%5Csin%5Ctheta%20t%20-%20%5Cdfrac%7B1%7D%7B2%7D%20g%20t%5E2&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='y(t) = v_{0} \sin\theta t - \dfrac{1}{2} g t^2' title='y(t) = v_{0} \sin\theta t - \dfrac{1}{2} g t^2' class='latex' />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equation&nbsp;MH4</br></p>
<p>Remember, when the projectile is fired, the monkey lets go the branch and drops vertically at the instant the projectile is fired. So, the first question is &#8220;will the projectile actually  reach the monkey&#8221; i.e. travel far enough? Notice this is a different question from &#8220;will the projectile hit the monkey&#8221;. That comes next.</p>
<p>In order to reach the monkey the projectile must have a range, R, that is at least equal to teh distance to the vertical line down which the monkey falls from the tree i.e. R must be at least equal to &#8220;d&#8221;. Using the previous expression for the horizontal range R we can show that there is a condition on the initial speed of the projectile to esnure that it can at least reach the monkey, specifically requiring <img src='http://s.wordpress.com/latex.php?latex=R%5Cge%20d&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='R\ge d' title='R\ge d' class='latex' /> means <img src='http://s.wordpress.com/latex.php?latex=v_%7B0%7D%5Cge%5Cdfrac%7Bgd%7D%7B%5Csin2%5Ctheta%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='v_{0}\ge\dfrac{gd}{\sin2\theta}' title='v_{0}\ge\dfrac{gd}{\sin2\theta}' class='latex' />. A speed less than this means the projectile simply wont have the range to reach the monkey.</p>
<p>Assuming that the projectile does have the range to reach the monkey, the two will impact when they have the same x and y co-ordinates. The x co-ordinate of the monkey is always &#8220;d&#8221; and because the horizontal velocity of the projectile is constant (no force) we can calculate that the bullet will reach the position x=d in a time <img src='http://s.wordpress.com/latex.php?latex=t%3D%5Cdfrac%7Bd%7D%7Bv_%7B0%7D%5Ccos%5Ctheta%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='t=\dfrac{d}{v_{0}\cos\theta}' title='t=\dfrac{d}{v_{0}\cos\theta}' class='latex' />.</p>
<p>At this time we can calculate the y position using MH2 or MH4 (since they will both be the same i.e. y position of monkey = y position of projectile since they impact). Evaluating MH4 for <img src='http://s.wordpress.com/latex.php?latex=t%3D%5Cdfrac%7Bd%7D%7Bv_%7B0%7D%5Ccos%5Ctheta%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='t=\dfrac{d}{v_{0}\cos\theta}' title='t=\dfrac{d}{v_{0}\cos\theta}' class='latex' /> gives</p>
<p><img src='http://s.wordpress.com/latex.php?latex=y%3Dd%20%5Ctan%5Ctheta%20-%20%5Cdfrac%7Bg%20d%5E2%7D%7B2%20v_%7B0%7D%5E2%20%5Ccos%5E2%5Ctheta%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='y=d \tan\theta - \dfrac{g d^2}{2 v_{0}^2 \cos^2\theta}' title='y=d \tan\theta - \dfrac{g d^2}{2 v_{0}^2 \cos^2\theta}' class='latex' />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equation&nbsp;MH5</br></p>
<p>This is just the previous equation (5) with x=d. This equation is shown in Figure 4 as a function of <img src='http://s.wordpress.com/latex.php?latex=v_%7B0%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='v_{0}' title='v_{0}' class='latex' />. </p>
<p><img src="/wp-content/themes/child2011/images/impacty.png" alt="y position at impact" /><br />
<span class="figure">Figure 4: Impact y position as a function of speed</span></p>
<p>From Figure 4 the point where the curve crosses the horizontal axis is the point beyond which <img src='http://s.wordpress.com/latex.php?latex=y%5Cge0&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='y\ge0' title='y\ge0' class='latex' /> and gives the critical <img src='http://s.wordpress.com/latex.php?latex=v_%7B0%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='v_{0}' title='v_{0}' class='latex' /> derived at the beginning of this analysis. Speeds below this value give no physical (i.e. positive) solutions for y meaning the projectile and monkey never impact. Notice that there is a positive solution for y for every speed above the threshold, meaning that as long as the projectile has enough energy (i.e. speed) to cover the required range it wil lalways hit the monkey.</p>
<p>So apart from the threshold speed, the speed of the projectile doesn&#8217;t determine whether or not the monkey gets hit &#8211; it always gets hit. The speed does, however, determine where in the vertical path the monkey gets hit. from Equation MH5 or Figure 4, you can see that for higher speeds the monkey and projectile impact at large values of y i.e. near the point y=H. for lower speeds they collide for low values of y. in the limiting cases of [v_{0}=v_{c}[/latex] the projectile and monkey impact at y=0 and for <img src='http://s.wordpress.com/latex.php?latex=v_%7B0%7D%3D%5Cinfty&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='v_{0}=\infty' title='v_{0}=\infty' class='latex' /> they impact at y=H. For intermediate <img src='http://s.wordpress.com/latex.php?latex=v_%7B0%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='v_{0}' title='v_{0}' class='latex' /> they collide ay y positions that increase with increasing speed.</p>
<p>Since the y co-ordinates of the monkey and projectile are equal at impact equating equations MH2 and MH4 leads to the relationship <img src='http://s.wordpress.com/latex.php?latex=%5Ctan%5Ctheta%3D%5Cdfrac%7BH%7D%7Bd%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\tan\theta=\dfrac{H}{d}' title='\tan\theta=\dfrac{H}{d}' class='latex' /> meaning the hunter aims directly at the monkey.</p>
<p>CONCLUSION: The hunter should aim directly at the monkey and as long as the projectile has sifficient energy to cover the distance &#8220;d&#8221; the projectile will always hit the monkey. The speed of the projectile has no affect on whether the monkey is hit or not though it does determine where in the vertical path it gets hit &#8211; faster projectile hits the monkey near the top, slower projectile speed hits the monkey nearer the ground.</p>
<p>That&#8217;s the end of this post on projectiles with no air resitance. The next post will cover the case where there is air resistance that varies linearly with the speed and a subsequent post will consider air resitance that has a quadratic dependency on speed.  </p>
<div id="crp_related"><h3>Possibly Related Posts:</h3><div id=relposts><ul><li><a href="http://www.riotstories.co.uk/science/projectile/" rel="bookmark" class="crp_link"><span class="crp_title"> Projectile Motion III: Air Resistance Quadratic in Speed</span></a></li><li><a href="http://www.riotstories.co.uk/science/projectile-motion-ii-air-resistance-linear-in-speed/" rel="bookmark" class="crp_link"><span class="crp_title"> Projectile Motion II: Air Resistance Linear in Speed</span></a></li><li><a href="http://www.riotstories.co.uk/science/frets/" rel="bookmark" class="crp_link"><span class="crp_title"> Guitar Frets</span></a></li><li><a href="http://www.riotstories.co.uk/science/seashells/" rel="bookmark" class="crp_link"><span class="crp_title"> Modelling Seashells</span></a></li><li><a href="http://www.riotstories.co.uk/wordpress/change-default-footer-text-in-twenty-eleven-theme/" rel="bookmark" class="crp_link"><span class="crp_title"> Change Default Footer Text in Twenty Eleven Theme</span></a></li></ul></div></div><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/riotstories?a=wwoAz9y0B74:A-irtYmr9MU:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/riotstories?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/riotstories?a=wwoAz9y0B74:A-irtYmr9MU:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/riotstories?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/riotstories?a=wwoAz9y0B74:A-irtYmr9MU:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/riotstories?i=wwoAz9y0B74:A-irtYmr9MU:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/riotstories?a=wwoAz9y0B74:A-irtYmr9MU:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/riotstories?i=wwoAz9y0B74:A-irtYmr9MU:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/riotstories?a=wwoAz9y0B74:A-irtYmr9MU:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/riotstories?i=wwoAz9y0B74:A-irtYmr9MU:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/riotstories/~4/wwoAz9y0B74" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.riotstories.co.uk/science/projectiles-no-air-resistance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.riotstories.co.uk/science/projectiles-no-air-resistance/</feedburner:origLink></item>
		<item>
		<title>Guitar Frets</title>
		<link>http://feedproxy.google.com/~r/riotstories/~3/N06JFfmrj5I/</link>
		<comments>http://www.riotstories.co.uk/science/frets/#comments</comments>
		<pubDate>Mon, 27 Feb 2012 11:46:04 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Science]]></category>
		<category><![CDATA[Guitar fret]]></category>
		<category><![CDATA[Standing waves]]></category>
		<category><![CDATA[vibrating waves]]></category>

		<guid isPermaLink="false">http://www.riotstories.co.uk/?p=1194</guid>
		<description><![CDATA[A formula is derived from first principles for the position of the slots on a guitar fretboard. This discussion considers the physics of vibrating strings, introduces some relevant ideas and uses them to derive a formula that can be used to calculate the fret positions. <a href="http://www.riotstories.co.uk/science/frets/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I thought it would be interesting to show how to calculate the position of frets on the guitar fretboard. The same logic applies to any stringed instrument. </p>
<p>In the course of arriving at the final result we&#8217;ll cover some interesting physics  &#8211; mainly the ideas behind standing waves, chromatic musical scales and the physics of vibrating strings. This isn&#8217;t a post about building musical instruments, it&#8217;s limited purely to understanding how the position of the frets are calculated. </p>
<p>There are many online fret position calculators that can be used to check the results that I&#8217;ll derive using the ideas developed in this article and if you&#8217;re building or maintaining a guitar I recommend using them because they provide many useful additional information e.g. the position and angle of the bridge on an acoustic, the position of the bridge on an electric. </p>
<p>There&#8217;s a good one on the StewMac site <a href="http://www.stewmac.com/FretCalculator" title="Fret Calculator" target="_blank">here</a></p>
<p>So, let&#8217;s make a start&#8230;<span id="more-1194"></span></p>
<h2>The Physics of Vibrating Strings</h2>
<h3 class="sectionheading">Some Rules Governing Vibration on Strings</h3>
<p>A guitar string is an example of a string fixed at both ends that vibrates when plucked. In this section we&#8217;ll consider the physics that governs how such a plucked string can behave and see how those rules lead to an understanding of what is possible and what isn&#8217;t for such a string. Specifically we will establish and make use of the following 3 rules:</p>
<p><span class="rulecolour">Rule 1</span>: When a string fixed at both ends is subject to a constant tension, the frequencies that the string can vibrate at are inversely proportional to the length of the string. For example if <img src='http://s.wordpress.com/latex.php?latex=f_%7B1%7D%2Cf_%7B2%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='f_{1},f_{2}' title='f_{1},f_{2}' class='latex' /> are examples of frequencies that strings of length <img src='http://s.wordpress.com/latex.php?latex=L_%7B1%7D%2C%20L_%7B2%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='L_{1}, L_{2}' title='L_{1}, L_{2}' class='latex' /> can vibrate at when both lengths are held at the same tension, the values are related as follows: <img src='http://s.wordpress.com/latex.php?latex=f_%7B1%7DL_%7B1%7D%20%3D%20f_%7B2%7DL_%7B2%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='f_{1}L_{1} = f_{2}L_{2}' title='f_{1}L_{1} = f_{2}L_{2}' class='latex' /></p>
<p><span class="rulecolour">Rule 2</span>: When a string fixed at both ends is of constant length, the frequencies that the string can vibrate at are directly proportional to the square root of the string tension. For example, if <img src='http://s.wordpress.com/latex.php?latex=f_%7B1%7D%2Cf_%7B2%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='f_{1},f_{2}' title='f_{1},f_{2}' class='latex' /> are examples of frequencies that a string of fixed length vibrates at when subject to tentions <img src='http://s.wordpress.com/latex.php?latex=T_%7B1%7D%2CT_%7B2%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='T_{1},T_{2}' title='T_{1},T_{2}' class='latex' /> then the frequencies are related as follows: <img src='http://s.wordpress.com/latex.php?latex=f_%7B1%7D%5Csqrt%20T_%7B2%7D%20%3D%20f_%7B2%7D%5Csqrt%20T_%7B1%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='f_{1}\sqrt T_{2} = f_{2}\sqrt T_{1}' title='f_{1}\sqrt T_{2} = f_{2}\sqrt T_{1}' class='latex' /></p>
<p><span class="rulecolour">Rule 3</span>: For physically different strings having the same length and tension, the frequencies that each string can vibrate at are inversely proportional to the mass density. For example, if <img src='http://s.wordpress.com/latex.php?latex=f_%7B1%7D%2Cf_%7B2%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='f_{1},f_{2}' title='f_{1},f_{2}' class='latex' /> are examples of frequencies that strings of mass densities <img src='http://s.wordpress.com/latex.php?latex=%5Cmu_%7B1%7D%2C%20%5Cmu_%7B2%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\mu_{1}, \mu_{2}' title='\mu_{1}, \mu_{2}' class='latex' /> vibrate at when the strings have the same lengths and tensions then the frequencies are related as follows: <img src='http://s.wordpress.com/latex.php?latex=f_%7B1%7D%20%5Csqrt%20%5Cmu_%7B1%7D%20%3D%20f_%7B2%7D%20%5Csqrt%20%5Cmu_%7B2%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='f_{1} \sqrt \mu_{1} = f_{2} \sqrt \mu_{2}' title='f_{1} \sqrt \mu_{1} = f_{2} \sqrt \mu_{2}' class='latex' /></p>
<p>In wave motion, there is a relationship between the speed of the wave, the frequency of the wave and the wavelength of the wave as follows:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=v%20%3D%20f%20%5Clambda&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='v = f \lambda' title='v = f \lambda' class='latex' />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equation (1)</p>
<p>where v= speed, f = frequency and <img src='http://s.wordpress.com/latex.php?latex=%5Clambda&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\lambda' title='\lambda' class='latex' /> = wavelength</p>
<p>These rules can be used to infer some behaviour that we would expect of vibrating strings:</p>
<ul>
<li>A short string will have a higher pitch than a long one</li>
<li>The tighter a string is stretched the higher its pitch will be</li>
<li>A thick heavy string will have a lower natural pitch than a thin one</li>
</ul>
<h3 class="sectionheading">Speed of a Transverse Wave Along A String</h3>
<p>The speed of a wave on a string depends on the properties of the string (mainly the tension, length and weight of the string). Wave motions along a string under tension are solutions of the so called &#8220;wave equation&#8221; and can be shown to be given by:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=v%20%3D%20%5Csqrt%20%5Cfrac%7BT%7D%7B%5Cmu%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='v = \sqrt \frac{T}{\mu}' title='v = \sqrt \frac{T}{\mu}' class='latex' />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equation (2)</p>
<p>For anyone interested in the details of this, an online reference is item 3d in here: <a href="http://www.physnet.org/modules/pdf_modules/m202.pdf" title="Solution to Wave Equation">http://www.physnet.org/modules/pdf_modules/m202.pdf</a></p>
<p>This is useful because equations (1) and (2) relate the physical properties of the material the wave is travelling along to properties of the wave itself. Something we will use.</p>
<h3 class="sectionheading">Standing Waves</h3>
<p>We can step back from the maths for a moment and think about what&#8217;s going on with these standing waves.</p>
<p>With the ends of the string fixed, any wave motion must be zero at those end points (otherwise we would have a travelling wave). For this to happen the string of length L can&#8217;t support just any old frequency of wave, instead it can only support waves that allow the motion of the end points to be zero. In other words, only waves that have a wavelength that is related to the length of the string L in a particular way can be supported. We find that only waves for which a whole number of half-wavelengths fit into the length L can be supported. The longest such wave has a wavelength 2L so that the string of length L supports only a single half-wavelength and nodes at each endpoint (i.e. places where the wave is stationary). This maximum wavelength (or via Equation (1) minimum frequency) wave is referred to as the &#8220;fundamental&#8221;.</p>
<p>If we doubled the frequency (i.e. reduced the wavelength by half) we would find that a whole wave fitted into the same length L, but this time there would be 3 nodes (i.e. stationary points, the previous 2 end points of the string plus a new node in the middle). This behaviour is shown in the figure below and represented mathematically by Equation (3)</p>
<p><img src="http://www.riotstories.co.uk/wp-content/themes/child2011/images/stretched-string-vibration-modes.gif" alt="Stretched String Vibration Modes" /></p>
<p><img src='http://s.wordpress.com/latex.php?latex=L%20%3D%20%5Cfrac%7Bn%7D%7B2%7D%5Clambda_%7Bn%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='L = \frac{n}{2}\lambda_{n}' title='L = \frac{n}{2}\lambda_{n}' class='latex' />&nbsp;&nbsp;&nbsp;n=1, 2, 3, etc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equation (3)</p>
<h3>The Fundamental Frequency on a String fixed At Both Ends</h3>
<p>From equation (3) we see that for the fundamental, <img src='http://s.wordpress.com/latex.php?latex=L%3D%5Cfrac%7B%5Clambda%7D%7B2%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='L=\frac{\lambda}{2}' title='L=\frac{\lambda}{2}' class='latex' /></p>
<p>Using this result for the fundamental wavelength and eliminating <img src='http://s.wordpress.com/latex.php?latex=v&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='v' title='v' class='latex' /> between equations (1) and (2) gives the frequency of the fundamental:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=f_%7B1%7D%3D%7B%5Cfrac%7B1%7D%7B2L%7D%7D%5Csqrt%5Cfrac%7BT%7D%7B%5Cmu%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='f_{1}={\frac{1}{2L}}\sqrt\frac{T}{\mu}' title='f_{1}={\frac{1}{2L}}\sqrt\frac{T}{\mu}' class='latex' /></br></p>
<p>More generally</p>
<p><img src='http://s.wordpress.com/latex.php?latex=f_%7Bn%7D%3D%7B%5Cfrac%7Bn%7D%7B2L%7D%7D%5Csqrt%5Cfrac%7BT%7D%7B%5Cmu%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='f_{n}={\frac{n}{2L}}\sqrt\frac{T}{\mu}' title='f_{n}={\frac{n}{2L}}\sqrt\frac{T}{\mu}' class='latex' /></br><br />
n=1, 2, 3, etc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equation (4)</p>
<p>Equation (4) is at the heart of the design of most stringed musical instruments. The tension of the string is adjusted using tuning heads on the guitar. You can see the 3 rules quoted at the beginning of this article in equation (4).</p>
<h3 class="sectionheading">Octaves</h3>
<p>In music theory, an octave of a partuclar note is just the note at twice the frequency so a note having frequency <img src='http://s.wordpress.com/latex.php?latex=f_%7B0%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='f_{0}' title='f_{0}' class='latex' /> has the first octave at frequency <img src='http://s.wordpress.com/latex.php?latex=f_%7B1%7D%3D2f_%7B0%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='f_{1}=2f_{0}' title='f_{1}=2f_{0}' class='latex' /> the second octave at <img src='http://s.wordpress.com/latex.php?latex=f_%7B2%7D%3D2f_%7B1%7D%3D4f_%7B0%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='f_{2}=2f_{1}=4f_{0}' title='f_{2}=2f_{1}=4f_{0}' class='latex' />, the third at <img src='http://s.wordpress.com/latex.php?latex=f_%7B3%7D%3D2f_%7B2%7D%3D8f_%7B0%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='f_{3}=2f_{2}=8f_{0}' title='f_{3}=2f_{2}=8f_{0}' class='latex' /> and so on until we get the general rule <img src='http://s.wordpress.com/latex.php?latex=f_%7Bn%7D%3D2%5Enf_%7B0%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='f_{n}=2^nf_{0}' title='f_{n}=2^nf_{0}' class='latex' /> with n=1, 2, 3, &#8230;</p>
<h2>Musical Chromatic Scales</h2>
<p>At this point we need to introduce the subject of chromatic scales in music. A great reference for this and other related topics is the book <a href="http://books.google.co.uk/books?id=w5-PNihYOdgC&#038;pg=PA61&#038;lpg=PA61&#038;dq=mathematics+of++chromatic+scale&#038;source=bl&#038;ots=IaQPwk7pAl&#038;sig=tMdTXISYeBNMMTk8aNP9IEpTN5E&#038;hl=en&#038;sa=X&#038;ei=MvVJT7mCHse_0QX2hKSODg&#038;ved=0CEYQ6AEwBQ#v=onepage&#038;q=mathematics%20of%20%20chromatic%20scale&#038;f=false" title="Mathematics and Music Book" target="_blank">&#8220;Mathematics and Music&#8221; by David Wright</a>, chapter 6 of which covers what we&#8217;re discussing in this section.</p>
<p>A &#8220;chromatic scale&#8221; generally divides the octave into a number of &#8220;chromatic divisions&#8221;. In Western music we tend to divide the octave into 12 divisions i.e. if we take a note and its upper octave as the two bounding frequencies the range is subdivided into 12 equally spaced divisions; each division is commonly referred to as a semi-tone in music. The previous relationship <img src='http://s.wordpress.com/latex.php?latex=f_%7Bn%7D%3D2%5Enf_%7B0%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='f_{n}=2^nf_{0}' title='f_{n}=2^nf_{0}' class='latex' /> defines a geometric series for octaves i.e. successive terms are fixed multiples of preceding terms. If we split the octave range itself into 12 divisions the frequency of any particular note will be of the form <img src='http://s.wordpress.com/latex.php?latex=f_%7Bn%7D%3Df_%7B0%7Dr%5En&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='f_{n}=f_{0}r^n' title='f_{n}=f_{0}r^n' class='latex' /> where the parameter &#8220;r&#8221; is the multiplying factor for successive terms.</p>
<p>For the Western chromatic scale we have 12 divisions in an octave. Using that as the boundary condition we can see <img src='http://s.wordpress.com/latex.php?latex=f_%7B12%7D%3Df_%7B0%7Dr%5E%7B12%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='f_{12}=f_{0}r^{12}' title='f_{12}=f_{0}r^{12}' class='latex' /> and from the definition of an octave we know that <img src='http://s.wordpress.com/latex.php?latex=f_%7B12%7D%3D2f_%7B0%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='f_{12}=2f_{0}' title='f_{12}=2f_{0}' class='latex' /> which allows us to write <img src='http://s.wordpress.com/latex.php?latex=2%3Dr%5E%7B12%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='2=r^{12}' title='2=r^{12}' class='latex' />. This lets us calculate the ratio for the 12 note chromatic scale as <img src='http://s.wordpress.com/latex.php?latex=r%3D2%5E%5Cfrac%7B1%7D%7B12%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='r=2^\frac{1}{12}' title='r=2^\frac{1}{12}' class='latex' /> or <img src='http://s.wordpress.com/latex.php?latex=r%3D%5Csqrt%5B12%5D%7B2%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='r=\sqrt[12]{2}' title='r=\sqrt[12]{2}' class='latex' />.</p>
<p>For the general chromatic series the octave is divided into n intervals with the ration being given by <img src='http://s.wordpress.com/latex.php?latex=2%5E%5Cfrac%7B1%7D%7Bn%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='2^\frac{1}{n}' title='2^\frac{1}{n}' class='latex' /> or <img src='http://s.wordpress.com/latex.php?latex=%5Csqrt%5Bn%5D%7B2%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\sqrt[n]{2}' title='\sqrt[n]{2}' class='latex' />. You can see how this reduces to the familiar chromatic scale when we let n=12.</p>
<p>Using this rule, we can define the frequency for each note in the chromatic scale (we&#8217;ll stick to the 12 note chromatic scale but you could experiment with more of fewer notes and it&#8217;s an interesting read to research chromatic scales with different numbers of notes). The notes in the chromatic scale, starting at <img src='http://s.wordpress.com/latex.php?latex=f_%7B0%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='f_{0}' title='f_{0}' class='latex' /> are now given by:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=f_%7Bn%7D%3Df_%7B0%7D2%5E%5Cfrac%7Bn%7D%7B12%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='f_{n}=f_{0}2^\frac{n}{12}' title='f_{n}=f_{0}2^\frac{n}{12}' class='latex' /> where n=1, 2, 3, &#8230;</p>
<h2>Fret Position</h2>
<p>We can now use what we&#8217;ve learned so far to calculate the positions where we should place frets on the fretboard of an instrument to ensure we get the correct frequencies. Imagine we have a string of length L. We know that the fundamental frequency is given by </p>
<img src='http://s.wordpress.com/latex.php?latex=f%3D%7B%5Cfrac%7B1%7D%7B2L%7D%7D%5Csqrt%5Cfrac%7BT%7D%7B%5Cmu%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='f={\frac{1}{2L}}\sqrt\frac{T}{\mu}' title='f={\frac{1}{2L}}\sqrt\frac{T}{\mu}' class='latex' />
<p>Suppose wew change the length of the vibrating portion of the string so that the vibration frequency is 1 semi-tone higher than previously. The frequency of this vibration is calculated to be:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=f_%7B1%7D%3D%7B%5Cfrac%7B1%7D%7B2L_%7B1%7D%7D%7D%5Csqrt%5Cfrac%7BT%7D%7B%5Cmu%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='f_{1}={\frac{1}{2L_{1}}}\sqrt\frac{T}{\mu}' title='f_{1}={\frac{1}{2L_{1}}}\sqrt\frac{T}{\mu}' class='latex' /></br></p>
<p>Dividing these 2 equations gives <img src='http://s.wordpress.com/latex.php?latex=%5Cfrac%7Bf%7D%7Bf_%7B1%7D%7D%20%3D%20%5Cfrac%7BL_%7B1%7D%7D%7BL%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\frac{f}{f_{1}} = \frac{L_{1}}{L}' title='\frac{f}{f_{1}} = \frac{L_{1}}{L}' class='latex' /></p>
<p>We have already established that frequencies follow a geometric progression with <img src='http://s.wordpress.com/latex.php?latex=r%20%3D%202%5E%5Cfrac%7B1%7D%7B12%7D%20%5Csimeq%201.059&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='r = 2^\frac{1}{12} \simeq 1.059' title='r = 2^\frac{1}{12} \simeq 1.059' class='latex' /></p>
<p>so <img src='http://s.wordpress.com/latex.php?latex=L_%7B1%7D%20%3D%20%5Cfrac%7BL%7D%7Br%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='L_{1} = \frac{L}{r}' title='L_{1} = \frac{L}{r}' class='latex' /> where <img src='http://s.wordpress.com/latex.php?latex=r%20%3D%20%5Cfrac%7Bf_%7B1%7D%7D%7Bf%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='r = \frac{f_{1}}{f}' title='r = \frac{f_{1}}{f}' class='latex' /></p>
<p>We can show that <img src='http://s.wordpress.com/latex.php?latex=L_%7B2%7D%3D%5Cfrac%7BL%7D%7Br%5E2%7D%2C%20L_%7B3%7D%3D%5Cfrac%7BL%7D%7Br%5E3%7D%2C%20L_%7B4%7D%3D%5Cfrac%7BL%7D%7Br%5E4%7D%2C%20...&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='L_{2}=\frac{L}{r^2}, L_{3}=\frac{L}{r^3}, L_{4}=\frac{L}{r^4}, ...' title='L_{2}=\frac{L}{r^2}, L_{3}=\frac{L}{r^3}, L_{4}=\frac{L}{r^4}, ...' class='latex' /> in general we can see that <img src='http://s.wordpress.com/latex.php?latex=L_%7Bn%7D%3D%5Cfrac%7BL%7D%7Br%5En%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='L_{n}=\frac{L}{r^n}' title='L_{n}=\frac{L}{r^n}' class='latex' /></p>
<div id="summary">
All of this has lead to the following two rules that will allow us to calculate the position of the frets and the frequency of each note:</p>
<p>Fret position: <img src='http://s.wordpress.com/latex.php?latex=L_%7Bn%7D%3D%5Cfrac%7BL%7D%7B%5Csqrt%5B12%5D%7B2%5En%7D%7D%20%3D%20%5Cfrac%7BL%7D%7B2%5E%5Cfrac%7Bn%7D%7B12%7D%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='L_{n}=\frac{L}{\sqrt[12]{2^n}} = \frac{L}{2^\frac{n}{12}}' title='L_{n}=\frac{L}{\sqrt[12]{2^n}} = \frac{L}{2^\frac{n}{12}}' class='latex' />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equation (5)</br></p>
<p>Frequency of note: <img src='http://s.wordpress.com/latex.php?latex=f_%7Bn%7D%3Df_%7B0%7D%5Csqrt%5B12%5D%7B2%5En%7D%20%3D%20f_%7B0%7D2%5E%5Cfrac%7Bn%7D%7B12%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='f_{n}=f_{0}\sqrt[12]{2^n} = f_{0}2^\frac{n}{12}' title='f_{n}=f_{0}\sqrt[12]{2^n} = f_{0}2^\frac{n}{12}' class='latex' />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equation (6)</br></p>
<p>where n = 1, 2, 3, &#8230;
</p></div>
<h3 class="sectionheading">Calculated Fret Positions</h3>
<p>Using equation (5) we can now calculate the position of the frets for a given value of &#8220;L&#8221;. These calculated values are shown in the table below for L = 26, of course you can pick whatever value of L you want.</p>

<table id="wp-table-reloaded-id-3-no-1" class="wp-table-reloaded wp-table-reloaded-id-3">
<thead>
	<tr class="row-1 odd">
		<th class="column-1">n</th><th class="column-2">From Saddle</th><th class="column-3">From Nut</th><th class="column-4">Fret spacing</th>
	</tr>
</thead>
<tbody>
	<tr class="row-2 even">
		<td class="column-1">0</td><td class="column-2">26.00</td><td class="column-3">0.000</td><td class="column-4">N/A</td>
	</tr>
	<tr class="row-3 odd">
		<td class="column-1">1</td><td class="column-2">24.54</td><td class="column-3">1.459</td><td class="column-4">1.459</td>
	</tr>
	<tr class="row-4 even">
		<td class="column-1">2</td><td class="column-2">23.16</td><td class="column-3">2.837</td><td class="column-4">1.377</td>
	</tr>
	<tr class="row-5 odd">
		<td class="column-1">3</td><td class="column-2">21.86</td><td class="column-3">4.137</td><td class="column-4">1.300</td>
	</tr>
	<tr class="row-6 even">
		<td class="column-1">4</td><td class="column-2">20.64</td><td class="column-3">5.364</td><td class="column-4">1.227</td>
	</tr>
	<tr class="row-7 odd">
		<td class="column-1">5</td><td class="column-2">19.48</td><td class="column-3">6.522</td><td class="column-4">1.158</td>
	</tr>
	<tr class="row-8 even">
		<td class="column-1">6</td><td class="column-2">18.38</td><td class="column-3">7.615</td><td class="column-4">1.093</td>
	</tr>
	<tr class="row-9 odd">
		<td class="column-1">7</td><td class="column-2">17.35</td><td class="column-3">8.647</td><td class="column-4">1.032</td>
	</tr>
	<tr class="row-10 even">
		<td class="column-1">8</td><td class="column-2">16.38</td><td class="column-3">9.621</td><td class="column-4">0.974</td>
	</tr>
	<tr class="row-11 odd">
		<td class="column-1">9</td><td class="column-2">15.46</td><td class="column-3">10.540</td><td class="column-4">0.919</td>
	</tr>
	<tr class="row-12 even">
		<td class="column-1">10</td><td class="column-2">14.59</td><td class="column-3">11.408</td><td class="column-4">0.868</td>
	</tr>
	<tr class="row-13 odd">
		<td class="column-1">11</td><td class="column-2">13.77</td><td class="column-3">12.227</td><td class="column-4">0.819</td>
	</tr>
	<tr class="row-14 even">
		<td class="column-1">12</td><td class="column-2">13.00</td><td class="column-3">13.000</td><td class="column-4">0.773</td>
	</tr>
	<tr class="row-15 odd">
		<td class="column-1">13</td><td class="column-2">12.27</td><td class="column-3">13.730</td><td class="column-4">0.730</td>
	</tr>
	<tr class="row-16 even">
		<td class="column-1">14</td><td class="column-2">11.58</td><td class="column-3">14.418</td><td class="column-4">0.689</td>
	</tr>
	<tr class="row-17 odd">
		<td class="column-1">15</td><td class="column-2">10.93</td><td class="column-3">15.068</td><td class="column-4">0.650</td>
	</tr>
	<tr class="row-18 even">
		<td class="column-1">16</td><td class="column-2">10.32</td><td class="column-3">15.682</td><td class="column-4">0.614</td>
	</tr>
	<tr class="row-19 odd">
		<td class="column-1">17</td><td class="column-2">9.74</td><td class="column-3">16.261</td><td class="column-4">0.579</td>
	</tr>
	<tr class="row-20 even">
		<td class="column-1">18</td><td class="column-2">9.19</td><td class="column-3">16.808</td><td class="column-4">0.547</td>
	</tr>
	<tr class="row-21 odd">
		<td class="column-1">19</td><td class="column-2">8.68</td><td class="column-3">17.324</td><td class="column-4">0.516</td>
	</tr>
	<tr class="row-22 even">
		<td class="column-1">20</td><td class="column-2">8.19</td><td class="column-3">17.811</td><td class="column-4">0.487</td>
	</tr>
	<tr class="row-23 odd">
		<td class="column-1">21</td><td class="column-2">7.73</td><td class="column-3">18.270</td><td class="column-4">0.460</td>
	</tr>
	<tr class="row-24 even">
		<td class="column-1">22</td><td class="column-2">7.30</td><td class="column-3">18.704</td><td class="column-4">0.434</td>
	</tr>
	<tr class="row-25 odd">
		<td class="column-1">23</td><td class="column-2">6.89</td><td class="column-3">19.113</td><td class="column-4">0.409</td>
	</tr>
	<tr class="row-26 even">
		<td class="column-1">24</td><td class="column-2">6.50</td><td class="column-3">19.500</td><td class="column-4">0.387</td>
	</tr>
</tbody>
</table>

<p>NOTES:<br />
1. So far we&#8217;ve talked about a string having a particular length which we&#8217;ve called L and which is fixed at both ends. That&#8217;s all fine for modelling the physics of a vibrating string but how does it relate to an actual guitar? Well, the length of the vibrating string which we&#8217;ve called L is just the length of the string between the fixed end points. On a guitar the fixed end points are the &#8220;nut&#8221; and the &#8220;saddle&#8221;. The length L is the length between them and is referred to in guitar building and maintainance as the &#8220;scale length&#8221;. The scale length varies between manufacturers, models and even types of guitar e.g. resonators used in blues slide guitar will have different (probably shorted) scale length from say a Gibson SG.</p>
<p>2. The numbers in the table above can easily be checked using some of the online fret position calculators. Fret positions are sometimes quoted relative to the guitar nut instead of the saddle (as I&#8217;ve calculated here). It&#8217;s easy to convert between the 2 (fret position from nut = L &#8211; fret position from saddle). I&#8217;ve shown both positions in the table above for a scale length of 26. You can check the calculated values by visiting the fret calculator on the <a href="http://www.stewmac.com/FretCalculator" title="Stewmac Fret Position Calculator" target="_blank">StewMac </a>site and trying their calculator using a scale length of 26 as in my example.</p>
<h3 class="sectionheading">Calculate Note Frequencies</h3>
<p>I thought it would be fun to calculate the actual note frequencies in a 12 note chromatic scale for each of the strings on a guitar fretboard using equation (6) above. To do this I need to know the fundamental frequency for each string (i.e. the frequency of the string when plucked in the open position), this will give me the value <img src='http://s.wordpress.com/latex.php?latex=f_%7B0%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='f_{0}' title='f_{0}' class='latex' /> in equation (6) for each string. I can then use equation (6) to calculate the successive frequencies (i.e. notes) in the chromatic scale.</p>
<p>I/ve shown the calculated frequencies in the table below. In the table you can see relationships between the notes and octaves. For a given string, n=0 shows the frequency of the open string. If you take any 2 successive frequencies on any string and calculate the ration (highest frequency/lower frequency) you will see the result is always <img src='http://s.wordpress.com/latex.php?latex=%5Csimeq1.0594&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\simeq1.0594' title='\simeq1.0594' class='latex' /> which is the ratio in the geometric series we discussed earlier (watch the number of decimal places you use in the calculation or rounding errors will mess up the division &#8211; always use as many as you can).</p>
<div id=table>

<table id="wp-table-reloaded-id-5-no-1" class="wp-table-reloaded wp-table-reloaded-id-5">
<thead>
	<tr class="row-1 odd">
		<th class="column-1"></th><th class="column-2">n</th><th class="column-3"></th><th class="column-4"></th><th class="column-5"></th><th class="column-6"></th><th class="column-7"></th><th class="column-8"></th><th class="column-9"></th><th class="column-10"></th><th class="column-11"></th><th class="column-12"></th><th class="column-13"></th><th class="column-14"></th>
	</tr>
</thead>
<tbody>
	<tr class="row-2 even">
		<td class="column-1"></td><td class="column-2">0</td><td class="column-3">1</td><td class="column-4">2</td><td class="column-5">3</td><td class="column-6">4</td><td class="column-7">5</td><td class="column-8">6</td><td class="column-9">7</td><td class="column-10">8</td><td class="column-11">9</td><td class="column-12">10</td><td class="column-13">11</td><td class="column-14">12</td>
	</tr>
	<tr class="row-3 odd">
		<td class="column-1">String</td><td class="column-2"></td><td class="column-3"></td><td class="column-4"></td><td class="column-5"></td><td class="column-6"></td><td class="column-7"></td><td class="column-8"></td><td class="column-9"></td><td class="column-10"></td><td class="column-11"></td><td class="column-12"></td><td class="column-13"></td><td class="column-14"></td>
	</tr>
	<tr class="row-4 even">
		<td class="column-1">E</td><td class="column-2">82.407</td><td class="column-3">87.30717522</td><td class="column-4">92.49873002</td><td class="column-5">97.99899073</td><td class="column-6">103.826314</td><td class="column-7">110.0001479</td><td class="column-8">116.541097</td><td class="column-9">123.4709913</td><td class="column-10">130.8129585</td><td class="column-11">138.5915018</td><td class="column-12">146.8325813</td><td class="column-13">155.563701</td><td class="column-14">164.814</td>
	</tr>
	<tr class="row-5 odd">
		<td class="column-1"></td><td class="column-2">E</td><td class="column-3">F</td><td class="column-4">F#</td><td class="column-5">G</td><td class="column-6">G#</td><td class="column-7">A</td><td class="column-8">A#</td><td class="column-9">B</td><td class="column-10">C</td><td class="column-11">C#</td><td class="column-12">D</td><td class="column-13">D#</td><td class="column-14">E</td>
	</tr>
	<tr class="row-6 even">
		<td class="column-1">A</td><td class="column-2">110</td><td class="column-3">116.5409404</td><td class="column-4">123.4708253</td><td class="column-5">130.8127827</td><td class="column-6">138.5913155</td><td class="column-7">146.832384</td><td class="column-8">155.5634919</td><td class="column-9">164.8137785</td><td class="column-10">174.6141157</td><td class="column-11">184.9972114</td><td class="column-12">195.997718</td><td class="column-13">207.6523488</td><td class="column-14">220</td>
	</tr>
	<tr class="row-7 odd">
		<td class="column-1"></td><td class="column-2">A</td><td class="column-3">A#</td><td class="column-4">B</td><td class="column-5">C</td><td class="column-6">C#</td><td class="column-7">D</td><td class="column-8">D#</td><td class="column-9">E</td><td class="column-10">F</td><td class="column-11">F#</td><td class="column-12">G</td><td class="column-13">G#</td><td class="column-14">A</td>
	</tr>
	<tr class="row-8 even">
		<td class="column-1">D</td><td class="column-2">146.83</td><td class="column-3">155.5609661</td><td class="column-4">164.8111026</td><td class="column-5">174.6112807</td><td class="column-6">184.9942078</td><td class="column-7">195.9945358</td><td class="column-8">207.6489774</td><td class="column-9">219.9964281</td><td class="column-10">233.0780965</td><td class="column-11">246.9376413</td><td class="column-12">261.6213176</td><td class="column-13">277.1781307</td><td class="column-14">293.66</td>
	</tr>
	<tr class="row-9 odd">
		<td class="column-1"></td><td class="column-2">D</td><td class="column-3">D#</td><td class="column-4">E</td><td class="column-5">F</td><td class="column-6">F#</td><td class="column-7">G</td><td class="column-8">G#</td><td class="column-9">A</td><td class="column-10">A#</td><td class="column-11">B</td><td class="column-12">C</td><td class="column-13">C#</td><td class="column-14">D</td>
	</tr>
	<tr class="row-10 even">
		<td class="column-1">G</td><td class="column-2">196</td><td class="column-3">207.6547665</td><td class="column-4">220.0025615</td><td class="column-5">233.0845945</td><td class="column-6">246.9445258</td><td class="column-7">261.6286114</td><td class="column-8">277.1858582</td><td class="column-9">293.6681871</td><td class="column-10">311.1306062</td><td class="column-11">329.6313948</td><td class="column-12">349.2322975</td><td class="column-13">369.9987306</td><td class="column-14">392</td>
	</tr>
	<tr class="row-11 odd">
		<td class="column-1"></td><td class="column-2">G</td><td class="column-3">G#</td><td class="column-4">A</td><td class="column-5">A#</td><td class="column-6">B</td><td class="column-7">C</td><td class="column-8">C#</td><td class="column-9">D</td><td class="column-10">D#</td><td class="column-11">E</td><td class="column-12">F</td><td class="column-13">F#</td><td class="column-14">G</td>
	</tr>
	<tr class="row-12 even">
		<td class="column-1">B</td><td class="column-2">246.94</td><td class="column-3">261.6238165</td><td class="column-4">277.1807782</td><td class="column-5">293.662805</td><td class="column-6">311.1249041</td><td class="column-7">329.6253536</td><td class="column-8">349.2258971</td><td class="column-9">369.9919496</td><td class="column-10">391.9928158</td><td class="column-11">415.3019216</td><td class="column-12">439.9970589</td><td class="column-13">466.1606455</td><td class="column-14">493.88</td>
	</tr>
	<tr class="row-13 odd">
		<td class="column-1"></td><td class="column-2">B</td><td class="column-3">C</td><td class="column-4">C#</td><td class="column-5">D</td><td class="column-6">D#</td><td class="column-7">E</td><td class="column-8">F</td><td class="column-9">F#</td><td class="column-10">G</td><td class="column-11">G#</td><td class="column-12">A</td><td class="column-13">A#</td><td class="column-14">B</td>
	</tr>
	<tr class="row-14 even">
		<td class="column-1">e</td><td class="column-2">329.63</td><td class="column-3">349.2308198</td><td class="column-4">369.997165</td><td class="column-5">391.9983413</td><td class="column-6">415.3077757</td><td class="column-7">440.0032611</td><td class="column-8">466.1672166</td><td class="column-9">493.8869618</td><td class="column-10">523.2550088</td><td class="column-11">554.3693707</td><td class="column-12">587.3338889</td><td class="column-13">622.2585794</td><td class="column-14">659.26</td>
	</tr>
	<tr class="row-15 odd">
		<td class="column-1"></td><td class="column-2">e</td><td class="column-3">F</td><td class="column-4">F#</td><td class="column-5">G</td><td class="column-6">G#</td><td class="column-7">A</td><td class="column-8">A#</td><td class="column-9">B</td><td class="column-10">C</td><td class="column-11">C#</td><td class="column-12">D</td><td class="column-13">D#</td><td class="column-14">E</td>
	</tr>
</tbody>
</table>

</div>
<p>You can check the frequency calculations by comparing them with the values on <a href="http://www.vaughns-1-pagers.com/music/musical-note-frequencies.htm" title="Musical Note Frequencies" target="_blank">http://www.vaughns-1-pagers.com/music/musical-note-frequencies.htm</a> which also shows note frequencies and octave groupings for piano.</p>
<p>That&#8217;s it &#8211; in this post I learned a bit about the physics of vibrating strings and how to use that understanding to calculate the frequencies of the notes on the guitar strings along with where to put the frets on the guitar fretboard. I thought it was quite interesting, hope anyone reading it does too &#8211; maybe even useful if you&#8217;re interested in playing, building or maintaining musical instruments <img src='http://www.riotstories.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<div id="crp_related"><h3>Possibly Related Posts:</h3><div id=relposts><ul><li><a href="http://www.riotstories.co.uk/science/projectile-motion-ii-air-resistance-linear-in-speed/" rel="bookmark" class="crp_link"><span class="crp_title"> Projectile Motion II: Air Resistance Linear in Speed</span></a></li><li><a href="http://www.riotstories.co.uk/science/projectiles-no-air-resistance/" rel="bookmark" class="crp_link"><span class="crp_title"> Projectile Motion I: No Air Resistance</span></a></li><li><a href="http://www.riotstories.co.uk/science/projectile/" rel="bookmark" class="crp_link"><span class="crp_title"> Projectile Motion III: Air Resistance Quadratic in Speed</span></a></li><li><a href="http://www.riotstories.co.uk/science/seashells/" rel="bookmark" class="crp_link"><span class="crp_title"> Modelling Seashells</span></a></li><li><a href="http://www.riotstories.co.uk/music/chord-sequences/" rel="bookmark" class="crp_link"><span class="crp_title"> Guitar Chord Sequences</span></a></li></ul></div></div><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/riotstories?a=N06JFfmrj5I:qXfJ2p10oxk:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/riotstories?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/riotstories?a=N06JFfmrj5I:qXfJ2p10oxk:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/riotstories?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/riotstories?a=N06JFfmrj5I:qXfJ2p10oxk:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/riotstories?i=N06JFfmrj5I:qXfJ2p10oxk:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/riotstories?a=N06JFfmrj5I:qXfJ2p10oxk:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/riotstories?i=N06JFfmrj5I:qXfJ2p10oxk:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/riotstories?a=N06JFfmrj5I:qXfJ2p10oxk:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/riotstories?i=N06JFfmrj5I:qXfJ2p10oxk:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/riotstories/~4/N06JFfmrj5I" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.riotstories.co.uk/science/frets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.riotstories.co.uk/science/frets/</feedburner:origLink></item>
		<item>
		<title>Modelling Seashells</title>
		<link>http://feedproxy.google.com/~r/riotstories/~3/u_B2sDj_Rcs/</link>
		<comments>http://www.riotstories.co.uk/science/seashells/#comments</comments>
		<pubDate>Tue, 21 Feb 2012 14:28:22 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Science]]></category>
		<category><![CDATA[3D Surface]]></category>
		<category><![CDATA[Geometry]]></category>
		<category><![CDATA[Parametric Equation]]></category>
		<category><![CDATA[Polar Co-ordinates]]></category>
		<category><![CDATA[Seashells]]></category>
		<category><![CDATA[Spiral]]></category>

		<guid isPermaLink="false">http://www.riotstories.co.uk/?p=975</guid>
		<description><![CDATA[Some ideas, concepts and examples for modelling the shapes of seashells are worked through for fun. <a href="http://www.riotstories.co.uk/science/seashells/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h2>Introduction</h2>
<p>I thought it would be fun to investigate the shapes of seashells and try to understand the factors that shape them. </p>
<p>In this post I&#8217;ve recorded what I&#8217;ve learned with examples for future reference. I&#8217;ve tried to make this post sufficiently complete that it could be used in the future as a reasonably comprehensive refresher in case I decide to come back to the subject and try playing with it further. In the course of thinking about this topic other ideas become important and the first part of this post summarises them (e.g. parametric surfaces, polar co-ordinates, ideas from Euclidean geometry). Where a particular subject requires it I&#8217;ve added a separate post to go into more detail and included a link to it in this post.<span id="more-975"></span></p>
<h2>Background ideas</h2>
<p>This section just outlines some of the background ideas that are necessary for this particular investigation.</p>
<h3 class="sectionheading">1. Cartesian Co-ordinates</h3>
<p>Everything that follows in this post assumed Euclidean space i.e. the flat space that we&#8217;re all used to in everyday life where the rules of geometry we were taught in school apply. Nothing written in this post is relevant if you&#8217;re thinking about curved space where different rules of geometry apply.</br><br />
In 2D geometry it&#8217;s usual to think of the co-ordinates of a point as being specified on a so called &#8220;Cartesian Co-ordinate System&#8221;. That&#8217;s just a fancy way of saying &#8220;imagine a flat plane where conventionally we call the direction stretching from left to right i.e. running horizontally from left to right the x-axis and the direction running vertically the y-axis&#8221;. The x and y axes define 1 Cartesian co-ordinate system. This is shown in Figure 1.</br></p>
<p><img src="http://www.riotstories.co.uk/wp-content/themes/child2011/images/2D-Cartesian-coordinate-system.jpg" alt="2D Cartesian Co-ordinate System" /></p>
<p class="captiontext">Figure 1: Axes in a 2D Cartesian Co-ordinate System</p>
<p>A point, call it &#8220;P&#8221;, in that co-ordinate system would be specified as (x,y). In this co-ordinate system the point &#8220;P&#8221; has 2 properties: a length measured from the origin, call it &#8220;r&#8221; and an angle with the positive x-axis, conventioanlly this angle is labelled <img src='http://s.wordpress.com/latex.php?latex=%5Ctheta&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\theta' title='\theta' class='latex' /> (the letter &#8220;Theta&#8221; in the Greek alphabet (pronounced &#8220;Thee-ta&#8221; or &#8220;Thay-ta&#8221;). It&#8217;s conventional for science and maths to label variables with letters in the Greek alphabet. The point &#8220;P&#8221; and the properties are shown in Figure 2.</br></p>
<p><img src="http://www.riotstories.co.uk/wp-content/themes/child2011/images/Polar Co-ordinates.jpg" alt="Properties of a point "P" in the Cartesian Plane" /></p>
<p class="captiontext">Figure 2: Properties r and <img src='http://s.wordpress.com/latex.php?latex=%5Ctheta&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\theta' title='\theta' class='latex' /> of the point &#8220;P&#8221;</p>
<p>One of the interesting features of this geometry is that the properties r and <img src='http://s.wordpress.com/latex.php?latex=%5Ctheta&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\theta' title='\theta' class='latex' /> can be calculated from the co-ordinates (x,y) using Pythagoras&#8217;s Theorem from which we find:</br><br />
<img src='http://s.wordpress.com/latex.php?latex=r%5E2%3Dx%5E2%2By%5E2&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='r^2=x^2+y^2' title='r^2=x^2+y^2' class='latex' /></br><br />
<img src='http://s.wordpress.com/latex.php?latex=%5Ctheta%3D%5Carctan%5Cleft%28%5Cdfrac%7By%7D%7Bx%7D%5Cright%29&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\theta=\arctan\left(\dfrac{y}{x}\right)' title='\theta=\arctan\left(\dfrac{y}{x}\right)' class='latex' /></p>
<p>So far so good. We have learned how to specify the position of a point in a 2D Cartesian plan comprising a co-ordinate system denoted by an x-axis and a y-axis. Working in a 2D Cartesian plane like this is very useful as we will see but it is useful to extend this concept to a 3D co-ordinate system as follows</br></p>
<h3 class="sectionheading">2. 3D Cartesian Co-ordinates</h3>
<p>The 2D co-ordinate system described so far allows us to specify the position of a point on a flat plane. By introducing a 3rd co-ordinate axis we can specifiy the position of a point in 3D space. Conventionally this 3rd axis is denoted &#8220;z&#8221; and the position of our point &#8220;P&#8221; is then given as (x, y, z).</br><br />
Much can be written about the co-ordinate systems discussed so far but it would distract too much from the point of this post &#8211; plenty of good reference material can be found online.</br><br />
Our new z-axis is orthogonal (i.e. at right angles) to our existing x-y plane, but that means there are two possible orientations for the positive z-axis. How do we decide which one to choose?</br><br />
Conventionally we choose a left-handed or a right-handed co-ordinate system. The direction of increasing z is determined by imagining you rotate the x-axis onto the y-axis using the curled fingers of the left hand for a left-handed co-ordinate system or the right hand for a right-handed co-ordinate system. In either case the thumb of the chosen hand will point in the direction of increasing z for that co-ordinate system. This is shown in Figure 3.</p>
<p><img src="http://www.riotstories.co.uk/wp-content/themes/child2011/images/handedness.jpg" alt="Left and Right Handed Cartesian Co-ordinate Systems" /></p>
<p class="captiontext">Figure 3: Left and Right Handed Cartesian Co-ordinate Systems</p>
<p>We now have a 3D Cartesian co-ordinate system like the one shown in Figure 4 (which happens to be a right handed system &#8211; I usually end up choosing a right handed system for whatever reason).</p>
<p><img src="http://www.riotstories.co.uk/wp-content/themes/child2011/images/3D Cartesian.jpg" alt="Right-Handed 3D Cartesian Co-ordinate System" /></p>
<p class="captiontext">Figure 4: Right-Handed 3D Cartesian Co-ordinate System</p>
<h3 class="sectionheading">3. Distance in 3D Co-ordinate Systems</h3>
<p>In the 2D Co-ordinate system discussed above Pythagoras&#8217;s Theorem was used to show the length of the line from the origin (the point (0,0)) of the co-ordinate system to the point &#8220;P&#8221; (denoted by r) is related to the (x, y) co-ordinates of &#8220;P&#8221; through the relationship:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=r%5E2%3Dx%5E2%2By%5E2&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='r^2=x^2+y^2' title='r^2=x^2+y^2' class='latex' /></br></p>
<p>Imagine now that we have 2 points on the x-y plane with co-ordinates (x2, y2) and (x1, y1) instead of the origin (0, 0) and a single point (x, y). The distance between these 2 points is just an extension of result already quoted from Pythagoras&#8217;s Theorem and that distance is:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=d%5E2%3D%28x2-x1%29%5E2%2B%28y2-y1%29%5E2&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='d^2=(x2-x1)^2+(y2-y1)^2' title='d^2=(x2-x1)^2+(y2-y1)^2' class='latex' /> or <img src='http://s.wordpress.com/latex.php?latex=d%3D%5Csqrt%7B%28x2-x1%29%5E2%2B%28y2-y1%29%5E2%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='d=\sqrt{(x2-x1)^2+(y2-y1)^2}' title='d=\sqrt{(x2-x1)^2+(y2-y1)^2}' class='latex' /></p>
<p>See the similarity between this and the previous result ? This is shown in Figure 5.</p>
<p><img src="http://www.riotstories.co.uk/wp-content/themes/child2011/images/distance 2D.jpg" alt="Distance Between (x2,y2) and (x1,y1) in the 2D Cartesian Plane" /></p>
<p class="captiontext">Figure 5: Distance Between (x2,y2) and (x1,y1) in the 2D Cartesian Plane</p>
<p>This idea can be extended into our 3D Cartesian co-ordinate system to give the following general result for 2 points (x1, y1, z1) and (x2, y2, z2).</p>
<p><img src='http://s.wordpress.com/latex.php?latex=d%5E2%3D%28x2-x1%29%5E2%2B%28y2-y1%29%5E2%2B%28z2-z1%29%5E2&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='d^2=(x2-x1)^2+(y2-y1)^2+(z2-z1)^2' title='d^2=(x2-x1)^2+(y2-y1)^2+(z2-z1)^2' class='latex' /></br><br />
or</br><br />
<img src='http://s.wordpress.com/latex.php?latex=d%3D%5Csqrt%7B%28x2-x1%29%5E2%2B%28y2-y1%29%5E2%2B%28z2-z1%29%5E2%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='d=\sqrt{(x2-x1)^2+(y2-y1)^2+(z2-z1)^2}' title='d=\sqrt{(x2-x1)^2+(y2-y1)^2+(z2-z1)^2}' class='latex' /></br></p>
<p>Applying this result to the specific case where one of the points in our 3D system is located at the origin (0,0,0) and the other point &#8220;P&#8221; is at the general position (a,b,c) we can calculate the distance (call it &#8220;d&#8221;) from the origin to the point &#8220;P&#8221; as follows:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=d%3D%5Csqrt%7Ba%5E2%2Bb%5E2%2Bc%5E2%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='d=\sqrt{a^2+b^2+c^2}' title='d=\sqrt{a^2+b^2+c^2}' class='latex' /></br><br />
This is shown in Figurer 6.</br><br />
<img src="http://www.riotstories.co.uk/wp-content/themes/child2011/images/3d distance.gif" alt="Distance in 3D" /></p>
<p class="captiontext">Figure 6: Distance in 3D Co-ordinate System</p>
<h3 class="sectionheading">The Story So Far&#8230;</h3>
<p>So far we&#8217;ve established:</p>
<ul>
<li>How to define a 2D Cartesian co-ordinate System</li>
<li>How to specifiy the location of a point in a 2D co-ordinate system</li>
<li>How to calculate the distance between points in a 2D co-ordinate system</li>
<li>How to define a 3D Cartesian co-ordinate system</li>
<li>How to define the location of a point in a 3D Cartesian co-ordinate system</li>
<li>How to calculate the distance between points in the 3D co-ordinate system</li>
</ul>
<h3 class="sectionheading">4. Polar Co-ordinate Systems</h3>
<p>We&#8217;ve discussed how to represent a point on the x-y plane using Cartesian co-ordinates. Howevere, that&#8217;s just 1 co-ordinate system that is useful. There are others. For our purposes in this investigation into the shapes of seashells another co-ordinate system is equally useful &#8211; the &#8220;Polar Co-ordinate&#8221; system. We&#8217;ve already touched upon the conept of polar co-ordinates indirectly in the previous sections.</br><br />
We showed in Figure 2 that a point in the x-y plan can be represented as a distance from the origin (we labelled the distance &#8220;r&#8221;) and an angle in a counterclockwise direction from the positive x-axis which we labelled <img src='http://s.wordpress.com/latex.php?latex=%5Ctheta&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\theta' title='\theta' class='latex' /></br><br />
In the polar co-ordinate system of Figure 2 the point P has the polar co-ordinates (r, <img src='http://s.wordpress.com/latex.php?latex=%5Ctheta&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\theta' title='\theta' class='latex' />)</br><br />
The point P(x,y) or P(r, <img src='http://s.wordpress.com/latex.php?latex=%5Ctheta&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\theta' title='\theta' class='latex' />) is actually the same point and any fundamental behaviour associated with P must be the same regardless of co-ordinate system (this is &#8220;invariance&#8221; is a fundamental concept in relativity theory). this means there must be a transformation between the x-y and polar co-ordinate systems.</br><br />
From Figure 2 we can establish the following relationship between (x,y) and (r, <img src='http://s.wordpress.com/latex.php?latex=%5Ctheta&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\theta' title='\theta' class='latex' />):</br><br />
<img src='http://s.wordpress.com/latex.php?latex=x%3Dr%7B%5Ccos%5Ctheta%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='x=r{\cos\theta}' title='x=r{\cos\theta}' class='latex' /></br><br />
<img src='http://s.wordpress.com/latex.php?latex=y%3Dr%7Bsin%5Ctheta%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='y=r{sin\theta}' title='y=r{sin\theta}' class='latex' /></br><br />
allowing transformation from polar to Cartesian</br><br />
and</br><br />
<img src='http://s.wordpress.com/latex.php?latex=r%5E2%3Dx%5E2%2By%5E2&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='r^2=x^2+y^2' title='r^2=x^2+y^2' class='latex' /></br><br />
<img src='http://s.wordpress.com/latex.php?latex=%5Ctheta%3D%5Carctan%5Cleft%28%5Cdfrac%7By%7D%7Bx%7D%5Cright%29&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\theta=\arctan\left(\dfrac{y}{x}\right)' title='\theta=\arctan\left(\dfrac{y}{x}\right)' class='latex' /></br><br />
allowing transformation from Cartesian to polar</br><br />
This idea of using Cartesian and polar co-ordinates to represent a position on plane will be useful in what follows and leads naturally onto the next piece of background information that is necessary, that of parameteric curves.</p>
<h3 class="sectionheading">The Story So Far&#8230;</h3>
<p>So far we&#8217;ve established:</p>
<ul>
<li>The concept of 2D &#038; 3D Cartesian co-ordinate Systems</li>
<li>How to calculate the distance between points in a 2D &#038; 3D co-ordinate system</li>
<li>How to define the position of a point in a 2D polar co-ordinate system</li>
<li>How to translate the co-ordinates of a point between 2D Cartesian and polar co-ordinate systems in either &#8220;direction&#8221;</li>
</ul>
<h3 class="sectionheading">5. Parametric Curves</h3>
<p>Instead of defining y in terms of x i.e. y= f(x) or x in terms of y i.e. x= f(y) we define both x and y in terms of a third variable called a parameter as follows:</p>
<p>x=f(t)<br />
y=g(t)</p>
<p>Here we have introduced a new variable (which is usally) denoted by &#8220;t&#8221; &#8211; naturally, it doesn’t have to be called &#8220;t&#8221;, you can call it anything you want.</p>
<p>Sometimes the values that &#8220;t&#8221; can take will be restricted, sometimes they won’t.  Whether it is restricted or not depends on the situation and what we are trying to do. Most of the time it will be reasonably clearwhether &#8220;t&#8221; needs to be restricted or not. In what follows you will see instances where the parameter is restricted and others where it isn&#8217;t.</p>
<p>Each value of &#8220;t&#8221; defines a point in the x-y plane that can be plotted, each point x or y being the value of a function f(t) or g(t) evaluated for that particular value of &#8220;t&#8221;. The collection of (x,y) points that results from letting &#8220;t&#8221; take on all possible or allowed values is the graph of the parametric equations x=f(t) and y=g(t) and is called the parametric curve.</p>
<p>Here are some examples:</p>
<p>Example1: Parametric Equation of a Circle</p>
<p><img src='http://s.wordpress.com/latex.php?latex=x%3DR%7B%5Ccos%20t%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='x=R{\cos t}' title='x=R{\cos t}' class='latex' /><br />
<img src='http://s.wordpress.com/latex.php?latex=y%3DR%7Bsin%20t%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='y=R{sin t}' title='y=R{sin t}' class='latex' /></p>
<p>If we set R=2 and allow t to take on values in the range <img src='http://s.wordpress.com/latex.php?latex=0%5Cle%7Bt%7D%5Cle%202%5Cpi&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='0\le{t}\le 2\pi' title='0\le{t}\le 2\pi' class='latex' /> we get the following curve:</p>
<p><img src="http://www.riotstories.co.uk/wp-content/themes/child2011/images/2circle.png" alt="Circle of radius 2" /></p>
<p>I haven&#8217;t shown it on this diagram but the points on this diagram evolve in a counter-clockwise direction &#8211; to see this just evaluate the (x,y) pairs for various values of the parameter &#8220;t&#8221; in the allowed range, below I&#8217;ve shows the (x,y) pairs for a given value of &#8220;t&#8221; in the format t=value: (x,y)</p>
<p><img src='http://s.wordpress.com/latex.php?latex=t%3D0%5Cvdots%28R%2C0%29&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='t=0\vdots(R,0)' title='t=0\vdots(R,0)' class='latex' /><br />
<img src='http://s.wordpress.com/latex.php?latex=t%3D%5Cleft%28%5Cdfrac%7B%5Cpi%7D%7B2%7D%5Cright%29%5Cvdots%280%2CR%29&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='t=\left(\dfrac{\pi}{2}\right)\vdots(0,R)' title='t=\left(\dfrac{\pi}{2}\right)\vdots(0,R)' class='latex' /><br />
<img src='http://s.wordpress.com/latex.php?latex=t%3D%7B%5Cpi%7D%5Cvdots%28-R%2C0%29&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='t={\pi}\vdots(-R,0)' title='t={\pi}\vdots(-R,0)' class='latex' /><br />
<img src='http://s.wordpress.com/latex.php?latex=t%3D%5Cleft%28%5Cdfrac%7B3%5Cpi%7D%7B2%7D%5Cright%29%5Cvdots%280%2C-R%29&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='t=\left(\dfrac{3\pi}{2}\right)\vdots(0,-R)' title='t=\left(\dfrac{3\pi}{2}\right)\vdots(0,-R)' class='latex' /><br />
<img src='http://s.wordpress.com/latex.php?latex=t%3D%7B2%5Cpi%7D%5Cvdots%28R%2C0%29&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='t={2\pi}\vdots(R,0)' title='t={2\pi}\vdots(R,0)' class='latex' /></p>
<p>If we wanted the curve to go in the opposite direction we would set different boundaries on the parameter &#8220;t&#8221; so that it was in the range: <img src='http://s.wordpress.com/latex.php?latex=-2%5Cpi%5Cle%7Bt%7D%5Cle%200&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='-2\pi\le{t}\le 0' title='-2\pi\le{t}\le 0' class='latex' /> and we will find that the arithmetic signs of the &#8220;R&#8221; parameter in the above results reverses for the values of <img src='http://s.wordpress.com/latex.php?latex=%5Cpi&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\pi' title='\pi' class='latex' /> different from 0 or <img src='http://s.wordpress.com/latex.php?latex=2%5Cpi&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='2\pi' title='2\pi' class='latex' /> showing that the radial line sweeps out the circle in a clockwise direction starting in the horizontal position lying along the positive x-axis.</p>
<p>Example 2: parametric Equation of an Elipse</p>
<p><img src='http://s.wordpress.com/latex.php?latex=x%3DR%7B%5Ccos%20t%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='x=R{\cos t}' title='x=R{\cos t}' class='latex' /><br />
<img src='http://s.wordpress.com/latex.php?latex=y%3D2R%7Bsin%20t%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='y=2R{sin t}' title='y=2R{sin t}' class='latex' /></p>
<p>If we set R=2 and allow t to take on values in the range <img src='http://s.wordpress.com/latex.php?latex=0%5Cle%7Bt%7D%5Cle%202%5Cpi&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='0\le{t}\le 2\pi' title='0\le{t}\le 2\pi' class='latex' /> we get the following curve:</p>
<p><img src="http://www.riotstories.co.uk/wp-content/themes/child2011/images/2ellipse.png" alt="Parametric equation for an ellipse" /></p>
<p>There are many other curves occuring in mathematics and in nature that govern physical behaviour and interactions, some alternatives that can exhibit interesting behaviour are:</p>
<h4 class="curve">Astroid</h4>
<p><img src='http://s.wordpress.com/latex.php?latex=x%3D%5Ccos%5E3t&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='x=\cos^3t' title='x=\cos^3t' class='latex' /><br />
<img src='http://s.wordpress.com/latex.php?latex=y%3D%5Csin%5E3t&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='y=\sin^3t' title='y=\sin^3t' class='latex' /></p>
<p><img src='http://s.wordpress.com/latex.php?latex=0%5Cle%7Bt%7D%5Cle%202%5Cpi&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='0\le{t}\le 2\pi' title='0\le{t}\le 2\pi' class='latex' /></br></p>
<h4 class="curve">Astroid Pedal Curve</h4>
<p><img src='http://s.wordpress.com/latex.php?latex=x%3D%5Ccos%20t%5Csin%5E2t&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='x=\cos t\sin^2t' title='x=\cos t\sin^2t' class='latex' /><br />
<img src='http://s.wordpress.com/latex.php?latex=y%3D%5Cleft%281%2B%5Ccos2t%5Cright%29%5Cdfrac%7B%5Csin%5E2t%7D%7B2%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='y=\left(1+\cos2t\right)\dfrac{\sin^2t}{2}' title='y=\left(1+\cos2t\right)\dfrac{\sin^2t}{2}' class='latex' /></p>
<p><img src='http://s.wordpress.com/latex.php?latex=0%5Cle%7Bt%7D%5Cle%202%5Cpi&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='0\le{t}\le 2\pi' title='0\le{t}\le 2\pi' class='latex' /></br></p>
<h4 class="curve">Bifoliate</h4>
<p><img src='http://s.wordpress.com/latex.php?latex=x%3D%5Cdfrac%7B8%5Ccos%5E2t%5Csin%5E2t%7D%7B3%2B%5Ccos4t%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='x=\dfrac{8\cos^2t\sin^2t}{3+\cos4t}' title='x=\dfrac{8\cos^2t\sin^2t}{3+\cos4t}' class='latex' /></br><br />
<img src='http://s.wordpress.com/latex.php?latex=y%3D%5Cdfrac%7B8%5Ccos%20t%5Csin%5E3t%7D%7B3%2B%5Ccos4t%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='y=\dfrac{8\cos t\sin^3t}{3+\cos4t}' title='y=\dfrac{8\cos t\sin^3t}{3+\cos4t}' class='latex' /></p>
<p><img src='http://s.wordpress.com/latex.php?latex=0%5Cle%7Bt%7D%5Cle%5Cpi&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='0\le{t}\le\pi' title='0\le{t}\le\pi' class='latex' /></br></p>
<h2>2D Spirals</h2>
<p>We can now use the ideas that we&#8217;ve learned about so far to take the first step towards modelling teh shape of seashells. Most people if asked would probably agree that seashells appear to exhibit a spiral type structure so that&#8217;s where I&#8217;ll start.</p>
<p>Spirals are an interesting geometric shape and it can be fun to study their properties for its own sake. There ar many different spiral structures but to get started I&#8217;ll look at a simple one and a more realistic one. at the end of this section I&#8217;ll list some others that you can have a play with if intrested.</p>
<p>Referring back to the previous discussion on polar co-ordinates the spirals have the property that the radial parameter r is a function of the angle so:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=r%3Df%5Cleft%28%5Ctheta%5Cright%29&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='r=f\left(\theta\right)' title='r=f\left(\theta\right)' class='latex' /></br></p>
<h3 class="sectionheading">Archimedean Spiral</h3>
<p>A common class of spiral is the so called &#8220;Archimedean spiral&#8221;, the general form of which is:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=r%3Da%2Bb%5Ctheta%5E%7B%5Cfrac%7B1%7D%7Bx%7D%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='r=a+b\theta^{\frac{1}{x}}' title='r=a+b\theta^{\frac{1}{x}}' class='latex' /></br><br />
The form of this spiral that we will use here is the case where x=1 giving:</br><br />
<img src='http://s.wordpress.com/latex.php?latex=r%3Da%2Bb%5Ctheta&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='r=a+b\theta' title='r=a+b\theta' class='latex' /></p>
<p>The parametric equations we will use can now be written for the spiral in the x-y plane as follows:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=x%3Dr%7B%5Ccos%20t%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='x=r{\cos t}' title='x=r{\cos t}' class='latex' /><br />
<img src='http://s.wordpress.com/latex.php?latex=y%3Dr%7Bsin%20t%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='y=r{sin t}' title='y=r{sin t}' class='latex' /></p>
<p>where<br />
<img src='http://s.wordpress.com/latex.php?latex=r%3Da%2Bb%5Ctheta&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='r=a+b\theta' title='r=a+b\theta' class='latex' /> and initially <img src='http://s.wordpress.com/latex.php?latex=0%5Cle%7Bt%7D%5Cle%202%5Cpi&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='0\le{t}\le 2\pi' title='0\le{t}\le 2\pi' class='latex' /></p>
<p>The parametric equations can now be re-written as follows by substituting for r:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=x%3D%5Cleft%28a%2Bbt%5Cright%29%5Ccos%20t&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='x=\left(a+bt\right)\cos t' title='x=\left(a+bt\right)\cos t' class='latex' /><br />
<img src='http://s.wordpress.com/latex.php?latex=y%3D%5Cleft%28a%2Bbt%5Cright%29%5Csin%20t&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='y=\left(a+bt\right)\sin t' title='y=\left(a+bt\right)\sin t' class='latex' /></p>
<p>with a, b constants and <img src='http://s.wordpress.com/latex.php?latex=0%5Cle%7Bt%7D%5Cle%202%5Cpi&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='0\le{t}\le 2\pi' title='0\le{t}\le 2\pi' class='latex' /></p>
<p>Using the previous formula for calulating distances in a 2D cartesian co-ordinate system we can show that the distance between points on the successive turns of this spiral along a given angle is equal to <img src='http://s.wordpress.com/latex.php?latex=2%7B%5Cpi%7Db&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='2{\pi}b' title='2{\pi}b' class='latex' /> (clue: a turn means that along a given angle the value of &#8220;t&#8221; has increased by <img src='http://s.wordpress.com/latex.php?latex=2%7B%5Cpi%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='2{\pi}' title='2{\pi}' class='latex' />). Since &#8220;b&#8221; is a constant for any given instacne of this spiral the distance between successive turns is also a constant. We will see that this is different from the next spiral we look at (which is also more realistic in that it occurs frequently in nature).</p>
<p>The figure below shows this spiral plotted for a=2 and b=4 and <img src='http://s.wordpress.com/latex.php?latex=0%5Cle%7Bt%7D%5Cle%204%5Cpi&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='0\le{t}\le 4\pi' title='0\le{t}\le 4\pi' class='latex' /></p>
<p><img src="http://www.riotstories.co.uk/wp-content/themes/child2011/images/archimedes-spiral.png" alt="Archimedes spiral with a=2 and b=4" /></p>
<p>The parameter &#8220;a&#8221; determines the starting radius of the spiral on the x-axis (i.e. it&#8217;s the radius of the circle that would result if b=0) and is shown in the figure below where we have increased &#8220;a&#8221; from 2 in the previous diagram to 5 and b=4 as previously</p>
<p><img src="http://www.riotstories.co.uk/wp-content/themes/child2011/images/5archimedes.png" alt="Archimedes spiral with a=5 and b=4" /></p>
<p>As derived previously the separation between turns of this spiral is a constant and is proportional to &#8220;b&#8221; so bigger &#8220;b&#8221; means arcs that are further apart.</p>
<h3 class="sectionheading">Logarithmic Spiral</h3>
<p></br><br />
Another spiral form that is important because it is a form that occurs in nature in many places is the so called &#8220;Logarithmic Spiral&#8221;. The polar form of the logarithmic spiral is:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=r%3Dae%5E%7Bbt%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='r=ae^{bt}' title='r=ae^{bt}' class='latex' /></br><br />
where once again &#8220;a&#8221; and &#8220;b&#8221; are constants. An interesting property of this spiral is that it is self-similar, for example if the spiral is scaled by a factor of <img src='http://s.wordpress.com/latex.php?latex=e%5E%7B2%7B%5Cpi%7Db%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='e^{2{\pi}b}' title='e^{2{\pi}b}' class='latex' /> then is the same as the original without rotation, just bigger. It turns out many shells in nature follow growth patterns defined by logarithmic spirals which allows the animal to grow physically bigger but without changing shape.</p>
<p>The parametric equations for the logairthmic spiral in the x-y plane are given by:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=x%3D%7Bae%5E%7Bb%20t%7D%7D%5Ccos%20t&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='x={ae^{b t}}\cos t' title='x={ae^{b t}}\cos t' class='latex' /></br><br />
<img src='http://s.wordpress.com/latex.php?latex=x%3D%7Bae%5E%7Bb%20t%7D%7D%5Csin%20t&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='x={ae^{b t}}\sin t' title='x={ae^{b t}}\sin t' class='latex' /></br></p>
<p>In the same way as we calculated the distance between points on successive curls along a given angle for the Archimedes spiral we can do so for the logarithmic spiral. The result obtained is:</br></p>
<p><img src='http://s.wordpress.com/latex.php?latex=d%3Dae%5E%7Bb%28t%2Bn2%5Cpi%29%7D%5Cleft%28e%5E%7B2b%5Cpi%7D-1%5Cright%29&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='d=ae^{b(t+n2\pi)}\left(e^{2b\pi}-1\right)' title='d=ae^{b(t+n2\pi)}\left(e^{2b\pi}-1\right)' class='latex' /></br><br />
For increasing &#8220;n&#8221; these values form a geometric series with scale factor <img src='http://s.wordpress.com/latex.php?latex=e%5E%7B2%7B%5Cpi%7Db%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='e^{2{\pi}b}' title='e^{2{\pi}b}' class='latex' />. Compare this with the equivalent for the Archimedes spiral where the successive differences form an arithmetic sequence with difference given by <img src='http://s.wordpress.com/latex.php?latex=b%202%5Cpi&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='b 2\pi' title='b 2\pi' class='latex' /></br></p>
<p>The figure below shows a logarithmic spiral with &#8220;a&#8221;=0.15 and &#8220;b&#8221;=0.2 plotted over the range <img src='http://s.wordpress.com/latex.php?latex=0%5Cle%7Bt%7D%5Cle%7B6%7D%5Cpi&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='0\le{t}\le{6}\pi' title='0\le{t}\le{6}\pi' class='latex' /></p>
<p><img src="http://www.riotstories.co.uk/wp-content/themes/child2011/images/logspiral.png" alt="Logarithmic Spiral" /></p>
<h2>3D Spirals</h2>
<p>We&#8217;ve now got the details of 2 common spiral shapes in 2D (the x-y plane). To use these spirals to model seashell shapes we need to extend them into 3D. </p>
<p>Essentially, extending into 2D is a logical extension of what we&#8217;ve already covered for 2D, this time the z co-ordinate becomes a function on our angle <img src='http://s.wordpress.com/latex.php?latex=%5Ctheta&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\theta' title='\theta' class='latex' /> so we have:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=r%3Df%28%5Ctheta%29&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='r=f(\theta)' title='r=f(\theta)' class='latex' /><br />
<img src='http://s.wordpress.com/latex.php?latex=z%3Dg%28%5Ctheta%29&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='z=g(\theta)' title='z=g(\theta)' class='latex' /></p>
<h3 class="sectionheading">3D Archimedian Spiral</h3>
<p>for the Archimedes Spiral used previously we already know <img src='http://s.wordpress.com/latex.php?latex=r%28%5Ctheta%29%3Da%2Bb%5Ctheta&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='r(\theta)=a+b\theta' title='r(\theta)=a+b\theta' class='latex' />.</p>
<p>Initially we assume a linear variation of z as a function of <img src='http://s.wordpress.com/latex.php?latex=%5Ctheta&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\theta' title='\theta' class='latex' /> so we have</p>
<p><img src='http://s.wordpress.com/latex.php?latex=z%3Dc%5Ctheta&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='z=c\theta' title='z=c\theta' class='latex' /> where c is a constant, giving </p>
<p><img src='http://s.wordpress.com/latex.php?latex=r%3Da%2Bb%5Ctheta&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='r=a+b\theta' title='r=a+b\theta' class='latex' /><br />
<img src='http://s.wordpress.com/latex.php?latex=z%3Dc%5Ctheta&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='z=c\theta' title='z=c\theta' class='latex' /></p>
<p>We can plot example spirals using these relationships and various values of a, b, c. An example of the Archimedes spiral with a=0.2, b=3, c=3 is shown below. It is interesting to experiment with different values of a,b,c to understand the effect these individual parametrs have on the shape of the spiral.</p>
<p><img src="http://www.riotstories.co.uk/wp-content/themes/child2011/images/Archimedes3D.png" alt="3D Archimedes Spiral" /></p>
<h3 class="sectionheading">3D Logarithmic Spiral</h3>
<p>We can adopt a similar approach when using the Logarithmic spiral, this time we can use <img src='http://s.wordpress.com/latex.php?latex=z%3De%5E%7Bc%5Ctheta%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='z=e^{c\theta}' title='z=e^{c\theta}' class='latex' /> giving the parameteric equations for the spiral as</p>
<p><img src='http://s.wordpress.com/latex.php?latex=x%3Da%20e%5E%7Bb%5Ctheta%7D%20Cos%5Cleft%28%5Ctheta%5Cright%29&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='x=a e^{b\theta} Cos\left(\theta\right)' title='x=a e^{b\theta} Cos\left(\theta\right)' class='latex' /><br />
<img src='http://s.wordpress.com/latex.php?latex=y%3Da%20e%5E%7Bb%5Ctheta%7D%20Sin%5Cleft%28%5Ctheta%5Cright%29&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='y=a e^{b\theta} Sin\left(\theta\right)' title='y=a e^{b\theta} Sin\left(\theta\right)' class='latex' /><br />
<img src='http://s.wordpress.com/latex.php?latex=z%3Dc%20e%5E%7Bd%5Ctheta%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='z=c e^{d\theta}' title='z=c e^{d\theta}' class='latex' /></p>
<p>Notice we&#8217;ve given the general form for <img src='http://s.wordpress.com/latex.php?latex=z%5Cleft%28%5Ctheta%5Cright%29&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='z\left(\theta\right)' title='z\left(\theta\right)' class='latex' /> and used c and d for the parameters. We could of course choose values so that c=a and d=b, in which case the z=r. Generally a,b,c,d are constants. </p>
<p>An example of a Logarithmic spiral with a=0.1, b=0.2, c=0.3, d=0.14</p>
<p><img src="http://www.riotstories.co.uk/wp-content/themes/child2011/images/Log3D.png" alt="3D Logarithmic Spiral" /></p>
<h2>Model Seashells</h2>
<p>Now we can use the spirals above to generate some sample seashell shapes. To do this we need to treat the spirals we&#8217;ve generated as a path in space. This gives a line not a 3D surface with extent which is what a physical seashell is. We call the 3D spiral a &#8220;helico spiral&#8221; and the way we create a 3D surface is to move a generating curve along the helico-spiral pathway &#8211; a bit like moving a hoop through the air by hand to create a pattern of soap bubbles. Part of the fun is in creating different generating curves. To start with I&#8217;ll use a simple semi-circle to illustrate the idea. The figure below is an attempt to show the geometry and illustrate how we use it.</p>
<p><img src="http://www.riotstories.co.uk/wp-content/themes/child2011/images/GeneratingCurve.png" alt="Generating Curve" /></p>
<p>From the image you can see that the generating curve has a radius &#8220;R&#8221; and that radius creates an angle <img src='http://s.wordpress.com/latex.php?latex=%5Cphi&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\phi' title='\phi' class='latex' /></p>
<p>A point on the surface we will create by moving the generating curve along the helico spiral is defined in terms of 2 angles <img src='http://s.wordpress.com/latex.php?latex=%5Ctheta&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\theta' title='\theta' class='latex' /> and <img src='http://s.wordpress.com/latex.php?latex=%5Cphi&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\phi' title='\phi' class='latex' />. As before <img src='http://s.wordpress.com/latex.php?latex=0%5Cle%5Ctheta%5Cle%202%5Cpi&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='0\le\theta\le 2\pi' title='0\le\theta\le 2\pi' class='latex' /> but <img src='http://s.wordpress.com/latex.php?latex=0%5Cle%5Cphi%5Cle%20%5Cpi&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='0\le\phi\le \pi' title='0\le\phi\le \pi' class='latex' /></p>
<p>From the figure showing the generating curve you can see that the position on the new surface i.e. &#8220;r&#8221; is now increased as a result of the shape of the generating curve. You can do some straightforward trigonometry to show that</p>
<img src='http://s.wordpress.com/latex.php?latex=r%5Cto%20r%2BR%5Csin%5Cleft%28%5Cphi%5Cright%29&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='r\to r+R\sin\left(\phi\right)' title='r\to r+R\sin\left(\phi\right)' class='latex' />
<p>In addition, the z co-ordinate is also increased by the amount of the R vector on the generating curve that is projected onto the z-axis (i.e. R-the component of R on the baseline of the semi-circle for a given angle). Again some straightforward trig will show you that</p>
<img src='http://s.wordpress.com/latex.php?latex=z%5Cto%20z%2BR%5Cleft%281-%5Ccos%5Cphi%5Cright%29&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='z\to z+R\left(1-\cos\phi\right)' title='z\to z+R\left(1-\cos\phi\right)' class='latex' />
<p>Using these modified expressions for &#8220;r&#8221; and &#8220;z&#8221; we can write the parametric equations using an Archimedian spiral as the helico spiral as follows:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=x%3D%28a%2Bb%5Ctheta%2BR%5Csin%5Cphi%29%5Ccos%5Ctheta&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='x=(a+b\theta+R\sin\phi)\cos\theta' title='x=(a+b\theta+R\sin\phi)\cos\theta' class='latex' /><br />
<img src='http://s.wordpress.com/latex.php?latex=y%3D%28a%2Bb%5Ctheta%2BR%5Csin%5Cphi%29%5Csin%5Ctheta&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='y=(a+b\theta+R\sin\phi)\sin\theta' title='y=(a+b\theta+R\sin\phi)\sin\theta' class='latex' /><br />
<img src='http://s.wordpress.com/latex.php?latex=z%3Dc%2Bd%5Ctheta%2BR%281-%5Ccos%5Cphi%29&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='z=c+d\theta+R(1-\cos\phi)' title='z=c+d\theta+R(1-\cos\phi)' class='latex' /></p>
<p><img src='http://s.wordpress.com/latex.php?latex=0%5Cle%5Ctheta%5Cle%202%5Cpi&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='0\le\theta\le 2\pi' title='0\le\theta\le 2\pi' class='latex' />, <img src='http://s.wordpress.com/latex.php?latex=0%5Cle%5Cphi%5Cle%20%5Cpi&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='0\le\phi\le \pi' title='0\le\phi\le \pi' class='latex' /></p>
<p>Here are some examples:</p>
<p><img src="http://www.riotstories.co.uk/wp-content/themes/child2011/images/shell1.png" alt="Shell Example 1" /></p>
<p>Increase the number of rotations of the spiral by increasing the upper limit of <img src='http://s.wordpress.com/latex.php?latex=%5Ctheta&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\theta' title='\theta' class='latex' /> and make the shape of the generating curve a circle instead of a semi-circle by changing the uppere limit of <img src='http://s.wordpress.com/latex.php?latex=%5Cphi&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\phi' title='\phi' class='latex' /> from <img src='http://s.wordpress.com/latex.php?latex=%5Cpi&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\pi' title='\pi' class='latex' /> to <img src='http://s.wordpress.com/latex.php?latex=2%5Cpi&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='2\pi' title='2\pi' class='latex' /> to get something like this:</p>
<p><img src="http://www.riotstories.co.uk/wp-content/themes/child2011/images/shell2.png" alt="Example Shell 2" /></p>
<p>You can now play around with ideas. for example you could let the radius of the generating curve change as the curve rotates, make it a linear growth with angle along the lines</p>
<p><img src='http://s.wordpress.com/latex.php?latex=R%5Cleft%28%5Ctheta%5Cright%29%3Df%5Cleft%281%2Bg%5Ctheta%5Cright%29&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='R\left(\theta\right)=f\left(1+g\theta\right)' title='R\left(\theta\right)=f\left(1+g\theta\right)' class='latex' /> where f and g are constants and f=R when <img src='http://s.wordpress.com/latex.php?latex=%5Ctheta%7B%3D%7D%7B0%7D&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='\theta{=}{0}' title='\theta{=}{0}' class='latex' />. With this modification to R, The parametric equtions become</p>
<p><img src='http://s.wordpress.com/latex.php?latex=x%3D%28a%2Bb%5Ctheta%2BR%281%2Bg%5Ctheta%29%5Csin%5Cphi%29%5Ccos%5Ctheta&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='x=(a+b\theta+R(1+g\theta)\sin\phi)\cos\theta' title='x=(a+b\theta+R(1+g\theta)\sin\phi)\cos\theta' class='latex' /><br />
<img src='http://s.wordpress.com/latex.php?latex=y%3D%28a%2Bb%5Ctheta%2BR%281%2Bg%5Ctheta%29%5Csin%5Cphi%29%5Csin%5Ctheta&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='y=(a+b\theta+R(1+g\theta)\sin\phi)\sin\theta' title='y=(a+b\theta+R(1+g\theta)\sin\phi)\sin\theta' class='latex' /><br />
<img src='http://s.wordpress.com/latex.php?latex=z%3Dc%2Bd%5Ctheta%2BR%281%2Bg%5Ctheta%29%281-%5Ccos%5Cphi%29&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='z=c+d\theta+R(1+g\theta)(1-\cos\phi)' title='z=c+d\theta+R(1+g\theta)(1-\cos\phi)' class='latex' /></p>
<p>and here&#8217;s an example of what you get</p>
<p><img src="http://www.riotstories.co.uk/wp-content/themes/child2011/images/fat.png" alt="Example Shell When R grows with Rotation angle" /></p>
<p>Instead of a semicircle for the generating curve, you could try an ellipse. In that situation you follow the same logic as before but this time you will find that the radius and z component get modified along the following lines:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=r%5Cto%20r%2BR%5Csin%5Cleft%28%5Cphi%5Cright%29&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='r\to r+R\sin\left(\phi\right)' title='r\to r+R\sin\left(\phi\right)' class='latex' /><br />
<img src='http://s.wordpress.com/latex.php?latex=z%5Cto%20z%2B2R%5Cleft%281-%5Ccos%5Cphi%5Cright%29&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='z\to z+2R\left(1-\cos\phi\right)' title='z\to z+2R\left(1-\cos\phi\right)' class='latex' /></p>
<p>Here&#8217;s an example of a surface using the parametric equations modified for an ellipse instead of a semi-circle generating curve and using a range of <img src='http://s.wordpress.com/latex.php?latex=0%5Cle%5Cphi%5Cle%7B2%7D%5Cpi&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='0\le\phi\le{2}\pi' title='0\le\phi\le{2}\pi' class='latex' /></p>
<p><img src="http://www.riotstories.co.uk/wp-content/themes/child2011/images/ellipse.png" alt="Ellipse as the generating curve" /></p>
<p>Hopefully that gives you the general idea. The geometries covered in this article have been limited to spirals (which are very interesting in themselves and worth playing with) and circles, semi-circles and ellipses as the generating functions.</p>
<p>If you check out the examples I&#8217;ve used in this article you will notice that most of the shells generated have open tops. I think that&#8217;s because the generating curves I&#8217;ve used mostly had &#8220;R&#8221; = constant. When I used <img src='http://s.wordpress.com/latex.php?latex=R%5Cleft%28%5Ctheta%5Cright%29&#038;bg=0F0F0F&#038;fg=a4bba4&#038;s=0' alt='R\left(\theta\right)' title='R\left(\theta\right)' class='latex' /> the top of the shell seemed to close over. I plan on experimenting further with this.</p>
<p>In addition, an interesting experiment would be to use some sort of rendering software to apply a finish to the generated shells and see how lifelike they can be made. However, I don&#8217;t have any experience (and only moderate interest to be honest) in that sort of thing. Maybe someday <img src='http://www.riotstories.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  Have fun.</p>
<div id="crp_related"><h3>Possibly Related Posts:</h3><div id=relposts><ul><li><a href="http://www.riotstories.co.uk/science/projectiles-no-air-resistance/" rel="bookmark" class="crp_link"><span class="crp_title"> Projectile Motion I: No Air Resistance</span></a></li><li><a href="http://www.riotstories.co.uk/science/projectile-motion-ii-air-resistance-linear-in-speed/" rel="bookmark" class="crp_link"><span class="crp_title"> Projectile Motion II: Air Resistance Linear in Speed</span></a></li><li><a href="http://www.riotstories.co.uk/science/projectile/" rel="bookmark" class="crp_link"><span class="crp_title"> Projectile Motion III: Air Resistance Quadratic in Speed</span></a></li><li><a href="http://www.riotstories.co.uk/space/eyes-on-the-solar-system/" rel="bookmark" class="crp_link"><span class="crp_title"> Eyes on the Solar System</span></a></li><li><a href="http://www.riotstories.co.uk/science/frets/" rel="bookmark" class="crp_link"><span class="crp_title"> Guitar Frets</span></a></li></ul></div></div><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/riotstories?a=u_B2sDj_Rcs:P3ZaAs8mMIk:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/riotstories?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/riotstories?a=u_B2sDj_Rcs:P3ZaAs8mMIk:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/riotstories?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/riotstories?a=u_B2sDj_Rcs:P3ZaAs8mMIk:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/riotstories?i=u_B2sDj_Rcs:P3ZaAs8mMIk:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/riotstories?a=u_B2sDj_Rcs:P3ZaAs8mMIk:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/riotstories?i=u_B2sDj_Rcs:P3ZaAs8mMIk:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/riotstories?a=u_B2sDj_Rcs:P3ZaAs8mMIk:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/riotstories?i=u_B2sDj_Rcs:P3ZaAs8mMIk:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/riotstories/~4/u_B2sDj_Rcs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.riotstories.co.uk/science/seashells/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.riotstories.co.uk/science/seashells/</feedburner:origLink></item>
		<item>
		<title>404 Errors</title>
		<link>http://feedproxy.google.com/~r/riotstories/~3/f8mAQ0qtFdo/</link>
		<comments>http://www.riotstories.co.uk/wordpress/404-errors/#comments</comments>
		<pubDate>Sun, 08 Jan 2012 20:32:56 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[HTTP 404]]></category>

		<guid isPermaLink="false">http://www.riotstories.co.uk/?p=972</guid>
		<description><![CDATA[I&#8217;ve been getting a lot of HTTP 404 errors recently &#8211; mainly from what apear to be search engine bots (they appear to be confirmed as bots via a reverse DNS lookup). these 404s seem to be coming from a &#8230; <a href="http://www.riotstories.co.uk/wordpress/404-errors/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been getting a lot of HTTP 404 errors recently &#8211; mainly from what apear to be search engine bots (they appear to be confirmed as bots via a reverse DNS lookup). these 404s seem to be coming from a series of attempts to crawl old pages that don&#8217;t exist on the site any longer. I&#8217;ve set up 301 redirects to address the specific instances that have cropped up so far &#8211; appraently this could have negative consequences from a SEO point of view though I don&#8217;t understand the details of the argument (the whole SEO malarky seems a bit like black magic and some smoke and mirrors thrown in). I&#8217;ll keep monitoring.</p>
<p>Another class of HTTP 404 errors seems fundamentally different in nature &#8211; they look like attempts to connect directly to plugins that have known vulnerabilities or attempts to connect direct to some of the important files on the site. I&#8217;ve taken different action on those and will continue to monitor carefully. An interesting learning opportunity those!</p>
<div id="crp_related"><h3>Possibly Related Posts:</h3><div id=relposts><ul><li><a href="http://www.riotstories.co.uk/wordpress/how-to-add-a-favicon/" rel="bookmark" class="crp_link"><span class="crp_title"> How to add a favicon</span></a></li><li><a href="http://www.riotstories.co.uk/wordpress/custom-page-title/" rel="bookmark" class="crp_link"><span class="crp_title"> Custom Page Title</span></a></li><li><a href="http://www.riotstories.co.uk/wordpress/replace-small-plugins-with-code/" rel="bookmark" class="crp_link"><span class="crp_title"> Replace unnecessary plugins with code</span></a></li><li><a href="http://www.riotstories.co.uk/web-development/using-wamp-server/" rel="bookmark" class="crp_link"><span class="crp_title"> Using WAMP Server on Windows</span></a></li><li><a href="http://www.riotstories.co.uk/css/css-optimiser/" rel="bookmark" class="crp_link"><span class="crp_title"> CSS Optimiser</span></a></li></ul></div></div><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/riotstories?a=f8mAQ0qtFdo:EAV5P5CEFGc:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/riotstories?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/riotstories?a=f8mAQ0qtFdo:EAV5P5CEFGc:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/riotstories?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/riotstories?a=f8mAQ0qtFdo:EAV5P5CEFGc:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/riotstories?i=f8mAQ0qtFdo:EAV5P5CEFGc:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/riotstories?a=f8mAQ0qtFdo:EAV5P5CEFGc:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/riotstories?i=f8mAQ0qtFdo:EAV5P5CEFGc:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/riotstories?a=f8mAQ0qtFdo:EAV5P5CEFGc:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/riotstories?i=f8mAQ0qtFdo:EAV5P5CEFGc:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/riotstories/~4/f8mAQ0qtFdo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.riotstories.co.uk/wordpress/404-errors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.riotstories.co.uk/wordpress/404-errors/</feedburner:origLink></item>
		<item>
		<title>ERROR: PHP Not Running</title>
		<link>http://feedproxy.google.com/~r/riotstories/~3/VsKEm8sweYE/</link>
		<comments>http://www.riotstories.co.uk/web-development/error-php-not-running/#comments</comments>
		<pubDate>Fri, 23 Dec 2011 15:47:33 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Local Dev Environment]]></category>
		<category><![CDATA[PHP Not Running]]></category>
		<category><![CDATA[WAMP]]></category>

		<guid isPermaLink="false">http://www.riotstories.co.uk/?p=943</guid>
		<description><![CDATA[What I did to resolve the PHP NOT RUNNING error when re-installing WAMP.  <a href="http://www.riotstories.co.uk/web-development/error-php-not-running/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I decided to tidy things up a little bit and update my local dev environment by upgrading my WAMP installation to the current version (upgrading MySQL,Apache and PHP along the way).</p>
<p>Ever wish you didn&#8217;t bother ?</p>
<p>What a performance. The WAMP stuff looked OK until I actually tried using it! Initially I ended up with a #1045 error on the root user when trying to use phpMyAdmin. Trying to sort that was a joke and a compelte waste of time. Thankfully it was my dev environment so I could easily trash the database and completely uninstal WAMP from the PC (registry, files, database the lot) followed by a quick re-instal of everything including creating a new dev database.</p>
<p>phpMyAdmin worked fine after that carry on &#8211; i.e. back to where I was an hour earlier!!</p>
<p>Now I had to re-install WordPress for my local development purposes and immediately encountered the &#8220;ERROR: PHP IS NOT RUNNING&#8221;. What!!!???? Yes it is! No matter what path direction I have I just couldn&#8217;t get WP to instal. I then had the idea of creating a virtual host for the site in the Apache httpd.conf file. This worked a treat and I installed and configured WordPress locally with a nice new version, copied allmy plugins, configured things the way I&#8217;ve got them on live and it&#8217;s looking good.</p>
<p>Only remaining problem I have is none of the pages in the menu or imported posts work on the local instal &#8211; I probably didn&#8217;t do something correctly related to &#8220;moving wordpress&#8221;. Permalinks are the same structure in my local dev environment as on the live box. I&#8217;ll worry about that later.</p>
<p>All in all this has been a major PITA and a lot of wasted time and effort.</p>
<div id="crp_related"><h3>Possibly Related Posts:</h3><div id=relposts><ul><li><a href="http://www.riotstories.co.uk/web-development/using-wamp-server/" rel="bookmark" class="crp_link"><span class="crp_title"> Using WAMP Server on Windows</span></a></li><li><a href="http://www.riotstories.co.uk/web-development/edit-hosts-file-in-vista/" rel="bookmark" class="crp_link"><span class="crp_title"> Edit the .hosts file in Vista</span></a></li><li><a href="http://www.riotstories.co.uk/wordpress/change-default-footer-text-in-twenty-eleven-theme/" rel="bookmark" class="crp_link"><span class="crp_title"> Change Default Footer Text in Twenty Eleven Theme</span></a></li><li><a href="http://www.riotstories.co.uk/wordpress/add-author-biog-after-your-post/" rel="bookmark" class="crp_link"><span class="crp_title"> Add Author Biog After Your Post</span></a></li><li><a href="http://www.riotstories.co.uk/graphics/data-driven-graphics-in-fireworks-cs4/" rel="bookmark" class="crp_link"><span class="crp_title"> Data Driven Graphics in Fireworks CS4</span></a></li></ul></div></div><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/riotstories?a=VsKEm8sweYE:rc9thYX7L8A:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/riotstories?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/riotstories?a=VsKEm8sweYE:rc9thYX7L8A:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/riotstories?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/riotstories?a=VsKEm8sweYE:rc9thYX7L8A:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/riotstories?i=VsKEm8sweYE:rc9thYX7L8A:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/riotstories?a=VsKEm8sweYE:rc9thYX7L8A:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/riotstories?i=VsKEm8sweYE:rc9thYX7L8A:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/riotstories?a=VsKEm8sweYE:rc9thYX7L8A:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/riotstories?i=VsKEm8sweYE:rc9thYX7L8A:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/riotstories/~4/VsKEm8sweYE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.riotstories.co.uk/web-development/error-php-not-running/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.riotstories.co.uk/web-development/error-php-not-running/</feedburner:origLink></item>
		<item>
		<title>Favourite Movies</title>
		<link>http://feedproxy.google.com/~r/riotstories/~3/6p17OEvO8qY/</link>
		<comments>http://www.riotstories.co.uk/web-development/favourite-movies/#comments</comments>
		<pubDate>Wed, 21 Dec 2011 18:41:47 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Movies]]></category>

		<guid isPermaLink="false">http://www.riotstories.co.uk/?p=925</guid>
		<description><![CDATA[A list of my favourite movies - in no particular order (except the first one) <a href="http://www.riotstories.co.uk/web-development/favourite-movies/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Just thought I&#8217;d jot these down &#8211; for no particular reason <img src='http://www.riotstories.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<ol>
<li>Lost in Translation</li>
<li>Bladerunner</li>
<li>As Good As It Gets</li>
<li>Cast Away</li>
<li>Groundhog Day</li>
<li>Gorky Park</li>
</ol>
<div id="crp_related"><h3>Possibly Related Posts:</h3><div id=relposts><ul><li><a href="http://www.riotstories.co.uk/science/seashells/" rel="bookmark" class="crp_link"><span class="crp_title"> Modelling Seashells</span></a></li><li><a href="http://www.riotstories.co.uk/wordpress/css-hierarchy-in-twenty-eleven-theme/" rel="bookmark" class="crp_link"><span class="crp_title"> Note on CSS Hierarchy in Twenty Eleven Theme</span></a></li><li><a href="http://www.riotstories.co.uk/science/frets/" rel="bookmark" class="crp_link"><span class="crp_title"> Guitar Frets</span></a></li><li><a href="http://www.riotstories.co.uk/web-development/error-php-not-running/" rel="bookmark" class="crp_link"><span class="crp_title"> ERROR: PHP Not Running</span></a></li><li><a href="http://www.riotstories.co.uk/web-development/using-wamp-server/" rel="bookmark" class="crp_link"><span class="crp_title"> Using WAMP Server on Windows</span></a></li></ul></div></div><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/riotstories?a=6p17OEvO8qY:WBcHPJ5JF5E:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/riotstories?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/riotstories?a=6p17OEvO8qY:WBcHPJ5JF5E:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/riotstories?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/riotstories?a=6p17OEvO8qY:WBcHPJ5JF5E:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/riotstories?i=6p17OEvO8qY:WBcHPJ5JF5E:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/riotstories?a=6p17OEvO8qY:WBcHPJ5JF5E:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/riotstories?i=6p17OEvO8qY:WBcHPJ5JF5E:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/riotstories?a=6p17OEvO8qY:WBcHPJ5JF5E:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/riotstories?i=6p17OEvO8qY:WBcHPJ5JF5E:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/riotstories/~4/6p17OEvO8qY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.riotstories.co.uk/web-development/favourite-movies/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.riotstories.co.uk/web-development/favourite-movies/</feedburner:origLink></item>
		<item>
		<title>Add Author Biog After Your Post</title>
		<link>http://feedproxy.google.com/~r/riotstories/~3/ckXzfPHgXJs/</link>
		<comments>http://www.riotstories.co.uk/wordpress/add-author-biog-after-your-post/#comments</comments>
		<pubDate>Wed, 21 Dec 2011 16:22:43 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Author Biog]]></category>

		<guid isPermaLink="false">http://www.riotstories.co.uk/?p=915</guid>
		<description><![CDATA[Add an author biog box after your post, positioned and styled to suit your own needs. <a href="http://www.riotstories.co.uk/wordpress/add-author-biog-after-your-post/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>To add an author biog box after your post you will need to add some new structure into the single.php file and some CSS into your style.css file. Throughout what&#8217;s written here I&#8217;ll assume you&#8217;re using a child theme and using the Twenty Eleven theme for your WordPress site. If you&#8217;re using a different WordPress theme the main things will be the same but you will probably have to tweak the CSS a little &#8211; particularly around any element that has &#8220;float&#8221; or &#8220;clear&#8221; applied and you might also have to use or exclude &#8220;!important&#8221; declarations on elements. The best approach is just use this as is, see how it fits with your theme then start making changes 1 at a time until you get what you&#8217;re after.</p>
<p>Here goes:</p>
<h2>Adjust your &#8220;single.php&#8221; file</h2>
<p>1. Download your single.php file from the default twentyeleven theme folder on your server to make edits locally</br><br />
2. If you&#8217;re running a web server on your local PC with a WordPress instal you will be able to test your changes locally and just upload to your live server at the end when you&#8217;re finished (e.g. WAMP)</br><br />
3. Open your downloaded single.php file and add the following code snippet:</br></p>
<pre class="brush: php; title: ; notranslate">
&lt;?php get_template_part( 'content', 'single' ); ?&gt; // *** Original code in the template as a position marker ***

&lt;!-- ****************************** --&gt;
     &lt;div id=&quot;authorbox&quot;&gt; &lt;!--author box added by me--&gt;
          &lt;div class=&quot;authortext&quot;&gt;
               &lt;?php if (function_exists('get_avatar')) { echo get_avatar( get_the_author_email(), '80' ); }?&gt;
               &lt;h4&gt;About &lt;?php the_author_posts_link(); ?&gt;&lt;/h4&gt;
               &lt;p&gt;&lt;?php the_author_description(); ?&gt;&lt;/p&gt;
          &lt;/div&gt;
      &lt;/div&gt;
&lt;!-- ****************************** --&gt;	                    

&lt;?php comments_template( '', true ); ?&gt;           // *** Original code in the template as a position marker ***
</pre>
<p></br><br />
4. Test this code insertion to make sure it&#8217;s appearing in a location on your page that you&#8217;re happy with. don&#8217;t worry about how it looks, you&#8217;ll be styling the content next. the mission for now is to make sure it appears in a place you&#8217;re happy with. When I did this I was using the default Twenty Eleven theme so the location above is relevant for that template. I placed my code after the &#8220;get_template_part&#8221; and before the &#8220;comments_template&#8221; tag. You can change the location to suit your own needs but most templates are similar at this level.</br></p>
<h2>Style your new author biog box</h2>
<p>5. Now that you have the author biog box where you want it it&#8217;s time to add some style to it. You can make this as simple or elaborate as you want to.</br><br />
6. Add the following CSS rules to your theme stylesheet (if you&#8217;re using a child theme this will be the stylesheet in your child theme folder):</br></p>
<pre class="brush: css; title: ; notranslate">
/*Style author box*/
#authorbox {background:#fcf8d7; border:1px solid #e2dede; max-width:620px; margin:0 auto; margin-bottom:20px; overflow:hidden; padding:10px;}
#authorbox h4 {font-size:16px; color:#FFF; margin:0; padding:0; clear:inherit !important;}
.authortext {padding-left:10px;}
#authorbox img {margin-right:10px; padding:0; float:left; border:5px solid #e2dede;}
#authorbox p {color: #FFF; margin:0; padding:0px; font-size:12px;}
#authorbox h4 &gt; a {text-decoration:none; color: #FFF;}
#authorbox a {font-weight:bold;}
#authorbox {-moz-border-radius: 9px; border-radius: 9px;}
#authorbox {background: #03f;	background: -moz-linear-gradient( #03F, #036);	background: -o-linear-gradient(#0f0f0f, #2B2B2B); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#0f0f0f), to(#2B2B2B)); /* Older webkit syntax */ background: -webkit-linear-gradient(#0f0f0f, #2B2B2B);}
div.authortext p a {color: #FF3;}
</pre>
<p></br><br />
7. I mentioned in the intro that some of the CSS styling might have to change depending on the theme you&#8217;re using. On line 3 of the CSS snippet you will see a &#8220;clear&#8221; instruction. that&#8217;s one that is likely to need modification in your theme. I had to use it because of previous styling rules applied to the h4 tag in the Twenty Eleven theme (so I had to adjust those rules for this specific addition while leaving them in tact for the rest of the site). There might be similar little quirks in the theme you&#8217;re using. Just play around with the CSS to get what you want. I&#8217;ve used &#8220;max-width&#8221; to get a nice width on the biog box when the browser window is full size, when the browser window is reduced the biog box shrinks dynamically. This setting looks OK on iphones, ipads, tablets etc.</br><br />
8. Change the colours, border radius, link colours etc to suite your needs. Strip the CSS right back to have a basic minimalist author box or make it quite elaborate with background images etc.</br><br />
9. That&#8217;s it. You should now have an author biog box appearing after each post on your site in a location of your choice looking the way you want it to look.</br><br />
<strong>Notes:</strong></p>
<ul>
<li>The code used here assumes the post author has a gravitar set up and that they have completed the user biog section in their user setup with something sensible. If they haven&#8217;t this will be a bit of a waste of time</li>
<li>You could replace the php &#8220;get_avatar&#8221; call with a simple image insert if you only have 1 author for your site and you don&#8217;t want to set up a gravatar</li>
<li>The biog box will only appear at the end of the full post &#8211; not in excerpts or in the post preview (on the front page if you&#8217;re using the Twenty eleven theme). that&#8217;s because you added the code to the single.php template file. You could experiment with other files/locations if you wanted the information to display on other pages etc</li>
<li>You can see the results of this in action if you open any of the posts on this site.</li>
<li>You might find this a bit of overkill and repetition if you are the only poster on your site. I&#8217;d probably agree with that. I use this site to experiment with WordPress and learn how it works so I&#8217;m less concerned with that sort of consideration and more interested in how to achieve a particular result. If you&#8217;re running some sort of commercial site or more professional blog then you might be right in thinking twice about implementing this sort of thing.</li>
</ul>
<p></br><br />
<strong>NOTE:</strong> In the Twenty eleven theme there&#8217;s already an author block included when a post is made in a multi-user site and the author has entered their biog data. You will find the code for this in the Twenty eleven theme file &#8220;content.single.php&#8221;. the div involved is &#8220;author-info&#8221; and there are vaious classesand default styling rules in the default style.css file. Instead of adding new HTML etc to your single.php file as I&#8217;ve done in this post you could just re-style the default div. (I found this out after having done the work because this feature didn&#8217;t appear correctly &#8211; mainly I suspect because only a single publishing author had been sued in my blog until I made a mistake and published using a different user).</p>
<div id="crp_related"><h3>Possibly Related Posts:</h3><div id=relposts><ul><li><a href="http://www.riotstories.co.uk/wordpress/add-rss-subscription-icons-to-the-twenty-eleven-theme/" rel="bookmark" class="crp_link"><span class="crp_title"> Add RSS Subscription Icons to the Twenty Eleven Theme</span></a></li><li><a href="http://www.riotstories.co.uk/wordpress/change-default-footer-text-in-twenty-eleven-theme/" rel="bookmark" class="crp_link"><span class="crp_title"> Change Default Footer Text in Twenty Eleven Theme</span></a></li><li><a href="http://www.riotstories.co.uk/wordpress/css-hierarchy-in-twenty-eleven-theme/" rel="bookmark" class="crp_link"><span class="crp_title"> Note on CSS Hierarchy in Twenty Eleven Theme</span></a></li><li><a href="http://www.riotstories.co.uk/wordpress/twenty-eleven-headings-using-font-face/" rel="bookmark" class="crp_link"><span class="crp_title"> Change Twenty Eleven Header Styles Using @font-face</span></a></li><li><a href="http://www.riotstories.co.uk/wordpress/custom-page-title/" rel="bookmark" class="crp_link"><span class="crp_title"> Custom Page Title</span></a></li></ul></div></div><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/riotstories?a=ckXzfPHgXJs:s960gWlUDJk:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/riotstories?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/riotstories?a=ckXzfPHgXJs:s960gWlUDJk:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/riotstories?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/riotstories?a=ckXzfPHgXJs:s960gWlUDJk:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/riotstories?i=ckXzfPHgXJs:s960gWlUDJk:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/riotstories?a=ckXzfPHgXJs:s960gWlUDJk:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/riotstories?i=ckXzfPHgXJs:s960gWlUDJk:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/riotstories?a=ckXzfPHgXJs:s960gWlUDJk:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/riotstories?i=ckXzfPHgXJs:s960gWlUDJk:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/riotstories/~4/ckXzfPHgXJs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.riotstories.co.uk/wordpress/add-author-biog-after-your-post/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.riotstories.co.uk/wordpress/add-author-biog-after-your-post/</feedburner:origLink></item>
	</channel>
</rss>

