Opening your learning space
Starting the app …
Opening your learning space
Starting the app …
The distance of a point from a line in space is the length of the perpendicular; the cross product formula yields it in one step.
Free to browse · flashcards or a multiple-choice quiz · import from Essential
Formula
Coordinates and d(Q;g) in length units (LU)
| Symbol | Meaning | Unit |
|---|---|---|
| q⃗ | Position vector of the point Q | length units |
| p⃗ | Support vector of the line g | length units |
| u⃗ | Direction vector of the line g | dimensionless |
| d(Q;g) | Distance (length of the perpendicular from Q to g) | length units |
d(Q;g) = \frac{|(\vec{q} - \vec{p}) \times \vec{u}|}{|\vec{u}|}Original schematic by Quanta
Free with a Quanta account. Your download stays ready after registration.
Geometric interpretation: is the area of the parallelogram spanned by and ; divided by the base its height remains, which is exactly the distance. Alternatively the perpendicular-foot method with additionally yields the foot point F; then . Both routes lead to the same result.
Holds for lines in parametric form in space (u⃗ ≠ 0⃗). In the plane one uses the 2D variant via the perpendicular or the HNF of the line; skew lines have their own formula.
Parallelogram area divided by the base gives the height, i.e. the distance.
Perpendicular foot parameter
⃗ ⃗ is the foot point; ⃗| as an alternative.
Distance in the plane (2D)
HNF of the line equation ax + by = c.
Skew lines
Generalization with both direction vectors u⃗ and v⃗.
g passes through the origin with u⃗ = (1|2|2). What is the distance of Q(3|0|0)?
q⃗ − p⃗ = (3|0|0).
Cross product with u⃗: (0|−6|6), magnitude . |u⃗.
.
g: x⃗ = (1|1|0) + t·(1|0|1), Q(2|1|3): determine the foot point and the distance.
, so F(3|1|2).
QF⃗ = (1|0|−1), .
Check with cross product: , divided by |u⃗ gives ✓.
Using the position vector q⃗ instead of the difference q⃗ − p⃗.
The formula needs the connection vector from the support point to Q.
Confusing cross and dot product.
The numerator is the magnitude of a vector (cross product), not a scalar from the dot product.
Forgetting to divide by |u⃗|.
Without the division the parallelogram area remains instead of the height.
Formula cluster
With HNF (point-plane) and the magnitude formula it forms the distance toolbox of vector geometry.
and : , cross product with magnitude . . Distance .
Distance tasks in final exams, shortest distance to flight paths and cables, tolerance checks in CAD systems, precursor for the distance of skew lines
Here is how to work through a typical Distance Point-Line (d(Q;g) = |(q⃗−p⃗)×u⃗| / |u⃗|) task step by step:
Task
g passes through the origin with u⃗ = (1|2|2). What is the distance of Q(3|0|0)?
Solution path
q⃗ − p⃗ = (3|0|0).
Cross product with u⃗: (0|−6|6), magnitude . |u⃗.
.
Task
g: x⃗ = (1|1|0) + t·(1|0|1), Q(2|1|3): determine the foot point and the distance.
Solution path
, so F(3|1|2).
QF⃗ = (1|0|−1), .
Check with cross product: , divided by |u⃗ gives ✓.
Fastest with the cross product formula d = |(q⃗ − p⃗) × u⃗⃗|. Procedure: form the connection vector from the support point of the line to the point, compute the cross product with the direction vector, divide its magnitude by |u⃗|. Example: g: x⃗ = (1|0|2) + t·(2|1|2) and Q(3|4|2): q⃗ − p⃗ = (2|4|0), cross product (8|−4|−6), magnitude ; divided by |u⃗ gives . The formula automatically measures the shortest, i.e. perpendicular distance. Important: use (q⃗ − p⃗), not the position vector q⃗ alone, and do not forget the final division.
You look for the point F on the line where the perpendicular from Q lands. Ansatz: ⃗ ⃗, and the vector QF⃗ must be perpendicular to u⃗, i.e. QF⃗·u⃗ = 0. Solving yields t = (q⃗ − p⃗)·u⃗/(u⃗·u⃗). Example: g: x⃗ = (1|1|0) + t·(1|0|1) and Q(2|1|3): , so F(3|1|2) and ⃗. The added value over the cross product formula: you obtain the foot point F itself and can continue working with it, e.g. construct the reflected point Q′ = Q + 2·QF⃗.
Ask yourself what the task really requires. If only the distance number is required, the cross product formula is the shortest route: one cross product, two magnitudes, one division, done. If instead you need the foot point itself, a reflected point, the contact point of a perpendicular or a justification via orthogonality, there is no way around the foot point method; it delivers F and the distance at once. In exams the combination is also strong: compute with the foot point and check with the cross product formula in one line (or vice versa). Both methods must give exactly the same value; deviations immediately reveal a calculation error.
In the plane there is the Hesse normal form of the line: for g: ax + by = c and the point Q(q1|q2), . Example: g: and Q(5|5): . If the line is given as , first bring it into the form . The cross product is not available in 2D (it needs three dimensions); alternatively the foot point method works with the normal slope . The 2D formula is the exact counterpart of the point-plane formula in space, just with two instead of three coordinates.
Skew lines do not intersect and are not parallel; their distance is the length of the common perpendicular. The formula uses both direction vectors: d = |(q⃗ − p⃗)·(u⃗ × v⃗)|/|u⃗ × v⃗|, where p⃗ and q⃗ are the support vectors. The difference from the point-line formula: instead of the magnitude of a cross product, the numerator holds a scalar triple product, i.e. the projection of the connection vector onto the common normal direction u⃗ × v⃗. If the lines are parallel (u⃗ × v⃗ = 0⃗), this formula fails; then you pick a point of one line and compute point-line as usual. So first check the relative position, then the matching formula.
Quanta exam set
Curated exam set for "Distance Point-Line":
Question (front)
Which formula describes Distance Point-Line?
Answer in your set
Question (front)
How do you rearrange Distance Point-Line for Perpendicular foot parameter?
Answer in your set
Question (front)
Which common mistake happens with Distance Point-Line?
Answer in your set
+ 7 more cards: units, variables, derivation, example, exam task
The formula set contains 10 cards. After importing, review them and start practicing; your ratings determine later review intervals.
This list names subject references and further reading. A page or section number appears when it is part of the reference; these are not verbatim quotations.
Create a curated FSRS exam set for d(Q;g) = |(q⃗−p⃗)×u⃗| / |u⃗|: formula recall, variables, derivation, rearrangement, worked example, common mistakes and exam context.
Curated formula set · LaTeX · FSRS spaced repetition · import from Essential