Distance from point to a line proof

In summary, the author is trying to solve the equation D(P0,L) for the point P0 on the line L. They are having trouble with the constant term in the equation and are wondering if there is a way to deal with it. They are also curious about why the equation was given to them in general form.
  • #1
train449
15
0
I couldn't find a Linear Algebra section in the Homework forum. I think you can do this without cal... (I hope, but it's been a long day so you never know)

I am asked to prove that the shortest distance from a point P0(x0,y0) to a given line ax+by+c=0 is |ax0+by0+c|/sqrt(a2+b2)



Homework Equations



D(P0, L) ; standard inner product, projection of a vector onto a subspace, orthogonal composition of a vector

The Attempt at a Solution



Seeing as it's a linear algebra class I figured I should probably use some linear algebra methods. (Work attached, summary below)

However I'm still not sure how to deal with the constant term in the line equation.
I tried neglecting the C and having a subspace W: ax + by =0 : span (-b, a). I then drew a vector x = (x0,y0) and from these two I generated an equation for y
y = x - projWx. Then ||y|| is my D(P0,L)

However, I ran into an issue solving for ||y||. I could separate ||y-x|| which gives rise to an inequality but then I'm left with a nasty ||x||||w|| term in my absolute value bracket when I try and put all the terms over sqrt(a2+b2). I'd like that to equal c but that's wishful thinking.

Any help is greatly appreciated.
 

Attachments

  • Photo 5.jpg
    Photo 5.jpg
    19.1 KB · Views: 539
Physics news on Phys.org
  • #2
If this is the full statement of the problem, then I think you are not being asked to prove that the minimum distance from a line to an external point is the perpendicular distance. In that case, we can exploit this property: pick a point on the line P(x,y) = ( x, -(a/b)x-(c/b) ) ; find a vector from P to P0 and a vector along the direction of the line ; determine the value of x which makes the scalar product of these vectors zero . We now have the coordinates of the point on the line closest to P0 and can compute the distance to that external point.
 
  • #3
dynamicsolo said:
P(x,y) = ( x, -(a/b)x-(c/b) )

genius.

pick a point on the line P(x,y) = ( x, -(a/b)x-(c/b) ) ; find a vector from P to P0 and a vector along the direction of the line ; determine the value of x which makes the scalar product of these vectors zero

So if I can assume that the shortest distance is along a perpendicular line, is it as simple as showing that for y in W, setting <x,y> = 0 will find x the smallest vector from P to P0?
 
  • #4
It works! Thank you.
 
  • #5
One could also take the approach of finding a vector from P0 to the line which has a "slope" which is the negative reciprocal of the slope of the line, locate the intersection point on the line, and calculate the distance. But I figured the first way I described would be more "vector algebra-flavored"...
 
  • #6
Indeed. Interesting flavor it is. I'm still a little curious about Ax+By+C=0. I was trying to find anything about the formula that would lend itself to the problem, i.e. why they gave me the line in general form. From what I remember from grade 10, it made calculating D(P,L) fairly easy. I was looking for the linear algebra "flavor" in the process.
 
Last edited:
  • #7
The different forms of the equation for a line have various virtues and limitations. The "general form" is convenient because it is easy to immediately find both intercepts and (as you've just shown) we can read off the closest approach it makes to the origin as [tex] \frac{c}{\sqrt{a^{2} + b^{2}}} . [/tex] (This result, incidentally, generalizes to higher dimensions, for equations of planes in [tex]R^{3} ,[/tex] and so forth.)

The point-slope and slope-intercept forms do have their uses where they can be more convenient than the general form, so I always show students all three.
 
  • #8
Very cool. Thank you.
 

1. How do you calculate the distance from a point to a line?

The distance from a point to a line can be calculated using the formula d = |ax + by + c| / √(a^2 + b^2), where (x,y) is the coordinates of the point, and a, b, and c are the coefficients of the line's equation in the form ax + by + c = 0.

2. What is the intuition behind the distance from a point to a line formula?

The formula for calculating the distance from a point to a line is based on the concept of perpendicular distance. It finds the shortest distance from the given point to the line by dropping a perpendicular line from the point to the line. The length of this perpendicular line is the distance from the point to the line.

3. Can the distance from a point to a line be negative?

No, the distance from a point to a line cannot be negative. It is always a positive value, as it represents the length of a line segment and cannot be less than 0.

4. How can the distance from a point to a line be used in real-world applications?

The distance from a point to a line is a useful concept in various fields, including engineering, physics, and geometry. It can be used to determine the shortest distance between a point and a line segment, which is essential in calculating trajectories, distances between objects, and determining the position of objects in space.

5. Can the distance from a point to a line be calculated for any type of line?

Yes, the distance from a point to a line can be calculated for any type of line, including horizontal, vertical, and slanted lines. The formula remains the same, but the values of a, b, and c will differ based on the equation of the line.

Similar threads

  • Precalculus Mathematics Homework Help
Replies
17
Views
965
  • Precalculus Mathematics Homework Help
Replies
7
Views
861
  • Precalculus Mathematics Homework Help
Replies
7
Views
589
  • Precalculus Mathematics Homework Help
Replies
2
Views
886
  • Precalculus Mathematics Homework Help
Replies
8
Views
2K
  • Precalculus Mathematics Homework Help
Replies
19
Views
1K
  • Precalculus Mathematics Homework Help
Replies
10
Views
2K
  • Precalculus Mathematics Homework Help
Replies
3
Views
1K
  • Precalculus Mathematics Homework Help
Replies
2
Views
1K
  • Precalculus Mathematics Homework Help
Replies
6
Views
2K
Back
Top