Latest
  • Admissions openClass 11 Science, 2027‑28: JEE, NEET and MHT‑CET with junior college and hostel under one roofApply now
  • IMGSAT 2027Free scholarship and admission test for Class 10 students, every Saturday and Sunday at our Nashik campusRegister
  • Free Foundation 2026‑27Evening classes for Class 10 in Physics, Chemistry, Maths and Biology, taught by our IITian and doctor facultyJoin free

+91 70303 00666

Maths · Class 12 · Chapter 11

Three Dimensional Geometry

This chapter uses the vectors of Chapter 10 to describe lines in space: their directions, their equations, the angle between two of them and the shortest distance between lines that never meet. Keep one habit throughout: read the direction ratios straight off the denominators of the Cartesian form.

In this chapter: direction cosines and direction ratios of a line, vector and Cartesian equations of a line through a point and through two points, angle between two lines, skew lines and the shortest distance between two lines, plus a summary of results on planes for MHT‑CET.

Direction cosines and direction ratios

If a directed line makes angles α, β, γ with the positive x, y and z axes, its direction cosines are l = cos α, m = cos β, n = cos γ, and

l² + m² + n² = 1

Any three numbers a, b, c proportional to l, m, n are direction ratios. To convert, divide by √(a² + b² + c²): l = ±a/√(a² + b² + c²), and similarly for m and n, taking the same sign throughout. A line has infinitely many sets of direction ratios but, apart from the choice of sign (direction), only one set of direction cosines.

For the line through P(x1, y1, z1) and Q(x2, y2, z2), the direction ratios are x2 − x1, y2 − y1, z2 − z1, and dividing by the distance PQ gives the direction cosines.

Equation of a line

Through a given point, parallel to a given vector

If the line passes through A with position vector a and is parallel to b = aî + bĵ + ck̂, every point P on it satisfies AP = λb. So

Vector form: r = a + λbCartesian form: (x − x1)/a = (y − y1)/b = (z − z1)/ca, b, c are direction ratios of the line
Vector equation of a line in spacewww.iitmedicoguide.comzyxOAPabλbrliner = a + λbλ ∈ R gives every pointof the linewww.iitmedicoguide.com
Starting from the origin, go to the fixed point A on the line and then move any multiple λ of the direction vector b. Every real value of λ gives one point P of the line.
Worked example: Find the vector and Cartesian equations of the line through (5, 2, −4) parallel to 3î + 2ĵ − 8k̂.
Solution: Vector form: r = 5î + 2ĵ − 4k̂ + λ(3î + 2ĵ − 8k̂). Cartesian form: (x − 5)/3 = (y − 2)/2 = (z + 4)/(−8). Note z − (−4) becomes z + 4.

Through two given points

r = a + λ(b − a)(x − x1)/(x2 − x1) = (y − y1)/(y2 − y1) = (z − z1)/(z2 − z1)

A common slip: the Cartesian form requires the coefficients of x, y and z to be 1. A line written as (2x − 1)/3 = (y + 2)/2 = (z − 1)/1 has direction ratios 3/2, 2, 1, not 3, 2, 1, because 2x − 1 = 2(x − 1/2).

Angle between two lines

The angle between two lines is the angle between their direction vectors. With direction ratios a1, b1, c1 and a2, b2, c2:

cos θ = |a1a2 + b1b2 + c1c2|√(a1² + b1² + c1²) √(a2² + b2² + c2²)the modulus gives the acute angle
  • Perpendicular lines: a1a2 + b1b2 + c1c2 = 0.
  • Parallel lines: a1/a2 = b1/b2 = c1/c2.
Worked example: Find the angle between (x + 3)/3 = (y − 1)/5 = (z + 3)/4 and (x + 1)/1 = (y − 4)/1 = (z − 5)/2.
Solution: Direction ratios 3, 5, 4 and 1, 1, 2. cos θ = |3 + 5 + 8|/(√50 √6) = 16/√300 = 16/(10√3) = 8√3/15. So θ = cos−1(8√3/15).

Shortest distance between two lines

In space, two lines can intersect, be parallel, or be skew: neither parallel nor intersecting. Skew lines lie in different planes. The shortest distance between them is the length of the segment perpendicular to both.

Shortest distance between two skew lineswww.iitmedicoguide.comPQdL1L2Skew lines: not paralleland never meetPQ ⊥ both linesdashed teal: shadow of L2 on the plane of L1www.iitmedicoguide.com
L2 runs above the plane containing L1 in a different direction, so the lines never meet. The common perpendicular PQ is the shortest path between them.

For r = a₁ + λb₁ and r = a₂ + μb₂:

d = |(b₁ × b₂) · (a₂ − a₁)||b₁ × b₂| (skew lines)d = |b × (a₂ − a₁)||b| (parallel lines, common direction b)

For non-parallel lines, d = 0 means they intersect. In Cartesian form the numerator of the first formula is the absolute value of the determinant with rows (x2 − x1, y2 − y1, z2 − z1), (a1, b1, c1), (a2, b2, c2).

Worked example: Find the shortest distance between r = î + ĵ + λ(2î − ĵ + k̂) and r = 2î + ĵ − k̂ + μ(3î − 5ĵ + 2k̂).
Solution: a₂ − a₁ = î − k̂. b₁ × b₂ = î((−1)(2) − (1)(−5)) − ĵ((2)(2) − (1)(3)) + k̂((2)(−5) − (−1)(3)) = 3î − ĵ − 7k̂, with magnitude √(9 + 1 + 49) = √59. The dot product with î − k̂ is 3 + 7 = 10. So d = 10/√59.

Planes (for MHT‑CET)

The current NCERT chapter ends with lines. MHT‑CET students also study planes in the Maharashtra board's "Line and Plane" chapter, so the main results are collected here. A plane with normal vector n = Aî + Bĵ + Ck̂ has equation Ax + By + Cz + D = 0.

ResultFormula
Plane through (x1, y1, z1) with normal (A, B, C)A(x − x1) + B(y − y1) + C(z − z1) = 0
Normal form (unit normal n̂, distance d from origin)r · n̂ = d, or lx + my + nz = d
Intercept formx/a + y/b + z/c = 1
Distance of (x1, y1, z1) from Ax + By + Cz + D = 0|Ax1 + By1 + Cz1 + D| / √(A² + B² + C²)
Angle between two planescos θ = |n₁ · n₂| / (|n₁| |n₂|)
Angle between line (direction b) and plane (normal n)sin φ = |b · n| / (|b| |n|)

For example, the distance of (2, 5, −3) from 6x − 3y + 2z − 4 = 0 is |12 − 15 − 6 − 4|/√(36 + 9 + 4) = 13/7.

Common mistakes: (1) Reading direction ratios from a Cartesian equation whose x, y or z has a coefficient other than 1. (2) Forgetting the modulus in cos θ and reporting an obtuse angle between lines. (3) Using the skew-lines formula for parallel lines, where b1 × b2 = 0 and the formula breaks down. (4) Sign errors in the middle term of the cross product. (5) Using sin instead of cos (or the other way round) for the angle between a line and a plane.

JEE and MHT‑CET focus

  • Direction cosines from direction ratios, and angles with the axes.
  • Writing a line in vector and Cartesian forms and converting between them.
  • Conditions for two lines to be perpendicular or parallel, often with an unknown to find.
  • Shortest distance between skew and parallel lines, and the condition for two lines to intersect.
  • For MHT‑CET: equations of planes, distance of a point from a plane, and angles between planes and between a line and a plane.

Practice questions

The direction cosines of a line with direction ratios 2, −1, −2 are:

  1. 2, −1, −2
  2. 2/3, −1/3, −2/3
  3. 2/9, −1/9, −2/9
  4. 2/√5, −1/√5, −2/√5
Show answer
B. √(4 + 1 + 4) = 3; divide each ratio by 3 (or take all signs reversed).

A line makes angles 90°, 60° and 30° with the x, y and z axes. Its direction cosines are:

  1. 0, 1/2, √3/2
  2. 1, √3/2, 1/2
  3. 0, √3/2, 1/2
  4. 1/2, 1/2, 1/√2
Show answer
A. cos 90° = 0, cos 60° = 1/2, cos 30° = √3/2; the squares add to 1.

Lines with direction ratios 1, 2, 3 and 3, −3, 1 are:

  1. Parallel
  2. Perpendicular
  3. Inclined at 60°
  4. Coincident
Show answer
B. 1(3) + 2(−3) + 3(1) = 0.

The lines (x − 1)/(−3) = (y − 2)/(2k) = (z − 3)/2 and (x − 1)/(3k) = (y − 1)/1 = (z − 6)/(−5) are perpendicular for k equal to:

  1. 10/7
  2. −10/7
  3. 7/10
  4. −7/10
Show answer
B. (−3)(3k) + (2k)(1) + 2(−5) = 0 gives −7k = 10.

The Cartesian equation of the line through (1, −2, 3) with direction ratios 2, 1, −4 is:

  1. (x + 1)/2 = (y − 2)/1 = (z + 3)/(−4)
  2. (x − 1)/2 = (y + 2)/1 = (z − 3)/(−4)
  3. (x − 2)/1 = (y − 1)/(−2) = (z + 4)/3
  4. (x − 1)/2 = (y − 2)/1 = (z − 3)/4
Show answer
B. (x − x1)/a = (y − y1)/b = (z − z1)/c with the given point and ratios.

The shortest distance between the lines r = λî and r = ĵ + μk̂ is:

  1. 0
  2. 1
  3. √2
  4. 1/√2
Show answer
B. î × k̂ = −ĵ, and |(−ĵ) · ĵ|/1 = 1. (The x-axis and a line parallel to the z-axis through (0, 1, 0).)

The distance of the origin from the plane 2x − y + 2z = 9 is:

  1. 1
  2. 3
  3. 9
  4. 9/5
Show answer
B. |−9|/√(4 + 1 + 4) = 9/3 = 3.

The angle between the lines with direction ratios 1, 1, 0 and 0, 1, 1 is:

  1. 30°
  2. 45°
  3. 60°
  4. 90°
Show answer
C. cos θ = 1/(√2 · √2) = 1/2.
Call WhatsApp Apply
Chat with us on WhatsApp