<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>BetterExplained &#187; Vector Calculus</title>
	<atom:link href="http://betterexplained.com/articles/category/math/vector-calculus/feed/" rel="self" type="application/rss+xml" />
	<link>http://betterexplained.com</link>
	<description>Learning shouldn&#039;t hurt. Let&#039;s share the insights that made difficult ideas click.</description>
	<lastBuildDate>Fri, 23 Jul 2010 17:45:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Vector Calculus: Understanding Circulation and Curl</title>
		<link>http://betterexplained.com/articles/vector-calculus-understanding-circulation-and-curl/</link>
		<comments>http://betterexplained.com/articles/vector-calculus-understanding-circulation-and-curl/#comments</comments>
		<pubDate>Mon, 19 Feb 2007 23:02:22 +0000</pubDate>
		<dc:creator>Kalid</dc:creator>
				<category><![CDATA[Vector Calculus]]></category>

		<guid isPermaLink="false">http://betterexplained.com/articles/vector-calculus-understanding-circulation-and-curl/</guid>
		<description><![CDATA[Circulation is the amount of force that pushes along a closed boundary or path. It&#8217;s the total  &#8220;push&#8221; you get when going along a path, such as a circle.

A vector field is usually the source of the circulation. If you had a paper boat in a whirlpool, the circulation would be the amount of [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Circulation</strong> is the amount of force that pushes along a closed boundary or path. It&#8217;s the total  &#8220;push&#8221; you get when going along a path, such as a circle.</p>

<p>A vector field is usually the source of the circulation. If you had a paper boat in a whirlpool, the circulation would be the amount of force that pushed it along as it went in a circle. The more circulation, the more pushing force you have.</p>

<p><strong>Curl</strong> is simply the circulation per unit area, circulation density, or rate of rotation (amount of twisting at a single point). Imagine shrinking your whirlpool down smaller and smaller while keeping the force the same: you&#8217;ll have a lot of power in a small area, so will have a large curl. If you widen the whirlpool while keeping the force the same as before, then you&#8217;ll have a smaller curl. And of course, zero circulation means zero curl.</p>

<h2>Intuition</h2>

<p>Circulation is the amount of &#8220;pushing&#8221; force along a path. Curl is the amount of pushing, twisting, or turning force when you shrink the path down to a single point. Let&#8217;s use water as an example.</p>

<p>Suppose we have a flow of water and we want to determine if it has curl or not: is there any twisting or pushing force? To test this, we put a paddle wheel into the water and notice if it turns (the paddle is <em>vertical</em>, sticking out of the water like a revolving door &#8212; not like a paddlewheel boat). If the paddle does turn, it means this field has curl at that point. If it doesn&#8217;t turn, then there&#8217;s no curl.</p>

<p>What does it really mean if the paddle turns? Well, it means the water is pushing harder on one side than the other, making it twist. The larger the difference, the more forceful the twist and the bigger the curl. Also, a turning paddle wheel indicates that the field is &#8220;uneven&#8221; and not symmetric; if the field were even, then it would push on all sides equally and the paddle wouldn&#8217;t turn at all.</p>

<p>The fact that there is a &#8220;twist&#8221; means the field is <strong>not conservative</strong> (this has nothing to do with its political views).</p>

<p>A conservative field is &#8220;fair&#8221; in the sense that work needed to move from point A to point B, along any path, is the same. For example, consider a river: it&#8217;s field is conservative. Sure, you can get a free ride downstream, but then you have to do work to get back to your starting point. Or, you can do work to move upstream, and get a free ride back. Either way, the amount of work you &#8220;put in&#8221; is the same as what you get back.</p>

<p>However, in a field with curl (like a whirlpool), you can get a free ride by moving in the direction of the twist. In a whirlpool, you can get a free trip by moving with the current in a circle. If you fight the current and go the wrong way, you have to use energy with no free ride at all.</p>

<p>Conservative fields have zero curl: there are no free twists to push you along. Alternatively, if a field has curl, it is not conservative.</p>

<p>Gravity is another example of a conservative field. Technically, if you lift a rock and then let it fall, the energy you get from falling is the same as what you put in to lift the rock. Theoretically speaking, no energy was gained or lost in this transaction.</p>

<h2>Additional Details</h2>

<p>To be technical, curl is a <strong>vector</strong>, which means it has a both a magnitude and a direction.  The magnitude is simply the amount of twisting force at a point. </p>

<p>The direction is a little more tricky: it&#8217;s the orientation of the axis of your paddlewheel in order to get maximum rotation. In other words, it is the direction which will give you the most &#8220;free work&#8221; from the field. Imagine putting your paddlewheel sideways in the whirlpool &#8211; it wouldn&#8217;t turn at all. If you put it in the proper direction, it begins turning.</p>

<p>But wait a minute &#8212; aren&#8217;t there two directions to get a twisting motion? Couldn&#8217;t you just turn the paddlewheel &#8220;upside down&#8221; and get the maximum curl as well? </p>

<p>Yep, you&#8217;re right. By convention alone, if the paddle wheel is rotating counterclockwise, its curl vector points out of the page. This is a type of right-hand rule: make a fist with your right hand and stick out your thumb. If the circulation/pushing force follows the twisting of your fingers (counterclockwise), then the curl vector will be in the direction of your thumb.</p>

<h2>Mathematics</h2>

<p>Circulation is the integral of a vector field along a path &#8211; you are adding how much the field &#8220;pushes&#8221; you along a path. </p>

<p>How do we find this? Well, we should expect some type of dot product, because we want to know the amount that one vector (the force) is pushing in the direction of another (the path). So, the two vectors we need are (1) the path vector and (2) the field vector at every point along the path.</p>

<p>If we have a function that defines the position at any time, F(t), we can take the time derivative to get the velocity at that position.</p>

<p>The velocity vector is always in the direction of movement &#8212; if you are moving from A to B, the velocity vector will be an arrow from A to B, i.e. your change in position or your direction of movement. So, we can use the velocity to get our direction.</p>

<p>It&#8217;s important to understand why we aren&#8217;t using the position vector itself &#8212; it tells us where we are, but not where we&#8217;re going. We need to know our direction to see how much &#8220;push&#8221; we are getting: Knowing your position in a river isn&#8217;t important &#8212; are you going upstream or downstream, and at what angle?</p>

<p>The force vector (2) is defined by the field we are in. No derivatives or other changes are necessary &#8212; every point in the field has some force acting on it.</p>

<p>So, our formula for circulation is:</p>

<p>Force at position r = <img src='http://betterexplained.com/latexrender/pictures/a108b2ca681bfc01beafb0b0623e839d.gif' title='\displaystyle{F(r)}' alt='\displaystyle{F(r)}' align=absmiddle /><br />
Direction at position r = <img src='http://betterexplained.com/latexrender/pictures/65b691d304075004e24c84af1ae34c3d.gif' title='\displaystyle{dr}' alt='\displaystyle{dr}' align=absmiddle /><br />
Total pushing force = <img src='http://betterexplained.com/latexrender/pictures/a17a480b99a06d8e7927246e4937dc4f.gif' title='\displaystyle{Circulation = \int F(r) \cdot dr }' alt='\displaystyle{Circulation = \int F(r) \cdot dr }' align=absmiddle /></p>

<p>Remember, velocity is simply the derivative of position <strong>r</strong>, so <strong>dr</strong> is a vector giving us our direction. We integrate along the entire path and use the dot product to see how much pushing force is applied. We then sum up these &#8220;pushes&#8221; to get the total circulation.</p>

<p>Since curl is the circulation per unit area, we can take the circulation for a small area (letting the area shrink to 0). However, since curl is a vector, we need to give it a direction &#8212; the direction is normal (perpendicular) to the surface with the vector field. The <strong>magnitude</strong> is the same as before: circulation/area.</p>

<p>Recall that by convention (a bunch of people agreeing), counterclockwise circulation will give a curl pointing out of the page. Using these facts, we can create the formula for curl:</p>

<p>Curl = <img src='http://betterexplained.com/latexrender/pictures/fc859212d29dfd8802c2cdc1211d86e7.gif' title='\displaystyle{\frac{circulation}{area} = \frac{\int F(r) \cdot dr}{\int S}}' alt='\displaystyle{\frac{circulation}{area} = \frac{\int F(r) \cdot dr}{\int S}}' align=absmiddle /></p>

<p>Where S is the surface we are considering; the direction of the curl is the normal to the surface.</p>

<p>You&#8217;ll see fancier equations for curl where the surface shrinks to zero (such as in <a href="http://en.wikipedia.org/wiki/Curl">wikipedia</a>), but recognize the basic intuition &#8212; curl is the circulation per unit area.</p>

<h2>Parting Thoughts</h2>

<p>You&#8217;ll often see curl of a field F written like this:</p>

<p><img src='http://betterexplained.com/latexrender/pictures/c31d88f02a7852f4386fb8ded5147868.gif' title='\displaystyle{Curl(F) = \nabla \times F}' alt='\displaystyle{Curl(F) = \nabla \times F}' align=absmiddle /></p>

<p>which is a cross-product of the <a href="http://betterexplained.com/articles/vector-calculus-understanding-the-gradient/">gradient</a> and the field F. This has to do with how curl is actually computed, which will be material for another article (and probably in your textbook already &#8212; see <a href="http://en.wikipedia.org/wiki/Curl">wikipedia</a> for details).</p>

<p>If I have been successful, you should understand intuitively what circulation and curl mean, and how we got the formulae above. They spring up naturally from our definition of circulation as &#8220;pushing force along a path&#8221; and curl as &#8220;pushing force/area&#8221;. </p>

<p>Math should be a tool for clearly stating what we already know. Understand the intuition and then tackle the complicated formulas. Happy math.</p>

<p><span class="caps">PS.</span> Have some fun and check out this video of a famous whirlpool. Imagine the circulation on this (go on, imagine):</p>

<p><object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/dHol4ICeDoo"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/dHol4ICeDoo" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object></p>]]></content:encoded>
			<wfw:commentRss>http://betterexplained.com/articles/vector-calculus-understanding-circulation-and-curl/feed/</wfw:commentRss>
		<slash:comments>28</slash:comments>
		</item>
		<item>
		<title>Vector Calculus: Understanding the Gradient</title>
		<link>http://betterexplained.com/articles/vector-calculus-understanding-the-gradient/</link>
		<comments>http://betterexplained.com/articles/vector-calculus-understanding-the-gradient/#comments</comments>
		<pubDate>Sat, 17 Feb 2007 23:24:45 +0000</pubDate>
		<dc:creator>Kalid</dc:creator>
				<category><![CDATA[Vector Calculus]]></category>

		<guid isPermaLink="false">http://betterexplained.com/articles/vector-calculus-understanding-the-gradient/</guid>
		<description><![CDATA[The gradient is a fancy word for derivative, or the rate of change of a function. It&#8217;s a vector (a direction to move) that



Points in the direction of greatest increase of a function
Is zero at a local maximum or local minimum (because there is no single direction of increase)




The term gradient (grad) typically refers to [...]]]></description>
			<content:encoded><![CDATA[<p>The <strong>gradient</strong> is a fancy word for derivative, or the rate of change of a function. It&#8217;s a vector (a direction to move) that</p>


<ul>
<li>Points in the direction of greatest increase of a function</li>
<li>Is zero at a local maximum or local minimum (because there is no single direction of increase)</li>
</ul>



<p>The term gradient (grad) typically refers to the derivative of <strong>vector functions</strong>, or functions of more than one variable. Yes, you can say a line has a gradient (its slope), but using the term gradient for single-variable functions is unnecessarily confusing. Keep it simple.</p>

<p>&#8220;Gradient&#8221; can refer to gradual changes of color, but we&#8217;ll stick to the math definition if that&#8217;s ok with you. You&#8217;ll see the meanings are related.</p>

<h2>Properties of the Gradient</h2>

<p>Now that we know the gradient is the derivative of a multi-variable function, let&#8217;s derive some properties.</p>

<p>The regular, plain-old derivative gives us the rate of change of a single variable, usually x. For example, dF/dx tells us how much the function F changes for a change in x. But if a function takes multiple variables, such as x and y, it will have multiple derivatives: the value of the function will change when we &#8220;wiggle&#8221; x (dF/dx) and when we wiggle y (dF/dy).</p>

<p>We can represent these multiple rates of change in a vector, with one component for each derivative. Thus, a function that takes 3 variables will have a gradient with 3 components:</p>

<p><img src='http://betterexplained.com/latexrender/pictures/94d6dfca196277bf7d0b144d5bfe139b.gif' title='\displaystyle{F(x)}' alt='\displaystyle{F(x)}' align=absmiddle /> has one variable and a single derivative: <img src='http://betterexplained.com/latexrender/pictures/716645b02d56bd11d78340bcf39da9f7.gif' title='\displaystyle{\frac{dF}{dx}}' alt='\displaystyle{\frac{dF}{dx}}' align=absmiddle /></p>

<p><img src='http://betterexplained.com/latexrender/pictures/d161070d2af20651ee0d8034849f4dcd.gif' title='\displaystyle{F(x,y,z)}' alt='\displaystyle{F(x,y,z)}' align=absmiddle /> has three variables and three derivatives: <img src='http://betterexplained.com/latexrender/pictures/13c8856e02bc4cf4cea67c6916bf34f9.gif' title='\displaystyle{(\frac{dF}{dx},\frac{dF}{dy},\frac{dF}{dz})}' alt='\displaystyle{(\frac{dF}{dx},\frac{dF}{dy},\frac{dF}{dz})}' align=absmiddle /></p>

<p>The gradient of a multi-variable function has a component for each direction.</p>

<p>And just like the regular derivative, the gradient points in the direction of greatest increase (trust me on this, I&#8217;ll create a derivation a bit later <img src='http://betterexplained.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ). However, now that we have multiple directions to consider (x, y and z), the direction of greatest increase is no longer simply &#8220;forward&#8221; or &#8220;backward&#8221; along the x-axis, like it is with functions of a single variable. </p>

<p>If we have two variables, then our 2-component gradient can specify any direction on a plane. Likewise, with 3 variables, the gradient can specify and direction in 3D space to move to increase our function.</p>

<h2>A Twisted Example</h2>

<p>I&#8217;m a big fan of examples to help solidify an explanation. Suppose we have a magical oven, with coordinates written on it and a special display screen:</p>

<p><img src="/wp-content/uploads/gradient/gradient_microwave_1_1.jpg" alt="gradient_microwave_1_1.jpg" title="gradient_microwave_1_1.jpg" width="500" height="328" border="0" /></p>

<p>We can type any 3 coordinates (like &#8220;3,5,2&#8243;) and the display shows us the <strong>gradient</strong> of the temperature at that point. </p>

<p>The microwave also comes with a convenient clock. Unfortunately, the clock comes at a price &#8212; the temperature inside the microwave varies drastically from location to location. But this was well worth it: we really wanted that clock.</p>

<p>With me so far? We type in any coordinate, and the microwave spits out the gradient at that location.</p>

<p>Be careful not to confuse the coordinates and the gradient. The <strong>coordinates are the current location</strong>, measured on the x-y-z axis. The <strong>gradient is a direction to move</strong> from our current location, such as move up, down, left or right.</p>

<p>Now suppose we are in need of psychiatric help and put the Pillsbury Dough Boy inside the oven because we think he would taste good. He&#8217;s made of cookie dough, right? We place him in a random location inside the oven, and our goal is to cook him as fast as possible. The gradient can help!</p>

<p>The gradient at any location points in the direction of <strong>greatest increase</strong> of a function. In this case, our function measures temperature. So, the gradient tells us which direction to move the doughboy to get him to a location with a higher temperature, to cook him even faster. Remember that the gradient does <strong>not</strong> give us the coordinates of where to go; it gives us the <strong>direction to move</strong> to increase our temperature.</p>

<p>Thus, we would start at a random point like (3,5,2) and check the gradient. In this case, the gradient there is (3,4,5). Now, we wouldn&#8217;t actually move an entire 3 units to the right, 4 units back, and 5 units up. The gradient is just a direction, so we&#8217;d <strong>follow this trajectory for a tiny bit</strong>, and then check the gradient again.</p>

<p>We get to a new point, pretty close to our original, which has its own gradient. This new gradient is the new best direction to follow. We&#8217;d keep repeating this process: move a bit in the gradient direction, check the gradient, and move a bit in the new gradient direction. Every time we nudged along and follow the gradient, we&#8217;d get to a warmer and warmer location.</p>

<p>Eventually, we&#8217;d get to the hottest part of the oven and that&#8217;s where we&#8217;d stay, about to enjoy our fresh cookies.</p>

<h2>Don&#8217;t eat that cookie!</h2>

<p>But before you eat those cookies, let&#8217;s make some observations about the gradient. That&#8217;s more fun, right?</p>

<p>First, when we reach the hottest point in the oven, what is the gradient there?</p>

<p>Zero. Nada. Zilch. Why? Well, once you are at the maximum location, there is <strong>no direction of greatest increase</strong>. Any direction you follow will lead to a <strong>decrease</strong> in temperature. It&#8217;s like being at the top of a mountain: any direction you move is downhill. A zero gradient tells you to stay put &#8211; you are at the max of the function, and can&#8217;t do better.</p>

<p>But what if there are two nearby maximums, like two mountains next to each other? You could be at the top of one mountain, but have a bigger peak next to you. In order to get to the highest point, you have to go downhill first.</p>

<p>Ah, now we are venturing into the not-so-pretty underbelly of the gradient. Finding the maximum in regular (single variable) functions means we find all the places where the derivative is zero: there is no direction of greatest increase. If you recall, the regular derivative will point to <strong>local</strong> minimums and maximums, and the absolute max/min must be tested from these candidate locations.</p>

<p>The same principle applies to the gradient, a generalization of the derivative. You must find multiple locations where the gradient is zero &#8212; you&#8217;ll have to test these points to see which one is the global maximum. Again, the top of each hill has a zero gradient &#8212; you need to compare the height at each to see which one is higher. Now that we have cleared that up, go enjoy your cookie. </p>

<h2>Mathematics</h2>

<p>We know the definition of the gradient: a derivative for each variable of a function. The gradient symbol is usually an upside-down delta, and called &#8220;del&#8221; (this makes a bit of sense &#8211; delta indicates change in one variable, and the gradient is the change in for all variables). Taking our group of 3 derivatives above</p>

<p><img src='http://betterexplained.com/latexrender/pictures/b74a21aac14e8940dae48cffec6d15d1.gif' title='\displaystyle{grad F(x,y,z) = \nabla F(x,y,z) = (\frac{dF}{dx},\frac{dF}{dy},\frac{dF}{dz})}' alt='\displaystyle{grad F(x,y,z) = \nabla F(x,y,z) = (\frac{dF}{dx},\frac{dF}{dy},\frac{dF}{dz})}' align=absmiddle /></p>

<p>Notice how the x-component of the gradient is the partial derivative with respect to x (similar for y and z). For a one variable function, there is no y-component at all, so the gradient reduces to the derivative.</p>

<p>Also, notice how the gradient can itself be a function!</p>

<p><img src='http://betterexplained.com/latexrender/pictures/02fa0e1c23085f115a6ef75483f32fb0.gif' title='\displaystyle{F(x,y,z) = x + y^2 + z^3 }' alt='\displaystyle{F(x,y,z) = x + y^2 + z^3 }' align=absmiddle /></p>

<p><img src='http://betterexplained.com/latexrender/pictures/ebd3d984ce2301ff90e1acef8710ce35.gif' title='\displaystyle{\nabla F(x,y,z) = (1, 2y, 3z^2)}' alt='\displaystyle{\nabla F(x,y,z) = (1, 2y, 3z^2)}' align=absmiddle /></p>

<p>If we want to find the direction to move to increase our function the fastest, we plug in our current coordinates (such as 3,4,5) into the equation and get:</p>

<p><img src='http://betterexplained.com/latexrender/pictures/0aefe2f69a70ede6565aa035b0f611d7.gif' title='\displaystyle{direction = (1, 2(4), 3(5)^2) = (1, 8, 75)}' alt='\displaystyle{direction = (1, 2(4), 3(5)^2) = (1, 8, 75)}' align=absmiddle /></p>

<p>So, this new vector (1, 8, 75) would be the direction we&#8217;d move in to increase the value of our function. In this case, our x-component doesn&#8217;t add much to the value of the function: the partial derivative is always 1.</p>

<p>Obvious applications of the gradient are finding the max/min of multivariable functions. Another less obvious but related application is finding the maximum of a constrained function: a function whose x and y values have to lie in a certain domain, i.e. find the maximum of all points constrained to lie along a circle. Solving this calls for my boy Lagrange, but all in due time, all in due time: enjoy the gradient for now. </p>

<p>The key insight is to recognize the gradient as the generalization of the derivative. <strong>The gradient points to the maximum of the function; follow the gradient, and you will reach the local maximum.</strong></p>]]></content:encoded>
			<wfw:commentRss>http://betterexplained.com/articles/vector-calculus-understanding-the-gradient/feed/</wfw:commentRss>
		<slash:comments>69</slash:comments>
		</item>
		<item>
		<title>Vector Calculus: Understanding Divergence</title>
		<link>http://betterexplained.com/articles/divergence/</link>
		<comments>http://betterexplained.com/articles/divergence/#comments</comments>
		<pubDate>Thu, 21 Sep 2006 02:41:50 +0000</pubDate>
		<dc:creator>Kalid</dc:creator>
				<category><![CDATA[Vector Calculus]]></category>

		<guid isPermaLink="false">http://betterexplained.com/articles/vector-calculus-understanding-divergence/</guid>
		<description><![CDATA[	Physical Intuition

	Divergence (div) is &#8220;flux density&#8221;&#8212;the amount of <a href="http://betterexplained.com/articles/flux/" title="Vector Calculus: Understanding Flux">flux</a> entering or leaving a point. Think of it as the rate of flux expansion (positive divergence) or flux contraction (negative divergence). If you measure flux in bananas (and c&#8217;mon, who doesn&#8217;t?), a positive divergence means your location is a source of bananas. You&#8217;ve hit the Donkey [...]]]></description>
			<content:encoded><![CDATA[	<p><strong>Physical Intuition</strong></p>

	<p>Divergence (div) is &#8220;flux density&#8221;&#8212;the amount of <a href="http://betterexplained.com/articles/flux/" title="Vector Calculus: Understanding Flux">flux</a> entering or leaving a point. Think of it as the rate of flux expansion (positive divergence) or flux contraction (negative divergence). If you measure flux in bananas (and c&#8217;mon, who doesn&#8217;t?), a positive divergence means your location is a <strong>source</strong> of bananas. You&#8217;ve hit the Donkey Kong jackpot.</p>

	<p>Remember that by convention, flux is positive when it leaves a closed surface. Imagine you were your normal self, and could talk to points inside a vector field, asking what they saw:</p>

	<ul>
		<li>If the point saw flux <strong>entering</strong>, he&#8217;d scream that everything was closing in on him. This is a <strong>negative</strong> divergence, and the point is capturing flux, like water going down a sink.</li>
		<li>If the point saw flux <strong>leaving</strong>, he&#8217;d sniff his armpits and say all flux was existing. This is a <strong>positive</strong> divergence, and the point is a source of flux, like a hose.</li>
	</ul>

	<p>So, divergence is just the net flux per unit volume, or &#8220;flux density&#8221;, just like regular density is mass per unit volume (of course, we don&#8217;t know about &#8220;negative&#8221; density).</p>

	<p>The bigger the flux density (positive or negative), the stronger the flux source or sink. A div of zero means there&#8217;s no net flux change in side the region. In plain english:</p>

	<blockquote>Divergence = Flux / Volume</blockquote>

	<h2>Math Intuition</h2>

	<p>Now that we have an intuitive explanation, how do we turn that sucker into an equation? The usual calculus way: take a tiny unit of volume and measure the flux going through it.  We need to add up the total flux passing through the x, y and z dimensions.</p>

	<p>Imagine a cube at the point we want to measure, with sides of length dx, dy and dz. To get the net flux, we see how much the X component of flux changes in the X direction, add that to the Y component&#8217;s change in the Y direction, and the Z component&#8217;s change in the Z direction. If there are no changes, then we&#8217;ll get 0 + 0 + 0, which means no net flux.</p>

	<p>If there <em>is</em> some change in the field, we get something like 1 -2 +5 (flux increases in X and Z direction, decreases in Y) which gives us the divergence at that point.</p>

	<p>In pseudo-math:</p>

	<blockquote>Total flux change = (field change in X direction) + (field change in Y direction) + (field change in Z direction)</blockquote>

	<p>Or in more formal math:</p>

	<p><img src='http://betterexplained.com/latexrender/pictures/b315467c0595336f4a9546a4999e4d1a.gif' title='displaystyle{Divergence = lim_{Vol to0}frac{Flux}{Vol}}' alt='displaystyle{Divergence = lim_{Vol to0}frac{Flux}{Vol}}' align=absmiddle></p>

	<p><img src='http://betterexplained.com/latexrender/pictures/a01029726df35f9c5ef3f1575bebe77f.gif' title='displaystyle{Divergence = frac{partial F_1}{partial x}&#10;+frac{partial F_2}{partial y}&#10;+frac{partial F_3}{partial z}}' alt='displaystyle{Divergence = frac{partial F_1}{partial x}&#10;+frac{partial F_2}{partial y}&#10;+frac{partial F_3}{partial z}}' align=absmiddle></p>

	<p>Assuming F1 is the field in the X direction, F2 in the Y and F3 in the Z.</p>

	<p>A few remarks:</p>

	<ul>
		<li>The symbol for divergence is called &#8220;del&#8221; and is an upside down triangle.</li>
		<li>Divergence is a single number, like density.</li>
		<li>Divergence and flux are closely related &#8211; if a volume encloses a positive divergence (a source of flux), it will have positive flux.</li>
		<li>&#8220;Diverge&#8221; means to move away from, which may help you remember that divergence is the rate of flux expansion (positive div) or contraction (negative div).</li>
	</ul>

	<p>Divergence isn&#8217;t too bad once you get an intuitive understanding of flux. It&#8217;s really useful in understanding in theorems like Gauss&#8217; Law.</p>
 ]]></content:encoded>
			<wfw:commentRss>http://betterexplained.com/articles/divergence/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk (enhanced) (user agent is rejected)
Database Caching 6/16 queries in 0.021 seconds using disk

Served from: betterexplained.com @ 2010-07-29 21:44:32 -->