Mathematics · 1st year

Three Dimensional Geometry: Lines, Angles, Distance

EAPCET · JEE4 min read10 practice questions

Why this chapter matters

Three Dimensional Geometry is a scoring chapter in JEE Main and in AP/TS EAPCET. Almost every question uses a few tools from vectors: the length of a vector, the dot product and the cross product. Once a line is written as “a point plus a direction”, angles and distances become short calculations.

1. Direction cosines and direction ratios

If a line makes angles α, β, γ with the x, y and z axes, then l = cos α, m = cos β, n = cos γ are its direction cosines. They always satisfy l² + m² + n² = 1.

Any three numbers a, b, c proportional to l, m, n are direction ratios. To get direction cosines from direction ratios, divide each by √(a² + b² + c²).

2. Equation of a line

A line through the point with position vector a, parallel to b, is r = a + λb. In Cartesian form, through (x₁, y₁, z₁) with direction ratios a, b, c:

(x − x₁)/a = (y − y₁)/b = (z − z₁)/c

Every value of λ gives one point on the line.

3. Angle between two lines

For direction vectors b₁ and b₂: cos θ = |b₁ · b₂| / (|b₁| |b₂|).

  • Perpendicular lines: b₁ · b₂ = 0.
  • Parallel lines: the direction ratios are proportional.

4. Shortest distance

Two lines in space that are neither parallel nor intersecting are skew lines. The shortest distance between r = a₁ + λb₁ and r = a₂ + μb₂ is

d = |(a₂ − a₁) · (b₁ × b₂)| / |b₁ × b₂|

If d = 0, the lines intersect. For parallel lines with the same b: d = |b × (a₂ − a₁)| / |b|. The same formula gives the distance of a point from a line.

Key formulas

Idea Formula
Direction cosines l² + m² + n² = 1
From ratios l = a/√(a² + b² + c²)
Line r = a + λb
Angle cos θ = |b₁ · b₂| / (|b₁| |b₂|)
Skew lines d = |(a₂ − a₁) · (b₁ × b₂)| / |b₁ × b₂|
Parallel lines d = |b × (a₂ − a₁)| / |b|

Worked examples

Example 1. Find the direction cosines of a line with direction ratios 2, −3, 6.

  1. |b| = √(4 + 9 + 36) = √49 = 7.
  2. Divide each ratio by 7.
  3. l, m, n = 2/7, −3/7, 6/7. Check: (4 + 9 + 36)/49 = 1.

Example 2. Find the angle between two lines with direction ratios (1, 1, 0) and (1, 0, 1).

  1. Dot product = 1·1 + 1·0 + 0·1 = 1.
  2. Each length = √2, so cos θ = 1/(√2 · √2) = 1/2.
  3. θ = 60°.

Example 3. Find the shortest distance between the lines r = (1, 0, 0) + λ(0, 1, 1) and r = (0, 0, 2) + μ(1, 0, 1).

  1. a₂ − a₁ = (−1, 0, 2).
  2. b₁ × b₂ = (0, 1, 1) × (1, 0, 1) = (1, 1, −1), length √3.
  3. (a₂ − a₁)·(b₁ × b₂) = −1 + 0 − 2 = −3.
  4. d = |−3|/√3 = √3.

Example 4. Find the distance between the parallel lines r = (1, 2, 3) + λ(1, 2, 2) and r = (3, 2, 1) + μ(1, 2, 2).

  1. a₂ − a₁ = (2, 0, −2), |b| = 3.
  2. b × (a₂ − a₁) = (−4, 6, −4), length √68 = 2√17.
  3. d = 2√17/3.

Example 5. Find the foot of the perpendicular from P(3, 3, 0) to the line r = λ(1, 2, 2).

  1. Any point on the line is F = (λ, 2λ, 2λ).
  2. PF must be perpendicular to (1, 2, 2): (λ − 3) + 2(2λ − 3) + 2(2λ) = 0, so 9λ = 9, λ = 1.
  3. F = (1, 2, 2). The perpendicular distance PF = √(4 + 1 + 4) = 3.

Common mistakes

  • Using direction ratios as direction cosines. Divide by the length first.
  • Taking the wrong sign in the angle. Use the absolute value to get the acute angle.
  • Using the skew-line formula for parallel lines. b₁ × b₂ = 0 there, so the formula breaks; use the parallel-line formula.
  • Arithmetic slips in the cross product. Check that b₁ × b₂ is perpendicular to both b₁ and b₂.

