Skip to main content

Vectors in three dimensions (WACE Year 12 Mathematics Specialist Unit 3)

Syllabus dot point

“Use 3D vectors with the dot product and cross product to find lengths, angles, projections and areas”

8 min read

Quick answer

A 3D vector a=a1i+a2j+a3k\mathbf{a} = a_1\mathbf{i} + a_2\mathbf{j} + a_3\mathbf{k} has magnitude ∣a∣=a12+a22+a32|\mathbf{a}| = \sqrt{a_1^2 + a_2^2 + a_3^2}. The dot product a⋅b=∣a∣∣b∣cos⁡θ\mathbf{a}\cdot\mathbf{b} = |\mathbf{a}||\mathbf{b}|\cos\theta gives angles and projections; the cross product a×b\mathbf{a}\times\mathbf{b} gives a vector perpendicular to both, with length ∣a∣∣b∣sin⁡θ|\mathbf{a}||\mathbf{b}|\sin\theta.

Jump to a section
  1. What this dot point is asking
  2. Components, magnitude and unit vectors
  3. The scalar (dot) product
  4. The vector (cross) product
  5. Choosing the right tool
  6. Position vectors and points in space
  7. Exam-style questions

What this dot point is asking

SCSA wants confident vector algebra in three dimensions: adding and scaling vectors, computing magnitude and unit vectors, using the scalar product to find angles and scalar/vector projections, and using the vector product to find perpendiculars and the area of a triangle or parallelogram.

Components, magnitude and unit vectors

Write a=a1i+a2j+a3k\mathbf{a} = a_1\mathbf{i} + a_2\mathbf{j} + a_3\mathbf{k}. Then ∣a∣=a12+a22+a32|\mathbf{a}| = \sqrt{a_1^2 + a_2^2 + a_3^2}. A unit vector in the direction of a\mathbf{a} is a^=1∣a∣a\hat{\mathbf{a}} = \tfrac{1}{|\mathbf{a}|}\mathbf{a}. The vector from point AA to point BB is AB→=b−a\overrightarrow{AB} = \mathbf{b} - \mathbf{a} (position vectors).

The scalar (dot) product

a⋅b=a1b1+a2b2+a3b3=∣a∣∣b∣cos⁡θ.\mathbf{a}\cdot\mathbf{b} = a_1 b_1 + a_2 b_2 + a_3 b_3 = |\mathbf{a}||\mathbf{b}|\cos\theta.

This gives the angle between vectors via cos⁡θ=a⋅b∣a∣∣b∣\cos\theta = \tfrac{\mathbf{a}\cdot\mathbf{b}}{|\mathbf{a}||\mathbf{b}|}. Two non-zero vectors are perpendicular exactly when a⋅b=0\mathbf{a}\cdot\mathbf{b} = 0.

The scalar projection of a\mathbf{a} onto b\mathbf{b} is a⋅b∣b∣\tfrac{\mathbf{a}\cdot\mathbf{b}}{|\mathbf{b}|}, and the vector projection is a⋅b∣b∣2 b\tfrac{\mathbf{a}\cdot\mathbf{b}}{|\mathbf{b}|^2}\,\mathbf{b}.

The vector (cross) product

a×b=∣ijka1a2a3b1b2b3∣=(a2b3−a3b2)i−(a1b3−a3b1)j+(a1b2−a2b1)k.\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} = (a_2 b_3 - a_3 b_2)\mathbf{i} - (a_1 b_3 - a_3 b_1)\mathbf{j} + (a_1 b_2 - a_2 b_1)\mathbf{k}.

The result is perpendicular to both a\mathbf{a} and b\mathbf{b} (right-hand rule), with ∣a×b∣=∣a∣∣b∣sin⁡θ|\mathbf{a}\times\mathbf{b}| = |\mathbf{a}||\mathbf{b}|\sin\theta. It is anticommutative: a×b=−(b×a)\mathbf{a}\times\mathbf{b} = -(\mathbf{b}\times\mathbf{a}), and a×a=0\mathbf{a}\times\mathbf{a} = \mathbf{0}.

Areas from the cross product

