Skip to content

Language

Sign in

Learn › Class 12 › Mathematics › Three Dimensional Geometry

Three dimensional geometry

You will learn to

  • Find direction cosines and direction ratios of a line
  • Write the vector and Cartesian equations of a line
  • Find the angle between two lines
  • Find the shortest distance between skew or parallel lines

Helpful to know first: Vector algebra; Dot and cross products.

Let a line make angles α, β, γ with the x, y and z axes. Its direction cosines are l = cos α, m = cos β, n = cos γ. They satisfy l² + m² + n² = 1. Any numbers proportional to them are direction ratios.

For a line through (x₁, y₁, z₁) and (x₂, y₂, z₂), direction ratios are x₂ − x₁, y₂ − y₁, z₂ − z₁. Dividing ratios a, b, c by √(a² + b² + c²) gives the direction cosines.

Equation of a line

Vector form: r = a + λb, through the point a, parallel to b. Cartesian form: (x − x₁)/a = (y − y₁)/b = (z − z₁)/c.

Let two lines have direction ratios (a₁, b₁, c₁) and (a₂, b₂, c₂). The angle θ between them satisfies cos θ = |a₁a₂ + b₁b₂ + c₁c₂| ÷ (√(a₁² + b₁² + c₁²) √(a₂² + b₂² + c₂²)). They are perpendicular if a₁a₂ + b₁b₂ + c₁c₂ = 0.

Skew lines are neither parallel nor intersecting. For r = a₁ + λb₁ and r = a₂ + μb₂, the shortest distance is |(b₁ × b₂) · (a₂ − a₁)| ÷ |b₁ × b₂|. For parallel lines, it is |b × (a₂ − a₁)| ÷ |b|.

Common mix-ups

  • Not quite: Two lines that do not meet must be parallel.

    Instead: In space, lines can be skew: not parallel and never meeting, like a road below a flyover running across it.

  • Not quite: Direction ratios and direction cosines are the same thing.

    Instead: Direction cosines satisfy l² + m² + n² = 1. Direction ratios are any multiples of them.

Reviewed by EduFlint team on 1 Dec 2026 · version 1

Written by us for this site. Independent; not affiliated with NCERT or CBSE.

Report a mistake

Looking for another topic?