Class 12 PCM . Mathematics . Mathematics Part II . Three Dimensional Geometry

Chapter 11: Three Dimensional Geometry

Ch 11

Mathematics

Class 12 PCM

Direction Ratios and Direction Cosines

Direction cosines of a line are the cosines of the angles which the line makes with the positive directions of the X, Y, and Z axes. If α,β,γ\alpha, \beta, \gamma are these angles, then the direction cosines are cos⁡α,cos⁡β,cos⁡γ\cos \alpha, \cos \beta, \cos \gamma.

These satisfy the fundamental relation:

cos⁡2α+cos⁡2β+cos⁡2γ=1\cos^2 \alpha + \cos^2 \beta + \cos^2 \gamma = 1

Direction ratios are any three numbers a,b,ca, b, c proportional to the direction cosines l,m,nl, m, n respectively, i.e.,

l=aa2+b2+c2,m=ba2+b2+c2,n=ca2+b2+c2l = \frac{a}{\sqrt{a^2 + b^2 + c^2}}, \quad m = \frac{b}{\sqrt{a^2 + b^2 + c^2}}, \quad n = \frac{c}{\sqrt{a^2 + b^2 + c^2}}

where l,m,nl, m, n are the direction cosines.

Formula Derivation

Given direction ratios a,b,ca, b, c, the magnitude λ=a2+b2+c2\lambda = \sqrt{a^2 + b^2 + c^2}. Dividing each direction ratio by λ\lambda gives the direction cosines.

Worked Illustration

Find the direction cosines of a line with direction ratios 2, -1, -2.

Solution:

Calculate λ=22+(−1)2+(−2)2=4+1+4=9=3\lambda = \sqrt{2^2 + (-1)^2 + (-2)^2} = \sqrt{4 + 1 + 4} = \sqrt{9} = 3.

Therefore, direction cosines are:

23,−13,−23\frac{2}{3}, \quad \frac{-1}{3}, \quad \frac{-2}{3}

Solved Example

Find the direction cosines of the x-axis.

Solution:

The x-axis makes angles 0°, 90°, and 90° with the x, y, and z axes respectively.

Thus, direction cosines are:

cos⁡0∘=1,cos⁡90∘=0,cos⁡90∘=0\cos 0^\circ = 1, \quad \cos 90^\circ = 0, \quad \cos 90^\circ = 0

Practice Set

  • Level 1 – Easy: Find the direction cosines of the y-axis.
  • Level 2 – Moderate: A line has direction ratios 3, 4, 12. Find its direction cosines.
  • Level 3 – Challenging: Prove that the direction cosines satisfy l2+m2+n2=1l^2 + m^2 + n^2 = 1 for any line in space.

Answer Key

  • Level 1: Direction cosines of y-axis are 0,1,00, 1, 0.
  • Level 2: λ=32+42+122=9+16+144=169=13\lambda = \sqrt{3^2 + 4^2 + 12^2} = \sqrt{9 + 16 + 144} = \sqrt{169} = 13. Direction cosines are 313,413,1213\frac{3}{13}, \frac{4}{13}, \frac{12}{13}.
  • Level 3: Using the definition of direction cosines as cosines of angles with axes, sum of squares equals 1 by Pythagorean identity.

Quick Reference

QuantityFormula
Direction Cosinesl=cos⁡α,m=cos⁡β,n=cos⁡γl = \cos \alpha, m = \cos \beta, n = \cos \gamma
Relationl2+m2+n2=1l^2 + m^2 + n^2 = 1
Direction Ratiosa,b,ca, b, c proportional to l,m,nl, m, n
Conversionl=aa2+b2+c2,m=ba2+b2+c2,n=ca2+b2+c2l = \frac{a}{\sqrt{a^2 + b^2 + c^2}}, m = \frac{b}{\sqrt{a^2 + b^2 + c^2}}, n = \frac{c}{\sqrt{a^2 + b^2 + c^2}}

Glossary

  • Direction Cosines: Cosines of the angles a line makes with coordinate axes.
  • Direction Ratios: Any three numbers proportional to the direction cosines.
  • Supplementary Angles: Two angles whose sum is 180°.

Equations of Lines in Different Forms

