- 1. Which way does a line point? Direction cosines
- 2. Direction ratios: the same direction in friendlier numbers
- 3. Direction cosines of a line through two points
- 4. The equation of a line: one point and one direction
- 5. A line through two points, and reading any line's equation
- 6. The angle between two lines
- 7. Lines that never meet and are not parallel: skew lines
- 8. The shortest distance between two skew lines
- 9. The distance between parallel lines, and a word on planes
- Review
5 of 9·NCERT §11.3·5 min
A line through two points, and reading any line's equation
The big ideaTwo points A and B give a line whose direction is \( \vec{b} - \vec{a} \), so its equation is \( \vec{r} = \vec{a} + \lambda(\vec{b} - \vec{a}) \); and any line's equation can be read back as "a point plus a direction".
In simple words
Two nails in a wall, and a tight string between them. The string has to go from the first nail towards the second, so the step "from nail one to nail two" is the direction. Start at the first nail, take any number of those steps, and you stay on the string.
The line through two points
Let A and B have position vectors \( \vec{a} \) and \( \vec{b} \). The arrow \( \overrightarrow{AB} = \vec{b} - \vec{a} \) lies along the line. So the line is "through A, parallel to \( \vec{b} - \vec{a} \)", which the last page already solved:
\[ \vec{r} = \vec{a} + \lambda(\vec{b} - \vec{a}) \]\( \lambda = 0 \) gives A, \( \lambda = 1 \) gives B, and \( \lambda = \frac{1}{2} \) gives the midpoint. Values between 0 and 1 are the points between A and B.
In coordinates, with \( A(x_1, y_1, z_1) \) and \( B(x_2, y_2, z_2) \), the d.r.'s are the differences, and
\[ \frac{x - x_1}{x_2 - x_1} = \frac{y - y_1}{y_2 - y_1} = \frac{z - z_1}{z_2 - z_1} \]Try it: three equations look alike. Guess which one really goes through both points, then test each.
Both cases side by side
| The line | Vector form | Cartesian form |
|---|---|---|
| Through a point \( A(x_1, y_1, z_1) \), parallel to \( \vec{b} = a\hat{i} + b\hat{j} + c\hat{k} \) | \( \vec{r} = \vec{a} + \lambda\vec{b} \) | \( \dfrac{x - x_1}{a} = \dfrac{y - y_1}{b} = \dfrac{z - z_1}{c} \) |
| Through two points \( A(x_1, y_1, z_1) \) and \( B(x_2, y_2, z_2) \) | \( \vec{r} = \vec{a} + \lambda(\vec{b} - \vec{a}) \) | \( \dfrac{x - x_1}{x_2 - x_1} = \dfrac{y - y_1}{y_2 - y_1} = \dfrac{z - z_1}{z_2 - z_1} \) |
| Through a point, with direction cosines \( l, m, n \) | \( \vec{r} = \vec{a} + \lambda(l\hat{i} + m\hat{j} + n\hat{k}) \) | \( \dfrac{x - x_1}{l} = \dfrac{y - y_1}{m} = \dfrac{z - z_1}{n} \) |
Worked example 1
Find the line through \( A(1, 2, -1) \) and \( B(3, -1, 4) \).
- Direction: \( \vec{b} - \vec{a} = 2\hat{i} - 3\hat{j} + 5\hat{k} \).
- Vector form: \( \vec{r} = \hat{i} + 2\hat{j} - \hat{k} + \lambda(2\hat{i} - 3\hat{j} + 5\hat{k}) \).
- Cartesian form: \( \frac{x - 1}{2} = \frac{y - 2}{-3} = \frac{z + 1}{5} \).
- Check: \( \lambda = 1 \) gives \( (3, -1, 4) \), which is B.
Worked example 2: where does it cross the floor?
A straight wire runs from \( (2, -1, 3) \) to \( (4, 3, -1) \). Where does it pass through the XY-plane (the floor, \( z = 0 \))?
- Direction \( 2, 4, -4 \); any point is \( (2 + 2\lambda, \; -1 + 4\lambda, \; 3 - 4\lambda) \).
- \( z = 0 \) when \( 3 - 4\lambda = 0 \), so \( \lambda = \frac{3}{4} \).
- Point: \( \left(2 + \frac{3}{2}, \; -1 + 3, \; 0\right) = \left(\frac{7}{2}, 2, 0\right) \).
Reading a Cartesian equation
Before you read off the point and the direction, the equation must be in the standard form: each top is "letter minus number", with the letter's coefficient 1.
Worked example 3: tidy it first
\( \frac{1 - x}{2} = \frac{2y + 4}{6} = \frac{z}{3} \).
- \( \frac{1 - x}{2} = \frac{x - 1}{-2} \): move the minus sign down.
- \( \frac{2y + 4}{6} = \frac{y + 2}{3} \): divide top and bottom by 2.
- Standard form \( \frac{x - 1}{-2} = \frac{y + 2}{3} = \frac{z - 0}{3} \): point \( (1, -2, 0) \), d.r.'s \( -2, 3, 3 \).
- Vector form: \( \vec{r} = \hat{i} - 2\hat{j} + \lambda(-2\hat{i} + 3\hat{j} + 3\hat{k}) \).
Try it: change any number in a messy equation and watch the tidy form, the point and the direction follow.
When a direction ratio is zero
The line through \( (2, 3, 4) \) parallel to the z-axis is \( \vec{r} = 2\hat{i} + 3\hat{j} + 4\hat{k} + \lambda\hat{k} \). Its Cartesian form is written \( \frac{x - 2}{0} = \frac{y - 3}{0} = \frac{z - 4}{1} \). Nobody is dividing by zero here: a 0 underneath is shorthand for "this coordinate never changes", so the line is \( x = 2, \; y = 3 \), with z free. The x-axis itself is \( \vec{r} = \lambda\hat{i} \), or \( y = 0, \; z = 0 \).
Don't mix these up
- The two-point vector form uses \( \vec{b} - \vec{a} \), not \( \vec{b} \). \( \vec{r} = \vec{a} + \lambda\vec{b} \) would go through A in the direction of B's position vector, which is usually a different line.
- \( \frac{2x - 1}{4} \) is not "point \( x = 1 \), ratio 4". Rewrite it as \( \frac{x - \frac{1}{2}}{2} \): point \( x_1 = \frac{1}{2} \), ratio 2.
- Standard form
- \( \frac{x - x_1}{a} = \frac{y - y_1}{b} = \frac{z - z_1}{c} \), each letter with coefficient 1.
- Midpoint
- The point halfway between A and B: \( \lambda = \frac{1}{2} \).
- XY-plane
- The flat sheet holding the x and y-axes, where \( z = 0 \).
- Coefficient
- The number multiplying a letter: in \( 2y \), it is 2.
Words to know
What is the vector equation of the line through \( (0, 1, 2) \) and \( (3, 1, -1) \)?
- \( \vec{r} = \hat{j} + 2\hat{k} + \lambda(3\hat{i} + \hat{j} - \hat{k}) \)
- \( \vec{r} = \hat{j} + 2\hat{k} + \lambda(3\hat{i} - 3\hat{k}) \)
- \( \vec{r} = \hat{j} + 2\hat{k} + \lambda(3\hat{i} + 2\hat{j} - 3\hat{k}) \)
What are direction ratios of \( \frac{x + 1}{3} = \frac{4 - y}{2} = \frac{2z - 1}{4} \)?
- \( 3, 2, 4 \)
- \( 3, -2, 2 \)
- \( 3, -2, 4 \)
A line has d.r.'s \( 0, 0, 1 \) and passes through \( (2, -3, 5) \). Which describes it?
- \( x = 2, y = -3 \), parallel to the z-axis
- It lies in the XY-plane
- It does not exist, because you cannot divide by 0
Picture and video credits