Skip to content
Skip to page content
soylai.com

Three Dimensional Geometry — chapter notes

7 sections 5 min readBeta

1. Direction cosines

If a directed line makes angles α\alpha, β\beta, γ\gamma with the positive xx-, yy- and zz-axes, its direction cosines are l=cos⁡αl = \cos\alpha, m=cos⁡βm = \cos\beta, n=cos⁡γn = \cos\gamma. They are the components of a unit vector along the line, so l2+m2+n2=1l^2 + m^2 + n^2 = 1. Reversing the direction changes the signs of all three.

Example: a line making 120∘120^\circ with the xx-axis and 45∘45^\circ with the yy-axis has cos⁡2γ=1−14−12=14\cos^2\gamma = 1 - \dfrac14 - \dfrac12 = \dfrac14, so γ=60∘\gamma = 60^\circ or 120∘120^\circ.

$OP$ makes angles $\alpha$, $\beta$, $\gamma$ with the axes; $l = \cos\alpha$, $m = \cos\beta$, $n = \cos\gamma$.

Formulas

  • Identity
    l2+m2+n2=1l^2 + m^2 + n^2 = 1

Key terms

Direction cosines

cos⁡α\cos\alpha, cos⁡β\cos\beta, cos⁡γ\cos\gamma for the angles a directed line makes with the axes.

Direction angles

The angles α\alpha, β\beta, γ\gamma themselves, each between 0∘0^\circ and 180∘180^\circ.

2. Direction ratios; line through two points

Numbers a,b,ca, b, c proportional to l,m,nl, m, n are direction ratios. Then l=±aa2+b2+c2l = \pm\dfrac{a}{\sqrt{a^2 + b^2 + c^2}}, and similarly for mm, nn (same sign throughout).

For the line through P(x1,y1,z1)P(x_1, y_1, z_1) and Q(x2,y2,z2)Q(x_2, y_2, z_2), direction ratios are x2−x1x_2 - x_1, y2−y1y_2 - y_1, z2−z1z_2 - z_1; dividing by PQPQ gives the direction cosines. Example: A(2,−1,3)A(2, -1, 3), B(4,5,0)B(4, 5, 0): ratios 2,6,−32, 6, -3, AB=7AB = 7, cosines 27,67,−37\dfrac27, \dfrac67, -\dfrac37.

Collinearity: AA, BB, CC are collinear if the ratios of ABAB and BCBC are proportional (they share BB).

Many sets of ratios, one line; divide by the length to get the cosines.
Direction ratiosLengthDirection cosines
2,−6,32, -6, 37727,−67,37\dfrac27, -\dfrac67, \dfrac37
4,−12,64, -12, 6141427,−67,37\dfrac27, -\dfrac67, \dfrac37
−2,6,−3-2, 6, -377−27,67,−37-\dfrac27, \dfrac67, -\dfrac37
Proportional ratios and a shared point: $P$, $Q$, $R$ are collinear.
PairDirection ratiosMultiple of 1,−2,31, -2, 3
PQPQ2,−4,62, -4, 622
QRQR1,−2,31, -2, 311
PRPR3,−6,93, -6, 933

Formulas

  • Direction cosines from two points
    l=x2−x1PQ, m=y2−y1PQ, n=z2−z1PQl = \dfrac{x_2 - x_1}{PQ},\ m = \dfrac{y_2 - y_1}{PQ},\ n = \dfrac{z_2 - z_1}{PQ}

Key terms

Direction ratios

Any three numbers proportional to the direction cosines; infinitely many sets for one line.

Collinear points

Points on one straight line.

3. Equation of a line in space

Vector form. Through the point a⃗\vec{a} parallel to b⃗\vec{b}: r⃗=a⃗+λb⃗\vec{r} = \vec{a} + \lambda\vec{b}. Through two points a⃗\vec{a}, c⃗\vec{c}: r⃗=a⃗+λ(c⃗−a⃗)\vec{r} = \vec{a} + \lambda(\vec{c} - \vec{a}).

