How Three Dimensional Geometry Is Asked

This chapter carries 6 printed marks, in three questions:

Q Marks What the board asks
Q13 1 Direction cosines of an axis, the equation of an axis, sin⁡2α+sin⁡2β+sin⁡2γ\sin^2\alpha + \sin^2\beta + \sin^2\gamma, or converting a line to vector form
Q28 2 The angle between two lines (four of the five exams), or k for perpendicular lines
Q37 3 The shortest distance between skew lines, the distance between parallel lines, or the derivation of r⃗=a⃗+λb⃗\vec{r} = \vec{a} + \lambda\vec{b}

The chapter is small and formula-based. Learn the four formulas below and the derivation, and all 6 marks are within reach.

Direction Cosines and Direction Ratios

If a line makes angles α\alpha, β\beta, γ\gamma with the x, y and z axes, its direction cosines are l=cos⁡αl = \cos\alpha, m=cos⁡βm = \cos\beta, n=cos⁡γn = \cos\gamma, and

l2+m2+n2=1⇒sin⁡2α+sin⁡2β+sin⁡2γ=2l^2 + m^2 + n^2 = 1 \quad\Rightarrow\quad \sin^2\alpha + \sin^2\beta + \sin^2\gamma = 2

Direction ratios a, b, c are any numbers proportional to l, m, n. To get direction cosines from direction ratios, divide by a2+b2+c2\sqrt{a^2 + b^2 + c^2} (with a ± sign for the two directions of the line).

The direction ratios of the line through (x1,y1,z1)(x_1, y_1, z_1) and (x2,y2,z2)(x_2, y_2, z_2) are x2−x1x_2 - x_1, y2−y1y_2 - y_1, z2−z1z_2 - z_1.

The axes:

Axis Direction cosines Equations
x-axis 1, 0, 0 y = 0, z = 0
y-axis 0, 1, 0 x = 0, z = 0
z-axis 0, 0, 1 x = 0, y = 0

The negative z-axis has direction cosines 0, 0, −1. Direction ratios of the x-axis are k, 0, 0 for any k≠0k \ne 0.

Equations of a Line

Through a point a⃗\vec{a} (or (x1,y1,z1)(x_1, y_1, z_1)), parallel to b⃗=ai^+bj^+ck^\vec{b} = a\hat{i} + b\hat{j} + c\hat{k}:

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

Through two points a⃗\vec{a} and b⃗\vec{b}: r⃗=a⃗+λ(b⃗−a⃗)\vec{r} = \vec{a} + \lambda(\vec{b} - \vec{a}).

Converting. From the Cartesian form, the point is read from the numerators with the signs changed, and the direction from the denominators. For x−53=y+47=z−62\frac{x - 5}{3} = \frac{y + 4}{7} = \frac{z - 6}{2}, the point is (5, −4, 6) and the direction is (3, 7, 2):

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

Before reading direction ratios, make sure each numerator is written as x−x1x - x_1 with coefficient 1. If the line is 1−x3\frac{1 - x}{3}, rewrite it as x−1−3\frac{x - 1}{-3}.

Derivation of r⃗=a⃗+λb⃗\vec{r} = \vec{a} + \lambda\vec{b} (Q37 in 2025 Exam-1 and 2026 Exam-1). Let the line pass through A with position vector a⃗\vec{a} and be parallel to b⃗\vec{b}. Let P with position vector r⃗\vec{r} be any point on the line. Then AP→\overrightarrow{AP} is parallel to b⃗\vec{b}, so AP→=λb⃗\overrightarrow{AP} = \lambda\vec{b} for some scalar λ\lambda. But AP→=r⃗−a⃗\overrightarrow{AP} = \vec{r} - \vec{a}. Therefore r⃗−a⃗=λb⃗\vec{r} - \vec{a} = \lambda\vec{b}, that is r⃗=a⃗+λb⃗\vec{r} = \vec{a} + \lambda\vec{b}. [Draw O, A and P with a⃗\vec{a}, r⃗\vec{r} and the line through A along b⃗\vec{b}; the figure is a mark.]

Angles and Distances

Angle between two lines with direction b1⃗\vec{b_1} and b2⃗\vec{b_2} (or direction ratios a1,b1,c1a_1, b_1, c_1 and a2,b2,c2a_2, b_2, c_2):

