Skip to content

Vectors in 3D

This chapter extends the study of vectors from A Level Mathematics into three dimensions, Introducing the vector (cross) product, equations of planes, and the scalar triple product. These Tools are essential for geometry, mechanics, and physics at university level.

BoardPaperNotes
AQAPaper 13D vectors, scalar product, vector product, planes, scalar triple product
EdexcelFP13D vectors, scalar product, vector product, lines and planes
OCR (A)Paper 13D vectors, scalar product, vector product, planes
CIEP13D vectors, scalar product, vector product, lines, planes, intersections

A vector has magnitude and direction. In 2D, a=(a1a2)\mathbf{a} = \begin{pmatrix}a_1\\a_2\end{pmatrix} has Magnitude a=a12+a22|\mathbf{a}| = \sqrt{a_1^2 + a_2^2}.

Key results from A Level:

  • Scalar (dot) product: ab=abcosθ\mathbf{a}\cdot\mathbf{b} = |\mathbf{a}||\mathbf{b}|\cos\theta
  • Perpendicularity: ab    ab=0\mathbf{a} \perp \mathbf{b} \iff \mathbf{a}\cdot\mathbf{b} = 0
  • Vector equation of a line: r=a+td\mathbf{r} = \mathbf{a} + t\mathbf{d}

This chapter extends all of these ideas into three dimensions and introduces new operations.


A vector in 3D is written as a column vector or in component form:

a=(a1a2a3)=a1i+a2j+a3k\mathbf{a} = \begin{pmatrix}a_1\\a_2\\a_3\end{pmatrix} = a_1\mathbf{i} + a_2\mathbf{j} + a_3\mathbf{k}

Where \mathbf{i}$$\mathbf{j}$$\mathbf{k} are unit vectors along the xx-, yy-, zz-axes.

Definition. The position vector of a point P(x,y,z)P(x,y,z) relative to origin OO is

OP=(xyz)\overrightarrow{OP} = \begin{pmatrix}x\\y\\z\end{pmatrix}

The displacement from AA to BB is AB=ba\overrightarrow{AB} = \mathbf{b} - \mathbf{a}.

a=a12+a22+a32|\mathbf{a}| = \sqrt{a_1^2 + a_2^2 + a_3^2}

Definition. The direction cosines of a\mathbf{a} are

cosα=a1a,cosβ=a2a,cosγ=a3a\cos\alpha = \frac{a_1}{|\mathbf{a}|}, \quad \cos\beta = \frac{a_2}{|\mathbf{a}|}, \quad \cos\gamma = \frac{a_3}{|\mathbf{a}|}

Where α\alpha, β\beta, γ\gamma are the angles a\mathbf{a} makes with the xx-, yy-, zz-axes.

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


Definition. The scalar (dot) product of a\mathbf{a} and b\mathbf{b} in 3D is

ab=a1b1+a2b2+a3b3\boxed{\mathbf{a}\cdot\mathbf{b} = a_1b_1 + a_2b_2 + a_3b_3}

ab=abcosθ\boxed{\mathbf{a}\cdot\mathbf{b} = |\mathbf{a}||\mathbf{b}|\cos\theta}

Where θ\theta is the angle between a\mathbf{a} and b\mathbf{b}.

  • aa=a2\mathbf{a}\cdot\mathbf{a} = |\mathbf{a}|^2
  • ab=ba\mathbf{a}\cdot\mathbf{b} = \mathbf{b}\cdot\mathbf{a} (commutative)
  • a(b+c)=ab+ac\mathbf{a}\cdot(\mathbf{b} + \mathbf{c}) = \mathbf{a}\cdot\mathbf{b} + \mathbf{a}\cdot\mathbf{c} (distributive)
  • ab=0    ab\mathbf{a}\cdot\mathbf{b} = 0 \iff \mathbf{a} \perp \mathbf{b} (when neither is zero)

Definition. The vector (cross) product of a=(a1a2a3)\mathbf{a} = \begin{pmatrix}a_1\\a_2\\a_3\end{pmatrix} and b=(b1b2b3)\mathbf{b} = \begin{pmatrix}b_1\\b_2\\b_3\end{pmatrix} is

a×b=(a2b3a3b2a3b1a1b3a1b2a2b1)\boxed{\mathbf{a}\times\mathbf{b} = \begin{pmatrix}a_2b_3 - a_3b_2\\a_3b_1 - a_1b_3\\a_1b_2 - a_2b_1\end{pmatrix}}

The cross product can be computed using a symbolic determinant:

a×b=ijka1a2a3b1b2b3\mathbf{a}\times\mathbf{b} = \begin{vmatrix}\mathbf{i} & \mathbf{j} & \mathbf{k}\\a_1 & a_2 & a_3\\b_1 & b_2 & b_3\end{vmatrix}