Consider two points A(x1,y1,z1)A(x_1, y_1, z_1) and B(x2,y2,z2)B(x_2, y_2, z_2) on a line. Let a⃗\vec{a} and b⃗\vec{b} be their position vectors, and r⃗\vec{r} be the position vector of any point P(x,y,z)P(x, y, z) on the line.

Vector Equation of a Line

Since points A,B,PA, B, P are collinear, vectors AP⃗=r⃗−a⃗\vec{AP} = \vec{r} - \vec{a} and AB⃗=b⃗−a⃗\vec{AB} = \vec{b} - \vec{a} are collinear. Hence,

r⃗=a⃗+λ(b⃗−a⃗),λ∈R\vec{r} = \vec{a} + \lambda (\vec{b} - \vec{a}), \quad \lambda \in \mathbb{R}

Cartesian Equation of a Line

From the vector equation, equate components:

x=x1+λ(x2−x1),y=y1+λ(y2−y1),z=z1+λ(z2−z1)x = x_1 + \lambda (x_2 - x_1), \quad y = y_1 + \lambda (y_2 - y_1), \quad z = z_1 + \lambda (z_2 - z_1)

Eliminating λ\lambda, we get the Cartesian form:

x−x1x2−x1=y−y1y2−y1=z−z1z2−z1\frac{x - x_1}{x_2 - x_1} = \frac{y - y_1}{y_2 - y_1} = \frac{z - z_1}{z_2 - z_1}

Solved Example

Find the vector and Cartesian equations of the line passing through point (5,2,−4)(5, 2, -4) and parallel to vector 3i^+2j^−8k^3\hat{i} + 2\hat{j} - 8\hat{k}.

Solution:

Vector equation:

r⃗=(5i^+2j^−4k^)+λ(3i^+2j^−8k^)\vec{r} = (5\hat{i} + 2\hat{j} - 4\hat{k}) + \lambda (3\hat{i} + 2\hat{j} - 8\hat{k})

Cartesian equations:

x−53=y−22=z+4−8=λ\frac{x - 5}{3} = \frac{y - 2}{2} = \frac{z + 4}{-8} = \lambda

Practice Set

  • Level 1 – Easy: Write the vector equation of a line passing through (1,0,2)(1, 0, 2) and parallel to i^−j^+2k^\hat{i} - \hat{j} + 2\hat{k}.
  • Level 2 – Moderate: Find the Cartesian equation of the line passing through points (2,3,1)(2, 3, 1) and (4,7,5)(4, 7, 5).
  • Level 3 – Challenging: Find the vector and Cartesian equations of the line passing through (1,−1,2)(1, -1, 2) and perpendicular to the vector 2i^+3j^−k^2\hat{i} + 3\hat{j} - \hat{k}.

Answer Key

  • Level 1: r⃗=(1i^+0j^+2k^)+λ(i^−j^+2k^)\vec{r} = (1\hat{i} + 0\hat{j} + 2\hat{k}) + \lambda (\hat{i} - \hat{j} + 2\hat{k}).
  • Level 2: Cartesian equation is x−22=y−34=z−14\frac{x - 2}{2} = \frac{y - 3}{4} = \frac{z - 1}{4}.
  • Level 3: Vector equation is r⃗=(1i^−j^+2k^)+λ(2i^+3j^−k^)\vec{r} = (1\hat{i} - \hat{j} + 2\hat{k}) + \lambda (2\hat{i} + 3\hat{j} - \hat{k}). Cartesian form as x−12=y+13=z−2−1\frac{x - 1}{2} = \frac{y + 1}{3} = \frac{z - 2}{-1}.

Quick Reference

FormEquation
Vectorr⃗=a⃗+λb⃗\vec{r} = \vec{a} + \lambda \vec{b}
Cartesianx−x1a=y−y1b=z−z1c\frac{x - x_1}{a} = \frac{y - y_1}{b} = \frac{z - z_1}{c}

Glossary

  • Position Vector: Vector from origin to a point.
  • Collinear Vectors: Vectors lying along the same line.
  • Parameter λ\lambda: Scalar parameter defining points on the line.

Angle Between Two Lines

Given two lines with direction ratios (a1,b1,c1)(a_1, b_1, c_1) and (a2,b2,c2)(a_2, b_2, c_2), the angle θ\theta between them is given by:

cos⁡θ=∣a1a2+b1b2+c1c2a12+b12+c12a22+b22+c22∣\cos \theta = \left| \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}} \right|