Cartesian form. Through (x1,y1,z1)(x_1, y_1, z_1) with direction ratios a,b,ca, b, c: x−x1a=y−y1b=z−z1c\dfrac{x - x_1}{a} = \dfrac{y - y_1}{b} = \dfrac{z - z_1}{c} (=λ= \lambda, giving the general point (x1+λa,y1+λb,z1+λc)(x_1 + \lambda a, y_1 + \lambda b, z_1 + \lambda c)).

Standard form first: in 2x−13=y+22=4−z5\dfrac{2x - 1}{3} = \dfrac{y + 2}{2} = \dfrac{4 - z}{5}, rewrite as x−1232=y+22=z−4−5\dfrac{x - \frac12}{\frac32} = \dfrac{y + 2}{2} = \dfrac{z - 4}{-5}: point (12,−2,4)\left(\dfrac12, -2, 4\right), ratios 3,4,−103, 4, -10.

$\vec{r} = \vec{a} + \lambda\vec{b}$: start at $A$, move any multiple of $\vec{b}$.
Point $\left(\dfrac12, -2, 4\right)$; ratios $3, 4, -10$ after doubling.
GivenStandard formRead off
2x−13\dfrac{2x - 1}{3}x−1232\dfrac{x - \frac12}{\frac32}point x1=12x_1 = \dfrac12, ratio 32\dfrac32
y+22\dfrac{y + 2}{2}y+22\dfrac{y + 2}{2}y1=−2y_1 = -2, ratio 22
4−z5\dfrac{4 - z}{5}z−4−5\dfrac{z - 4}{-5}z1=4z_1 = 4, ratio −5-5

Formulas

  • Vector form
    r⃗=a⃗+λb⃗\vec{r} = \vec{a} + \lambda\vec{b}
  • Cartesian form
    x−x1a=y−y1b=z−z1c\dfrac{x - x_1}{a} = \dfrac{y - y_1}{b} = \dfrac{z - z_1}{c}

Key terms

Parameter

The real number λ\lambda; each value gives one point of the line.

Standard form

Cartesian form in which xx, yy, zz each have coefficient 11.

4. Angle between two lines

The angle between two lines is the angle between their direction vectors (taken acute):