Theorem. a×b=absinθ|\mathbf{a}\times\mathbf{b}| = |\mathbf{a}||\mathbf{b}|\sin\thetaWhere θ\theta is The angle between a\mathbf{a} and b\mathbf{b}.

Proof that the cross product magnitude equals the area of the parallelogram

Section titled “Proof that the cross product magnitude equals the area of the parallelogram”

Consider the parallelogram with adjacent sides a\mathbf{a} and b\mathbf{b}.

a×b2=(a2b3a3b2)2+(a3b1a1b3)2+(a1b2a2b1)2|\mathbf{a}\times\mathbf{b}|^2 = (a_2b_3 - a_3b_2)^2 + (a_3b_1 - a_1b_3)^2 + (a_1b_2 - a_2b_1)^2

Expanding and collecting terms:

a×b2=(a12+a22+a32)(b12+b22+b32)(a1b1+a2b2+a3b3)2|\mathbf{a}\times\mathbf{b}|^2 = (a_1^2+a_2^2+a_3^2)(b_1^2+b_2^2+b_3^2) - (a_1b_1+a_2b_2+a_3b_3)^2

=a2b2(ab)2= |\mathbf{a}|^2|\mathbf{b}|^2 - (\mathbf{a}\cdot\mathbf{b})^2

Since ab=abcosθ\mathbf{a}\cdot\mathbf{b} = |\mathbf{a}||\mathbf{b}|\cos\theta:

a×b2=a2b2(1cos2θ)=a2b2sin2θ|\mathbf{a}\times\mathbf{b}|^2 = |\mathbf{a}|^2|\mathbf{b}|^2(1 - \cos^2\theta) = |\mathbf{a}|^2|\mathbf{b}|^2\sin^2\theta

a×b=absinθ|\mathbf{a}\times\mathbf{b}| = |\mathbf{a}||\mathbf{b}|\sin\theta

The area of the parallelogram is base ×\times height =a×bsinθ= |\mathbf{a}| \times |\mathbf{b}|\sin\thetaWhich equals a×b|\mathbf{a}\times\mathbf{b}|. \square

The cross product a×b\mathbf{a}\times\mathbf{b} is perpendicular to both a\mathbf{a} and b\mathbf{b}And its direction is given by the right-hand rule.

  • a×b=(b×a)\mathbf{a}\times\mathbf{b} = -(\mathbf{b}\times\mathbf{a}) (anti-commutative)
  • a×a=0\mathbf{a}\times\mathbf{a} = \mathbf{0}
  • a×b=0    a\mathbf{a}\times\mathbf{b} = \mathbf{0} \iff \mathbf{a} and b\mathbf{b} are parallel (or one is zero)
  • a×(b+c)=a×b+a×c\mathbf{a}\times(\mathbf{b}+\mathbf{c}) = \mathbf{a}\times\mathbf{b} + \mathbf{a}\times\mathbf{c} (distributive)
  • i×j=k\mathbf{i}\times\mathbf{j} = \mathbf{k}, j×k=i\mathbf{j}\times\mathbf{k} = \mathbf{i} k×i=j\mathbf{k}\times\mathbf{i} = \mathbf{j}

Definition. The vector equation of a line through point AA (position vector a\mathbf{a}) in Direction d\mathbf{d} is

r=a+λd,λR\boxed{\mathbf{r} = \mathbf{a} + \lambda\mathbf{d}, \quad \lambda \in \mathbb{R}}

If a=(a1a2a3)\mathbf{a} = \begin{pmatrix}a_1\\a_2\\a_3\end{pmatrix} and d=(d1d2d3)\mathbf{d} = \begin{pmatrix}d_1\\d_2\\d_3\end{pmatrix}The parametric equations are:

x=a1+λd1,y=a2+λd2,z=a3+λd3x = a_1 + \lambda d_1, \quad y = a_2 + \lambda d_2, \quad z = a_3 + \lambda d_3

When all di0d_i \neq 0The Cartesian (symmetric) form is:

xa1d1=ya2d2=za3d3\boxed{\frac{x - a_1}{d_1} = \frac{y - a_2}{d_2} = \frac{z - a_3}{d_3}}

Given r1=a1+λd1\mathbf{r}_1 = \mathbf{a}_1 + \lambda\mathbf{d}_1 and r2=a2+μd2\mathbf{r}_2 = \mathbf{a}_2 + \mu\mathbf{d}_2:

  1. Equate components to get three equations in λ\lambda and μ\mu.
  2. Solve two equations for λ\lambda and μ\mu.
  3. Check the third equation:
  • If consistent: the lines intersect.
  • If inconsistent: the lines are skew (not parallel, not intersecting).
  1. If d1×d2=0\mathbf{d}_1 \times \mathbf{d}_2 = \mathbf{0}: the lines are parallel.

