Exercise 11.2 · Q13: Shortest distance between two lines in Cartesian form
Find the shortest distance between the lines
and
The first line passes through with direction ratios ; the second through with direction ratios . So
,
,
The shortest distance is
The shortest distance is units.
Want the reason behind every step, the basics and the checks?
A line in Cartesian form gives the same two things as the vector form: a point (from the numerators) and a direction (from the denominators). So write and use the skew-lines formula: the shortest distance is the length of the projection of the joining vector on the common perpendicular direction .
- Given
- : ; : .
- To find
- The shortest distance between and .
- Plan
- (1) Read points and directions, and write them as vectors. (2) Find . (3) Find . (4) Its length. (5) The dot product. (6) The formula. (7) Check with the Cartesian formula. (8) See why the given points are the closest points.
Basics you need
passes through and is parallel to (Section 11.3.1). Basics: a line is a point plus a direction
For and (Section 11.5.1):
is perpendicular to both and (Section 10.6.3). Basics: the cross product
The projection of on the direction of has length (Section 10.6.2). Basics: the shadow on the gap direction
Solution
Points and directions as vectors
passes through ; passes through . So
Each numerator is , so every coordinate of is . The denominators, with their signs, are the direction ratios, and direction ratios give the direction vector .Cartesian equation (3) and the Remark of Section 11.3.1. Basics: point plus directionThe joining vector
This is . Subtracting adds 1 to each coordinate of .Vector joining two points (Section 10.5.2). Basics: points in spaceThe cross product
Expand along the top row, with a minus sign on the term. Check: and , so it is perpendicular to both lines. It is not , so the lines are not parallel.Determinant form of the cross product (Section 10.6.3). Basics: a⃗ × b⃗ stands up from bothIts length
and ; 29 is prime, so does not simplify further.Length of a vector. Basics: Pythagoras in 3DThe dot product
Multiply matching components and add. Notice that is exactly ; Step 8 explains what that means.Put it into the formula
Cancel 2, then rationalise: , and . The modulus makes the distance positive. As in the other shortest-distance questions, note that the final formula for on page 387 of the book (set in bold) prints where is meant.Section 11.5.1, shortest distance between skew lines. Lesson: the shortest distanceCheck with the Cartesian formula
Section 11.5.1 also gives the distance directly from the Cartesian data, as a determinant over a square root. The determinant has rows , then , then :
and the square root is . So again.
The determinant is the same number as the dot product of Step 5 (a scalar triple product), and the three brackets under the root are the components of from Step 3. So the Cartesian formula is the vector formula written out in coordinates. Expanding along the first row: .Cartesian form of the shortest distance, Section 11.5.1. Lesson: the shortest distanceWhy the given points are the closest points
is perpendicular to both lines:
So itself is the common perpendicular, and .
Oblique projection, not to scale (lengths and right angles are not shown true). through and through . Here the segment is itself perpendicular to both lines, so and are the closest points and . In general the feet , of the common perpendicular are found from ; here those equations are solved by , that is and . That is why the formula gave exactly: the projection of on its own direction is its full length. The book chose the points so that this happens.The line of shortest distance is perpendicular to both lines (Section 11.5). Lesson: skew lines
The shortest distance between the lines is units (); it is the length of , from to .
(Textbook answer: .)
, so . Also and .
- Reading the points as from , , . The point is .
- Losing the minus signs of the denominators and : the cross product then comes out wrong.
- Stopping at without simplifying. It is correct, but it equals , the expected form.
- Using from the misprinted final formula for on page 387 (set in bold) instead of .
- For lines in Cartesian form, read a point and a direction from each, then use the same formula as for vector form.
- The Cartesian determinant formula and the vector formula are the same computation.
- If is parallel to , the given points are the closest points and .
Every fact used, and where it comes from
| Fact | Used in | Source |
|---|---|---|
| Point and direction vector from the Cartesian form | Step 1 | Section 11.3.1, equation (3) and Remark (Basics) |
| Vector joining two points | Step 2 | Section 10.5.2 |
| Cross product as a determinant; perpendicular to both vectors | Step 3 | Section 10.6.3 (Basics) |
| ; the final formula for on p. 387 (set in bold) misprints as | Steps 4 to 6 | Section 11.5.1 (Lesson) |
| Cartesian form of the shortest distance | Step 7 | Section 11.5.1, Cartesian form |
| Dot product in components | Steps 3, 5, 8 | Section 10.6.1 (Basics) |
| Shortest segment is perpendicular to both lines | Step 8 | Section 11.5 (Lesson) |
Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →