Class 12 MathsAll 13 chaptersQuick lessonWorked solutionsPast papersPast papersGet updates
Class 12 Mathematics · Chapter 11

Three Dimensional Geometry.
Lines in space.

In a plane, two lines either cross or run parallel. In space there is a third possibility: two lines can miss each other completely without being parallel, like a diagonal across the ceiling and a diagonal down a wall. This chapter uses the vectors of Chapter 10 to describe any line in space with one equation, to measure the angle between two lines, and to find the shortest gap between two lines that never meet.

In a room 1 × 3 × 2 units, the ceiling diagonal GE and the wall diagonal DB are not parallel and never meet: they are skew lines. The short green segment is the shortest distance between them; it is perpendicular to both.
Part 1 · Sections 11.1–11.2

Direction cosines and direction ratios.

A line in space makes an angle with each of the three axes. The cosines of those three angles tell you which way it points.

The idea
l = cos α,  m = cos β,  n = cos γ

A directed line through the origin makes angles α, β, γ with the positive x, y and z axes. Their cosines l, m, n are the line’s direction cosines.

Always true
l² + m² + n² = 1

This holds for every line. It comes from Chapter 10.

Direction ratios
l = ± a√(a² + b² + c²)

Any three numbers a, b, c proportional to l, m, n are direction ratios. To get back, divide by the length. m and n work the same way with b and c; take the same sign in all three.

Watch the sign
α, β, γ  →  π − α, π − β, π − γ

Reversing the line changes the angles like this, so all three signs of l, m, n flip. A line that does not pass through the origin has the same direction cosines as the parallel line through the origin.

How to use it: a line through two points

  1. For P(x₁, y₁, z₁) and Q(x₂, y₂, z₂), subtract: x₂ − x₁, y₂ − y₁, z₂ − z₁. These differences are direction ratios of the line PQ.
  2. Find the length PQ with the distance formula.
  3. Divide each difference by PQ. The results are the direction cosines.
Direction-cosine labTurn the line (compass angle in the floor, then tilt up). The three cosines change but l² + m² + n² stays 1. Tick "reverse" to flip the direction; the ratio slider scales them into direction ratios of the same line.
direction cosines and angles
Example 1

Angles 90°, 60°, 30° with the axes.

  1. Take cosines.
0, ½, √3/2.
Example 2

Direction ratios 2, −1, −2.

  1. Divide by 3.
2/3, −1/3, −2/3.
Example 3

Line through (−2, 4, −5) and (1, 2, 3).

  1. Differences over √77.
3/√77, −2/√77, 8/√77.
Example 4

Direction cosines of the axes.

  1. cos 0° and cos 90°.
1, 0, 0; 0, 1, 0; 0, 0, 1.
Example 5

A(2, 3, −4), B(1, −2, 3), C(3, 8, −11) collinear.

  1. Proportional ratios, common point B.
Collinear.
Part 2 · Section 11.3

The equation of a line: start somewhere, then walk.

A line in space is fixed by one point and a direction (or by two points). Start at the point, then walk along the direction.

Vector form
r⃗ = a⃗ + λb⃗

A is a point with position vector a⃗, and the line is parallel to b⃗. Every point P of the line is reached by going to A, then some multiple of b⃗. λ is any real number.

Cartesian form
x − x₁a = y − y₁b = z − z₁c

The same line in coordinates. The numerators name the point A(x₁, y₁, z₁); the denominators are the direction ratios of b⃗ = ai + bj + ck. With direction cosines l, m, n in place of a, b, c the same form holds.

The bridge
x = x₁ + λa
y = y₁ + λb
z = z₁ + λc

This is the parametric form: the vector form, one coordinate at a time. Eliminate λ and you get the Cartesian form.

Through two points
r⃗ = a⃗ + λ(b⃗ − a⃗)

Here a⃗ and b⃗ are the position vectors of the two points, so b⃗ − a⃗ is the direction from one to the other.

Walk along the lineA = (1, 2, 1), b⃗ = i + j + 1.5k. Slide λ: the point P = a⃗ + λb⃗ moves along the line, and the three Cartesian fractions are always equal (all equal λ).
the point and the Cartesian fractions
Example 6

Through (5, 2, −4), parallel to 3i + 2j − 8k.

  1. r⃗ = a⃗ + λb⃗, then eliminate λ.
(x − 5)/3 = (y − 2)/2 = (z + 4)/(−8).
Part 3 · Section 11.4

The angle between two lines is the angle between their directions.

Two lines need not meet to have an angle between them. Slide parallel copies to the origin and measure the angle between their directions.

The angle
cos θ = |b⃗₁ · b⃗₂||b⃗₁| |b⃗₂|

b⃗₁ and b⃗₂ are the directions of the two lines. The absolute value | | gives the acute angle θ, since a line has no arrowhead.

With direction ratios
cos θ = |a₁a₂ + b₁b₂ + c₁c₂|√(a₁² + b₁² + c₁²) ×
√(a₂² + b₂² + c₂²)

The same formula when the lines have direction ratios a₁, b₁, c₁ and a₂, b₂, c₂.

With direction cosines
cos θ = |l₁l₂ + m₁m₂ + n₁n₂|

No bottom line is needed: direction cosines already have length 1.

Perpendicular
a₁a₂ + b₁b₂ + c₁c₂ = 0

The top of the fraction is 0, so cos θ = 0 and θ = 90°.

Parallel
a₁a₂ = b₁b₂ = c₁c₂

The direction ratios are proportional: both lines run in the same direction.

Angle labLine 1 has direction (1, 2, 2). Set the direction ratios of line 2 and read the acute angle. Try (2, −1, 0) for a right angle, or (2, 4, 4) for parallel lines.
the acute angle
Example 7

Directions i + 2j + 2k and 3i + 2j + 6k.

  1. 19/(3 × 7).
cos⁻¹(19/21).
Example 8

DRs 3, 5, 4 and 1, 1, 2.

  1. 16/(√50 √6).
cos⁻¹(8√3/15).
Part 4 · Section 11.5

Skew lines: neither parallel nor meeting.

In a plane, two lines either meet or run parallel. In space there is a third case: lines that do neither.

Skew lines
not parallel, never meet

Lines that are neither parallel nor intersecting are called skew lines. They do not lie in any one plane.

In a room
GE and DB

In a room of size 1 × 3 × 2, the ceiling diagonal GE and the line DB, running from a ceiling corner diagonally down a wall, are skew.

The shortest distance, case by case

If they meet
d = 0

Two lines that intersect have shortest distance 0.

If parallel
d = the perpendicular gap

It is the perpendicular distance from a point of one line to the other line.

If skew
PQ ⊥ both lines

The shortest distance joins a point of one line to a point of the other so that the segment is as short as possible. For skew lines this segment is perpendicular to both lines.

The roomO is a floor corner; A, B, C are the others; D, E, F, G are the ceiling corners above A, B, C, O. Pick a pair of lines.
how the two lines sit
Part 5 · Sections 11.5.1–11.5.2

The shortest distance: project onto the common perpendicular.

Two skew lines have one common perpendicular direction. The shortest distance is the shadow of any joining segment on that direction.

Skew lines
d = |(b⃗₁ × b⃗₂) · (a⃗₂ − a⃗₁)||b⃗₁ × b⃗₂|

For r⃗ = a⃗₁ + λb⃗₁ and r⃗ = a⃗₂ + μb⃗₂. The common perpendicular has direction b⃗₁ × b⃗₂. Take any S on the first line and T on the second: d is the length of the shadow of ST⃗ = a⃗₂ − a⃗₁ on that direction.

Parallel lines
d = |b⃗ × (a⃗₂ − a⃗₁)||b⃗|

For r⃗ = a⃗₁ + λb⃗ and r⃗ = a⃗₂ + μb⃗ the cross product b⃗ × b⃗ is the zero vector 0⃗. So the skew formula cannot be used. Use the parallelogram instead: area ÷ base.

In Cartesian form
top = x₂ − x₁y₂ − y₁z₂ − z₁a₁b₁c₁a₂b₂c₂
bottom = √( (b₁c₂ − b₂c₁)²
+ (c₁a₂ − c₂a₁)²
+ (a₁b₂ − a₂b₁)² )

For skew lines through (x₁, y₁, z₁) and (x₂, y₂, z₂) with direction ratios a₁, b₁, c₁ and a₂, b₂, c₂. The top is this 3 × 3 determinant (take its absolute value); then d = top ÷ bottom.

How to use it

  1. Read off a⃗₁, b⃗₁ and a⃗₂, b⃗₂ from the two equations.
  2. If b⃗₁ and b⃗₂ are parallel, use the parallel-lines formula. Otherwise work out b⃗₁ × b⃗₂ and a⃗₂ − a⃗₁.
  3. Dot them, take the absolute value, and divide by |b⃗₁ × b⃗₂|.
  4. If the skew formula gives 0, the lines intersect.
Hunt for the shortest gapThe lines of Example 9. Move a point along each line and try to make the gap PQ as short as possible. When you reach the minimum, the segment turns green: it is then perpendicular to both lines.
the gap
Example 9

r⃗ = i + j + λ(2i − j + k), r⃗ = 2i + j − k + μ(3i − 5j + 2k).

  1. b⃗₁ × b⃗₂ = 3i − j − 7k.
10/√59.
Example 10

Parallel lines with b⃗ = 2i + 3j + 6k.

  1. |b⃗ × (a⃗₂ − a⃗₁)|/|b⃗|.
√293/7.
Self-check

Twelve concept checks.

This chapter of the textbook has no multiple-choice questions, so these twelve test the ideas themselves. Tap an option to check it and see the reasoning.

Score0 / 1212 left to answer
Summary

Remember this.

Direction

l² + m² + n² = 1
l = a√(a² + b² + c²)ratios a, b, c
l = x₂ − x₁PQ, …through P, Q

A line

r⃗ = a⃗ + λb⃗
x − x₁a = y − y₁b = z − z₁c
r⃗ = a⃗ + λ(b⃗ − a⃗)two points

Angle between two lines

cos θ = |b⃗₁ · b⃗₂||b⃗₁| |b⃗₂|
a₁a₂ + b₁b₂ + c₁c₂ = 0perpendicular
a₁a₂ = b₁b₂ = c₁c₂parallel

Shortest distance

d = |(b⃗₁ × b⃗₂) · (a⃗₂ − a⃗₁)||b⃗₁ × b⃗₂|skew
d = |b⃗ × (a⃗₂ − a⃗₁)||b⃗|parallel

Direction cosines l, m, n are the cosines of the angles with the axes; direction ratios are any multiple of them. With direction ratios the angle is cos θ = |a₁a₂ + b₁b₂ + c₁c₂| / (√… √…); parallel lines have proportional ratios. Skew lines are neither parallel nor intersecting.

Finished Chapter 11? Hear when the next one is ready

Leave your email and we will write when a new chapter or a new set of worked solutions is ready. That is all we use it for, and you can ask to be taken off the list at any time.

You are on the list. We will email you when new chapters are added, and for nothing else.