The area of the parallelogram spanned by a\mathbf{a} and b\mathbf{b} is ∣a×b∣|\mathbf{a}\times\mathbf{b}|, so the triangle with those edges has area 12∣a×b∣\tfrac{1}{2}|\mathbf{a}\times\mathbf{b}|.

Choosing the right tool

The two products do different jobs, and SCSA questions reward picking the right one. Use the scalar product when the question asks for an angle, a test of perpendicularity, or a projection of one vector along another, because it returns a number tied to cos⁡θ\cos\theta. Use the vector product when the question asks for a vector perpendicular to two given vectors, a normal to a plane, a test of whether vectors are parallel, or an area, because it returns a vector with magnitude tied to sin⁡θ\sin\theta. A quick way to remember it: dot for direction comparison, cross for area and normals.

Position vectors and points in space

Geometry questions are usually phrased in terms of points, so the first move is almost always to convert points into vectors. The position vector of a point AA is the vector from the origin to AA, and the displacement from AA to BB is AB⃗=b−a\vec{AB} = \mathbf{b} - \mathbf{a}. To find an angle at a vertex, take the two edges leaving that vertex and dot them; to find an area, cross them. The midpoint of ABAB has position vector 12(a+b)\tfrac{1}{2}(\mathbf{a} + \mathbf{b}), and a point dividing ABAB in the ratio m:nm:n has position vector na+mbm+n\dfrac{n\mathbf{a} + m\mathbf{b}}{m + n}, both of which appear in collinearity and ratio problems.

Angle and triangle area for three points

Step 1: Find the edge vectors from vertex AA

To work with the two sides of the triangle that meet at AA, we form displacement vectors from AA to each of the other two vertices. Subtracting the position vector of AA from those of BB and CC gives the required edge vectors.

AB→=B−A=(3−1, 1−0, 0−2)=(2,1,−2),\overrightarrow{AB} = B - A = (3-1,\, 1-0,\, 0-2) = (2, 1, -2),

AC→=C−A=(2−1, −1−0, 1−2)=(1,−1,−1).\overrightarrow{AC} = C - A = (2-1,\, -1-0,\, 1-2) = (1, -1, -1).

Step 2: Find the angle at AA using the dot product

The dot product formula u⋅v=∣u∣∣v∣cos⁡θ\mathbf{u} \cdot \mathbf{v} = |\mathbf{u}||\mathbf{v}|\cos\theta connects the scalar dot product to the angle between two vectors. Computing the dot product and the magnitudes separately, then solving for θ\theta, gives the angle at vertex AA.

Dot product: AB→⋅AC→=(2)(1)+(1)(−1)+(−2)(−1)=2−1+2=3\overrightarrow{AB} \cdot \overrightarrow{AC} = (2)(1) + (1)(-1) + (-2)(-1) = 2 - 1 + 2 = 3.

Magnitudes: ∣AB→∣=4+1+4=3|\overrightarrow{AB}| = \sqrt{4 + 1 + 4} = 3 and ∣AC→∣=1+1+1=3|\overrightarrow{AC}| = \sqrt{1 + 1 + 1} = \sqrt{3}.

cos⁡θ=333=13  ⟹  θ=cos⁡−1 ⁣(13)≈0.955 rad.\cos\theta = \frac{3}{3\sqrt{3}} = \frac{1}{\sqrt{3}} \implies \theta = \cos^{-1}\!\left(\tfrac{1}{\sqrt{3}}\right) \approx 0.955 \text{ rad}.

Step 3: Find the area using the cross product

The magnitude of the cross product AB→×AC→\overrightarrow{AB} \times \overrightarrow{AC} gives the area of the parallelogram spanned by these two edges. The triangle occupies exactly half that parallelogram.

AB→×AC→=((1)(−1)−(−2)(−1),  (−2)(1)−(2)(−1),  (2)(−1)−(1)(1))=(−3,  0,  −3).\overrightarrow{AB}\times\overrightarrow{AC} = \big((1)(-1) - (-2)(-1),\; (-2)(1) - (2)(-1),\; (2)(-1) - (1)(1)\big) = (-3,\; 0,\; -3).