cos⁡θ=∣a1a2+b1b2+c1c2∣a12+b12+c12 a22+b22+c22\cos\theta = \dfrac{|a_1a_2 + b_1b_2 + c_1c_2|}{\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\dfrac{a_1}{a_2} = \dfrac{b_1}{b_2} = \dfrac{c_1}{c_2} (then check a point: they may coincide).

Example: directions i^+j^\hat{i} + \hat{j} and j^+k^\hat{j} + \hat{k} give cos⁡θ=12\cos\theta = \dfrac12, θ=60∘\theta = 60^\circ.

Only the directions matter for angles.
ConditionMeaning
cos⁡θ=∣a1a2+b1b2+c1c2∣a12+b12+c12 a22+b22+c22\cos\theta = \dfrac{|a_1a_2 + b_1b_2 + c_1c_2|}{\sqrt{a_1^2 + b_1^2 + c_1^2}\,\sqrt{a_2^2 + b_2^2 + c_2^2}}acute angle between the lines
a1a2+b1b2+c1c2=0a_1a_2 + b_1b_2 + c_1c_2 = 0perpendicular
a1a2=b1b2=c1c2\dfrac{a_1}{a_2} = \dfrac{b_1}{b_2} = \dfrac{c_1}{c_2}parallel (or coincident)
$3k - 12 = 0$ gives $k = 4$.
kk2k+k(1)+3(−4)2k + k(1) + 3(-4)Perpendicular?
33−3-3no
4400yes
5533no

Formulas

  • Angle
    cos⁡θ=∣b⃗1⋅b⃗2∣∣b⃗1∣ ∣b⃗2∣\cos\theta = \dfrac{|\vec{b}_1 \cdot \vec{b}_2|}{|\vec{b}_1|\,|\vec{b}_2|}

Key terms

Angle between lines

The acute angle between their direction vectors; defined for skew lines too.

5. Intersecting, parallel and skew lines

Two distinct lines in space are parallel, intersecting or skew (neither parallel nor intersecting; not coplanar).

Do they meet? Write general points of both lines, equate two coordinates, solve for λ\lambda and μ\mu, and test the third coordinate. Example: r⃗=i^−j^+2k^+λ(2i^+3j^+k^)\vec{r} = \hat{i} - \hat{j} + 2\hat{k} + \lambda(2\hat{i} + 3\hat{j} + \hat{k}) and r⃗=−i^+4j^+k^+μ(2i^−j^+k^)\vec{r} = -\hat{i} + 4\hat{j} + \hat{k} + \mu(2\hat{i} - \hat{j} + \hat{k}) give λ=1\lambda = 1, μ=2\mu = 2 and the common point (3,2,3)(3, 2, 3).

Quick test: for non-parallel lines, (b⃗1×b⃗2)⋅(a⃗2−a⃗1)=0(\vec{b}_1 \times \vec{b}_2) \cdot (\vec{a}_2 - \vec{a}_1) = 0 exactly when they intersect.

Three kinds of pairs in space: parallel, intersecting, skew.
All three coordinates agree: the lines meet at $(3, 2, 3)$.
EquationFrom L1L_1From L2L_2
xx1+2λ1 + 2\lambda−1+2μ-1 + 2\mu
yy−1+3λ-1 + 3\lambda4−μ4 - \mu
zz2+λ2 + \lambda1+μ1 + \mu
λ=1\lambda = 1, μ=2\mu = 2(3,2,3)(3, 2, 3)(3,2,3)(3, 2, 3)

Key terms

Skew lines

Lines in space that are not parallel and do not intersect.

Coplanar lines

Lines lying in one plane (parallel or intersecting).

6. Shortest distance between skew lines

The shortest distance is the length of the segment perpendicular to both lines (the common perpendicular). For r⃗=a⃗1+λb⃗1\vec{r} = \vec{a}_1 + \lambda\vec{b}_1 and r⃗=a⃗2+μb⃗2\vec{r} = \vec{a}_2 + \mu\vec{b}_2:

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

Example: a⃗1=i^+2j^\vec{a}_1 = \hat{i} + 2\hat{j}, b⃗1=i^+k^\vec{b}_1 = \hat{i} + \hat{k}, a⃗2=j^+3k^\vec{a}_2 = \hat{j} + 3\hat{k}, b⃗2=j^−k^\vec{b}_2 = \hat{j} - \hat{k}: b⃗1×b⃗2=−i^+j^+k^\vec{b}_1 \times \vec{b}_2 = -\hat{i} + \hat{j} + \hat{k}, dot product 33, d=3d = \sqrt3.

In Cartesian form, read a⃗\vec{a} and b⃗\vec{b} from the standard form first. The scalar triple product notation and planes are not in the 2026–27 syllabus; write the dot and cross products out.

Skew lines and their common perpendicular $MN$.
Four steps, one number.
StepFor the example
b⃗1×b⃗2\vec{b}_1 \times \vec{b}_2−i^+j^+k^-\hat{i} + \hat{j} + \hat{k}, length 3\sqrt3
a⃗2−a⃗1\vec{a}_2 - \vec{a}_1−i^−j^+3k^-\hat{i} - \hat{j} + 3\hat{k}
dot product1−1+3=31 - 1 + 3 = 3
dd33=3\dfrac{3}{\sqrt3} = \sqrt3

Formulas

  • Skew lines
    d=∣(b⃗1×b⃗2)⋅(a⃗2−a⃗1)∣b⃗1×b⃗2∣∣d = \left|\dfrac{(\vec{b}_1 \times \vec{b}_2) \cdot (\vec{a}_2 - \vec{a}_1)}{|\vec{b}_1 \times \vec{b}_2|}\right|

Key terms

Common perpendicular

The segment perpendicular to both skew lines; its length is the shortest distance.

7. Distance between parallel lines; foot of a perpendicular

For parallel lines r⃗=a⃗1+λb⃗\vec{r} = \vec{a}_1 + \lambda\vec{b} and r⃗=a⃗2+μb⃗\vec{r} = \vec{a}_2 + \mu\vec{b}: d=∣b⃗×(a⃗2−a⃗1)∣∣b⃗∣d = \dfrac{|\vec{b} \times (\vec{a}_2 - \vec{a}_1)|}{|\vec{b}|}. Example: b⃗=2i^−j^+2k^\vec{b} = 2\hat{i} - \hat{j} + 2\hat{k}, a⃗2−a⃗1=2i^−2j^+2k^\vec{a}_2 - \vec{a}_1 = 2\hat{i} - 2\hat{j} + 2\hat{k} give d=223d = \dfrac{2\sqrt2}{3}.

Foot of the perpendicular from a point PP to a line: take the general point FF of the line, set PF⃗⋅b⃗=0\vec{PF} \cdot \vec{b} = 0, solve for λ\lambda. Example: P(5,3,−2)P(5, 3, -2) and r⃗=i^+2k^+λ(i^+2j^−2k^)\vec{r} = \hat{i} + 2\hat{k} + \lambda(\hat{i} + 2\hat{j} - 2\hat{k}) give λ=2\lambda = 2, F(3,4,−2)F(3, 4, -2), distance 5\sqrt5.

$d = \dfrac{|\vec{b} \times (\vec{a}_2 - \vec{a}_1)|}{|\vec{b}|}$.
Divide by the length of $\vec{b}$, not by a cross product.
StepFor the example
a⃗2−a⃗1\vec{a}_2 - \vec{a}_12i^−2j^+2k^2\hat{i} - 2\hat{j} + 2\hat{k}
b⃗×(a⃗2−a⃗1)\vec{b} \times (\vec{a}_2 - \vec{a}_1)2i^−2k^2\hat{i} - 2\hat{k}, length 222\sqrt2
∣b⃗∣|\vec{b}|33
dd223\dfrac{2\sqrt2}{3}

Formulas

  • Parallel lines
    d=∣b⃗×(a⃗2−a⃗1)∣∣b⃗∣d = \dfrac{|\vec{b} \times (\vec{a}_2 - \vec{a}_1)|}{|\vec{b}|}

Key terms

Foot of the perpendicular

The point of a line closest to a given point.

Exam tips

How marks are awarded

  • Direction cosines (1–2 marks): ratios from differences, the length, then each ratio divided by it.
  • Equation of a line (2–3 marks): point and direction identified, vector form, Cartesian form.
  • Angle / perpendicular / parallel (2–3 marks): both sets of ratios from the standard form, formula, conclusion.
  • Shortest distance (3–5 marks): a⃗1,b⃗1,a⃗2,b⃗2\vec{a}_1, \vec{b}_1, \vec{a}_2, \vec{b}_2 written, cross product, its length, dot product, final distance with units and the conclusion (skew / intersecting).

Common mistakes

  1. Reading ratios from a line not in standard form (e.g. 4−z5\dfrac{4 - z}{5} has ratio −5-5).
  2. Dividing direction ratios by their sum instead of by the square root of the sum of squares.
  3. Forgetting the minus sign in the j^\hat{j} component of a cross product.
  4. Using the skew-lines formula for parallel lines (division by zero).
  5. Forgetting the modulus, giving a negative distance or an obtuse angle.
  6. Collinearity proofs without naming the common point.
  7. Concluding "parallel and distinct" without checking whether a point of one line lies on the other.
  8. Bringing in planes: the plane is not in the 2026–27 syllabus.