Skip to content
Skip to page content
soylai.com

Three-Dimensional Geometry: Lines — chapter notes

6 sections 3 min readBeta

1. Direction cosines and direction ratios

  • If a line makes angles α\alpha, β\beta, γ\gamma with the axes, its direction cosines are l=cos⁡αl = \cos\alpha, m=cos⁡βm = \cos\beta, n=cos⁡γn = \cos\gamma, and l2+m2+n2=1l^2 + m^2 + n^2 = 1.
  • Direction ratios a,b,ca, b, c are any numbers proportional to l,m,nl, m, n: l=aa2+b2+c2l = \dfrac{a}{\sqrt{a^2 + b^2 + c^2}}, and so on.
  • Through P(x1,y1,z1)P(x_1, y_1, z_1) and Q(x2,y2,z2)Q(x_2, y_2, z_2): ratios x2−x1x_2 - x_1, y2−y1y_2 - y_1, z2−z1z_2 - z_1; divide by PQPQ for the cosines.
$OP$ makes angles $\alpha$, $\beta$, $\gamma$ with the axes: $l = \cos\alpha$, $m = \cos\beta$, $n = \cos\gamma$ (sketch, not to scale).
Many sets of ratios describe one line; dividing by the length gives the cosines.
Direction ratiosLengthDirection cosines
6,−3,26, -3, 27767,−37,27\dfrac{6}{7}, -\dfrac{3}{7}, \dfrac{2}{7}
12,−6,412, -6, 4141467,−37,27\dfrac{6}{7}, -\dfrac{3}{7}, \dfrac{2}{7}
−6,3,−2-6, 3, -277−67,37,−27-\dfrac{6}{7}, \dfrac{3}{7}, -\dfrac{2}{7}
Subtract, measure, divide, check.
StepWorking
Ratios5−3, 4−(−2), −2−1=2,6,−35 - 3,\ 4 - (-2),\ -2 - 1 = 2, 6, -3
Length4+36+9=7\sqrt{4 + 36 + 9} = 7
Cosines27,67,−37\dfrac{2}{7}, \dfrac{6}{7}, -\dfrac{3}{7}
Check4+36+949=1\dfrac{4 + 36 + 9}{49} = 1

Formulas

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

Key terms

Direction cosines

Cosines of the angles a line makes with the three axes.

Direction ratios

Any three numbers proportional to the direction cosines.

2. Coordinate axes and coordinate planes

  • xx-axis: y=0y = 0, z=0z = 0; yy-axis: x=0x = 0, z=0z = 0; zz-axis: x=0x = 0, y=0y = 0.
  • Vector forms: r⃗=λi^\vec{r} = \lambda\hat{i}, r⃗=λj^\vec{r} = \lambda\hat{j}, r⃗=λk^\vec{r} = \lambda\hat{k}.
  • Coordinate planes: xyxy-plane z=0z = 0; yzyz-plane x=0x = 0; zxzx-plane y=0y = 0.
  • An axis needs two equations; a coordinate plane needs one.
An axis needs two equations; a coordinate plane needs one.
ObjectEquation(s)Direction cosines
xx-axisy=0y = 0, z=0z = 01,0,01, 0, 0
yy-axisx=0x = 0, z=0z = 00,1,00, 1, 0
zz-axisx=0x = 0, y=0y = 00,0,10, 0, 1
xyxy-planez=0z = 0—
yzyz-planex=0x = 0—
zxzx-planey=0y = 0—
On the $z$-axis, $x = 0$ and $y = 0$ (sketch, not to scale).

Formulas

  • Example
    z-axis: x=0, y=0\text{z-axis: } x = 0,\ y = 0

Key terms

Coordinate plane

A plane containing two of the axes, such as z=0z = 0.

3. Angle between two lines

For direction ratios a1,b1,c1a_1, b_1, c_1 and a2,b2,c2a_2, b_2, c_2:

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).

  • 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}.
  • A direction perpendicular to two lines: b⃗1×b⃗2\vec{b}_1 \times \vec{b}_2.
Only the directions matter for angles.
Condition on ratios a1,b1,c1a_1, b_1, c_1 and a2,b2,c2a_2, b_2, c_2Meaning
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 θ\theta 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
$\theta = \cos^{-1}\dfrac23$.
QuantityValue
Ratios1,2,21, 2, 2 and 4,0,34, 0, 3
Sum of products4+0+6=104 + 0 + 6 = 10
Lengths3 and 53 \text{ and } 5
cos⁡θ\cos\theta1015=23\dfrac{10}{15} = \dfrac23
Zero sum of products, or equal ratios.
TestWorkingResult
Perpendicular2(3)+(−1)(2)+k(−1)=02(3) + (-1)(2) + k(-1) = 0k=4k = 4
Parallel−42=2−1=−63=−2\dfrac{-4}{2} = \dfrac{2}{-1} = \dfrac{-6}{3} = -2parallel

