Part 6 · Chapter 30

Three-Dimensional Geometry

Geometry lifted into space — locating points by three coordinates, writing lines and planes as vector equations, and measuring the angles and distances between them, right up to the gap between two lines that never meet

Fundamentals of Mathematics Prof. Mithun Mondal Reading time ≈ 50 min
i What you'll learn
  • Locating points in space and the distance and section formulas in three dimensions.
  • Direction cosines and direction ratios of a line.
  • The vector and Cartesian equations of a line, and the angle between two lines.
  • The equation of a plane in normal, Cartesian and intercept form.
  • The angles between two planes and between a line and a plane.
  • The distance of a point from a plane, and the shortest distance between two skew lines.
Section 30-1

Coordinates & Distance in Space

A point in space needs three coordinates \((x,y,z)\), measured along three mutually perpendicular axes that divide space into eight octants. The distance between two points extends the plane formula with a third squared term, and the section formula carries over coordinate by coordinate.

z y x P(x,y,z) √(x²+y²+z²)
The distance from the origin to \(P\) is the space diagonal
🧊
Distance and section in space
\(\displaystyle PQ=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2+(z_2-z_1)^2}\)

A point dividing \(P_1P_2\) in the ratio \(m:n\) has coordinates \(\big(\tfrac{mx_2+nx_1}{m+n},\,\tfrac{my_2+ny_1}{m+n},\,\tfrac{mz_2+nz_1}{m+n}\big)\), and the midpoint is their average. Distance from the origin is simply \(\sqrt{x^2+y^2+z^2}\).

Section 30-2

Direction Cosines & Ratios

A line's orientation in space is captured by the angles \(\alpha,\beta,\gamma\) it makes with the three axes. The cosines of these angles are the direction cosines; any triple proportional to them is a set of direction ratios, which are usually far easier to read off.

z y x β γ line
\(l=\cos\alpha,\ m=\cos\beta,\ n=\cos\gamma\) are the direction cosines
🧭
Direction cosines and ratios
\(\displaystyle l^2+m^2+n^2=1;\qquad l:m:n=a:b:c\)

From direction ratios \(a,b,c\), recover the cosines by dividing by \(\sqrt{a^2+b^2+c^2}\). The line joining \(P_1\) and \(P_2\) has direction ratios \((x_2-x_1,\,y_2-y_1,\,z_2-z_1)\) — its components are exactly the displacement vector.

Section 30-3

The Equation of a Line

A line is fixed by one point on it and a direction. In vector form it is the running position \(\vec a\) plus any multiple of the direction \(\vec b\); eliminating the parameter gives the symmetric Cartesian form.

A b r = a + λb
A point \(\vec a\) and a direction \(\vec b\) determine the whole line
📏
Vector and Cartesian forms
\(\displaystyle \vec r=\vec a+\lambda\vec b\ \Longleftrightarrow\ \frac{x-x_1}{a}=\frac{y-y_1}{b}=\frac{z-z_1}{c}\)

The point is \((x_1,y_1,z_1)\) and the direction ratios are \((a,b,c)\). A line through two points \(\vec a,\vec b\) is \(\vec r=\vec a+\lambda(\vec b-\vec a)\), using the join as its direction.

Section 30-4

Angle Between Two Lines

The angle between two lines is the angle between their direction vectors — and a single dot product delivers it. The same expression instantly tells you when the lines are parallel or perpendicular.

📐
Angle from the direction ratios
\(\displaystyle \cos\theta=\frac{|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}}\)

The lines are perpendicular when \(a_1a_2+b_1b_2+c_1c_2=0\), and parallel when the ratios match, \(\tfrac{a_1}{a_2}=\tfrac{b_1}{b_2}=\tfrac{c_1}{c_2}\). The absolute value ensures the acute angle is reported.

Section 30-5

The Equation of a Plane

A plane is pinned down by a single point on it and a normal direction perpendicular to it. Every point \(\vec r\) of the plane makes the displacement \(\vec r-\vec a\) perpendicular to the normal, which is the whole equation in one line.

n plane
A point and a normal \(\vec n\) fix the plane: \((\vec r-\vec a)\cdot\vec n=0\)
Forms of a plane
\(\displaystyle (\vec r-\vec a)\cdot\vec n=0\ \Longleftrightarrow\ ax+by+cz+d=0\)

