Worked solution
Find point-to-line distance with cross product and projection
The points A,B,P have position vectors , and , respectively. Find the perpendicular distance from P to the line through A and B.
CJC · Lecture · Example 24
Find the two displacements and a unit line direction
Let F be the perpendicular foot. and . Since , a unit direction is .
Method 1: expand the cross product before taking its magnitude
. The Teacher completion expands the cross product as
Therefore .
Method 2: find the projection length and use Pythagoras
The nonnegative projection length is . Also . Thus . The signed projection is negative; its magnitude gives AF, but its sign puts F before A along AB. In fact F=(0,0,2), as in Example 23. This is distance to the infinite line: F need not lie on segment AB.
Compare your sketch
Expand diagramFit diagram to page
Use the scrollbars or arrow keys to inspect details.
Common mistakes
Normalise AB for either distance formula. The source Teacher sketch shows A,F,B, but these coordinates give F,A,B. Keep the absolute value for projection length and use the infinite line, not only segment AB.
Solution notes
The Teacher-only determinant expansion is integrated into Method 1. Its A,F,B schematic is corrected and explicitly qualified; the numerical answers in both copies agree.