Magnitude: ∣(−3,0,−3)∣=9+0+9=32|(-3, 0, -3)| = \sqrt{9 + 0 + 9} = 3\sqrt{2}.

The triangle area is 12(32)=322\tfrac{1}{2}(3\sqrt{2}) = \tfrac{3\sqrt{2}}{2}.

Final answer: Angle at AA is cos⁡−1 ⁣(13)≈0.955\cos^{-1}\!\left(\tfrac{1}{\sqrt{3}}\right) \approx 0.955 rad; area of triangle ABCABC is 322\tfrac{3\sqrt{2}}{2}.

Common traps
Dropping the middle-term sign in the cross product
The j\mathbf{j} component carries a minus sign from the cofactor expansion. Use the determinant layout every time.
Confusing the two products
The dot product returns a scalar (use it for angles and projections); the cross product returns a vector (use it for perpendiculars and areas).
Using cos⁡\cos for the cross product magnitude
∣a×b∣=∣a∣∣b∣sin⁡θ|\mathbf{a}\times\mathbf{b}| = |\mathbf{a}||\mathbf{b}|\sin\theta, not cos⁡θ\cos\theta.

Exam-style questions

Questions in the style of SCSA exam questions on this dot point, each with a worked answer. They are written by ExamExplained unless tagged "Past paper"; the year shows the paper a question is modelled on.

WACE 2023-style6 marks
Calculator-assumed. Let a=(2,1,−2)\mathbf{a} = (2, 1, -2) and b=(1,3,1)\mathbf{b} = (1, 3, 1). (a) Find a unit vector in the direction of a\mathbf{a}. (b) Find the scalar projection of b\mathbf{b} onto a\mathbf{a}.
Show worked answer →

Tests magnitude, unit vectors and projection.

(a) ∣a∣=4+1+4=3|\mathbf{a}| = \sqrt{4 + 1 + 4} = 3. The unit vector is a^=13(2,1,−2)=(23,13,−23)\hat{\mathbf{a}} = \dfrac{1}{3}(2, 1, -2) = \left(\dfrac{2}{3}, \dfrac{1}{3}, -\dfrac{2}{3}\right).

(b) Dot product: b⋅a=(1)(2)+(3)(1)+(1)(−2)=2+3−2=3\mathbf{b} \cdot \mathbf{a} = (1)(2) + (3)(1) + (1)(-2) = 2 + 3 - 2 = 3. The scalar projection of b\mathbf{b} onto a\mathbf{a} is b⋅a∣a∣=33=1\dfrac{\mathbf{b} \cdot \mathbf{a}}{|\mathbf{a}|} = \dfrac{3}{3} = 1.

Markers reward the magnitude 33, the unit vector, the dot product, and dividing by ∣a∣|\mathbf{a}| (not ∣a∣2|\mathbf{a}|^2) for the scalar projection.

WACE 2020-style5 marks
Calculator-free. Points are A(2,1,0)A(2, 1, 0), B(4,1,3)B(4, 1, 3) and C(2,5,0)C(2, 5, 0). Find the area of triangle ABCABC.
Show worked answer →

A triangle-area-by-cross-product question.

Edge vectors from AA: AB⃗=(2,0,3)\vec{AB} = (2, 0, 3) and AC⃗=(0,4,0)\vec{AC} = (0, 4, 0). Cross product AB⃗×AC⃗\vec{AB} \times \vec{AC}: i\mathbf{i} component (0)(0)−(3)(4)=−12(0)(0) - (3)(4) = -12; j\mathbf{j} component −[(2)(0)−(3)(0)]=0-[(2)(0) - (3)(0)] = 0; k\mathbf{k} component (2)(4)−(0)(0)=8(2)(4) - (0)(0) = 8. So AB⃗×AC⃗=(−12,0,8)\vec{AB} \times \vec{AC} = (-12, 0, 8).

Magnitude =144+0+64=208=413= \sqrt{144 + 0 + 64} = \sqrt{208} = 4\sqrt{13}. The triangle area is half this, 2132\sqrt{13}.

Markers reward the two edge vectors, the cross product, the magnitude, and halving for the triangle.

Practise this

Sources & how we know this

ExamExplained