Example. Find the intersection of r1=(120)+λ(112)\mathbf{r}_1 = \begin{pmatrix}1\\2\\0\end{pmatrix} + \lambda\begin{pmatrix}1\\-1\\2\end{pmatrix} And r2=(314)+μ(211)\mathbf{r}_2 = \begin{pmatrix}3\\1\\4\end{pmatrix} + \mu\begin{pmatrix}2\\1\\-1\end{pmatrix}.

Equating: 1+\lambda = 3+2\mu$$2-\lambda = 1+\mu$$2\lambda = 4-\mu.

From equation 2: λ=1μ\lambda = 1 - \mu. From equation 1: 1+(1μ)=3+2μ    2μ=3+2μ    3μ=1    μ=1/31+(1-\mu) = 3+2\mu \implies 2-\mu = 3+2\mu \implies -3\mu = 1 \implies \mu = -1/3 λ=4/3\lambda = 4/3.

Check equation 3: 2(4/3)=4(1/3)    8/3=13/32(4/3) = 4-(-1/3) \implies 8/3 = 13/3. Not consistent — the lines are skew.


Definition. The equation of a plane with normal vector n\mathbf{n} passing through point AA (position vector a\mathbf{a}) is

rn=an\boxed{\mathbf{r}\cdot\mathbf{n} = \mathbf{a}\cdot\mathbf{n}}

This works because every point PP on the plane satisfies APn\overrightarrow{AP} \perp \mathbf{n} I.e., (ra)n=0(\mathbf{r} - \mathbf{a})\cdot\mathbf{n} = 0.

If n=(abc)\mathbf{n} = \begin{pmatrix}a\\b\\c\end{pmatrix} and an=d\mathbf{a}\cdot\mathbf{n} = d:

ax+by+cz=d\boxed{ax + by + cz = d}

Given three points AA, BB, CC on the plane, the normal is

n=AB×AC\mathbf{n} = \overrightarrow{AB} \times \overrightarrow{AC}

Example. Find the equation of the plane through A(1,0,2)$$B(3,1,0)$$C(0,2,1).

AB=(212)\overrightarrow{AB} = \begin{pmatrix}2\\1\\-2\end{pmatrix} AC=(121)\overrightarrow{AC} = \begin{pmatrix}-1\\2\\-1\end{pmatrix}.

n=AB×AC=((1)(1)(2)(2)(2)(1)(2)(1)(2)(2)(1)(1))=(345)\mathbf{n} = \overrightarrow{AB}\times\overrightarrow{AC} = \begin{pmatrix}(1)(-1)-(-2)(2)\\(-2)(-1)-(2)(-1)\\(2)(2)-(1)(-1)\end{pmatrix} = \begin{pmatrix}3\\4\\5\end{pmatrix}.

rn=an=1(3)+0(4)+2(5)=13\mathbf{r}\cdot\mathbf{n} = \mathbf{a}\cdot\mathbf{n} = 1(3)+0(4)+2(5) = 13.

3x+4y+5z=13\boxed{3x + 4y + 5z = 13}

The angle between two planes with normals n1\mathbf{n}_1 and n2\mathbf{n}_2 is

cosθ=n1n2n1n2\boxed{\cos\theta = \frac{|\mathbf{n}_1\cdot\mathbf{n}_2|}{|\mathbf{n}_1||\mathbf{n}_2|}}

The acute angle is found by taking the absolute value.

The angle ϕ\phi between a line with direction d\mathbf{d} and a plane with normal n\mathbf{n} Satisfies:

sinϕ=dndn\sin\phi = \frac{|\mathbf{d}\cdot\mathbf{n}|}{|\mathbf{d}||\mathbf{n}|}

Equivalently, if α\alpha is the angle between d\mathbf{d} and n\mathbf{n}Then ϕ=90°α\phi = 90° - \alpha.

To find the line of intersection of a1x+b1y+c1z=d1a_1 x + b_1 y + c_1 z = d_1 and a2x+b2y+c2z=d2a_2 x + b_2 y + c_2 z = d_2:

  1. The direction is d=n1×n2\mathbf{d} = \mathbf{n}_1 \times \mathbf{n}_2.
  2. Find a point satisfying both equations (set one variable to zero and solve).

Theorem. The perpendicular distance from point PP with position vector p\mathbf{p} to the Plane rn=d\mathbf{r}\cdot\mathbf{n} = d is

D=pndn\boxed{D = \frac{|\mathbf{p}\cdot\mathbf{n} - d|}{|\mathbf{n}|}}

In Cartesian form, for plane ax+by+cz=dax + by + cz = d and point (x0,y0,z0)(x_0, y_0, z_0):

D=ax0+by0+cz0da2+b2+c2\boxed{D = \frac{|ax_0 + by_0 + cz_0 - d|}{\sqrt{a^2+b^2+c^2}}}