Summary

Write each line as a point plus a direction. Direction cosines come from dividing direction ratios by the length. The dot product gives angles and tests perpendicularity. The cross product gives the common perpendicular, which leads to the shortest distance between skew lines, the distance between parallel lines and the distance of a point from a line.

References

Practice questions

Question language

Choose an answer, then press Check: you see at once whether it is right, and why.

If the English and Telugu versions of a question differ, go by the English text, and please tell us about the difference.

  1. Question 1

    A line has direction ratios 4, −4, 7. What is its direction cosine n (with the z-axis)?ఒక రేఖ దిశా నిష్పత్తులు 4, −4, 7. z‑అక్షంతో దాని దిశా కొసైన్‌ n ఎంత?

    Choose an answer first.

    Show answer and explanation

    Report an error

  2. Question 2

    A line makes 45° with the x-axis and 60° with the y-axis. What acute angle does it make with the z-axis?ఒక రేఖ x‑అక్షంతో 45°, y‑అక్షంతో 60° కోణం చేస్తోంది. z‑అక్షంతో అది చేసే అల్పకోణం ఎంత?

    Choose an answer first.

    Show answer and explanation

    Report an error

  3. Question 3

    What is the angle between lines with direction ratios (3, 4, −1) and (1, 1, 7)?దిశా నిష్పత్తులు (3, 4, −1), (1, 1, 7) గా ఉన్న రేఖల మధ్య కోణం ఎంత?

    Choose an answer first.

    Show answer and explanation

    Report an error

  4. Question 4

    Which of these points lies on the line r = (2, 0, −1) + λ(4, −1, 3)?r = (2, 0, −1) + λ(4, −1, 3) రేఖపై కింది వాటిలో ఏ బిందువు ఉంది?

    Choose an answer first.

    Show answer and explanation

    Report an error

  5. Question 5

    Lines with direction ratios (1, k, 2) and (3, 1, −2) are perpendicular. Find k.దిశా నిష్పత్తులు (1, k, 2), (3, 1, −2) గా ఉన్న రేఖలు పరస్పరం లంబంగా ఉన్నాయి. k విలువ ఎంత?

    Choose an answer first.

    Show answer and explanation

    Report an error

  6. Question 6

    Lines with direction ratios (2, 4, k) and (1, 2, 3) are parallel. Find k.దిశా నిష్పత్తులు (2, 4, k), (1, 2, 3) గా ఉన్న రేఖలు సమాంతరం. k విలువ ఎంత?

    Choose an answer first.

    Show answer and explanation

    Report an error

  7. Question 7

    Find the shortest distance between r = λ(1, 0, 0) and r = (0, 1, 3) + μ(0, 1, 0).r = λ(1, 0, 0), r = (0, 1, 3) + μ(0, 1, 0) రేఖల మధ్య కనిష్ఠ దూరం ఎంత?

    Choose an answer first.

    Show answer and explanation

    Report an error

  8. Question 8

    Find the shortest distance between r = (1, 0, 0) + λ(1, 1, 0) and r = (5, 0, 2) + μ(0, 1, 1).r = (1, 0, 0) + λ(1, 1, 0), r = (5, 0, 2) + μ(0, 1, 1) రేఖల మధ్య కనిష్ఠ దూరం ఎంత?

    Choose an answer first.

    Show answer and explanation

    Report an error

  9. Question 9

    Find the distance between the parallel lines r = λ(2, 2, 1) and r = (3, 0, 0) + μ(2, 2, 1).r = λ(2, 2, 1), r = (3, 0, 0) + μ(2, 2, 1) సమాంతర రేఖల మధ్య దూరం ఎంత?

    Choose an answer first.

    Show answer and explanation

    Report an error

  10. Question 10

    Find the perpendicular distance of P(4, 1, 1) from the line r = (1, 1, 1) + λ(1, 2, 2).P(4, 1, 1) బిందువు నుంచి r = (1, 1, 1) + λ(1, 2, 2) రేఖకు లంబ దూరం ఎంత?

    Choose an answer first.

    Show answer and explanation

    Report an error

Practise more Mathematics questions

Back to top

In this lesson