You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

317 lines
15 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head>
<meta http-equiv="content-type" content="text/html;charset=ISO-8859-1">
<link rel="stylesheet" type="text/css" href="math_refresh-Dateien/stylesheet2.css" media="all">
<link rel="home" href="http://www.myphysicslab.com/index.html" title="MyPhysicsLab Home Page">
<link rel="contents" href="http://www.myphysicslab.com/index.html" title="MyPhysicsLab Home Page">
<link rel="help" href="http://www.myphysicslab.com/FAQ.html" title="Help and FAQ">
<link rel="author" href="mailto:erikn@myphysicslab.com" rev="made">
<link rel="next" href="http://www.myphysicslab.com/links.html" title="Physics and Math Web Links">
<link rel="prev" href="http://www.myphysicslab.com/runge_kutta.html" title="Runge-Kutta Algorithm"><title>MyPhysicsLab &#8211; Math Refresher</title>
<script type="text/javascript" language="JavaScript">
<!--
sfHover = function() {
var sfEls = document.getElementById("navsite").getElementsByTagName("LI");
for (var i=0; i<sfEls.length; i++) {
sfEls[i].onmouseover=function() {
this.className+=" sfhover";
}
sfEls[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
}
}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
else { //IE 5.2 Mac does not support attachEvent
var old = window.onload;
window.onload = function() { if (old) old(); sfHover(); }
}
//-->
</script></head><body>
<div>
<ul id="navsite">
<li><a href="http://www.myphysicslab.com/index.html" title="MyPhysicsLab home page" style="width: 5em;">Home</a>
</li>
<li class="sfhover"><a href="#navsite" style="width: 5em;">Springs</a>
<ul id="springs_menu">
<li><a href="http://www.myphysicslab.com/spring1.html">Single Spring</a></li>
<li><a href="http://www.myphysicslab.com/dbl_spring1.html">Double Spring</a></li>
<li><a href="http://www.myphysicslab.com/spring2d.html">2D Spring</a></li>
<li><a href="http://www.myphysicslab.com/dbl_spring2d.html">Double 2D Spring</a></li>
</ul>
</li>
<li><a href="#navsite" style="width: 7em;">Pendulums</a>
<ul id="pendulums_menu">
<li><a href="http://www.myphysicslab.com/pendulum1.html">Pendulum</a></li>
<li><a href="http://www.myphysicslab.com/pendulum2.html">Chaotic Pendulum</a></li>
<li><a href="http://www.myphysicslab.com/dbl_pendulum.html">Double Pendulum</a></li>
</ul>
</li>
<li><a href="#navsite" style="width: 5em;">Combos</a>
<ul id="combos_menu">
<li><a href="http://www.myphysicslab.com/pendulum_cart.html">Cart with Pendulum</a></li>
<li><a href="http://www.myphysicslab.com/dangle_stick.html">Dangling Stick</a></li>
</ul>
</li>
<li><a href="#navsite" style="width: 6em;">Collisions</a>
<ul id="collisions_menu">
<li><a href="http://www.myphysicslab.com/collideSpring.html">Colliding Blocks</a></li>
<li><a href="http://www.myphysicslab.com/collision.html">Rigid Body Collisions</a></li>
<li><a href="http://www.myphysicslab.com/contact.html">Collisions with Contact</a></li>
<li><a href="http://www.myphysicslab.com/collisionGame.html">Sumo Wrestling Game</a></li>
</ul>
</li>
<li><a href="#navsite" style="width: 9em;">Roller&nbsp;Coasters</a>
<ul id="roller_menu">
<li><a href="http://www.myphysicslab.com/RollerSimple.html">Roller Coaster</a></li>
<li><a href="http://www.myphysicslab.com/RollerSpring.html">Roller Coaster with Spring</a></li>
<li><a href="http://www.myphysicslab.com/RollerDouble.html">Roller Coaster with 2 Balls</a></li>
<li><a href="http://www.myphysicslab.com/RollerFlight.html">Roller Coaster with Flight</a></li>
</ul>
</li>
<li><a href="#navsite" style="width: 7em;">Molecules</a>
<ul id="molecule_menu">
<li><a href="http://www.myphysicslab.com/molecule2.html">Molecule 2</a></li>
<li><a href="http://www.myphysicslab.com/molecule3.html">Molecule 3</a></li>
<li><a href="http://www.myphysicslab.com/molecule4.html">Molecule 4</a></li>
<li><a href="http://www.myphysicslab.com/molecule5.html">Molecule 5</a></li>
<li><a href="http://www.myphysicslab.com/molecule6.html">Molecule 6</a></li>
</ul>
</li>
<li><a href="#navsite" style="width: 8em;">Explanations</a>
<ul id="explain_menu">
<li><a href="http://www.myphysicslab.com/FAQ.html">Help and FAQ</a></li>
<li><a href="http://www.myphysicslab.com/what_diff_eq.html">Differential Equations</a></li>
<li><a href="http://www.myphysicslab.com/numerical_vs_analytic.html">Numerical Solutions</a></li>
<li><a href="http://www.myphysicslab.com/runge_kutta.html">Runge Kutta Method</a></li>
<li><a href="http://www.myphysicslab.com/math_refresh.html">Math Refresher</a></li>
<li><a href="http://www.myphysicslab.com/links.html">Physics Links</a></li>
</ul>
</li>
</ul>
&nbsp;<br>
<!-- need that space and br to get all browsers to give same spacing to next h1 -->
</div>
<div>
<div id="next_arrow">
<a href="http://www.myphysicslab.com/links.html" title="Physics and Math Web Links">Next<img src="math_refresh-Dateien/rarrow.png" style="margin: 0pt; vertical-align: -3px;" alt="Next Page Arrow" border="0" height="15" width="27"></a></div>
<h1>MyPhysicsLab &#8211; Math Refresher</h1>
Here is a quick math refresher on calculus and trig, to help you enjoy the math behind the <a href="http://www.myphysicslab.com/index.html">physics simulations</a> at MyPhysicsLab.
<h2 id="derivatives">Derivatives</h2>
The notation for the first derivative of a function <span class="inline_eqn"><i>x</i>(<i>t</i>)</span>, with respect to the variable <span class="inline_eqn"><i>t</i></span>, can be written as
<span class="display_eqn" style="line-height: normal;">
<i>x'</i><br>
<i>x'</i>(<i>t</i>)<br>
<sup><i>d</i></sup>&#8260;<sub><i>dt</i></sub>&nbsp; <span class="inline_eqn"><i>x</i>(<i>t</i>)</span><br>
</span>
These are all equivalent.&nbsp; The notation for the second derivative is <span class="inline_eqn"><i>x''</i></span> or <span class="inline_eqn"><i>x''</i>(<i>t</i>)</span>.<br>
<br>
Here are some of the basic rules for calculating derivatives.&nbsp; In the following <i>k</i> and <i>n</i> are real non-zero constants. And <span class="inline_eqn"><i>h</i>(<i>t</i>), <i>g</i>(<i>t</i>)</span> are functions of <span class="inline_eqn"><i>t</i></span>.<br>
<br>
First consider powers of <i>t</i>. The general rule is
<span class="display_eqn">
<sup><i>d</i></sup>&#8260;<sub><i>dt</i></sub>&nbsp; <i>t</i> <sup><i>n</i></sup> = <i>n</i> <i>t</i> <sup><i>n</i> &#8722; 1</sup> <span class="text">&nbsp;&nbsp;&nbsp;&nbsp; for any <i>n</i> &#8800; 0</span><br>
</span>
Here are some examples of derivatives of powers, using the above rule:
<span class="display_eqn">
<sup><i>d</i></sup>&#8260;<sub><i>dt</i></sub>&nbsp; <i>t</i> = 1<br>
<sup><i>d</i></sup>&#8260;<sub><i>dt</i></sub>&nbsp; <i>t</i> <sup>2</sup> = 2 <i>t</i><br>
<sup><i>d</i></sup>&#8260;<sub><i>dt</i></sub>&nbsp; (<i>t</i> <sup>3</sup> + <i>t</i> <sup>2</sup> + <i>t</i> + 1) = 3t <sup>2</sup> + 2t + 1<br>
<sup><i>d</i></sup>&#8260;<sub><i>dt</i></sub>&nbsp; <sup>1</sup>&#8260;<sub><i>t</i></sub> = <sup><i>d</i></sup>&#8260;<sub><i>dt</i></sub>&nbsp; <i>t</i> <sup>&#8722;1</sup> = &#8722; <i>t</i> <sup>&#8722;2</sup> = &#8722;<sup>1</sup>&#8260;<sub><i>t</i> <sup>2</sup></sub><br>
</span>
Here are some basic rules about derivatives:
<span class="display_eqn">
<sup><i>d</i></sup>&#8260;<sub><i>dt</i></sub>&nbsp; <i>k</i> = 0 <span class="text">&nbsp;&nbsp;&nbsp;&nbsp; (<i>k</i> = constant)</span><br>
<sup><i>d</i></sup>&#8260;<sub><i>dt</i></sub>&nbsp; <span class="bigg">(</span><i>k</i> <i>h</i>(<i>t</i>)<span class="bigg">)</span> = <i>k</i> &nbsp;<sup><i>d</i></sup>&#8260;<sub><i>dt</i></sub>&nbsp;<i>h</i>(<i>t</i>) <span class="text">&nbsp;&nbsp;&nbsp;&nbsp; (<i>k</i> = constant)</span><br>
<sup><i>d</i></sup>&#8260;<sub><i>dt</i></sub>&nbsp; <span class="bigg">(</span><i>h</i>(<i>t</i>) + <i>g</i>(<i>t</i>)<span class="bigg">)</span> = <sup><i>d</i></sup>&#8260;<sub><i>dt</i></sub>&nbsp;<i>h</i>(<i>t</i>) +
<sup><i>d</i></sup>&#8260;<sub><i>dt</i></sub>&nbsp;<i>g</i>(<i>t</i>)
<br>
<sup><i>d</i></sup>&#8260;<sub><i>dt</i></sub>&nbsp; <span class="bigg">(</span><i>h</i>(<i>t</i>) <20> <i>g</i>(<i>t</i>)<span class="bigg">)</span> = <i>h</i><EFBFBD><i>g'</i> + <i>h'</i><EFBFBD><i>g</i> <span class="text">&nbsp;&nbsp;&nbsp;&nbsp; The product rule</span><br>
</span>
Here are derivatives of some very important special functions
<span class="display_eqn">
<sup><i>d</i></sup>&#8260;<sub><i>dt</i></sub>&nbsp;sin(<i>t</i>) = cos(<i>t</i>)<br>
<sup><i>d</i></sup>&#8260;<sub><i>dt</i></sub>&nbsp;cos(<i>t</i>) = &#8722;sin(<i>t</i>)<br>
<sup><i>d</i></sup>&#8260;<sub><i>dt</i></sub>&nbsp;<i>e</i> <sup><i>t</i></sup> = <i>e</i> <sup><i>t</i></sup><br>
<sup><i>d</i></sup>&#8260;<sub><i>dt</i></sub>&nbsp;ln(<i>t</i>) = <sup>1</sup>&#8260;<sub><i>t</i></sub> <span class="text">&nbsp;&nbsp;&nbsp;&nbsp; Natural logarithm</span><br>
</span>
The all-important <em>chain rule</em> lets us take the derivative of <em>functions of functions</em> (also called <em>function composition</em>):
<span class="display_eqn">
<sup><i>d</i></sup>&#8260;<sub><i>dt</i></sub>&nbsp;<i>h</i>(<i>g</i>(<i>t</i>)) = <i>h'</i>(<i>g</i>(<i>t</i>)) <20> <i>g'</i>(<i>t</i>)
<span class="text">&nbsp;&nbsp;&nbsp;&nbsp; The chain rule</span><br>
</span>
It's important to get good at using the chain rule. Here are some examples of the chain rule in action:
<span class="display_eqn">
<sup><i>d</i></sup>&#8260;<sub><i>dt</i></sub>&nbsp; sin(<i>h</i>(<i>t</i>)) = cos(<i>h</i>(<i>t</i>)) <i>h'</i>(<i>t</i>)<br>
<sup><i>d</i></sup>&#8260;<sub><i>dt</i></sub>&nbsp; sin(<i>t</i> <sup>2</sup>) = 2 <i>t</i> cos(<i>t</i> <sup>2</sup>)<br>
<sup><i>d</i></sup>&#8260;<sub><i>dt</i></sub>&nbsp; <i>e</i> <sup><i>h</i>(<i>t</i>)</sup> = <i>h'</i>(<i>t</i>) <i>e</i> <sup><i>h</i>(<i>t</i>)</sup><br>
<sup><i>d</i></sup>&#8260;<sub><i>dt</i></sub>&nbsp; <i>e</i> <sup><i>k</i> <i>t</i></sup> = <i>k</i> <i>e</i> <sup><i>k</i> <i>t</i></sup> <span class="text">&nbsp;&nbsp;&nbsp;&nbsp; (<i>k</i> = constant)</span><br>
<sup><i>d</i></sup>&#8260;<sub><i>dt</i></sub>&nbsp; <i>e</i> <sup><i>t</i> <sup>2</sup></sup> = 2 <i>t</i> <i>e</i> <sup><i>t</i> <sup>2</sup></sup><br>
<sup><i>d</i></sup>&#8260;<sub><i>dt</i></sub>&nbsp; ln(<i>h</i>(<i>t</i>)) = <i>h'</i>(<i>t</i>) &#8260; <i>h</i>(<i>t</i>)<br>
</span>
<table class="fraction" align="center" cellpadding="0" cellspacing="0">
<tbody><tr>
<td rowspan="2">
<sup><i>d</i></sup>&#8260;<sub><i>dt</i></sub>&nbsp; <span class="bigg">(</span>
</td><td nowrap="nowrap">
1
</td><td rowspan="2">
<span class="bigg">)</span>&nbsp; = &nbsp;
</td><td nowrap="nowrap">
&#8722; <i>h'</i>(<i>t</i>)
</td>
</tr><tr>
<td class="upper_line" nowrap="nowrap">
&nbsp;<i>h</i>(<i>t</i>)
</td><td class="upper_line" nowrap="nowrap">
&nbsp;<i>h</i>(t)<sup>2</sup>
</td>
</tr>
</tbody></table>
The quotient rule gives us the derivative of a <em>ratio of functions</em>:
<table class="fraction" align="center" cellpadding="0" cellspacing="0">
<tbody><tr>
<td rowspan="2">
<sup><i>d</i></sup>&#8260;<sub><i>dt</i></sub>&nbsp; <span class="bigg">(</span>
</td><td nowrap="nowrap">
<i>h</i>(<i>t</i>)
</td><td rowspan="2">
<span class="bigg">)</span>&nbsp; = &nbsp;
</td><td nowrap="nowrap">
<i>g</i> <i>h'</i> &#8722; <i>h</i> <i>g'</i>
</td><td rowspan="2">
<span class="text">&nbsp;&nbsp;&nbsp;&nbsp; The quotient rule</span>
</td>
</tr><tr>
<td class="upper_line" nowrap="nowrap">
<i>g</i>(<i>t</i>)
</td><td class="upper_line" nowrap="nowrap">
<i>g</i> <sup>2</sup>
</td>
</tr>
</tbody></table>
Using the chain rule and the product rule we can derive the quotient rule:
<span class="display_eqn">
<sup><i>d</i></sup>&#8260;<sub><i>dt</i></sub>&nbsp; <sup><i>h</i>(<i>t</i>)</sup>&#8260;<sub><i>g</i>(<i>t</i>)</sub> =
<span class="nobr"><sup><i>d</i></sup>&#8260;<sub><i>dt</i></sub>&nbsp; (<i>h</i> <20> <sup>1</sup>&#8260;<sub><i>g</i></sub>)</span> =
<span class="nobr"><i>h'</i> <20> (<sup>1</sup>&#8260;<sub><i>g</i></sub>)</span> +
<span class="nobr"><i>h</i> <20> (<sup>&#8722;<i>g'</i></sup>&#8260;<sub><i>g</i><sup>2</sup></sub>)</span> =
<span class="nobr">(<i>g</i> <i>h'</i> &#8722; <i>h</i> <i>g'</i>) &#8260; <i>g</i><sup>2</sup></span>
</span>
<h2 id="trig_identities">Trig Identities</h2>
First, a note on some confusing notation: an exponent of <span class="inline_eqn">&#8722;1</span> on a trig function means the <i>inverse</i> of that function (not the reciprocal!). Therefore
<span class="display_eqn">
tan<sup>&#8722;1</sup>(<i>x</i>) = arctan(<i>x</i>)
</span>
while
<span class="display_eqn">
tan<sup>2</sup>(<i>x</i>) = (tan(<i>x</i>))<sup>2</sup>
</span>
The best way to get comfortable with trigonometry is to think in terms
of the unit circle. Most of these identities then become obvious.
<span class="display_eqn">
sin(&#8722;<i>x</i>) = &#8722;sin <i>x</i><br>
cos(&#8722;<i>x</i>) = cos <i>x</i><br>
tan(&#8722;<i>x</i>) = &#8722;tan <i>x</i><br>
sin <i>x</i> = cos(<sup>&#960;</sup>&#8260;<sub>2</sub> &#8722; <i>x</i>)<br>
cos <i>x</i> = sin(<sup>&#960;</sup>&#8260;<sub>2</sub> &#8722; <i>x</i>)<br>
sin(0) = 0<br>
cos(0) = 1<br>
sin(<sup>&#960;</sup>&#8260;<sub>2</sub>) = 1<br>
cos(<sup>&#960;</sup>&#8260;<sub>2</sub>) = 0<br>
sin(&#960;) = 0<br>
cos(&#960;) = &#8722;1<br>
sin(<sup>3&#960;</sup>&#8260;<sub>2</sub>) = &#8722;1<br>
cos(<sup>3&#960;</sup>&#8260;<sub>2</sub>) = 0<br>
sin(<i>x</i> + 2<i>n</i>&#960;) = sin <i>x</i> <span class="text">&nbsp;&nbsp;&nbsp;&nbsp; <i>n</i> an integer</span><br>
cos(<i>x</i> + 2<i>n</i>&#960;) = cos <i>x</i> <span class="text">&nbsp;&nbsp;&nbsp;&nbsp; <i>n</i> an integer</span><br>
</span>
The famous <em>pythagorean theorem</em> gives us the following identity
<span class="display_eqn">
cos<sup>2</sup><i>x</i> + sin<sup>2</sup><i>x</i> = 1<br>
</span>
The <em><a id="sum_of_angles">sum of angles</a></em> formulas are
<span class="display_eqn">
cos(<i>x</i> + <i>y</i>) = cos <i>x</i> cos <i>y</i> &#8722; sin <i>x</i> sin <i>y</i><br>
cos(<i>x</i> &#8722; <i>y</i>) = cos <i>x</i> cos <i>y</i> + sin <i>x</i> sin <i>y</i><br>
sin(<i>x</i> + <i>y</i>) = sin <i>x</i> cos <i>y</i> + cos <i>x</i> sin <i>y</i><br>
sin(<i>x</i> &#8722; <i>y</i>) = sin <i>x</i> cos <i>y</i> &#8722; cos <i>x</i> sin <i>y</i><br>
</span>
<table id="footer"><tbody><tr>
<td style="text-align: left;">
<a href="http://validator.w3.org/check?uri=referer;outline=1;">
<img src="math_refresh-Dateien/ValidHTML401.png" alt="Valid HTML 4.01!" border="0" height="31" width="88"></a>
</td>
<td>
<20> <a href="mailto:erikn@MyPhysicsLab.com" title="send comments to Erik Neumann">Erik Neumann</a>, 2004
</td>
<td>
<a href="http://www.myphysicslab.com/index.html" title="MyPhysicsLab Home Page">Home</a>
</td>
<td>
<a href="#navsite" title="Top of Current Page">Top</a>
</td>
<td style="text-align: right;">
<a href="http://www.myphysicslab.com/links.html" title="Physics and Math Web Links">Next <img src="math_refresh-Dateien/rarrow.png" style="margin: 0pt; vertical-align: -3px;" alt="Next Page" border="0" height="15" width="20"></a>
</td>
</tr></tbody></table>
</div>
</body></html>