Distance of point to line (cross product)

Ax Ay Az|| Bx By Bz|where the x,y,z are the components of the respective axis and (i,j,k) are the standard basis in euclidean 3 space.To Find |A X B| use the norm which is basicallyd = SQRT(x^2 + y^2 + z^2) where (x,y,z) = A x BFinding |A| is the same. In summary, to find the distance between a point and a line using the cross product, you can use the formula |A x B|/|A| = |B|sin(theta), where A and B are vectors, to find the magnitude of
  • #1
quietrain
655
2

Homework Statement


hi

i was wondering how exactly one should find the distance of a point to a line using cross product

for example, the distance from A(1,2,0) to a line running through B(0,1,2) & C(3,1,1) with Y being angle between BA and BC

BC = 3,0,-1
BA = 1,1,-2

so by using cross product formula, i get |BA|sin(Y) = |BAxBC| / |BC|

The Attempt at a Solution



i tried to calculate |BAxBC| by using the determinant method and i got 0, so the length = 0 too. how come?

so how do i compute the value |BAxBC| ? if i equate to |BA||BC|sinY, wouldn't it cancel out everything in the equation?

so i tried just calculating |BA|sinY by squaring & subsituting sin2Y to (1-cos2Y) and then using the dot product rule and then squarerooting it to get the answer sqrt3.5

so what have i done wrong? is my concept wrong? which way is correct? thanks!
 
Physics news on Phys.org
  • #2
quietrain said:

Homework Statement


hi

i was wondering how exactly one should find the distance of a point to a line using cross product

for example, the distance from A(1,2,0) to a line running through B(0,1,2) & C(3,1,1) with Y being angle between BA and BC

BC = 3,0,-1
BA = 1,1,-2

so by using cross product formula, i get |BA|sin(Y) = |BAxBC| / |BC|

The Attempt at a Solution



i tried to calculate |BAxBC| by using the determinant method and i got 0, so the length = 0 too. how come?

so how do i compute the value |BAxBC| ? if i equate to |BA||BC|sinY, wouldn't it cancel out everything in the equation?

so i tried just calculating |BA|sinY by squaring & subsituting sin2Y to (1-cos2Y) and then using the dot product rule and then squarerooting it to get the answer sqrt3.5

so what have i done wrong? is my concept wrong? which way is correct? thanks!

The easiest way I can think of off the top of my head is to project the vector on to the line and then subtract the projected vector from the point vector.

So to recap:

1) Project "point-vector" on to the "line-vector"
2) Subtract result of 1) from "point-vector"
3) Calculate the distance of vector in 2 to get your distance
 
  • #3
chiro said:
The easiest way I can think of off the top of my head is to project the vector on to the line and then subtract the projected vector from the point vector.

So to recap:

1) Project "point-vector" on to the "line-vector"
2) Subtract result of 1) from "point-vector"
3) Calculate the distance of vector in 2 to get your distance

ah thank you for telling me another alternative

but i still don't understand how to use the cross product to calculate the distance, because my notes says one can use cross product to do so.
 
  • #4
quietrain said:
ah thank you for telling me another alternative

but i still don't understand how to use the cross product to calculate the distance, because my notes says one can use cross product to do so.

Think back to trigonometry. When you have the sin of the angle and the length of a side, what can you deduce about finding the other respective side?

Also remember that one side will be perpendicular since that is the shortest vector between the point and the line.
 
  • #5
chiro said:
Think back to trigonometry. When you have the sin of the angle and the length of a side, what can you deduce about finding the other respective side?

Also remember that one side will be perpendicular since that is the shortest vector between the point and the line.

i know that sin theta will give you the opposite perpendicular side, but if you see the formula that i have written on my 1st post, the formula in essence is self cancelling.
which puzzles me on how exactly should i compute |BA|sin(Y) = |BAxBC| / |BC|

"so how do i compute the value |BAxBC| ? if i equate to |BA||BC|sinY, wouldn't it cancel out everything in the equation?"
 
  • #6
