girgit.org

Three Dimensional Geometry

Review: Three Dimensional Geometry

The chapter in one lineA line in space is a point plus a direction, \( \vec{r} = \vec{a} + \lambda\vec{b} \); the dot product of directions gives the angle between two lines, and the cross product gives the gap between lines that never meet.

Summary

Read the summary · 11 points
  1. The direction cosines \( l, m, n \) of a directed line are the cosines of the angles \( \alpha, \beta, \gamma \) it makes with the positive x, y and z-axes. Reversing the line changes all three signs; parallel lines share direction cosines.
  2. For every line, \( l^2 + m^2 + n^2 = 1 \), because \( l\hat{i} + m\hat{j} + n\hat{k} \) is a unit vector. The x, y, z-axes have direction cosines \( 1, 0, 0 \); \( 0, 1, 0 \); \( 0, 0, 1 \).
  3. Direction ratios \( a, b, c \) are any three numbers proportional to \( l, m, n \); a line has infinitely many sets. Back to direction cosines: \( l = \pm\frac{a}{\sqrt{a^2 + b^2 + c^2}} \), and the same for m and n, with one sign for all three.
  4. The line through \( P(x_1, y_1, z_1) \) and \( Q(x_2, y_2, z_2) \) has direction ratios \( x_2 - x_1, y_2 - y_1, z_2 - z_1 \) and direction cosines these divided by PQ.
  5. Three points are collinear when the direction ratios of AB and BC are proportional (B is shared).
  6. The line through the point \( \vec{a} \) parallel to \( \vec{b} \) is \( \vec{r} = \vec{a} + \lambda\vec{b} \); in Cartesian form, \( \frac{x - x_1}{a} = \frac{y - y_1}{b} = \frac{z - z_1}{c} \). The parametric equations are \( x = x_1 + \lambda a \), \( y = y_1 + \lambda b \), \( z = z_1 + \lambda c \).
  7. The line through two points \( \vec{a} \) and \( \vec{b} \) is \( \vec{r} = \vec{a} + \lambda(\vec{b} - \vec{a}) \). Read a Cartesian equation only after tidying it to standard form.
  8. The acute angle between two lines satisfies \( \cos\theta = \frac{|\vec{b}_1 \cdot \vec{b}_2|}{|\vec{b}_1||\vec{b}_2|} = \frac{|a_1 a_2 + b_1 b_2 + c_1 c_2|}{\sqrt{a_1^2 + b_1^2 + c_1^2}\sqrt{a_2^2 + b_2^2 + c_2^2}} \), or \( |l_1 l_2 + m_1 m_2 + n_1 n_2| \) with direction cosines. Perpendicular: \( a_1 a_2 + b_1 b_2 + c_1 c_2 = 0 \). Parallel: \( \frac{a_1}{a_2} = \frac{b_1}{b_2} = \frac{c_1}{c_2} \).
  9. Two lines in space intersect, are parallel, or are skew. Skew lines are neither parallel nor intersecting: they lie in different planes. Their angle is the angle between lines through one point parallel to each.
  10. For skew lines the shortest distance is along the segment perpendicular to both: \( d = \left|\frac{(\vec{b}_1 \times \vec{b}_2) \cdot (\vec{a}_2 - \vec{a}_1)}{|\vec{b}_1 \times \vec{b}_2|}\right| \), or the 3 by 3 determinant over \( \sqrt{(b_1 c_2 - b_2 c_1)^2 + (c_1 a_2 - c_2 a_1)^2 + (a_1 b_2 - a_2 b_1)^2} \). A zero top for non-parallel lines means they intersect.
  11. For parallel lines \( \vec{r} = \vec{a}_1 + \lambda\vec{b} \) and \( \vec{r} = \vec{a}_2 + \mu\vec{b} \), the distance is \( \frac{|\vec{b} \times (\vec{a}_2 - \vec{a}_1)|}{|\vec{b}|} \).

Common questions

What is the difference between direction cosines and direction ratios?

Direction cosines are one exact set, the cosines of the angles with the axes, and their squares add to 1. Direction ratios are any three numbers in the same proportion, like \( 2, -3, 6 \) for \( \frac{2}{7}, -\frac{3}{7}, \frac{6}{7} \). Every set of direction cosines is a set of direction ratios, but not the other way round.

Why do direction cosines come with a ± sign?

A line without an arrow can be followed either way. Choosing the + sign picks one direction and the − sign picks the opposite one. Both describe the same line; for a directed line, only one of them is right.

Can a line make 45° with all three axes?

No. Then \( l^2 + m^2 + n^2 = \frac{1}{2} + \frac{1}{2} + \frac{1}{2} = \frac{3}{2} \), not 1. A line equally inclined to all three axes makes about \( 54.7^\circ \) with each, with \( l = m = n = \pm\frac{1}{\sqrt{3}} \).

