- 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
3 of 9·NCERT §11.2.1·5 min
Direction cosines of a line through two points
The big ideaFor the line through \( P(x_1, y_1, z_1) \) and \( Q(x_2, y_2, z_2) \), the differences \( x_2 - x_1, y_2 - y_1, z_2 - z_1 \) are direction ratios, and dividing them by the length PQ gives the direction cosines.
In simple words
A kite string runs from your hand to the kite. To know which way it points, ask three questions: how far east did the kite get, how far north, and how high? Those three answers already point along the string. Divide each by the length of the string and you get the three leans from the last page.
Why the differences work
Through two different points there is exactly one line. Let PQ make angles \( \alpha, \beta, \gamma \) with the x, y and z-axes. Drop perpendiculars from P and Q to the XY-plane, meeting it at R and S. Then from P draw PN perpendicular to the vertical line QS, meeting it at N.
PN is level and QN is vertical, so triangle PNQ has a right angle at N. QN is parallel to the z-axis, so the angle at Q between QP and QN is \( \gamma \), and in the right triangle
\[ \cos\gamma = \frac{NQ}{PQ} = \frac{z_2 - z_1}{PQ} \]The same argument with the other axes gives \( \cos\alpha \) and \( \cos\beta \).
Line through P(x₁, y₁, z₁) and Q(x₂, y₂, z₂)
- Direction ratios: \( x_2 - x_1, \; y_2 - y_1, \; z_2 - z_1 \) (or all three negatives, \( x_1 - x_2, \dots \)).
- Direction cosines: \( \dfrac{x_2 - x_1}{PQ}, \; \dfrac{y_2 - y_1}{PQ}, \; \dfrac{z_2 - z_1}{PQ} \),
- where \( PQ = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2 + (z_2 - z_1)^2} \).
In vector words: \( \overrightarrow{PQ} = (x_2 - x_1)\hat{i} + (y_2 - y_1)\hat{j} + (z_2 - z_1)\hat{k} \), and the direction cosines are the components of the unit vector \( \frac{\overrightarrow{PQ}}{|\overrightarrow{PQ}|} \).
Worked examples
Worked example 1
Find the direction cosines of the line through \( P(1, 2, 3) \) and \( Q(3, 5, 9) \).
- Differences: \( 3 - 1 = 2 \), \( 5 - 2 = 3 \), \( 9 - 3 = 6 \). These are direction ratios.
- \( PQ = \sqrt{4 + 9 + 36} = 7 \).
- Direction cosines (directed from P to Q): \( \frac{2}{7}, \frac{3}{7}, \frac{6}{7} \).
Worked example 2: negative numbers
Find the direction cosines of the line from \( A(-1, 4, 2) \) to \( B(1, 0, 6) \).
- Differences: \( 1 - (-1) = 2 \), \( 0 - 4 = -4 \), \( 6 - 2 = 4 \).
- \( AB = \sqrt{4 + 16 + 16} = 6 \).
- \( l, m, n = \frac{2}{6}, -\frac{4}{6}, \frac{4}{6} = \frac{1}{3}, -\frac{2}{3}, \frac{2}{3} \).
Testing three points for a straight line
Three points A, B, C are collinear (on one straight line) when the d.r.'s of AB and of BC are proportional. Proportional d.r.'s mean AB is parallel to BC; they also share the point B, so they must lie along one and the same line.
Worked example 3
Are \( A(1, -1, 2) \), \( B(3, 2, 1) \) and \( C(7, 8, -1) \) collinear?
- d.r.'s of AB: \( 2, 3, -1 \).
- d.r.'s of BC: \( 4, 6, -2 \), which is exactly 2 times \( 2, 3, -1 \).
- Proportional, with B in common: yes, collinear. C is twice as far from B as A is.
This test is quicker than the Class 11 one (checking whether two distances add up to the third), because it needs no square roots.
Try it: guess first, then move C until it lands on the line through A and B.
Try it. Are \( (1, 0, 1) \), \( (2, 2, 3) \) and \( (4, 5, 7) \) collinear?
Answer
Don't mix these up
- Subtract in the same order for all three coordinates: always "Q minus P", or always "P minus Q". Mixing the order breaks the direction.
- Two segments with proportional d.r.'s are parallel. They are on one line only if they also share a point.
- Collinear
- Lying on one straight line.
- Perpendicular
- Meeting at a right angle, \( 90^\circ \).
- \( \overrightarrow{PQ} \)
- The vector from P to Q: the three differences as \( \hat{i}, \hat{j}, \hat{k} \) parts.
- Foot of a perpendicular
- The point where a perpendicular dropped from a point meets a line or plane.
Words to know
What are direction ratios of the line through \( (2, -1, 5) \) and \( (4, 3, 1) \)?
- \( 2, 4, -4 \)
- \( 6, 2, 6 \)
- \( 2, 2, -4 \)
From the d.r.'s \( 2, 4, -4 \) of the line above, what are its direction cosines?
- \( 1, 2, -2 \)
- \( \frac{1}{3}, \frac{2}{3}, -\frac{2}{3} \)
- \( \frac{1}{3}, \frac{2}{3}, \frac{2}{3} \)
For A, B, C, the d.r.'s of AB are \( 1, -2, 3 \) and of BC are \( -2, 4, -6 \). What can you say?
- AB is perpendicular to BC
- A, B, C are collinear
- They cannot be collinear because of the minus sign
Picture and video credits