quietrain said:
i know that sin theta will give you the opposite perpendicular side, but if you see the formula that i have written on my 1st post, the formula in essence is self cancelling.
which puzzles me on how exactly should i compute |BA|sin(Y) = |BAxBC| / |BC|

"so how do i compute the value |BAxBC| ? if i equate to |BA||BC|sinY, wouldn't it cancel out everything in the equation?"

What you are doing is correct:

The definition of A x B (A and B are vectors) is

A x B = |A||B|sin(theta)N where N is the normal vector.

Based on this we can calculate |A X B| as

|A x B| = |A||B|sin(theta)|N| = |A||B|sin(theta) x 1 = |A||B|sin(theta)

Dividing by |A| you get

|A X B|/|A| = |B|sin(theta)

which is what you want.
 
  • #7
chiro said:
What you are doing is correct:

The definition of A x B (A and B are vectors) is

A x B = |A||B|sin(theta)N where N is the normal vector.

Based on this we can calculate |A X B| as

|A x B| = |A||B|sin(theta)|N| = |A||B|sin(theta) x 1 = |A||B|sin(theta)

Dividing by |A| you get

|A X B|/|A| = |B|sin(theta)

which is what you want.

oh so i just use the determinant formula to get |A X B| and then find the magnitude and then divide by the magnitude of |A|?
 
  • #8
quietrain said:
oh so i just use the determinant formula to get |A X B| and then find the magnitude and then divide by the magnitude of |A|?

To find A x B you use the determinant

| i j k |
| Ax Ay Az|
| Bx By Bz|

where the x,y,z are the components of the respective axis and (i,j,k) are the standard basis in euclidean 3 space.

To Find |A X B| use the norm which is basically

d = SQRT(x^2 + y^2 + z^2) where (x,y,z) = A x B

Finding |A| is the same.
 
  • #9
chiro said:
To find A x B you use the determinant

| i j k |
| Ax Ay Az|
| Bx By Bz|

where the x,y,z are the components of the respective axis and (i,j,k) are the standard basis in euclidean 3 space.

To Find |A X B| use the norm which is basically

d = SQRT(x^2 + y^2 + z^2) where (x,y,z) = A x B

Finding |A| is the same.

ah i see thanks!
 

1. What is the formula for finding the distance of a point to a line using cross product?

The formula for finding the distance of a point to a line using cross product is:

d = |(p-q) x n| / |n|

Where p is the point, q is any point on the line, and n is the normal vector of the line.

2. How does the cross product method differ from the perpendicular distance method?

The cross product method uses the concept of vectors and their cross product to calculate the shortest distance between a point and a line. The perpendicular distance method, on the other hand, uses basic geometry and trigonometry to find the distance between a point and a line.

3. Can the cross product method be used to find the distance between a point and a plane?

Yes, the cross product method can also be used to find the distance between a point and a plane. The formula is similar, but instead of a line's normal vector, the plane's normal vector is used.

4. What is the significance of the cross product in finding the distance of a point to a line?

The cross product is used to find the shortest distance between a point and a line because it gives the perpendicular distance between the point and the line. This is helpful in a variety of applications, such as determining the distance between a point and a road or a point and an electric line.

5. Can the cross product method be used in three-dimensional space?

Yes, the cross product method can be used in three-dimensional space to find the distance between a point and a line. The formula remains the same, but the vectors and their components are in three dimensions instead of two.

Similar threads

  • Precalculus Mathematics Homework Help
Replies
7
Views
606
  • Precalculus Mathematics Homework Help
Replies
13
Views
197
  • Precalculus Mathematics Homework Help
Replies
8
Views
2K
Replies
8
Views
824
  • Precalculus Mathematics Homework Help
Replies
6
Views
2K
  • Precalculus Mathematics Homework Help
Replies
2
Views
1K
  • Precalculus Mathematics Homework Help
Replies
20
Views
2K
  • Precalculus Mathematics Homework Help
Replies
6
Views
2K
  • Calculus and Beyond Homework Help
Replies
4
Views
994
  • Precalculus Mathematics Homework Help
Replies
4
Views
3K
Back
Top