Is a line's vector equation unique?

No. You can start from any point on the line and use any non-zero multiple of the direction vector. \( \vec{r} = \hat{i} + \lambda(2\hat{i} + \hat{j} + \hat{k}) \) and \( \vec{r} = 3\hat{i} + \hat{j} + \hat{k} + \mu(4\hat{i} + 2\hat{j} + 2\hat{k}) \) are the same line. To check, see that the directions are parallel and that one point of the first lies on the second.

What does a 0 in the denominator of a Cartesian equation mean?

It is shorthand, not a division. \( \frac{x - 2}{0} = \frac{y - 3}{1} = \frac{z + 1}{4} \) means x stays at 2 everywhere on the line, while y and z change together as \( \frac{y - 3}{1} = \frac{z + 1}{4} \).

Why must the shortest distance between skew lines be perpendicular to both?

If the joining segment met one line at a slant, sliding that end a little along the line would make the segment shorter, so it was not the shortest. Only a segment that meets both lines at right angles cannot be shortened. That is why the cross product \( \vec{b}_1 \times \vec{b}_2 \), which is perpendicular to both directions, appears in the formula.

How do I decide whether two lines intersect, are parallel or are skew?

First compare directions: proportional means parallel (or the same line). If not parallel, find \( (\vec{b}_1 \times \vec{b}_2) \cdot (\vec{a}_2 - \vec{a}_1) \). Zero means they intersect; anything else means skew. You can also solve the parametric equations: two of them give \( \lambda \) and \( \mu \), and the third tells you whether they really meet.

Are planes in the syllabus?

Not in the current NCERT book: the 2023-24 rationalised edition removed the equation of a plane, the angles involving planes and the distance of a point from a plane, though its introduction still mentions them. JEE Main still asks about them, so the last concept page has a short summary of the formulas.

Practice

Five more questions across the whole chapter.

1

What are the direction cosines of a line with direction ratios \( -2, 1, 2 \)?

  1. \( -2, 1, 2 \)
  2. \( \pm\left(-\frac{2}{3}, \frac{1}{3}, \frac{2}{3}\right) \)
  3. \( \frac{2}{3}, \frac{1}{3}, \frac{2}{3} \)
  4. \( -\frac{2}{5}, \frac{1}{5}, \frac{2}{5} \)

2

Which line passes through \( (1, -1, 2) \) and is parallel to \( \frac{x - 3}{2} = \frac{y + 1}{-3} = \frac{z}{6} \)?

  1. \( \frac{x - 1}{2} = \frac{y + 1}{-3} = \frac{z - 2}{6} \)
  2. \( \frac{x - 3}{2} = \frac{y + 1}{-3} = \frac{z}{6} \)
  3. \( \frac{x + 1}{2} = \frac{y - 1}{-3} = \frac{z + 2}{6} \)
  4. \( \frac{x - 2}{1} = \frac{y + 3}{-1} = \frac{z - 6}{2} \)

3

What is the angle between lines with direction ratios \( 1, 1, 2 \) and \( 2, -1, 1 \)?

  1. \( 90^\circ \)
  2. \( 30^\circ \)
  3. \( 60^\circ \)
  4. \( 45^\circ \)

4

One string runs along \( \vec{r} = \lambda(\hat{i} + \hat{j}) \) on the floor, another along \( \vec{r} = \hat{k} + \mu(\hat{i} - \hat{j}) \) on the ceiling. What is the shortest distance between them?

  1. 0
  2. 1
  3. 2
  4. \( \sqrt{2} \)

5

How are \( \vec{r} = \hat{i} + \lambda(2\hat{i} + \hat{j} + \hat{k}) \) and \( \vec{r} = 3\hat{i} + \hat{j} + \hat{k} + \mu(4\hat{i} + 2\hat{j} + 2\hat{k}) \) related?

  1. They are skew
  2. They are parallel and 1 unit apart
  3. They are the same line
  4. They meet at exactly one point

About this chapter

Written by girgit in our own words. It follows the structure and section numbers of the NCERT textbook (NCERT Mathematics Part II, Class 12, Chapter 11 (2023-24 rationalised)) so you can read it alongside your book. Where the textbook is out of date or mistaken, a "Textbook check" says so and tells you what to write in the exam. girgit is not affiliated with or endorsed by NCERT. Past questions: NEET (UG), National Testing Agency; explanations ours.

Text and interactives © 2026 girgit.org. All rights reserved. Pictures and videos credited on this page belong to their owners and keep their own licences.

Cite this chapter

girgit. (2026). Three Dimensional Geometry. In Maths, Class 12. https://girgit.org/maths/class-12/three-dimensional-geometry/

Picture and video credits