Formulas

  • Angle between lines
    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

Perpendicular lines

Lines whose direction ratios have zero sum of products.

4. Equations of a line

  • Through a⃗\vec{a}, parallel to b⃗\vec{b}: r⃗=a⃗+λb⃗\vec{r} = \vec{a} + \lambda\vec{b}; Cartesian x−x1a=y−y1b=z−z1c\dfrac{x - x_1}{a} = \dfrac{y - y_1}{b} = \dfrac{z - z_1}{c}.
  • Through two points a⃗\vec{a}, b⃗\vec{b}: r⃗=a⃗+λ(b⃗−a⃗)\vec{r} = \vec{a} + \lambda(\vec{b} - \vec{a}); Cartesian x−x1x2−x1=y−y1y2−y1=z−z1z2−z1\dfrac{x - x_1}{x_2 - x_1} = \dfrac{y - y_1}{y_2 - y_1} = \dfrac{z - z_1}{z_2 - z_1}.
  • Standard form: make the coefficients of xx, yy, zz equal to 11 before reading the point and the ratios.
  • A general point of the line is (x1+aλ, y1+bλ, z1+cλ)(x_1 + a\lambda,\ y_1 + b\lambda,\ z_1 + c\lambda).
$\vec{r} = \vec{a} + \lambda\vec{b}$ (sketch, not to scale).
Vector form to Cartesian form in two steps.
Direction from the difference of the two points.
FormEquation
Vectorr⃗=2i^−j^+4k^+λ(3i^+2j^−4k^)\vec{r} = 2\hat{i} - \hat{j} + 4\hat{k} + \lambda(3\hat{i} + 2\hat{j} - 4\hat{k})
Cartesianx−23=y+12=z−4−4\dfrac{x - 2}{3} = \dfrac{y + 1}{2} = \dfrac{z - 4}{-4}
Check with λ=2\lambda = 2(8,3,−4)(8, 3, -4)
Make each coefficient of $x$, $y$, $z$ equal to $1$ before reading.
Given partStandard formRead off
3−x4\dfrac{3 - x}{4}x−3−4\dfrac{x - 3}{-4}point 33, ratio −4-4
2y+16\dfrac{2y + 1}{6}y+123\dfrac{y + \frac12}{3}point −12-\dfrac12, ratio 33
z+2−3\dfrac{z + 2}{-3}z+2−3\dfrac{z + 2}{-3}point −2-2, ratio −3-3

Formulas

  • Vector form
    r⃗=a⃗+λb⃗\vec{r} = \vec{a} + \lambda\vec{b}

Key terms

Direction vector

The vector b⃗\vec{b} in r⃗=a⃗+λb⃗\vec{r} = \vec{a} + \lambda\vec{b}.

5. Coplanar and skew lines; intersection; distance from a line

  • Lines 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 with non-parallel directions are coplanar (and intersect) iff (a⃗2−a⃗1)⋅(b⃗1×b⃗2)=0(\vec{a}_2 - \vec{a}_1) \cdot (\vec{b}_1 \times \vec{b}_2) = 0; otherwise they are skew.
  • Point of intersection: equate general points, solve two equations for λ\lambda and μ\mu, check the third.
  • Foot of the perpendicular from PP: take FF on the line with PF⃗⋅b⃗=0\vec{PF} \cdot \vec{b} = 0; distance =PF= PF, or ∣(P⃗−a⃗)×b⃗∣∣b⃗∣\dfrac{|(\vec{P} - \vec{a}) \times \vec{b}|}{|\vec{b}|}.
  • Image of PP in the line: 2F−P2F - P.
Intersect, parallel or skew?
Two equations fix the parameters; the third decides.
StepWorking
General points(1+2λ, λ, 2−λ)(1 + 2\lambda,\ \lambda,\ 2 - \lambda) and (4+μ, 4+3μ, 2+μ)(4 + \mu,\ 4 + 3\mu,\ 2 + \mu)
From xx and yy2λ−μ=3, λ−3μ=42\lambda - \mu = 3,\ \lambda - 3\mu = 4
Solveλ=1, μ=−1\lambda = 1,\ \mu = -1
Check zz2−1=1 and 2+(−1)=12 - 1 = 1 \text{ and } 2 + (-1) = 1
Point(3,1,1)(3, 1, 1)
Foot of the perpendicular $F$ and distance $PF$ (sketch, not to scale).
Make $\vec{PF}$ perpendicular to the direction.
StepWorking
General pointF=(λ, 2−2λ, −1+2λ)F = (\lambda,\ 2 - 2\lambda,\ -1 + 2\lambda)
PF⃗\vec{PF}(λ−7, 5−2λ, 4+2λ)(\lambda - 7,\ 5 - 2\lambda,\ 4 + 2\lambda)
Perpendicular(λ−7)−2(5−2λ)+2(4+2λ)=9λ−9=0(\lambda - 7) - 2(5 - 2\lambda) + 2(4 + 2\lambda) = 9\lambda - 9 = 0
Footλ=1, F=(1,0,1)\lambda = 1,\ F = (1, 0, 1)
DistancePF=36+9+36=9PF = \sqrt{36 + 9 + 36} = 9

