<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Why is the gradient related to the normal vector to a surface?</title>
	<atom:link href="http://samjshah.com/2009/01/16/why-is-the-gradient-related-to-the-normal-vector-to-a-surface/feed/" rel="self" type="application/rss+xml" />
	<link>http://samjshah.com/2009/01/16/why-is-the-gradient-related-to-the-normal-vector-to-a-surface/</link>
	<description></description>
	<lastBuildDate>Wed, 15 Feb 2012 22:10:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Robyn Sullivan</title>
		<link>http://samjshah.com/2009/01/16/why-is-the-gradient-related-to-the-normal-vector-to-a-surface/#comment-23433</link>
		<dc:creator><![CDATA[Robyn Sullivan]]></dc:creator>
		<pubDate>Thu, 19 Jan 2012 01:20:46 +0000</pubDate>
		<guid isPermaLink="false">http://samjshah.com/?p=965#comment-23433</guid>
		<description><![CDATA[Hi, 

love your visually intuitive explanation, very helpful. I look on maths as based on the physical reality, and not the other way around. What you have done is uncover this basis to this particular problem, and then the maths follows easily as it is clear what is going on.  

A simple way of rephrasing what you have illuminated above, is to say that the shortest ie the steepest, route between contours or level surfaces, is by definition, in a direction perpendicular to the plane of the contour, since this is how 2D contours are constructed ie in a plane perpendicular to the third dimension axis.  

This perpendicular direction, parallel to the 3rd dimensional axis, when projected onto the 2D contour, will necessarily be perpendicular to the 2D tangent (or gradient of the 2D function to any point on it.

Thus by definition, &#039;grad f&#039; or the gradient function of a 3D shape is perpendicular to the gradient of the 2D shape.  thanks again Robyn]]></description>
		<content:encoded><![CDATA[<p>Hi, </p>
<p>love your visually intuitive explanation, very helpful. I look on maths as based on the physical reality, and not the other way around. What you have done is uncover this basis to this particular problem, and then the maths follows easily as it is clear what is going on.  </p>
<p>A simple way of rephrasing what you have illuminated above, is to say that the shortest ie the steepest, route between contours or level surfaces, is by definition, in a direction perpendicular to the plane of the contour, since this is how 2D contours are constructed ie in a plane perpendicular to the third dimension axis.  </p>
<p>This perpendicular direction, parallel to the 3rd dimensional axis, when projected onto the 2D contour, will necessarily be perpendicular to the 2D tangent (or gradient of the 2D function to any point on it.</p>
<p>Thus by definition, &#8216;grad f&#8217; or the gradient function of a 3D shape is perpendicular to the gradient of the 2D shape.  thanks again Robyn</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Khalid. Naeemuddin</title>
		<link>http://samjshah.com/2009/01/16/why-is-the-gradient-related-to-the-normal-vector-to-a-surface/#comment-22789</link>
		<dc:creator><![CDATA[Khalid. Naeemuddin]]></dc:creator>
		<pubDate>Sun, 08 Jan 2012 16:22:23 +0000</pubDate>
		<guid isPermaLink="false">http://samjshah.com/?p=965#comment-22789</guid>
		<description><![CDATA[Excellent explanations.]]></description>
		<content:encoded><![CDATA[<p>Excellent explanations.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pitman</title>
		<link>http://samjshah.com/2009/01/16/why-is-the-gradient-related-to-the-normal-vector-to-a-surface/#comment-22681</link>
		<dc:creator><![CDATA[Pitman]]></dc:creator>
		<pubDate>Thu, 05 Jan 2012 14:28:04 +0000</pubDate>
		<guid isPermaLink="false">http://samjshah.com/?p=965#comment-22681</guid>
		<description><![CDATA[I think this proof is wrong. Take any directional derivative (a,b) that is not tangent to a surface, and admit that (a,b) is different from the null vector. Take the directional derivative (c,d) tangent to a curve. (c,d) equals the null vector. Thus, dot[(a,b), (c,d)] = 0, since (c,d) is the null vector. But this implies that any vector, be it the grad or not, is perp to (a,b). The flaw is that the dot product implies that the vectors are perpendicular if both vectors are different from the null vector. As in the proof it was assumed that one of the two vectors is the null vector, we can&#039;t conclude this.]]></description>
		<content:encoded><![CDATA[<p>I think this proof is wrong. Take any directional derivative (a,b) that is not tangent to a surface, and admit that (a,b) is different from the null vector. Take the directional derivative (c,d) tangent to a curve. (c,d) equals the null vector. Thus, dot[(a,b), (c,d)] = 0, since (c,d) is the null vector. But this implies that any vector, be it the grad or not, is perp to (a,b). The flaw is that the dot product implies that the vectors are perpendicular if both vectors are different from the null vector. As in the proof it was assumed that one of the two vectors is the null vector, we can&#8217;t conclude this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ted</title>
		<link>http://samjshah.com/2009/01/16/why-is-the-gradient-related-to-the-normal-vector-to-a-surface/#comment-15153</link>
		<dc:creator><![CDATA[Ted]]></dc:creator>
		<pubDate>Tue, 20 Sep 2011 16:20:29 +0000</pubDate>
		<guid isPermaLink="false">http://samjshah.com/?p=965#comment-15153</guid>
		<description><![CDATA[There is a theorem that states that given any point (x0,y0) [x0 is x sub zero]  and the level curve of f through this point (i.e. the level curve of f at value f(x0,y0), then the gradient of f at f(x0,y0) is perpendicular to the tangent direction along the level curve of f through (x0,y0).  

Proof: Suppose that (a,b) is any vector that is tangent to the level curve of f through (x0,y0).  So the derivative of f along the vector (a,b) is zero [some call this the directional derivative, but the directional derivative is along a unit vector].  But this means that dot(gradf(x0,y0), (a,b))=0 since dot(gradf(x0,y0), (a,b)) is the derivative of f along the vector (a,b).  But this means that gradf(x0,y0) is perpendicular to the vector (a,b), which is what we wanted to prove.

This generalizes when you are talking about level surfaces and the gradient there is perpendicular to the surface instead of  the level curve.]]></description>
		<content:encoded><![CDATA[<p>There is a theorem that states that given any point (x0,y0) [x0 is x sub zero]  and the level curve of f through this point (i.e. the level curve of f at value f(x0,y0), then the gradient of f at f(x0,y0) is perpendicular to the tangent direction along the level curve of f through (x0,y0).  </p>
<p>Proof: Suppose that (a,b) is any vector that is tangent to the level curve of f through (x0,y0).  So the derivative of f along the vector (a,b) is zero [some call this the directional derivative, but the directional derivative is along a unit vector].  But this means that dot(gradf(x0,y0), (a,b))=0 since dot(gradf(x0,y0), (a,b)) is the derivative of f along the vector (a,b).  But this means that gradf(x0,y0) is perpendicular to the vector (a,b), which is what we wanted to prove.</p>
<p>This generalizes when you are talking about level surfaces and the gradient there is perpendicular to the surface instead of  the level curve.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jeff melmed</title>
		<link>http://samjshah.com/2009/01/16/why-is-the-gradient-related-to-the-normal-vector-to-a-surface/#comment-5526</link>
		<dc:creator><![CDATA[jeff melmed]]></dc:creator>
		<pubDate>Tue, 10 May 2011 17:40:35 +0000</pubDate>
		<guid isPermaLink="false">http://samjshah.com/?p=965#comment-5526</guid>
		<description><![CDATA[Sorry for the terrible notation:

Let F(x, y, z) =c define a family of (level) surfaces.
F(x1 , y1 ,z1 )=c1  and  F(x2 , y2 ,z2 )=c2 are two adjacent surfaces where x2 = x1 + Δx, y2 = y1 + Δy, and 
z2 = z1 + Δz. 
Then in a small neighborhood  ΔF = F(x2 , y2 ,z2 ) - F(x1 , y1 ,z1 )
= F(x1 , y1 ,z1)+(dx F) Δx + (dyF) Δy +(dz F)  Δz - F(x1 , y1 ,z1 )
= grad(F) • Δr = c2 – c1
If we restrict to one surface, so that the vector Δr lies within that surface (technically tangent to it) and c2 – c1= 0, then the vector grad(F) must be perpendicular to the surface.]]></description>
		<content:encoded><![CDATA[<p>Sorry for the terrible notation:</p>
<p>Let F(x, y, z) =c define a family of (level) surfaces.<br />
F(x1 , y1 ,z1 )=c1  and  F(x2 , y2 ,z2 )=c2 are two adjacent surfaces where x2 = x1 + Δx, y2 = y1 + Δy, and<br />
z2 = z1 + Δz.<br />
Then in a small neighborhood  ΔF = F(x2 , y2 ,z2 ) &#8211; F(x1 , y1 ,z1 )<br />
= F(x1 , y1 ,z1)+(dx F) Δx + (dyF) Δy +(dz F)  Δz &#8211; F(x1 , y1 ,z1 )<br />
= grad(F) • Δr = c2 – c1<br />
If we restrict to one surface, so that the vector Δr lies within that surface (technically tangent to it) and c2 – c1= 0, then the vector grad(F) must be perpendicular to the surface.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas</title>
		<link>http://samjshah.com/2009/01/16/why-is-the-gradient-related-to-the-normal-vector-to-a-surface/#comment-1632</link>
		<dc:creator><![CDATA[Thomas]]></dc:creator>
		<pubDate>Wed, 18 Nov 2009 14:30:55 +0000</pubDate>
		<guid isPermaLink="false">http://samjshah.com/?p=965#comment-1632</guid>
		<description><![CDATA[At the green dot, we get  F(1,1) = which is a vector pointing northwest.

Seems to me you plotted F(1,1) = ]]></description>
		<content:encoded><![CDATA[<p>At the green dot, we get  F(1,1) = which is a vector pointing northwest.</p>
<p>Seems to me you plotted F(1,1) = </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin</title>
		<link>http://samjshah.com/2009/01/16/why-is-the-gradient-related-to-the-normal-vector-to-a-surface/#comment-875</link>
		<dc:creator><![CDATA[Justin]]></dc:creator>
		<pubDate>Thu, 19 Mar 2009 05:13:37 +0000</pubDate>
		<guid isPermaLink="false">http://samjshah.com/?p=965#comment-875</guid>
		<description><![CDATA[I am kind of late to this discussion, but here goes...

The rigorous proof that the gradient produces a vector normal to a given level surface is evidently pretty complex, since it is omitted from my vector analysis text. There is, however, an informal explanation.

Imagine a function f(x,y,z) defined everywhere in a box. Pick a point (x0,y0,z0), and let&#039;s say that f(x0,y0,z0)=C. Then it isn&#039;t hard to believe that a smooth surface could exist where f(x,y,z)=C, which passes through (x0,y0,z0) and is continuous throughout the box.

If you took a directional derivative while staying on the surface, it is 0, since f(x,y,z) is constant on the surface.

Notice that the directional derivative is in a direction tangent to the surface, and its magnitude is zero. df/du = grad(f).u implies that this direction, tangent to the surface, is perpindicular to the direction of greatest change. This means that the direction of greatest change (aka the gradient vector) is normal to the level surface.]]></description>
		<content:encoded><![CDATA[<p>I am kind of late to this discussion, but here goes&#8230;</p>
<p>The rigorous proof that the gradient produces a vector normal to a given level surface is evidently pretty complex, since it is omitted from my vector analysis text. There is, however, an informal explanation.</p>
<p>Imagine a function f(x,y,z) defined everywhere in a box. Pick a point (x0,y0,z0), and let&#8217;s say that f(x0,y0,z0)=C. Then it isn&#8217;t hard to believe that a smooth surface could exist where f(x,y,z)=C, which passes through (x0,y0,z0) and is continuous throughout the box.</p>
<p>If you took a directional derivative while staying on the surface, it is 0, since f(x,y,z) is constant on the surface.</p>
<p>Notice that the directional derivative is in a direction tangent to the surface, and its magnitude is zero. df/du = grad(f).u implies that this direction, tangent to the surface, is perpindicular to the direction of greatest change. This means that the direction of greatest change (aka the gradient vector) is normal to the level surface.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jd2718</title>
		<link>http://samjshah.com/2009/01/16/why-is-the-gradient-related-to-the-normal-vector-to-a-surface/#comment-726</link>
		<dc:creator><![CDATA[jd2718]]></dc:creator>
		<pubDate>Wed, 21 Jan 2009 03:59:07 +0000</pubDate>
		<guid isPermaLink="false">http://samjshah.com/?p=965#comment-726</guid>
		<description><![CDATA[Yeah, I don&#039;t work with this much, and my writing is not so good. But that looks like the 3 space analog of the point-slope form of the equation of a line.

Jonathan]]></description>
		<content:encoded><![CDATA[<p>Yeah, I don&#8217;t work with this much, and my writing is not so good. But that looks like the 3 space analog of the point-slope form of the equation of a line.</p>
<p>Jonathan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: samjshah</title>
		<link>http://samjshah.com/2009/01/16/why-is-the-gradient-related-to-the-normal-vector-to-a-surface/#comment-725</link>
		<dc:creator><![CDATA[samjshah]]></dc:creator>
		<pubDate>Wed, 21 Jan 2009 00:45:16 +0000</pubDate>
		<guid isPermaLink="false">http://samjshah.com/?p=965#comment-725</guid>
		<description><![CDATA[@Will and Jonathan,

In fact, you&#039;re both heading in the same direction as the book. You do need to take partial derivatives. To refresh, $latex f_x(x,y)$ is the slope of the function if you hold y constant and vary x. Similarly, $latex f_y(x,y)$ is the slope of the function if you hold x constant and vary y. 

The tangent plane to a surface $latex f(x,y)$ at a point $latex (x_o,y_0)$ is $latex z=f(x_o,y_o)+f_x(x_o,y_o)(x-x_0)+f_y(x_o,y_o)(y-y_0)$. 

However, when I read this, it didn&#039;t make clear what was going on intuitively/concretely. In some sense, the first term of the three terms makes sure that that point $latex (x_0,y_0)$ is on the plane, and the second and third terms describes what&#039;s happening locally when you move slightly to the right or left. This sounds like what you are talking about Jonathan.

But I don&#039;t think that explanation is totally correct -- or makes great sense to me. And then the book goes on to say that another way to write the tangent plane is $latex F_x(x_0,y_0,z_0)(x-x_0)+F_y(x_0,y_0,z_0)(y-y_0)+F_z(x_0,y_0,z_0)(z-z_0)=0$, for any function $latex F(x,y,z)$. Well, that was a real challenge for me -- where the heck this comes from.

Which led to this post.]]></description>
		<content:encoded><![CDATA[<p>@Will and Jonathan,</p>
<p>In fact, you&#8217;re both heading in the same direction as the book. You do need to take partial derivatives. To refresh, <img src='http://s0.wp.com/latex.php?latex=f_x%28x%2Cy%29&amp;bg=ffffff&amp;fg=4e4e4e&amp;s=0' alt='f_x(x,y)' title='f_x(x,y)' class='latex' /> is the slope of the function if you hold y constant and vary x. Similarly, <img src='http://s0.wp.com/latex.php?latex=f_y%28x%2Cy%29&amp;bg=ffffff&amp;fg=4e4e4e&amp;s=0' alt='f_y(x,y)' title='f_y(x,y)' class='latex' /> is the slope of the function if you hold x constant and vary y. </p>
<p>The tangent plane to a surface <img src='http://s0.wp.com/latex.php?latex=f%28x%2Cy%29&amp;bg=ffffff&amp;fg=4e4e4e&amp;s=0' alt='f(x,y)' title='f(x,y)' class='latex' /> at a point <img src='http://s0.wp.com/latex.php?latex=%28x_o%2Cy_0%29&amp;bg=ffffff&amp;fg=4e4e4e&amp;s=0' alt='(x_o,y_0)' title='(x_o,y_0)' class='latex' /> is <img src='http://s0.wp.com/latex.php?latex=z%3Df%28x_o%2Cy_o%29%2Bf_x%28x_o%2Cy_o%29%28x-x_0%29%2Bf_y%28x_o%2Cy_o%29%28y-y_0%29&amp;bg=ffffff&amp;fg=4e4e4e&amp;s=0' alt='z=f(x_o,y_o)+f_x(x_o,y_o)(x-x_0)+f_y(x_o,y_o)(y-y_0)' title='z=f(x_o,y_o)+f_x(x_o,y_o)(x-x_0)+f_y(x_o,y_o)(y-y_0)' class='latex' />. </p>
<p>However, when I read this, it didn&#8217;t make clear what was going on intuitively/concretely. In some sense, the first term of the three terms makes sure that that point <img src='http://s0.wp.com/latex.php?latex=%28x_0%2Cy_0%29&amp;bg=ffffff&amp;fg=4e4e4e&amp;s=0' alt='(x_0,y_0)' title='(x_0,y_0)' class='latex' /> is on the plane, and the second and third terms describes what&#8217;s happening locally when you move slightly to the right or left. This sounds like what you are talking about Jonathan.</p>
<p>But I don&#8217;t think that explanation is totally correct &#8212; or makes great sense to me. And then the book goes on to say that another way to write the tangent plane is <img src='http://s0.wp.com/latex.php?latex=F_x%28x_0%2Cy_0%2Cz_0%29%28x-x_0%29%2BF_y%28x_0%2Cy_0%2Cz_0%29%28y-y_0%29%2BF_z%28x_0%2Cy_0%2Cz_0%29%28z-z_0%29%3D0&amp;bg=ffffff&amp;fg=4e4e4e&amp;s=0' alt='F_x(x_0,y_0,z_0)(x-x_0)+F_y(x_0,y_0,z_0)(y-y_0)+F_z(x_0,y_0,z_0)(z-z_0)=0' title='F_x(x_0,y_0,z_0)(x-x_0)+F_y(x_0,y_0,z_0)(y-y_0)+F_z(x_0,y_0,z_0)(z-z_0)=0' class='latex' />, for any function <img src='http://s0.wp.com/latex.php?latex=F%28x%2Cy%2Cz%29&amp;bg=ffffff&amp;fg=4e4e4e&amp;s=0' alt='F(x,y,z)' title='F(x,y,z)' class='latex' />. Well, that was a real challenge for me &#8212; where the heck this comes from.</p>
<p>Which led to this post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Will Irwin</title>
		<link>http://samjshah.com/2009/01/16/why-is-the-gradient-related-to-the-normal-vector-to-a-surface/#comment-724</link>
		<dc:creator><![CDATA[Will Irwin]]></dc:creator>
		<pubDate>Tue, 20 Jan 2009 16:52:04 +0000</pubDate>
		<guid isPermaLink="false">http://samjshah.com/?p=965#comment-724</guid>
		<description><![CDATA[@Sam,

Ah, yes, I see the point now.  I had made the erroneous assumption that there existed a technique to do &#039;differentiation in 3D&#039; to get the gradient of the plane - without knowing whether such a technique actually existed!

I guess that&#039;s the difference between a mathematician and and engineer (me): a mathematician would demand to see the proof that &#039;differentiation in 3D&#039; existed before using it, but an engineer would just try extrapolating from 2D and then try to verify empirically the results were correct (or at least close enough for the problem at hand).  Which would not work in this case...

Come to think of it (now I&#039;m really beyond what I recall from calculus) isn&#039;t there a notion of partial derivatives where you can get the rate of change of z with respect to x AND y?  Wouldn&#039;t that be the &#039;gradient&#039; of the plane that is tangential to our surface?   Or can partial derivatives only be  done &#039;one axis at a time&#039;?]]></description>
		<content:encoded><![CDATA[<p>@Sam,</p>
<p>Ah, yes, I see the point now.  I had made the erroneous assumption that there existed a technique to do &#8216;differentiation in 3D&#8217; to get the gradient of the plane &#8211; without knowing whether such a technique actually existed!</p>
<p>I guess that&#8217;s the difference between a mathematician and and engineer (me): a mathematician would demand to see the proof that &#8216;differentiation in 3D&#8217; existed before using it, but an engineer would just try extrapolating from 2D and then try to verify empirically the results were correct (or at least close enough for the problem at hand).  Which would not work in this case&#8230;</p>
<p>Come to think of it (now I&#8217;m really beyond what I recall from calculus) isn&#8217;t there a notion of partial derivatives where you can get the rate of change of z with respect to x AND y?  Wouldn&#8217;t that be the &#8216;gradient&#8217; of the plane that is tangential to our surface?   Or can partial derivatives only be  done &#8216;one axis at a time&#8217;?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