cos⁡θ=∣b1⃗⋅b2⃗∣∣b1⃗∣∣b2⃗∣=∣a1a2+b1b2+c1c2∣a12+b12+c12a22+b22+c22\cos\theta = \frac{\lvert\vec{b_1}\cdot\vec{b_2}\rvert}{\lvert\vec{b_1}\rvert\lvert\vec{b_2}\rvert} = \frac{\lvert a_1a_2 + b_1b_2 + c_1c_2\rvert}{\sqrt{a_1^2 + b_1^2 + c_1^2}\sqrt{a_2^2 + b_2^2 + c_2^2}}

  • Perpendicular: a1a2+b1b2+c1c2=0a_1a_2 + b_1b_2 + c_1c_2 = 0.
  • Parallel: a1a2=b1b2=c1c2\frac{a_1}{a_2} = \frac{b_1}{b_2} = \frac{c_1}{c_2}.

Shortest distance between skew lines r⃗=a1⃗+λb1⃗\vec{r} = \vec{a_1} + \lambda\vec{b_1} and r⃗=a2⃗+μb2⃗\vec{r} = \vec{a_2} + \mu\vec{b_2}:

d=∣(b1⃗×b2⃗)⋅(a2⃗−a1⃗)∣b1⃗×b2⃗∣∣d = \left\lvert\frac{(\vec{b_1} \times \vec{b_2})\cdot(\vec{a_2} - \vec{a_1})}{\lvert\vec{b_1} \times \vec{b_2}\rvert}\right\rvert

If d = 0, the lines intersect.

Distance between parallel lines r⃗=a1⃗+λb⃗\vec{r} = \vec{a_1} + \lambda\vec{b} and r⃗=a2⃗+μb⃗\vec{r} = \vec{a_2} + \mu\vec{b}:

d=∣b⃗×(a2⃗−a1⃗)∣∣b⃗∣d = \frac{\lvert\vec{b} \times (\vec{a_2} - \vec{a_1})\rvert}{\lvert\vec{b}\rvert}

Before using either formula, check whether the direction vectors are multiples of each other. If they are, the lines are parallel and you need the second formula.

Solved Examples

Question 1 (1 mark): If a line makes angles α\alpha, β\beta, γ\gamma with the axes, find sin⁡2α+sin⁡2β+sin⁡2γ\sin^2\alpha + \sin^2\beta + \sin^2\gamma.

Answer. sin⁡2α+sin⁡2β+sin⁡2γ=3−(cos⁡2α+cos⁡2β+cos⁡2γ)=3−1=2\sin^2\alpha + \sin^2\beta + \sin^2\gamma = 3 - (\cos^2\alpha + \cos^2\beta + \cos^2\gamma) = 3 - 1 = 2.

Question 2 (2 marks, 2026 Exam-1 Q28): Find the angle between the lines x−54=y−21=z−38\frac{x - 5}{4} = \frac{y - 2}{1} = \frac{z - 3}{8} and x2=y2=z1\frac{x}{2} = \frac{y}{2} = \frac{z}{1}.

Answer. Direction ratios 4, 1, 8 and 2, 2, 1.

cos⁡θ=8+2+8819=1827=23,θ=cos⁡−123\cos\theta = \frac{8 + 2 + 8}{\sqrt{81}\sqrt{9}} = \frac{18}{27} = \frac{2}{3}, \qquad \theta = \cos^{-1}\frac{2}{3}

Question 3 (2 marks, 2026 Exam-2 Q28): Find the angle between r⃗=3i^+2j^−4k^+λ(i^+2j^+2k^)\vec{r} = 3\hat{i} + 2\hat{j} - 4\hat{k} + \lambda(\hat{i} + 2\hat{j} + 2\hat{k}) and r⃗=5i^−2j^+μ(3i^+2j^+6k^)\vec{r} = 5\hat{i} - 2\hat{j} + \mu(3\hat{i} + 2\hat{j} + 6\hat{k}).

Answer. b1⃗=i^+2j^+2k^\vec{b_1} = \hat{i} + 2\hat{j} + 2\hat{k}, b2⃗=3i^+2j^+6k^\vec{b_2} = 3\hat{i} + 2\hat{j} + 6\hat{k}.