Formulas

  • Coplanar
    (a⃗2−a⃗1)⋅(b⃗1×b⃗2)=0(\vec{a}_2 - \vec{a}_1) \cdot (\vec{b}_1 \times \vec{b}_2) = 0

Key terms

Skew lines

Lines that are not parallel and do not meet.

Foot of the perpendicular

The point of the line nearest to the given point.

6. Shortest distance

  • Skew lines: d=∣(b⃗1×b⃗2)⋅(a⃗2−a⃗1)∣∣b⃗1×b⃗2∣d = \dfrac{|(\vec{b}_1 \times \vec{b}_2) \cdot (\vec{a}_2 - \vec{a}_1)|}{|\vec{b}_1 \times \vec{b}_2|}.
  • Parallel lines r⃗=a⃗1+λb⃗\vec{r} = \vec{a}_1 + \lambda\vec{b}, 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}|}.
  • d=0d = 0 for intersecting lines. For Cartesian lines, first read a⃗1\vec{a}_1, b⃗1\vec{b}_1, a⃗2\vec{a}_2, b⃗2\vec{b}_2.
The skew formula fails for parallel lines because $\vec{b}_1 \times \vec{b}_2 = \vec{0}$.
LinesShortest distance
Skew: r⃗=a⃗1+λb⃗1\vec{r} = \vec{a}_1 + \lambda\vec{b}_1, r⃗=a⃗2+μb⃗2\vec{r} = \vec{a}_2 + \mu\vec{b}_2d=∣(b⃗1×b⃗2)⋅(a⃗2−a⃗1)∣∣b⃗1×b⃗2∣d = \dfrac{|(\vec{b}_1 \times \vec{b}_2) \cdot (\vec{a}_2 - \vec{a}_1)|}{|\vec{b}_1 \times \vec{b}_2|}
Parallel: common direction b⃗\vec{b}d=∣b⃗×(a⃗2−a⃗1)∣∣b⃗∣d = \dfrac{|\vec{b} \times (\vec{a}_2 - \vec{a}_1)|}{|\vec{b}|}
Intersectingd=0d = 0
Skew lines and their common perpendicular $MN$ (sketch, not to scale).
Cross, dot, divide.
QuantityValue
b⃗1×b⃗2\vec{b}_1 \times \vec{b}_2−3i^+6j^+6k^-3\hat{i} + 6\hat{j} + 6\hat{k}
∣b⃗1×b⃗2∣|\vec{b}_1 \times \vec{b}_2|99
a⃗2−a⃗1\vec{a}_2 - \vec{a}_1i^+3k^\hat{i} + 3\hat{k}
Dot product−3+0+18=15-3 + 0 + 18 = 15
dd159=53\dfrac{15}{9} = \dfrac53
Parallel lines need their own formula.
QuantityValue
a⃗2−a⃗1\vec{a}_2 - \vec{a}_12i^−2j^+3k^2\hat{i} - 2\hat{j} + 3\hat{k}
b⃗×(a⃗2−a⃗1)\vec{b} \times (\vec{a}_2 - \vec{a}_1)2i^−7j^−6k^2\hat{i} - 7\hat{j} - 6\hat{k}
Its length89\sqrt{89}
∣b⃗∣|\vec{b}|33
dd893\dfrac{\sqrt{89}}{3}

Formulas

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

Key terms

Shortest distance

The length of the common perpendicular of two lines.

Exam tips

How ISC marks are awarded

  • Direction cosines (2 marks): ratios and length, then cosines.
  • Angle between lines (2 marks): sum of products and lengths, then the angle.
  • Lines intersect (3 marks): general points, parameters, third equation checked and the point.
  • Foot and distance (3 marks): PF⃗\vec{PF}, λ\lambda and foot, distance.
  • Shortest distance (3 marks): cross product and length, dot product, answer.

Common mistakes

  • Reading ratios from a Cartesian line that is not in standard form.
  • Forgetting the modulus for the acute angle.
  • Calling lines skew without first showing they are not parallel.
  • Using the skew formula for parallel lines (its denominator is 00).
  • Not checking the third equation when finding a point of intersection.