Distances in Space
Core Titles
Key headlines and terms for quick recall- Distance between two points:
- Point to plane:
- Point to line:
- Distance between parallel lines / parallel planes
- Skew lines — shortest distance via
Basic Idea
What it is, why it matters, how it worksTwo-point distance
Point to plane
For plane and point : Idea: project (where is any point on the plane) onto the normal .
Point to line
Line through with direction . For point : Idea: the cross product's magnitude is the area of the parallelogram with sides and ; dividing by gives the perpendicular height.
Two parallel planes
Take the constant difference; for and :
Skew lines (non-parallel, non-intersecting)
For lines and : Idea: is perpendicular to both lines, so the projection of the joining vector onto this normal is the shortest distance.
Why this matters in Data Science
Distance-to-hyperplane is central to SVM margin and any classification confidence measure. Anomaly detection often computes distance to subspaces.
Mind Map
Visual structure of the conceptDISTANCES IN SPACE
├── Point ↔ Point: √Σ(xᵢ − yᵢ)²
├── Point ↔ Plane: |ax₀+by₀+cz₀+d| / √(a²+b²+c²)
├── Point ↔ Line: ‖AP × d‖ / ‖d‖
├── Parallel planes: |d₁ − d₂| / ‖n‖
└── Skew lines: |(r₂−r₁)·(d₁×d₂)| / ‖d₁×d₂‖
Exam Q&A
Part A (2 marks) and Part B (20 marks) style questionsPart A (2 marks each)
Q1. Distance between points and . .
Q2. Write the formula for distance from point to plane. .
Q3. Find the distance from to the plane . .
Q4. What are skew lines? Two lines in 3D that are neither parallel nor intersecting.
Part B (20 marks)
Q. Derive the formula for the perpendicular distance from a point to a plane. Find the shortest distance between the skew lines and . (Note: the two lines are parallel — adjust the example.)
We treat the second line as so that the lines are truly skew.
Point-to-plane distance — derivation.
Let the plane be , with normal . Let and let be the foot of perpendicular from on .
Then for some scalar , so . Since lies on :
The perpendicular distance is
Shortest distance between skew lines.
Lines: , . , .
Step 1 — . .
Magnitude: .
Step 2 — Joining vector. .
Step 3 — Dot with . .
Step 4 — Shortest distance.