Let the plane have equation rn^=p\mathbf{r}\cdot\hat{\mathbf{n}} = p where n^\hat{\mathbf{n}} is a unit Normal and pp is the perpendicular distance from the origin to the plane.

For any point PP with position vector p\mathbf{p}The distance from PP to the plane is the Magnitude of the projection of p\mathbf{p} onto n^\hat{\mathbf{n}}Minus pp:

D=pn^pD = |\mathbf{p}\cdot\hat{\mathbf{n}} - p|

If the plane is given as rn=d\mathbf{r}\cdot\mathbf{n} = d (where n\mathbf{n} is not necessarily a Unit vector), then n^=n/n\hat{\mathbf{n}} = \mathbf{n}/|\mathbf{n}| and p=d/np = d/|\mathbf{n}|:

D=pnndn=pndnD = \left|\mathbf{p}\cdot\frac{\mathbf{n}}{|\mathbf{n}|} - \frac{d}{|\mathbf{n}|}\right| = \frac{|\mathbf{p}\cdot\mathbf{n} - d|}{|\mathbf{n}|}

\square

Example. Find the distance from P(1,2,3)P(1, 2, 3) to the plane 2xy+2z=52x - y + 2z = 5.

D=2(1)1(2)+2(3)54+1+4=22+653=13D = \dfrac{|2(1)-1(2)+2(3)-5|}{\sqrt{4+1+4}} = \dfrac{|2-2+6-5|}{3} = \dfrac{1}{3}.


Definition. The scalar triple product of vectors \mathbf{a}$$\mathbf{b}$$\mathbf{c} is

[abc]=a(b×c)\boxed{[\mathbf{a}\,\mathbf{b}\,\mathbf{c}] = \mathbf{a}\cdot(\mathbf{b}\times\mathbf{c})}

In component form:

a(b×c)=a1a2a3b1b2b3c1c2c3\mathbf{a}\cdot(\mathbf{b}\times\mathbf{c}) = \begin{vmatrix}a_1 & a_2 & a_3\\b_1 & b_2 & b_3\\c_1 & c_2 & c_3\end{vmatrix}

Proof that the scalar triple product equals the volume of the parallelepiped

Section titled “Proof that the scalar triple product equals the volume of the parallelepiped”

The parallelepiped with edges \mathbf{a}$$\mathbf{b}$$\mathbf{c} has base area b×c|\mathbf{b}\times\mathbf{c}| (from Section 4.3).

The height is the component of a\mathbf{a} perpendicular to the base, which is the projection of a\mathbf{a} onto the direction of b×c\mathbf{b}\times\mathbf{c}:

height=acosϕ=a(b×c)b×c\mathrm{height} = |\mathbf{a}|\cos\phi = \frac{\mathbf{a}\cdot(\mathbf{b}\times\mathbf{c})}{|\mathbf{b}\times\mathbf{c}|}

Where ϕ\phi is the angle between a\mathbf{a} and b×c\mathbf{b}\times\mathbf{c}.

V=base×height=b×ca(b×c)b×c=a(b×c)V = \mathrm{base} \times \mathrm{height} = |\mathbf{b}\times\mathbf{c}| \cdot \frac{\mathbf{a}\cdot(\mathbf{b}\times\mathbf{c})}{|\mathbf{b}\times\mathbf{c}|} = \mathbf{a}\cdot(\mathbf{b}\times\mathbf{c})

Taking the absolute value to get a positive volume:

V=a(b×c)\boxed{V = |\mathbf{a}\cdot(\mathbf{b}\times\mathbf{c})|}

\square

  • a(b×c)=b(c×a)=c(a×b)\mathbf{a}\cdot(\mathbf{b}\times\mathbf{c}) = \mathbf{b}\cdot(\mathbf{c}\times\mathbf{a}) = \mathbf{c}\cdot(\mathbf{a}\times\mathbf{b}) (cyclic permutation)
  • a(b×c)=a(c×b)\mathbf{a}\cdot(\mathbf{b}\times\mathbf{c}) = -\mathbf{a}\cdot(\mathbf{c}\times\mathbf{b}) (swapping two vectors changes sign)
  • [abc]=0[\mathbf{a}\,\mathbf{b}\,\mathbf{c}] = 0 if and only if \mathbf{a}$$\mathbf{b}$$\mathbf{c} are coplanar

  • Matrices provides the determinant and linear transformation methods used to compute cross products and scalar triple products.
  • Projectile Motion applies vector resolution techniques to analyse motion under gravity in two and three dimensions.
  • Polar Coordinates connects vector geometry to parametric representations of curves and surfaces in different coordinate systems.
  • Further Calculus supplies the integration and differentiation methods used in deriving volume formulas from the scalar triple product.