The coefficients \((a,b,c)\) are the components of the normal. The intercept form \(\tfrac xa+\tfrac yb+\tfrac zc=1\) reads the axis crossings directly, and a plane through three points takes its normal as \((\vec P_2-\vec P_1)\times(\vec P_3-\vec P_1)\).

Section 30-6

Angles with Planes

Because a plane is represented by its normal, every angle question reduces to angles between vectors. Two planes meet at the angle between their normals; a line meets a plane at the complement of the angle between the line and the normal.

🔺
Plane–plane and line–plane angles
\(\displaystyle \cos\theta=\frac{|\vec n_1\cdot\vec n_2|}{|\vec n_1||\vec n_2|}\ \ (\text{planes});\qquad \sin\theta=\frac{|\vec b\cdot\vec n|}{|\vec b||\vec n|}\ \ (\text{line–plane})\)

A line is parallel to a plane when \(\vec b\cdot\vec n=0\), and perpendicular to it when \(\vec b\parallel\vec n\). Two planes are parallel when their normals are parallel.

! Sine for line-and-plane, cosine for the rest

The angle between a line and a plane is measured to the plane itself, not to its normal — so it is the complement of the line–normal angle, and that is why the formula uses \(\sin\theta\) rather than \(\cos\theta\). Mixing the two up is the single most common mistake here; reach for sine only when one object is a line and the other a plane.

Section 30-7

Distance of a Point from a Plane

The distance from a point to a plane is the length of the perpendicular dropped onto it. Substituting the point into the plane's equation, then normalising by the length of the normal, gives that distance directly.

P d plane
\(d\) is the perpendicular distance from \(P\) to the plane
Point-to-plane distance
\(\displaystyle d=\frac{|ax_1+by_1+cz_1+d_0|}{\sqrt{a^2+b^2+c^2}}\)

Substitute the point \((x_1,y_1,z_1)\) into the left side of \(ax+by+cz+d_0=0\) and divide by the normal's length. The distance between two parallel planes follows by taking any point on one and applying the same formula, or simply \(\tfrac{|d_1-d_2|}{\sqrt{a^2+b^2+c^2}}\).

Section 30-8

Shortest Distance Between Skew Lines

Two lines in space that are neither parallel nor intersecting are skew. The shortest distance between them is measured along their common perpendicular — and the scalar triple product packages it into one clean formula.

L₁ L₂ d
The shortest distance runs along the common perpendicular of the skew lines
Shortest distance via the triple product
\(\displaystyle d=\frac{\big|(\vec a_2-\vec a_1)\cdot(\vec b_1\times\vec b_2)\big|}{|\vec b_1\times\vec b_2|}\)

Here \(\vec a_1,\vec a_2\) are points on the two lines and \(\vec b_1,\vec b_2\) their directions. The lines intersect (are coplanar) exactly when the numerator vanishes. For two parallel lines use \(d=\dfrac{|(\vec a_2-\vec a_1)\times\vec b|}{|\vec b|}\) instead.

Worked Examples

Putting It to Work

1 A distance in space

Problem. Find the distance between \(P(1,-2,3)\) and \(Q(4,2,15)\).

Solution. Apply the distance formula to the differences \((3,4,12)\):

Working
\[ PQ=\sqrt{3^2+4^2+12^2}=\sqrt{9+16+144}=\sqrt{169}=13 \]
2 Direction cosines

Problem. Find the direction cosines of the line joining \((1,2,3)\) and \((4,5,6)\).

Solution. The direction ratios are \((3,3,3)\propto(1,1,1)\); divide by \(\sqrt{3}\):

Working
\[ (l,m,n)=\left(\tfrac{1}{\sqrt3},\,\tfrac{1}{\sqrt3},\,\tfrac{1}{\sqrt3}\right) \]
3 Equation of a line

Problem. Write the vector and Cartesian equations of the line through \((1,2,-1)\) with direction \(2\hat i+3\hat j+4\hat k\).

Solution. Use \(\vec r=\vec a+\lambda\vec b\) and eliminate \(\lambda\):

Working
\[ \vec r=(\hat i+2\hat j-\hat k)+\lambda(2\hat i+3\hat j+4\hat k);\qquad \frac{x-1}{2}=\frac{y-2}{3}=\frac{z+1}{4} \]
4 Angle between two lines