Alternatively, if direction cosines (l1,m1,n1)(l_1, m_1, n_1) and (l2,m2,n2)(l_2, m_2, n_2) are known, then:

cos⁡θ=∣l1l2+m1m2+n1n2∣\cos \theta = |l_1 l_2 + m_1 m_2 + n_1 n_2|

Vector Form

If vector equations of lines are r⃗1=a⃗1+λb⃗1\vec{r}_1 = \vec{a}_1 + \lambda \vec{b}_1 and r⃗2=a⃗2+μb⃗2\vec{r}_2 = \vec{a}_2 + \mu \vec{b}_2, then

cos⁡θ=∣b⃗1⋅b⃗2∣b⃗1∣∣b⃗2∣∣\cos \theta = \left| \frac{\vec{b}_1 \cdot \vec{b}_2}{|\vec{b}_1| |\vec{b}_2|} \right|

Special Cases

  • Lines are perpendicular if a1a2+b1b2+c1c2=0a_1 a_2 + b_1 b_2 + c_1 c_2 = 0.
  • Lines are parallel if a1a2=b1b2=c1c2\frac{a_1}{a_2} = \frac{b_1}{b_2} = \frac{c_1}{c_2}.

Practice Set

  • Level 1 – Easy: Find the angle between lines with direction ratios (1, 0, 0) and (0, 1, 0).
  • Level 2 – Moderate: Find the angle between lines with direction ratios (2, -1, 2) and (1, 2, -2).
  • Level 3 – Challenging: Given vector equations r⃗1=i^+j^+λ(2i^−j^+k^)\vec{r}_1 = \hat{i} + \hat{j} + \lambda (2\hat{i} - \hat{j} + \hat{k}) and r⃗2=2i^+j^−k^+μ(3i^−5j^+2k^)\vec{r}_2 = 2\hat{i} + \hat{j} - \hat{k} + \mu (3\hat{i} - 5\hat{j} + 2\hat{k}), find the angle between the lines.

Answer Key

  • Level 1: 90∘90^\circ.
  • Level 2: cos⁡θ=2×1+(−1)×2+2×(−2)4+1+41+4+4=2−2−43×3=−49\cos \theta = \frac{2 \times 1 + (-1) \times 2 + 2 \times (-2)}{\sqrt{4 + 1 + 4} \sqrt{1 + 4 + 4}} = \frac{2 - 2 - 4}{3 \times 3} = \frac{-4}{9}. θ=cos⁡−1(49)\theta = \cos^{-1} \left( \frac{4}{9} \right).
  • Level 3: Calculate dot product and magnitudes of direction vectors to find cos⁡θ\cos \theta.

Quick Reference

FormulaExpression
Angle between lines (direction ratios)cos⁡θ=∣a1a2+b1b2+c1c2a12+b12+c12a22+b22+c22∣\cos \theta = \left| \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}} \right|
Angle between lines (direction cosines)cos⁡θ=∣l1l2+m1m2+n1n2∣\cos \theta = |l_1 l_2 + m_1 m_2 + n_1 n_2|

Glossary

  • Dot Product: Scalar product of two vectors.
  • Direction Ratios: Proportional numbers defining line direction.
  • Direction Cosines: Cosines of angles with coordinate axes.

Shortest Distance Between Two Lines

For two lines in space, the shortest distance is the length of the perpendicular segment joining them.

If lines are parallel, the shortest distance is the perpendicular distance between them.

If lines are skew (non-parallel and non-intersecting), the shortest distance dd is given by:

d=∣(b⃗1×b⃗2)⋅(a⃗2−a⃗1)∣∣b⃗1×b⃗2∣d = \frac{|(\vec{b}_1 \times \vec{b}_2) \cdot (\vec{a}_2 - \vec{a}_1)|}{|\vec{b}_1 \times \vec{b}_2|}

where a⃗1,a⃗2\vec{a}_1, \vec{a}_2 are position vectors of points on the two lines, and b⃗1,b⃗2\vec{b}_1, \vec{b}_2 are their direction vectors.

Solved Example

Find the shortest distance between the lines:

r⃗=(i^+j^)+λ(2i^−j^+k^)\vec{r} = (\hat{i} + \hat{j}) + \lambda (2\hat{i} - \hat{j} + \hat{k}) r⃗=(2i^+j^−k^)+μ(3i^−5j^+2k^)\vec{r} = (2\hat{i} + \hat{j} - \hat{k}) + \mu (3\hat{i} - 5\hat{j} + 2\hat{k})

