Proving 3D vector distance between point and line

811 Views Asked by At

I've been going through previous exams as I'm approaching my midterms and I've encountered a question I don't quite understand how to solve.

Let C be a point from $R^3$ not on the line L defined by points B and A. Prove the distance d from point C to the line L is given by $$ d = \frac{|BA\times BC|}{|BA|} $$

I understand that the magnitude of a cross product produces a parallelogram and that if you divide out the vector BA I'll have $d = BA\sin\theta$ , which is also going to be the distance between the line and the point.

I've been trying to solve it via dot product + Pythagoras such as $d = \sqrt{|BA|^2-proj_{BC}BA^2}$ but it doesn't seem to be giving the same result for the same vectors as the first equation. Shouldn't these two equations give the same result?

2

There are 2 best solutions below

1
On

They do give the same result: $|\mathrm{proj}_{BC}(BA)|$ is just $\dfrac{BC\cdot BA}{|BC|}$, which is $\dfrac{|BC||BA|\cos\theta}{|BC|}$ $= |BA|\cos\theta$. Now $$\sqrt{|BA|^2 - |\mathrm{proj}_{BC}(BA)|^2} = \sqrt{|BA|^2 - |BA|^2 \cos^2\theta} = \sqrt{|BA|^2\sin^2\theta} = |BA|\sin \theta$$ as required.

0
On

What is the area of the triangle $\overset{\bigtriangleup}{ABC}$ with height $d$ drawn from $C$ ?

$$\mbox{(Area)} = \frac{1}{2} | BA | d $$

What is the area spanned by two vectors $\vec{u}$ and $\vec{v}$?

$$\mbox{(Area)} = \frac{1}{2} | \vec{u} \times \vec{v} | $$

Combine the two above with $\vec{u}= BA$ and $\vec{v} = BC$

$$ \boxed{d = \frac{ | BA \times BC | }{| BA |} } $$