cos⁡θ=3+4+123×7=1921,θ=cos⁡−11921\cos\theta = \frac{3 + 4 + 12}{3 \times 7} = \frac{19}{21}, \qquad \theta = \cos^{-1}\frac{19}{21}

Question 4 (2 marks, 2025 Exam-1 Q28): Find k if the lines x−1−3=y−22k=z−32\frac{x - 1}{-3} = \frac{y - 2}{2k} = \frac{z - 3}{2} and x−13k=y−11=z−6−5\frac{x - 1}{3k} = \frac{y - 1}{1} = \frac{z - 6}{-5} are perpendicular.

Answer. (−3)(3k)+(2k)(1)+(2)(−5)=0(-3)(3k) + (2k)(1) + (2)(-5) = 0, so −9k+2k−10=0-9k + 2k - 10 = 0 and k=−107k = -\frac{10}{7}.

Question 5 (3 marks, 2025 Exam-2 and 2025 Exam-3 Q37): Find the shortest distance between r⃗=(i^+2j^+k^)+λ(i^−j^+k^)\vec{r} = (\hat{i} + 2\hat{j} + \hat{k}) + \lambda(\hat{i} - \hat{j} + \hat{k}) and r⃗=(2i^−j^−k^)+μ(2i^+j^+2k^)\vec{r} = (2\hat{i} - \hat{j} - \hat{k}) + \mu(2\hat{i} + \hat{j} + 2\hat{k}).

Answer. a2⃗−a1⃗=i^−3j^−2k^\vec{a_2} - \vec{a_1} = \hat{i} - 3\hat{j} - 2\hat{k}.

b1⃗×b2⃗=∣i^j^k^1−11212∣=−3i^+3k^,∣b1⃗×b2⃗∣=32\vec{b_1} \times \vec{b_2} = \begin{vmatrix} \hat{i} & \hat{j} & \hat{k} \\ 1 & -1 & 1 \\ 2 & 1 & 2 \end{vmatrix} = -3\hat{i} + 3\hat{k}, \qquad \lvert\vec{b_1} \times \vec{b_2}\rvert = 3\sqrt{2}

d=∣(−3)(1)+0+(3)(−2)∣32=932=32d = \frac{\lvert(-3)(1) + 0 + (3)(-2)\rvert}{3\sqrt{2}} = \frac{9}{3\sqrt{2}} = \frac{3}{\sqrt{2}}

Marks: 1 for a2⃗−a1⃗\vec{a_2} - \vec{a_1} and b1⃗×b2⃗\vec{b_1} \times \vec{b_2}, 1 for the formula, 1 for the answer.

Question 6 (3 marks, 2026 Exam-2 Q37): Find the distance between the lines r⃗=i^+2j^−4k^+λ(2i^+3j^+6k^)\vec{r} = \hat{i} + 2\hat{j} - 4\hat{k} + \lambda(2\hat{i} + 3\hat{j} + 6\hat{k}) and r⃗=3i^+3j^−5k^+μ(2i^+3j^+6k^)\vec{r} = 3\hat{i} + 3\hat{j} - 5\hat{k} + \mu(2\hat{i} + 3\hat{j} + 6\hat{k}).

Answer. Both have direction b⃗=2i^+3j^+6k^\vec{b} = 2\hat{i} + 3\hat{j} + 6\hat{k}, so they are parallel. a2⃗−a1⃗=2i^+j^−k^\vec{a_2} - \vec{a_1} = 2\hat{i} + \hat{j} - \hat{k}.

b⃗×(a2⃗−a1⃗)=∣i^j^k^23621−1∣=−9i^+14j^−4k^\vec{b} \times (\vec{a_2} - \vec{a_1}) = \begin{vmatrix} \hat{i} & \hat{j} & \hat{k} \\ 2 & 3 & 6 \\ 2 & 1 & -1 \end{vmatrix} = -9\hat{i} + 14\hat{j} - 4\hat{k}

d=81+196+164+9+36=2937d = \frac{\sqrt{81 + 196 + 16}}{\sqrt{4 + 9 + 36}} = \frac{\sqrt{293}}{7}