Solution:

Calculate b⃗1×b⃗2\vec{b}_1 \times \vec{b}_2:

∣i^j^k^2−113−52∣=i^(−1×2−1×−5)−j^(2×2−1×3)+k^(2×−5−(−1)×3)=3i^−j^−7k^\begin{vmatrix} \hat{i} & \hat{j} & \hat{k} \\ 2 & -1 & 1 \\ 3 & -5 & 2 \end{vmatrix} = \hat{i}(-1 \times 2 - 1 \times -5) - \hat{j}(2 \times 2 - 1 \times 3) + \hat{k}(2 \times -5 - (-1) \times 3) = 3\hat{i} - \hat{j} - 7\hat{k}

Magnitude:

∣b⃗1×b⃗2∣=32+(−1)2+(−7)2=59|\vec{b}_1 \times \vec{b}_2| = \sqrt{3^2 + (-1)^2 + (-7)^2} = \sqrt{59}

Vector between points on lines:

a⃗2−a⃗1=(2i^+j^−k^)−(i^+j^)=i^−k^\vec{a}_2 - \vec{a}_1 = (2\hat{i} + \hat{j} - \hat{k}) - (\hat{i} + \hat{j}) = \hat{i} - \hat{k}

Dot product:

(b⃗1×b⃗2)⋅(a⃗2−a⃗1)=(3i^−j^−7k^)⋅(i^−k^)=3−0+7=10(\vec{b}_1 \times \vec{b}_2) \cdot (\vec{a}_2 - \vec{a}_1) = (3\hat{i} - \hat{j} - 7\hat{k}) \cdot (\hat{i} - \hat{k}) = 3 - 0 + 7 = 10

Therefore, shortest distance:

d=∣10∣59=1059d = \frac{|10|}{\sqrt{59}} = \frac{10}{\sqrt{59}}

Practice Set

  • Level 1 – Easy: Find the shortest distance between two parallel lines x1=y2=z3\frac{x}{1} = \frac{y}{2} = \frac{z}{3} and x−11=y−22=z−33\frac{x-1}{1} = \frac{y-2}{2} = \frac{z-3}{3}.
  • Level 2 – Moderate: Find the shortest distance between lines r⃗=i^+2j^+λ(3i^−j^+4k^)\vec{r} = \hat{i} + 2\hat{j} + \lambda (3\hat{i} - \hat{j} + 4\hat{k}) and r⃗=2i^+j^+μ(4i^+j^−2k^)\vec{r} = 2\hat{i} + \hat{j} + \mu (4\hat{i} + \hat{j} - 2\hat{k}).
  • Level 3 – Challenging: Prove that the shortest distance between skew lines is given by the formula above.

Answer Key

  • Level 1: Distance is the length of vector between points on lines projected perpendicular to direction vector.
  • Level 2: Use cross product and dot product as in example to find distance.
  • Level 3: Use vector projection and properties of skew lines to prove formula.

Quick Reference

QuantityFormula
Shortest distance between skew linesd=∣(b⃗1×b⃗2)⋅(a⃗2−a⃗1)∣∣b⃗1×b⃗2∣d = \frac{|(\vec{b}_1 \times \vec{b}_2) \cdot (\vec{a}_2 - \vec{a}_1)|}{|\vec{b}_1 \times \vec{b}_2|}

Glossary

  • Skew Lines: Lines that are not parallel and do not intersect.
  • Cross Product: Vector product of two vectors.
  • Dot Product: Scalar product of two vectors.

Mathematics — ALL CHAPTERS

1

Relations And Functions

View

2

Inverse Trigonometric Functions

View

3

Matrices

View

4

DETERMINANTS 

View

5

Continuity And Differentiability

View

6

Application Of Derivatives

View

7

Integrals

View

8

APPLICATION OF INTEGRALS

View

9

DIFFERENTIAL EQUATIONS

View

10

VECTOR ALGEBRA

View

11

Three Dimensional Geometry

View

12

Linear Programming

View

13

Probability

View

14

Proofs In Mathematics

View

15

Mathematical Modelling

View
Three Dimensional Geometry Notes – Class 12 Mathematics | Prepzy