- 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
4 of 9·NCERT §11.3 · §11.3.1·5 min
The equation of a line: one point and one direction
The big ideaStart at a point A and walk any number of steps along a vector \( \vec{b} \): every place you can reach is on the line, so its equation is \( \vec{r} = \vec{a} + \lambda\vec{b} \).
In simple words
You stand on one tile of a long straight corridor. Your friend says, "Each step is this far forward, this far right and this far up." You may take three steps, half a step, or walk backwards two steps. Every spot you can reach that way is on one straight path, and no other spot is. So "a starting place plus a step" is all you need to describe a line.
What fixes a line in space?
A line in space is fixed exactly when you know either
- one point on it and its direction, or
- two points on it.
This page does the first case; the next page does the second.
The vector equation
Let A be a given point with position vector \( \vec{a} \) (the arrow from the origin O to A). Let the line pass through A and be parallel to a given vector \( \vec{b} \). Take any point P on the line, with position vector \( \vec{r} \).
The arrow \( \overrightarrow{AP} \) lies along the line, so it is some multiple of \( \vec{b} \): \( \overrightarrow{AP} = \lambda\vec{b} \) for some real number \( \lambda \). But \( \overrightarrow{AP} = \overrightarrow{OP} - \overrightarrow{OA} = \vec{r} - \vec{a} \). So
\[ \vec{r} = \vec{a} + \lambda\vec{b} \]This is the vector equation of the line. The number \( \lambda \) (lambda) is the parameter: each value of \( \lambda \) gives one point of the line, and every point of the line comes from some value. \( \lambda = 0 \) gives A itself.
If \( \vec{b} = a\hat{i} + b\hat{j} + c\hat{k} \), then \( a, b, c \) are direction ratios of the line. Careful: the letter b here is the \( \hat{j} \)-part of \( \vec{b} \), not its length \( |\vec{b}| \).
Try it: walk P along the line by changing \( \lambda \), and test a point that looks as if it might be on it.
From the vector form to the Cartesian form
Let A be \( (x_1, y_1, z_1) \), let the d.r.'s be \( a, b, c \), and let P be \( (x, y, z) \). Then \( \vec{r} = x\hat{i} + y\hat{j} + z\hat{k} \), \( \vec{a} = x_1\hat{i} + y_1\hat{j} + z_1\hat{k} \) and \( \vec{b} = a\hat{i} + b\hat{j} + c\hat{k} \). Put them into \( \vec{r} = \vec{a} + \lambda\vec{b} \) and match the \( \hat{i}, \hat{j}, \hat{k} \) parts:
\[ x = x_1 + \lambda a, \quad y = y_1 + \lambda b, \quad z = z_1 + \lambda c \]These are the parametric equations of the line. Each one gives \( \lambda \); set the three values of \( \lambda \) equal to remove it:
\[ \frac{x - x_1}{a} = \frac{y - y_1}{b} = \frac{z - z_1}{c} \]This is the Cartesian equation of the line. If you use direction cosines \( l, m, n \) instead, it reads \( \frac{x - x_1}{l} = \frac{y - y_1}{m} = \frac{z - z_1}{n} \).
| Line through a point, parallel to a vector | Vector form | Cartesian form |
|---|---|---|
| Given | point \( \vec{a} \), direction \( \vec{b} \) | point \( (x_1, y_1, z_1) \), d.r.'s \( a, b, c \) |
| Equation | \( \vec{r} = \vec{a} + \lambda\vec{b} \) | \( \frac{x - x_1}{a} = \frac{y - y_1}{b} = \frac{z - z_1}{c} \) |
| Any point on it | put in any value of \( \lambda \) | \( (x_1 + \lambda a, \; y_1 + \lambda b, \; z_1 + \lambda c) \) |
Worked example
Worked example
Write the vector and Cartesian equations of the line through \( (1, -2, 4) \) parallel to \( 2\hat{i} + 3\hat{j} - \hat{k} \). Then find two more points on it.
- \( \vec{a} = \hat{i} - 2\hat{j} + 4\hat{k} \), \( \vec{b} = 2\hat{i} + 3\hat{j} - \hat{k} \).
- Vector form: \( \vec{r} = \hat{i} - 2\hat{j} + 4\hat{k} + \lambda(2\hat{i} + 3\hat{j} - \hat{k}) \).
- Collect parts: \( \vec{r} = (1 + 2\lambda)\hat{i} + (-2 + 3\lambda)\hat{j} + (4 - \lambda)\hat{k} \).
- Cartesian form: \( \frac{x - 1}{2} = \frac{y + 2}{3} = \frac{z - 4}{-1} \).
- \( \lambda = 1 \) gives \( (3, 1, 3) \); \( \lambda = -1 \) gives \( (-1, -5, 5) \).
Try it. Is the point \( (7, 7, 1) \) on this line?
Answer
Don't mix these up
- In \( \vec{r} = \vec{a} + \lambda\vec{b} \), \( \vec{a} \) is a point and \( \vec{b} \) is a direction. Swapping them gives a different line.
- The same line has many vector equations: any point on it can be \( \vec{a} \), and any non-zero multiple of \( \vec{b} \) can be the direction.
- In the Cartesian form the numbers on top are taken away from x, y, z: \( y + 2 \) means \( y_1 = -2 \).
- Position vector
- The arrow from the origin to a point; for \( (x, y, z) \) it is \( x\hat{i} + y\hat{j} + z\hat{k} \).
- Parameter
- The free number \( \lambda \); each value picks out one point of the line.
- Vector equation
- \( \vec{r} = \vec{a} + \lambda\vec{b} \): a point plus any multiple of a direction.
- Parametric equations
- \( x = x_1 + \lambda a \) and the same for y and z, one coordinate at a time.
- Cartesian equation
- \( \frac{x - x_1}{a} = \frac{y - y_1}{b} = \frac{z - z_1}{c} \), the same line with \( \lambda \) removed.
Words to know
What is the Cartesian equation of \( \vec{r} = 2\hat{i} - \hat{j} + \lambda(\hat{i} + 4\hat{j} - 3\hat{k}) \)?
- \( \frac{x - 2}{1} = \frac{y + 1}{4} = \frac{z}{-3} \)
- \( \frac{x - 1}{2} = \frac{y - 4}{-1} = \frac{z + 3}{0} \)
- \( \frac{x - 2}{1} = \frac{y - 1}{4} = \frac{z}{-3} \)
Which point lies on \( \frac{x - 1}{2} = \frac{y - 3}{-1} = \frac{z + 2}{4} \)?
- \( (2, -1, 4) \)
- \( (3, 2, 2) \)
- \( (-1, -3, 2) \)
Do \( \vec{r} = \hat{i} + \lambda(2\hat{j} + 2\hat{k}) \) and \( \vec{r} = \hat{i} + 2\hat{j} + 2\hat{k} + \mu(\hat{j} + \hat{k}) \) describe the same line?
- No, the equations look different
- Yes
- No, they are parallel but separate
Picture and video credits