Problem. Find the angle between the lines with direction ratios \((1,1,2)\) and \((2,1,1)\).

Solution. Both directions have length \(\sqrt6\), and their dot product is \(2+1+2=5\):

Working
\[ \cos\theta=\frac{5}{\sqrt6\cdot\sqrt6}=\frac{5}{6}\ \Rightarrow\ \theta=\cos^{-1}\!\tfrac56 \]
5 Equation of a plane

Problem. Find the plane through \((1,1,1)\) with normal \(2\hat i+3\hat j-\hat k\).

Solution. Use \((\vec r-\vec a)\cdot\vec n=0\):

Working
\[ 2(x-1)+3(y-1)-(z-1)=0\ \Rightarrow\ 2x+3y-z-4=0 \]
6 Shortest distance between skew lines

Problem. Find the shortest distance between \(\vec r=(\hat i+2\hat j+\hat k)+\lambda(\hat i-\hat j+\hat k)\) and \(\vec r=(2\hat i-\hat j-\hat k)+\mu(2\hat i+\hat j+2\hat k)\).

Solution. With \(\vec a_2-\vec a_1=(1,-3,-2)\) and \(\vec b_1\times\vec b_2=(-3,0,3)\), so \(|\vec b_1\times\vec b_2|=3\sqrt2\):

Working
\[ d=\frac{|(1)(-3)+(-3)(0)+(-2)(3)|}{3\sqrt2}=\frac{9}{3\sqrt2}=\frac{3}{\sqrt2}=\frac{3\sqrt2}{2} \]
Review

Chapter Summary

Distance & section

\(PQ=\sqrt{\sum(\Delta)^2}\); section formula coordinate-wise.

Direction cosines

\(l^2+m^2+n^2=1\); ratios proportional to cosines.

Line

\(\vec r=\vec a+\lambda\vec b\); symmetric Cartesian form.

Plane

\((\vec r-\vec a)\cdot\vec n=0\); coefficients are the normal.

Angles

Planes use \(\cos\) of normals; line–plane uses \(\sin\).

Distances

Point–plane \(\tfrac{|ax_1+\cdots|}{\sqrt{a^2+b^2+c^2}}\); skew lines via \(\vec b_1\times\vec b_2\).

Practice

Problems

Identify the objects first — points, lines, or planes — then pick the matching formula. Difficulty rises down the list.

  1. Find the distance between \((1,2,3)\) and \((-2,6,3)\).
  2. Find the coordinates of the point dividing \((1,2,3)\) and \((4,5,6)\) in the ratio \(2:1\).
  3. Find the direction cosines of a line with direction ratios \((1,2,2)\).
  4. Write the vector and Cartesian equations of the line through \((2,-1,3)\) parallel to \(3\hat i+2\hat j-\hat k\).
  5. Find the angle between the lines with direction ratios \((2,2,1)\) and \((4,1,8)\).
  6. Find the equation of the plane through \((2,1,-1)\) with normal \(\hat i+2\hat j+3\hat k\).
  7. Find the distance from \((1,2,3)\) to the plane \(2x-y+2z+3=0\).
  8. Find the angle between the planes \(x+y+z=1\) and \(x-y+z=5\).
  9. Find the angle between the line \(\tfrac{x-1}{2}=\tfrac{y}{3}=\tfrac{z+1}{6}\) and the plane \(2x+y-z=5\).
  10. Find the equation of the plane with intercepts \(2,3,4\) on the axes.
  11. Find the shortest distance between \(\vec r=(\hat i+\hat j)+\lambda(2\hat i-\hat j+\hat k)\) and \(\vec r=(2\hat i+\hat j-\hat k)+\mu(3\hat i-5\hat j+2\hat k)\).
  12. Show that the points \((-2,3,5),(1,2,3),(7,0,-1)\) are collinear.
  13. Find the distance between the parallel planes \(2x-2y+z+3=0\) and \(2x-2y+z+9=0\).
Tip: almost everything in this chapter is a vector calculation in disguise. A line is a point plus a direction; a plane is a point plus a normal. Angles between lines and between planes come from the dot product of directions or normals; a line-and-plane angle flips to sine; and the awkward skew-line distance is just a scalar triple product over \(|\vec b_1\times\vec b_2|\). Translate the words into \(\vec a,\vec b,\vec n\) first, and the rest is the algebra of Chapter 29.