Phil Lucht Math & Physics Archive
Home / Math and Physics Files / Physics / Mechanics / Goldstein Related

surface geometry questions

DOCX · 199.1 KB
Open DOCX file

Notes written by Phil (dated 7.31.08, updated 10.19.10) with an overview and table of contents. They cover the equation and normal of a plane, the geometric meaning of the 3D gradient, the tangent plane, and orthogonal uphill and across vectors. They also treat the 2D normal curve h(x), solved for f = ax^2 + by^2 as y = K x^(b/a) and checked against the ellipses. The motivation was Goldstein Chapter 9, Section 8, on classical waves.

AI-written summary; may contain errors.

Extracted text (machine-read; may contain errors)
Surface Geometry Questions PhL 7.31.08 I looked in my interests/math and elsewhere for doc files on these subjects, but could find nothing. When I looked in my math books, Buck at least talks about vectors, gradients, divergence, and the Gauss and Stokes theorems, but no pictures of surfaces. Other books same thing. I found one undated pen-written page set about gradients and normals in my math notes which is now incorporated below. My motivation for doing this was to understand the "classical waves" for moving particles as described at the start of Goldstein Chapter 9 Section 8. [ On 10.19.10 I updated this doc by interpreting the parameter d in the equation of a plane, and by adding a TOC and standardizing the Overview.] Overview ( 5 pages ) 1 0. What is the equation of a plane, and what is the normal to that plane? 5 0.1 Geometric meaning of the 3D gradient 3d(g). 6 1. Why does a 2D gradient2Df to a surface z = f(x,y) point uphill, and what is the uphill vector? 7 1.1 More comments on the 2D and 3D gradients just mentioned above. 8 2. Imagine a surface z = f(x,y) in R3 . What is the normal n at any point on the surface? 9 3. What then is a 3D vector which points "across the hill"? 11 4. Reduce all the above to the corresponding 2D problem. 12 5. Consider the line y = mx + b passing through a point x1, y1. What is the equation of the line through this same point that is perpendicular to the original line? 13 6. Consider a the curve described by f(x,y) = a, it might be a circle or an ellipse for example. 14 7. Consider a surface z = f(x,y) in R3. 17 Important point not yet stated. 18 8. Consider a surface z = f(x,y): 2Df = (fx, fy) points in the x,y direction of "uphill" 23 9. Confirm that the h(x) = Kxb/a curve really is normal to the ellipses ax2 + by2 = z. 24 –––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– Overview ( 5 pages ) 0. What is the equation of a plane, and what is the normal to that plane? If the plane is ax + by + cz + d = 0, the normal to the plane is n = (a,b,c). This result is shown several different ways. Also, d = np, where p is the distance from the plane to the origin. 0.1 Geometric meaning of the 3D gradient 3d(g(r)). If g(x,y,z)= 0 defines a surface, and if r is a point on that surface, then : (1) The vector 3d(g(r)) points in the direction of a normal to the surface, so that = 3d(g) / |3d(g)|. (2) The function g has its maximal amount of positive change in this normal direction. 1. Why does a 2D gradient2Df to a surface z = f(x,y) point uphill, and what is the uphill vector? Reason is explained, and vup = (fx, fy, fx2 + fy2). 1.1 More comments on the 2D and 3D gradients just mentioned above. Consider z = f(x,y) and let g(r) = f(x,y) - z. A point on the surface z = f(x,y) is a point on the surface g = 0. The 3d(g) vector is given by 3d(g) = (gx, gy, gz) = (fx, fy, –1) = ( 2Df, –1). 2. Imagine a surface z = f(x,y) in R3. What is the normal n at any point on the surface? We already know the answer as just given above, but I did this section first, and got the same result from 3 equations in 3 unknowns. There are always two normals ± . I show that [n x f2D]z = 0 and explain why that is so. Finally, I answer this question: what is the equation of the tangent plane which exists at some point r1 on the surface f(x,y) = z. The answer is this: z = fx1(x–x1) + fy1(y–y1) + z1 . As noted above, the normal at this point is n = ± (fx, fy, –1) and we find n (r–r1) = 0 for r on the tangent plane. 3. What then is a 3D vector which points "across the hill"? You can construct the following little orthogonal set of vectors: n = (-fx , -fy, 1) // not normalized vup = (fx, fy, fx2 + fy2) // not normalized vacross ≡ n x vup = (-fy, fx, 0) // not normalized where the latter is "horizontal" in our usual construction, lying parallel to the x-y plane at some z = z1 value. Easy to show that the three dot products of the above vectors are 0 which makes me think they are right. 4. Reduce all the above to the corresponding 2D problem. Nothing very exciting, I just set y=0 and reduce the 3D stuff to 2D stuff by restricting to the y=0 plane. This picture says it all: 5. Consider the 2D line y = mx + b passing through a point x1, y1. What is the equation of the line through this same point that is perpendicular to the original line? There are several ways to give the answer, here is my favorite: line through point r1 : y = m(x-x1) + y1 b = y1 – mx1 perp line thru point r1 : y = (-1/m)(x-x1) + y1 b= y1+ x1/m You can see that point r1 in fact lies on both these lines, and we have the simple m = -1/m rule. 6. Consider a the curve described by f(x,y) = a, it might be a circle or an ellipse for example. Here I am trying to learn about the "normal curve" I call h(x) and I drew this projection picture: Then I started exploring a set of mini questions: (6a) What is the tangent line at r1 ? The answer is y = m(x-x1) + y1 with m = -fx1/fy1, easy to show. (6b) What is the equation of the perp line at point 1, which is of course has slope there of our h(x)? Again from above, the answer is trivially y = m (x-x1) + y1 with m = -1/m = fy1/fx1 (6c) If we are given dx, how can we estimate dy (see picture)? Answer: dy = [ fy1/fx1] dx. This is just coming from the slope of the normal line. At this point, I did not realize that the equation dy/dx = fy/fx could be solved to find y(x) = h(x), the explicit normal curve, so I was just learning about h' and h". (6d) What can we say about the h'(x1) ? Answer: h'(x1) = fy1/fx1 (6e) By just repeating the above discussion, we know that h'(x2) = fy2/fx2 where f = f(x2, y2). (6f) What is h"(x1) ? Answer: h"(x1) = { (fyx/fx) [1 – (fy/fx)2 ] + (fy/fx2) [ fyy – fxx] } I then verified the above formulas for h' and h" using h(x) = K xb/a for f = ax2+by2. When I first wrote this section, I did not know this solution for h(x) so I did not verify anything except a circle situation. 7. Consider a surface z = f(x,y) in R3. This is a long section. We know we can "go uphill" in 3D according to dr3D = ds up,3D = ds (fx, fy, fx2 + fy2)/R where R2 = (fx2 + fy2) ( 1 + fx2 + fy2) Since dr = (dx,dy,dz) we can relate each differential to ds: dx = (fx/R) ds dy = (fy/R) ds dz = [(fx2 + fy2)/R] ds In the 2D projection world, we can "go up" in 2D according to dr2D = ds up,2D = ds 2Df /R = ds (fx, fy)/R R = = |2Df| and this leads to dx = (fx/R) dx dy = (fy/R) ds Notice that dy/dx = fy/fx in either of these "worlds". I show that dy/dx = fy(x,y)/fx(x,y) is the equation you must solve if you want to know y(x) = h(x) = the 2D normal curve which is a projection on the x-y plane of the 3D uphill curve. You can compute arc length along this h(x) curve like so: s(x) = dx // where need to replace y = y(x) in the integrand. I then show two similar claims relating to the magnitude of gradients: (2D) dr = ds is along h(x) and therefore normal to the curve z = f(r) df = 2Df dr = |2Df| ds new curve is z = f(r+dr) = f(r)+ df 2Df = (fx, fy) |2Df| = (3D) dr = ds is normal to the surface g(x,y,z) = 0. We find that dg = 3Dg dr = |3Dg| ds new surface is g(r+dr) = g(r)+ dg = dg 3Dg = (gx, gy,.gz) = (fx, fy, -1) |3Dg| = This second one appears as (9-80) on page 308 of Goldstein where g(x,y,z) = W(x,y,z) = W(qi). I next solve the equation dy/dx = fy/fx for the case f = ax2 + by2 and I find that the normal line function in the 2D plane is this y = K xb/a = h(x) which I then show graphically for three values of K: In this case, I compute the arc length s along h(x) to be a hypergeometric function. I then attempt to compute the arc length along the 3D "up the hill" curve and get a formula for same, and then I do the example case and for a=b I get a result which agrees with something on the web. It is the arc length along a parabola and is not a simple function. 8. Consider a surface z = f(x,y). Here I attempted to compute the change in the 2D gradient vector as you move ds along the normal curve h(x). The result may not be correct, but here is what I got δf(r) = (2/R) (fxfxx + fyfyx, fxfyx + fyfyy) ds R = |f(r)| = 9. Confirm that the h(x) = Kxb/a curve really is normal to the ellipses ax2 + by2 = z. I was having some discrepancies so I wanted to see if this h(x) really is the right "normal curve" solution for my prototype problem. Although I could not in general solve for the intersection of these two curves for general a,b,K, I know there will be one, and I am able to show that at such intersections, the curves are perpendicular. ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– THE DOCUMENT PROPER BEGINS HERE (everything above is overview) 0. What is the equation of a plane, and what is the normal to that plane? A plane is given by z = Ax + By + C A plane parallel to this through the origin is just z = Ax + By. A point on this parallel plane would be point = (x,y, Ax + By) This is also a vector to that point from the origin. This must be perp to the normal vector, so nxx + nyy + nz(Ax+By) = 0 = [nx + nzA] x + [ ny + nzB] y But this must be 0 for all x and y on our plane, so conclude that nx = -nzA nY = -nzB Thus, our normal vector is n = ( -A, -B, 1) nz = ( -A, -B, 1) // not normalized A more standard way to do all this is as follows. plane: ax + by + cz + d = 0 // vr = -d parallel plane through origin: ax + by + cz = 0 define v = (a,b,c). Then we have vr = 0 . Thus, v must be the normal vector, so n = (a,b,c) // not normalized Parallel translating back from the origin plane to the original one does not change the normal. In the following section we will show that n = 3d(g) . For g = ax + by + cz + d = 0, we see at once that n = 3d(g) = (a,b,c). Note added: In the above, what is the interpretation of constant d? Let p = point on plane that lies closest to the origin. This means that p is "the distance from the plane to the origin", which means the closest distance between any point on the plane and the origin. The vector p = p - 0 is perp to the plane, which is why it is the closest point. For any point r on the plane, we then know that (r-p)n = 0. This tells us that nr = np . But nr = -d, so np = -d. But n and p are antiparallel, so this says np = d. If we were to normalize n, then d would be the distance from the origin to the plane. Without doing this normalization, we have d = p. 0.1 Geometric meaning of the 3D gradient 3d(g). Suppose you have a function g(x,y,z). Then we know that for any point in space, the following is true (to first order in dr), g(r+dr) = g(r) + 3d(g) dr Now suppose we consider the equation g(x,y,z) = 0 which defines a surface in R3. Then for any point on this surface, we can say g(r+dr) = 3d(g) dr Imagine our point on the surface surrounded by a little sphere of possible directions to move making dr. If we move in the direction 3d(g), then we will get the largest possible change in the value of g for a given |dr|. Therefore, for a point on the surface g(x,y,z) = 0, 3d(g) points in the direction of the maximum change of g. On the other hand, suppose we move in a direction tangent to the surface, such that dr = ds . In this case, since g = 0 at all points on the surface, we must have g(r + ds ) = 0. But from our first statement above, we know then that 0 = g(r + ds ) = 3d(g) ds . Since this dot product is 0, this tells that the vector 3d(g) must be perpendicular to all possible . Thus, we may identify 3d(g(r)) as the normal to the surface g(r) for r being a point on the surface g = 0. In other words, = 3d(g) / |3d(g)|. Our conclusions are then these For a point r located on the surface g(r) = 0: (1) The vector 3d(g) points in the direction of the normal to the surface, so that = 3d(g) / |3d(g)|. (2) The function g has its maximal amount of change in this direction. Example: Suppose g = ax + by + cz + d, which is a plane in R3 . If we are at a point on this plane, then if we move in the direction 3d(g) = (a,b,c), we will get a maximum change in g, and this is n . I guess I did not appreciate the fact that the normal to a surface g = 0 points in the direction of max change. 1. Why does a 2D gradient2Df to a surface z = f(x,y) point uphill, and what is the uphill vector? Imagine z = f(x,y). Imagine we are at some point x,y in ground coordinates and we move some small ds2D = dx + dy. Then the change in the height will be dz = df = fx dx + fydy = 2Df ds2D The distance dz will be a maximum when ds2D aligns with 2Df because that is what dot products do. Therefore, 2Df must point in that direction in the x-y plane which is "uphill" on the surface. While we are here, what 3D vector then points up the hill? We know that 2Df = (fx, fy). So let's imagine a small displacement in the ground plane x,y along this up direction so ds2D = (fxds, fyds). Then we know the vertical distance is going to be df = fxdx + fydy = fx2ds + fy2ds. Thus, our up-hill 3D vector is this one: dvup = (fxds, fyds, fx2ds + fy2ds) = (fx, fy, fx2 + fy2) ds so an un-normalized vector pointing up the hill is this: vup = (fx, fy, fx2 + fy2) // not normalized Notice that if you are at the top of a hill, vup = 0. Example: Suppose f = x2 so fx = 2x. Then vup = (2x, 0, 4x2) = 2x(1,0,2x) (1,0,2x) rise/run = 2x/1 = 2x, correct 1.1 More comments on the 2D and 3D gradients just mentioned above. Consider z = f(x,y) so that g = f(x,y) - z. So a point on the surface z = f(x,y) is a point on the surface g = 0. The 3d(g) vector is given by 3d(g) = (gx, gy, gz) = (fx, fy, –1) = ( 2Df, –1). This vector is the normal to the surface g=0 [which is the same as the surface z = f(x,y) ], and points in the direction of maximum change of g. Below we talk about a paraboloid example which looks like an "oval cup". Here is a cross section in the z,x plane: This picture shows a lot of things. (a) First, it shows 3d(g) being the normal to the surface at a certain point I have picked. I have then drawn this normal vector as the sum of two vectors since 3d(g) = ( 2Df, –1). You can see that 2Df is correctly pointing in that direction in the x-y plane which makes you go "uphill" the surface, as was proven in the previous section. (b) The dotted line shows g = dg > 0 and is of course a surface near the g=0 surface. Because our sample g is linear in z, the dotted curve happens to be an exact duplicate of the solid curve, just lowered by distance dg. We have ax2 + by2 -z = dg or z = ax2 + by2 – dg = f(x,y) - dg which shows this fact. (c) For any point r on g=0 such as the one I have chosen, the 3d(g) normal points in the direction in which Δg is largest for a given Δr. This is in the direction of the dotted line surface which in our example is on the positive g-change side of the solid surface. To the extent dg is small, 3d(g) points in the direction of the least distance between the solid and dotted surfaces, just because 3d(g) is the normal, and because the two surfaces are "locally parallel" for small dg and some small patch region around our selected point. (d) There is one other point we can bring out. Consider this situation: If we stick with our sign choice that g = f(x,y) - z, then the normal vector defined by 3d(g) = ( 2Df, –1) has to always point toward the dotted g = dg > 0 surface, and it always has a negative z component. This means that on the bottom of the above ellipsoid, this normal points "out" from the surface, but on the top it points "in". In both cases, notice that the horizontal component which is 2d(f) always points in a direction corresponding to "up the hill" on the surface. (e) Of course if we define g' = -g = z - f(x,y), then the dotted surface is g = dg < 0 and all the normals defined by 3d(g') are the reverse of those shown above. There are always two normals at a point for the two sides of the surface. 2. Imagine a surface z = f(x,y) in R3 . What is the normal n at any point on the surface? It discourages me a lot that I have sat for 30 minutes trying to answer this 8th grade question, and now time is up for a day or two while Kent arrives. // Kent is gone, more fiddling and here is a solution: Since doing the below solution, I realized from added item 0.1 above that the normal is going to be given by 3d(g) = (gx, gy, gz) = (fx, fy, –1) = ( 2Df, –1) where we define g = g = f(x,y) - z. Of course if you define g' = -g = z - f(x,y), you find that your normal is 3d(g') = ( - 2Df, 1 ) which is the result which appears in my derivation below. Obviously a surface has two normals n and -n and the direction 3d(g) points depends on whether you use g or g' = -g. A general ds3D along a tangent patch would be ds3D = (dx,dy,df) = (dx,dy,fxdx + fydy). Our desired normal vector n has to have this property : nds3D = 0 for any combination of dx and dy. Write things out: [fx means ∂f/∂x ] 0 = n ds3D = nx dx + nydy + nz(fxdx + fydy) = [ nx + nzfx] dx + [ ny + nzfy] dy Therefore, each square bracket has to vanish. So we then have these three equations in three unknowns: nx + nzfx = 0 ny + nzfy = 0 nx2 + ny2 + nz2 = 1 Use the first two to eliminate nx and ny from the last to get fx2 + fy2 + 1 = 1/nz2 and solve that to get nz = ± 1/R R ≡ Then our solution is [ and agrees with earlier derivation as commented on above ] n = (nx, ny, nz) = ± (-fx , -fy, 1)/R = (-2Df, 1)/R // normalized These are the normals pointing out the two sides of the surface. I have chosen the + sign for the discussion here, see discussion above. So, n = (nx, ny, nz) = (–fx , –fy, 1)/R = (–2Df, 1)/R // normalized which agrees with the normal we found earlier using 3D. We can then verify n ds3D = [ nx + nzfx] dx + [ ny + nzfy] dy = [– fx + fx] dx + [–fy + fy] dy = 0 + 0 = 0 Example: Suppose you are at the top of a hill. Then fx = fy = 0 and n = (0,0,1) which is correct. (And this is why I chose the sign the way I did; these normals point "in" on the oval cup bottom, as noted above.) Extra note: if we add the first two of our three equations above in a way to eliminate nz we find -nx / fx = -ny/fy = > nxfy = nyfx => nxfy – nyfx = 0 => [n x f2D]z = 0 This has a simple geometric interpretation. Since 2Df points up the hill, and n points out, the cross product most point "across the hill" and thus has no z component. This is pretty obvious if you just think of a square patch of surface aligned with the up direction. And of course we have just derived it. Extra note: What is the equation of a plane through the origin which is parallel to the tangent plane at the point x1,y1,f1 where f1 = f(x1,y1)? It is given by n r = 0 or (-fx1 , -fy1, 1) (x,y,z) = 0 => -fx1x - fy1y + z = 0 => z = fx1x + fy1y Now, what is the equation of the tangent plane itself? It will be of the form z = fx1x + fy1y + K for some K. But our surface point is (x1,y1,f1) so that must lie on this new plane, so f1 = fx1x1 + fy1y1 + K => K = f1 – fx1x1 – fy1y1 So the result is: z = fx1x + fy1y + K = fx1x + fy1y + f1 – fx1x1 – fy1y1 = fx1(x–x1) + fy1(y–y1) + f1 So: tangent plane equation is: z = fx1(x–x1) + fy1(y–y1) + f1 Verify it contains our point x1,y1,f1: trivial. Has the form of a plane. Finally, verify perp to n: Just remove the constant to get parallel plane through origin so z = fx1x + fy1y. Point on plane is (x,y, fx1x + fy1y). Verify then that (-fx1 , -fy1, 1) (x,y, fx1x + fy1y)= 0. Done. Here is another way to write this tangent plane. We know that 3Dg dr = 0 for any dr lying in the tangent plane near some point r1. Thus, we know that for r on the tangent plane, 3Dg (r – r1) = 0. But from above we know that 3d(g1) = (gx1, gy1, g1z) = (fx1, fy1, –1) = ( 2D,1f, –1) where we define g = f(x,y) - z. Therefore, we have ( 2Df, –1) (r – r1) = 0 which says fx1(x-x1) + fy1(y-y1) - 1 (z-z1) = 0 giving z = fx1(x-x1) + fy1(y-y1) + z1 which agrees with the above, since f1 = z1. That is, r = (x,y,z) which satisfy this equation lie on the plane which is tangent to the surface at a point r1 lying on the surface. 3. What then is a 3D vector which points "across the hill"? It is vacross ≡ n x vup . We compute from the above n = (-fx , -fy, 1)/R where R ≡ // n is normalized vup = (fx, fy, fx2 + fy2) // not normalized So vacross ≡ n x vup: vacross,x = nyvup,z – nzvup,y = (-fy[fx2 + fy2] – 1*fy)/R = – fy R2/R = – fy R vacross,y = nzvup,x – nxvup,z = (1*fx – (-fx) [fx2 + fy2])/R = fx R2/R = fx R vacross,z = nxvup,y – nyvup,x = ((-fx)(fy) - (-fy)fx)/R = 0 as expected Thus, our non-normalized across vector is this one vacross = (-fy, fx, 0) vup = (fx, fy, fx2 + fy2) n = (-fx , -fy, 1) Now let's verify that this is perpendicular to n: (and might as well do all three dots while at it) n vacross = (-fx , -fy, 1) (-fy, fx, 0) = (-fx*-fy + -fy* fx + 0) = 0 n vup = (-fx , -fy, 1) (fx, fy, fx2 + fy2) = -fx2 - fy2 + (fx2 + fy2 ) = 0 vup vacross = (fx, fy, fx2 + fy2) (-fy, fx, 0) = -fxfy + fyfx + 0 = 0 Summary: n = (-fx , -fy, 1) // not normalized vup = (fx, fy, fx2 + fy2) // not normalized vacross ≡ n x vup = (-fy, fx, 0) // not normalized 4. Reduce all the above to the corresponding 2D problem. Imagine that we have z = f(x,y) but the equation does not really depend on y. This describes a surface in 3D space which is a surface of extrusion in the y direction. And of course fy = 0. Let's now look at all of our results above: vup = (fx, fy, fx2 + fy2) = (fx, 0 , fx2) (1,0,fx) // not normalized n = (-fx , -fy, 1) = (-fx , 0, 1) // not normalized vacross = (-fy, fx, 0) = (0,fx,0) (0,1,0) // not normalized So let's now think of the y=0 plane only, and think of z = f(x,y) = g(x) as a 2D problem only. Then in this 2D world we have vectors of the form a = (ax, az). So vup = (1,gx) = (1,dg/dx) (dx,dg) = (run, rise) m = rise/run n = (-gx , 1) = (-dg/dx, 1) (-dg,dx) = (-rise, run) m' = run/(-rise) = -1/m as in 5 below Notice that vup n= 0 trivially. Here is a summary picture 5. Consider the line y = mx + b passing through a point x1, y1. What is the equation of the line through this same point that is perpendicular to the original line? Lemma: Consider a line y = mx through the origin. What line is perpendicular to this through the origin? Try the line y = mx. A point on the first line is (x, mx) and this is also a vector on this line from the origin. Similarly, a point on the second line is (x,mx) and this is also a vector on this line from the origin. We want these two vectors to have a zero dot product. So need x2 + mmx2 = 0 or 1 + mm = 0 or mm = -1 or m = -1/m, a "famous result". Get same thing thinking of (dx,dy) and (-dy,dx) and this little picture: Now to the original question. The perp line will have the form y = mx + b where we know m = -1/m. So y = (-1/m)x + b. But then we have y1= (-1/m)x1 + b because this line has to pass through our point of interest. Therefore, b= y1+ x1/m . So here is the answer to our question: line through x1y1: y = mx + b perp line through x1y1: y = – (1/m) x + [y1+ x1/m] = mx + b Now, from the first line we know that b = y1 - mx1 since it is said to pass through point 1. Thus we could write: line through point 1: y = mx + [y1 - mx1] = mx + b = m(x-x1) + y1 perp line thru point 1: y = – (1/m) x + [y1+ x1/m] = mx + b = (-1/m)(x-x1) + y1 When written in the last form, all you have to do is replace m with -1/m to get the perp line. 6. Consider a the curve described by f(x,y) = a, it might be a circle or an ellipse for example. Imagine that we draw our curve, and then we draw it again for f(x,y) = a+da, which might be an ellipse of slightly larger size. There is a picture: Our long-term goal is to come up with an equation for the curve h(x) which is always normal to the family of curves, but right now we have much simpler goals because that problem is too hard for me at the moment. I have to "build up" to it. (6a). What is the equation of the line tangent at point 1 ? [ Note these dx,dy are not those shown in pic.] As we move along the lower curve which is f(x,y) = a, we know that da = 0 = fx1dx + fy1dy => dy/dx = m = – fx1/fy1 So from above the tangent line is : y = [– fx1/fy1] (x-x1) + y1 (6b) What is the equation of the perp line at point 1, which is of course has slope there of our h(x)? y = [ fy1/fx1] (x-x1) + y1 since m= -1/m = fy1/fx1 (6c) If we are given dx, how can we estimate dy ? Just differentiate the above normal line: dy = [ fy1/fx1] dx { The above in the form dy = [fy/fx] dx is the equation you can solve for the curve y(x) = h(x) that is perp to all the curves denoted by f(x,y) = a for varying a. But I did not realize this at the time and so did not try to solve this equation for my simple ellipses example. This is however done later below. } (6d) What can we say about the h'(x1) ? h'(x1) = fy1/fx1 Notice that this is not something you can integrate to get a solution for h(x). { But all I had to do was write this at dh/dx = fy(x,y=h)/fx(x,y=h) and solve for h(x) ! } (6e) By just repeating the above discussion, we know that h'(x2) = fy2/fx2 where x2 = x1 + dx (6f) Make the following claim: (get rid of dy using normal slope condition dy/dx = fy/fx) fy2 = fy(x+dx,y+dy) = fy(x,y) + fyx dx + fyydy = fy1 + dx [ fyx + fyy (fy1/fx1) ] fx2 = fx(x+dx,y+dy) = fx(x,y) + fxx dx + fxydy = fx1 + dx [ fxx + fxy (fy1/fx1) ] Therefore we can write fy2/fx2 = { fy1 + dx [ fyx + fyy (fy1/fx1) ]} / { fx1 + dx [ fxx + fxy (fy1/fx1) ]} Now suppress the 1 labels and rewrite this as (we should have had them as well on the second derivatives) fy2/fx2 = { fy + dx [ fyx + fyy (fy/fx) ]} / { fx + dx [ fxx + fxy (fy/fx) ]} Factor fy from the numerator and fx from the denominator fy2/fx2 = (fy/fx) { 1 + dx [ fyx + fyy (fy/fx) ]/fy } / { 1 + dx [ fxx + fxy (fy/fx) ]/fx} Now expand for small dx to get fy2/fx2 = (fy/fx) { 1 + dx [ fyx + fyy (fy/fx) ]/fy – dx [ fxx + fxy (fy/fx) ]/fx } = (fy/fx) + dx { [ fyx + fyy (fy/fx) ]/fy*(fy/fx) – [ fxx + fxy (fy/fx) ]/fx *(fy/fx) } = (fy/fx) + dx { [ fyx + fyy (fy/fx) ]/fx – [ fxx + fxy (fy/fx) ] (fy/fx2) } = (fy/fx) + dx { [ fyx /fx+ fyy (fy/fx2) ] – [ fxxfy/fx2 + fxy (fy2/fx3) ] } = (fy/fx) + dx { fyx[ 1/fx – (fy2/fx3) ] + (fy/fx2) [ fyy– fxx] } = (fy/fx) + dx { (fyx/fx) [1 – (fy/fx)2 ] + (fy/fx2) [ fyy – fxx] } Therefore, h"(x1) = [h'(x+dx) - h'(x)]/dx = [fy2/fx2 - fy/fx]/dx = { (fyx/fx) [1 – (fy/fx)2 ] + (fy/fx2) [ fyy – fxx] } Let's try this for a set of circles f(x,y) = x2 + y2 = a. Then fx = 2x fy = 2y fxx = 2 fyx = 0 fyy= 2 so get h"(x1) = { (fyx/fx) [1 – (fy/fx)2 ] + (fy/fx2) [ fyy – fxx] } = { 0 + 0 } = 0 which is at least the correct answer: we know for concentric circles, h" = 0 because the curve of normals is a straight line. (6g) So far then we have accumulated these facts about h(x): h(x1) = y1 // since goes through this point h'(x1) = fy1/fx1 h"(x1) = { (fyx/fx) [1 – (fy/fx)2 ] + (fy/fx2) [ fyy – fxx] } So this tells us a little about our curve h(x). At least for a set of concentric ellipses, we can see that the normal line is bending, because [ fyy – fxx] ≠ 0, so h(x) is curving. But we are still very far away from having an expression for h(x) itself! [ coming soon! ] Note added: I am not sure all the above detail is correct, but we can test it using the solution we find below which is that when f = ax2 + by2, we have h(x) = K xb/a. So first let's compute the derivatives directly: h(x) = K xb/a h'(x) = K(b/a) xb/a - 1 = (a/b) h(x)/x h"(x) = K(b/a)(b/a – 1) xb/a - 2 Now let's see if the above formulas are right, where I will ignore the 1 label. h(x) = y = y(x) = K xa/b // nothing really being checked here Next, fy = 2by fx = 2ax h'(x1) = fy1/fx1 = by/ax = (b/ax)K xb/a // agrees! Next, fxy = 0 fyy = 2b fxx = 2a so h"(x1) = { (fyx/fx) [1 – (fy/fx)2 ] + (fy/fx2) [ fyy – fxx] } = { 0 + + (2by/[2ax]2) [ 2b – 2a] } = by/(a2x2) * (b-a) = by/(ax2) * (b/a – 1) = (b/a) y x-2(b/a – 1) = (b/a) K xb/a-2 (b/a – 1) // agrees! So the ugly calculations above at least give the right answer for h" in this case. 7. Consider a surface z = f(x,y) in R3. We know that, starting from any point, there is an uphill path that defines a curve in 3D, and its projection onto the x-y plane is a 2D curve. In either case, we can parameterize the distance along the curve by a variable s, with s=0 at the starting point. In the 3D case, ds is along the 3D curve, and in the 2D case it is along the 2D curve, so ds is not the same in both cases. 3D Case: From above we know that vup = (fx, fy, fx2 + fy2) vup2 = fx2 + fy2 + (fx2 + fy2)2 = (fx2 + fy2) ( 1 + fx2 + fy2) ≡ R2 In this situation, we can relate differentials in the 3 directions all to ds. Let dr be a small step uphill: dr = ds up = ds (fx, fy, fx2 + fy2)/R Then we have dx = (fx/R) ds dy = (fy/R) ds dz = [(fx2 + fy2)/R] ds Again, if we move a small amount ds along our parameterized hill-climb curve, the three differentials are as shown, and so all are relatable to ds. 2D Case: vup = (fx, fy) vup2 = fx2 + fy2 ≡ R2 R = = |f| dr = ds up = ds (fx, fy)/R dx = (fx/R) ds dy = (fy/R) ds So here ds is a distance along the normal curve in the ground plane which is the projection of the 3D curve. Here is a ratio of interest: dy/dx = fy/fx Important point not yet stated. This dy/dx = fy/fx is the slope of the ground-plane curve which is the projection of the up-hill-climb curve. Go up to some 3D point on the surface, call it r. Imagine the z=constant curve which passes through this point, sort of a topo line at this altitude. Call this z1 . Then our curve has the equation f(x,y) = z1. Just above this curve we have another topo curve f(x,y) = z1+ dz1. We can imagine drawing these two topo lines on the ground plane at z=0. This is what we would see if we were to project our two real topo lines onto the z=0 plane. And we could also project our 3D vup vector onto the ground plane, where it becomes vup2D = (fx, fy). We know that vup tells us the direction of the shortest distance from one topo line to the next one above. That is, in 3D we know that vup is perpendicular to its topo line which has the direction vacross mentioned above, where vacross lies entirely in the z1 plan, ie, it is the horizontal tangent vector in our construction. If we were to rotate vup around the vacross axis, we would sweep out a disk all of which is perpendicular to the topo line vacross. In particular, when we rotated vup into the horizontal position, it would still be perpendicular to the topo line. But this is exactly the direction that vup2D = (fx, fy) has. Therefore, vup2D = (fx, fy) is normal to our curve f(x,y) = z1, whether we think of this curve as existing in 3D space, or being projected down onto the z==0 plane. That is, if we just think of f(x,y) = z1 as a 2D curve in the x-y plane, then (fx, fy) will provide the normal vector to this curve. See picture below. Well, that was quite long-winded and here is an easier and 2D-only way to see the point. Consider a curve f(x,y) = z1 in the x-y plane. For a motion along the curve we can say df = 0 = fxdx + fydy. This puts a condition on (dx,dy) = dr which will keep us on the curve if we start at a point on the curve. Ie, we will have f(x+dx,y+dy) = z1. Thus, the slope of a tangent line will be dy/dx = - fx/fy. Therefore, we know that the slope of the normal line at that same point must be dy/dx = +fy/fx. This then explains why dy/dx = fy/fx is an equation for the normal at some point on one of our curves f(x,y) = z1. In general, we treat the above equation as something you solve for y(x) which is the curve of interest. Once we have a solution y(x) we can compute arc length along the curve as follows: ds = dx = dx s(x) = dx // where need to replace y = y(x) in the integrand. Note added: We know that df = fxdx + fydy. If we insert from above, we get df = fxdx + fydy = fx(fx/R) ds + fy(fy/R) ds = (fx2 + fy2) ds/R = R ds = |2Df| ds = 2Df dr = dz Let's restate this. Suppose dr = ds is along h(x), the normal to our 2D curve f(x,y) = z. We already know that we can write = 2Df /|2Df| so it follows that dz = df = 2Df dr = ( |2Df| ) dr = ( |2Df| ) ds = |2Df| ds This just says as you move that little normal ds in the x-y plane, you will move from the curve f(x,y) = z to another curve f(x,y) = z + dz where dz = |2Df| ds. There is a 3D version of this statement. It says this for g = f(x,y)-z , and assumes that ds is a 3D distance along the normal 3Dg taking you from g(x,y,z) = 0 to some nearby surface g(x,y,z) = dg. We can write = 3Dg/ |3Dg| so that dr = ds and thus dg = 3Dg dr = |3Dg| dr = |3Dg| ds // Goldstein page 308 equation 9-80 2D Example: Suppose z = f(x,y) = ax2 + by2. Then we have fx = 2ax and fy= 2by. The last equation then becomes dy/dx = fy/fx = (b/a) y/x We can integrate this to obtain the equation for the 2D curve: dy/y = (b/a) dx/x => lny = (b/a) lnx + C = ln [ xb/a eC] Therefore we find y = K xb/a Physical interpretation: We have here a surface build from a stack of ellipses which scale up in size as we go up in z. The surface is a paraboloid which is different in the x and y directions (oval cup). The cross section at z = constant is an ellipse. If we were to choose a/b = 2, we get y = Kx2. Here is a picture of this situation looking down on the x-y plane: I show three curves, the left is roughly y = 2x2 while the right one is y = (1/2) y2. So as we vary K, we are generating all the curves which are normal to all the ellipses! This was the problem I started out today trying to solve. If we wanted the distance along the curve (arc length) as a function of x, we could do this: ds = dx = ( 1 + [ (b/a) K xb/a-1]2 )1/2 dx = (1 + (Kb/a)2 x2(b/a)-2 )1/2 dx Then we get s(x) = (1 + (Kb/a)2 t2(b/a)-2 )1/2 dt = (1 + α2 tβ )1/2 dt = F( -1/2, 1/β; 1+1/β; -αtβ ) where α = Kb/a and β = 2( b/a - 1) // Maple Suppose now a = b so we are doing circles. We then get y = Kx which are, as expected, straight lines through the set of concentric circles. The arc length integral is then s(x) = (1 + α2 )1/2 dt = x which seems pretty reasonable: line y = Kx, length along line = . 3D Example: Take the same function as in the 2D example. We have this projection onto the ground plane: y = K xb/a At each point (x,y) on this 2D curve, the z value is z = ax2 + by2 = ax2 + b K2 x2b/a so we know all about this 3D curve then. To get arc length along this curve, we do ds = dx Recall from above that dx = (fx/R) ds dy = (fy/R) ds dz = [(fx2 + fy2)/R] ds so we have dy/dx = (fy/fx) dz/dx = ((fx2 + fy2)/fx = (fx + fy/fx) Then ds = dx and then arc length is given by s = dx Looking at our special paraboloid case, we have z = f(x,y) = ax2 + by2. Then we have fx = 2ax and fy= 2by, so this becomes s = dx where y = K xb/a which I suppose Maple could do. If we set a = b for circles, then s = dx where y = K x = dx If we take a path in the y=0 plane, this corresponds to K = 0 and we then get s = dx = (1/2a) dt = (1/2a) { } q = 2ax = (x/2) + (1/4a) ln (2ax + ) This agrees with something on line which uses a = 1/(2p) or p = (1/2a) or 1/p = 2a The following section does not add much, but I keep it anyway. 8. Consider a surface z = f(x,y): 2Df = (fx, fy) points in the x,y direction of "uphill" at any point on the surface. If we start at some point and walk uphill for a while, curving around as needed to always be going up, we map out a curve in 3D, and the projection of this curve in the x,y plane is a 2D curve. Both curves are of interest. At any given point on our walk, we know that 2Df = (fx, fy) points uphill. It would seem not too complicated to "thread" these little vectors together to come up with an equation for the curve in the x,y plane, yet I have spent 30 minutes trying to do this and have been unable to do it! (7a) If you move along a small amount, how does the gradient change? dr = (dx,dy) = ds f(r)/R = ds R = |f(r)| = Therefore f(r + dr) = [ f(r + ds f(r)/R) ] But in general f(r + dr) = f(r) + f(r) dr Therefore f(r + ds f(r)/R) = f(r) + f(r) dsf(r)/R = f(r) + ds [ fx2 + fy2] /R = f(r) + ds R Therefore f(r + dr) = [ f(r + ds f(r)/R) ] = [ f(r) + ds R ] = f(r) + ds [ ] This tells us then how the gradient changes as we walk, δf(r) = ds [ ] We have, δf(r)x = ds ∂x [] = ds [ fxfxx + fyfyx]/R δf(r)y = ds ∂y [] = ds [ fxfyx + fyfyy]/R Thus, δf(r) = (2/R) (fxfxx + fyfyx, fxfyx + fyfyy) ds I think this result is correct, but not very useful right now. I have already solved my problem in item 7 above, so I will let this path 8 just end here. 9. Confirm that the h(x) = Kxb/a curve really is normal to the ellipses ax2 + by2 = z. Our first task is to find the point of intersection. We have ax2+ b[Kxb/a]2 = z ax2 + bK2 x2b/a = z Cannot solve for x in the general case! Rats. But don't give up yet. Whatever the solution point x is, it has to satisfy this equation above. What is the slope of h(x) at a point x ? h(x) = Kxb/a h'(x) = (b/a)Kxb/a-1 What is the slope of our ellipse? y(x) = ( 1/) y'(x) = – ( 1/)ax/ The requirement of perpendicularity is that h'(x) = – 1/y'(x), which here says (b/a)Kxb/a-1 = /(ax) Square both sides to get (b/a)2K2 x2b/a-2 = b (z-ax2)/(ax)2 b2K2 x2b/a / (ax)2 = b (z-ax2)/(ax)2 bK2 x2b/a = (z-ax2) ax2 + bK2 x2b/a = z // result of insisting slopes be perp But our equation of intersection from above reads like so, ax2 + bK2 x2b/a = z // x is intersection of two curves These are seen to be the same. Thus, the same point x which marks a point where the curves intersect also marks a point where they are perpendicular! And this is true for any real K (assuming the intersection equation really does have a real solution). As shown in our earlier picture, changing K changes the h(x) curve, but our "perp at intersections" fact is still true at any intersection on any of these curves.