Given a point and a curve: how to find perpindicular POI?

  • Thread starter Thread starter DyslexicHobo
  • Start date Start date
  • Tags Tags
    Curve Point
DyslexicHobo
Messages
249
Reaction score
0
Hi all,

This seems more like a basic level general math question, but since it was asked in my calc III/linear class on my final exam and possibly involves derivatives, I decided to post here.

The original question:
Given f(x,y) = x^2 + y^2, find the point on the surface that is closest to the point (3,0,0).


I sketched the figure (a parabloid) relative to the point and saw that it was obvious that the point on the surface which was closest to (3,0,0) was on the xz-plane.

I drew a projection of the xz-plane with the point, and then realized that the shortest line would be the one which was perpindicular to the curve z=x^2.

It's probably got something to do with relating the derivative of the curve to the line, but I'm not sure how. I ended up saying that the slope of the curve = 2x (dy/dx), so the slope of the line from (3,0,0) to the point on z=x^2 must be 1/(2x).

However, that's where I got stuck. It's really frustrating because it seems like it's so obvious, but the answer keeps eluding me!

How could I go about solving this problem? Also, what's the more generalized way of doing this in three dimensions? I'm sure that mine is not the quickest or most general form, considering I had a special case where the point lied on an axis.
 
Physics news on Phys.org
Hey,
I'm just a student (and it seems I'm at about the same level in math as you) but just something I noticed in reading your post. You said the slope perpendicular to 2x is 1/2x. Remember than if the slope is 2x, the slope perpendicular to that is -1/2x. I'll read your post more thoroughly and see if I can't help you out.

edit: I gave it a shot but I'm no where near confident enough in my method to advise someone else. It seems though, that you have to take the distance formula d = sqrt((x-3)^2 + y^2 + z^2) and find the derivate, solve for d' = 0 to find critical values, figure out which of these is a minimum (there should only be one) and that should be your answer... I think.

quick help with how to insert latex expressions, anyone? (not to hijack the thread or anything)
 
Last edited:
daytripper said:
Hey,
I'm just a student (and it seems I'm at about the same level in math as you) but just something I noticed in reading your post. You said the slope perpendicular to 2x is 1/2x. Remember than if the slope is 2x, the slope perpendicular to that is -1/2x. I'll read your post more thoroughly and see if I can't help you out.

edit: I gave it a shot but I'm no where near confident enough in my method to advise someone else. It seems though, that you have to take the distance formula d = sqrt((x-3)^2 + y^2 + z^2) and find the derivate, solve for d' = 0 to find critical values, figure out which of these is a minimum (there should only be one) and that should be your answer... I think.

quick help with how to insert latex expressions, anyone? (not to hijack the thread or anything)

Yeah, I had that equation written out on my paper, too... for some reason I didn't realize that I could just take the derivative of the equation to find a rel. min. It makes sense, I was just stuck on solving it my way because it's how I visualized it at first.

LaTeX can be inserted by using:
[ tex] Latex code here [/ tex]

You can learn how to insert more complex things here: https://www.physicsforums.com/showthread.php?t=8997
 
Thanks for the tip. I hope the admin will excuse this, but I'm going to try it out real quick:
d\; =\; \sqrt{\left( x-3 \right)^{2}\; +\; y^{2}\; +\; z^{2}}
p.s. If you have a mac, write equations in grapher and then highlight them and right-click (you'll be able to copy an equation as a latex expression). alt+v is the sqrt symbol
...that would've been immensely useful to me a year ago. I'm going to make a thread on this in case anyone is unaware
 
Blah! This makes me want to have a mac. :P

Btw, taking the derivative of d\; =\; \sqrt{\left( x-3 \right)^{2}\; +\; y^{2}\; +\; z^{2}} is pretty complicated (two partial derivatives)... so I guess it works out a lot better to simplify the problem to a projection of the xz-plane so that you only need to take one derivative with respect to x.

d = sqrt{(x-3)^2+z^2}
<br /> z^2 = d^2 - (x-3)^2
<br /> z = sqrt{d^2 - (x-3)^2}
<br /> dz/dx = -(x-3)/(sqrt(-x+d+3)*sqrt(x+d-3))

Then what? What am I doing wrong? This was an extra credit question, so I don't feel that bad for being so clueless...

Does this make sense? :/ UGH I'm so lost. I've been studying too much linear algebra stuff, I think, and I've lost my ability to do calculus.
 
We are trying to pick a point (x,y,z) on our curve z = x^2 + y^2 that will be closest to (3,0,0). Since that point is on our curve it will have the form (x,y,x^2+y^2). So now we have our distance formula:

D = \sqrt{(x-x_{0})^2 + (y-y_{0})^2 + (z-z_{0})^2}, plug our information into get

D = \sqrt{(x-3)^2 + y^2 + (x^2 + y^2)^2}

So now you differentiate D with respect to x, then differentiate with respect to y.

Get your points, figure out if they are min, max or saddle.
 
Last edited:
let me think a bit more about this problem before I reply with nonesense
 
Last edited:
NoMoreExams said:
We are trying to pick a point (x,y,z) on our curve z = x^2 + y^2 that will be closest to (3,0,0). Since that point is on our curve it will have the form (x,y,x^2+y^2). So now we have our distance formula:

D = sqrt((x-x0)^2 + (y-y0)^2 + (z-z0)^2), plug our information into get

D = sqrt((x-3)^2 + y^2 + (x^2 + y^2)^2)

So now you differentiate D with respect to x, then differentiate with respect to y.

Get your points, figure out if they are min, max or saddle.

I guess I understand how this works... but it seems like it gets really complicated. Normally our professor doesn't give us abnormally tedious calculations.

D_x,y = (6*y^3+(-18*x^2+35*x+3)*y)*sqrt(y^4+(2*x^2+1)*y^2+x^4+x^2-6*x+9)/(y^8+(4*x^2+2)*y^6+(6*x^4+6*x^2-12*x+19)*y^4+(4*x^6+6*x^4-24*x^3+38*x^2-12*x+18)*y^2+x^8+2*x^6-12*x^5+19*x^4-12*x^3+54*x^2-108*x+81)

Then I find all of the roots, and there should be one minimum?
 
I don't see the complication, if your point is a min/max of D it will also be min/max of D^2 so now let's say

\bar{D} = D^{2} = (x-3)^{2} + y^{2} + (x^{2} + y^{2})^{2}

So now differentiate and you get

\bar{D}_{x} = 2(x-3) + 4x(x^2 + y^2); \bar{D}_{y} = 2y + 4y(x^2 + y^2)

Each one must equal 0 therefore x^2 + y^2 = \frac{3-x}{2x} and x^2 + y^2 = -\frac{1}{2} (provided y <> 0 remember to treat this case separately)

Can you proceed from here?
 
  • #10
AH! I understand now. I don't know what I was trying to do by trying to find D_x_y.

Thanks for explaining.
 
  • #11
You will need D_{xy} or my \bar{D}_{xy} to test for min/max/saddle.
 
Back
Top