Skip to main content

The scalar (dot) product in three dimensions (WACE Year 12 Mathematics Specialist Unit 3)

Syllabus dot point

“Compute the scalar (dot) product of vectors in three dimensions and use it for angles, perpendicularity and projections”

7 min read

Quick answer

The scalar product of a=(a1,a2,a3)\mathbf{a} = (a_1, a_2, a_3) and b=(b1,b2,b3)\mathbf{b} = (b_1, b_2, b_3) is 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. So the angle is cos⁡θ=a⋅b∣a∣∣b∣\cos\theta = \tfrac{\mathbf{a}\cdot\mathbf{b}}{|\mathbf{a}||\mathbf{b}|}, vectors are perpendicular when the dot product is zero, and the projection of a\mathbf{a} onto b\mathbf{b} uses the same product.

Jump to a section
  1. What this dot point is asking
  2. Two definitions, one product
  3. The angle between two vectors
  4. Perpendicularity test
  5. Projections
  6. Algebraic properties used in proofs
  7. Proving geometric results with the dot product
  8. Exam-style questions

What this dot point is asking

SCSA wants you to compute the dot product from components, use it to find angles and test perpendicularity, and resolve one vector along another by projection.

Two definitions, one product

The scalar product has a component definition and a geometric definition that agree:

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

The component form is the computational tool; the geometric form ∣a∣∣b∣cos⁡θ|\mathbf{a}||\mathbf{b}|\cos\theta explains why it measures angle. The product is commutative and distributes over addition, and a⋅a=∣a∣2\mathbf{a}\cdot\mathbf{a} = |\mathbf{a}|^2.

The angle between two vectors

Rearranging the geometric form gives

cos⁡θ=a⋅b∣a∣∣b∣.\cos\theta = \frac{\mathbf{a}\cdot\mathbf{b}}{|\mathbf{a}||\mathbf{b}|}.

Compute the dot product and the two magnitudes, then take the inverse cosine. The result lies in [0,π][0, \pi].

Perpendicularity test

Perpendicular vectors

Two nonzero vectors are perpendicular exactly when their scalar product is zero, because cos⁡π2=0\cos\tfrac{\pi}{2} = 0.

This is the quickest way to check or impose a right angle, for instance to find a value of a parameter that makes two vectors perpendicular.

Projections

The scalar projection of a\mathbf{a} onto b\mathbf{b} is a⋅b∣b∣\tfrac{\mathbf{a}\cdot\mathbf{b}}{|\mathbf{b}|}, the signed length of the shadow of a\mathbf{a} along b\mathbf{b}. The vector projection multiplies this by the unit vector b^\hat{\mathbf{b}}:

projb a=a⋅b∣b∣2 b.\text{proj}_{\mathbf{b}}\,\mathbf{a} = \frac{\mathbf{a}\cdot\mathbf{b}}{|\mathbf{b}|^2}\,\mathbf{b}.

This resolves a\mathbf{a} into a component along b\mathbf{b} and a remaining component perpendicular to it.

Algebraic properties used in proofs

The scalar product obeys algebraic rules that SCSA exploits in proof-style questions. It is commutative, a⋅b=b⋅a\mathbf{a} \cdot \mathbf{b} = \mathbf{b} \cdot \mathbf{a}; it distributes over addition, a⋅(b+c)=a⋅b+a⋅c\mathbf{a} \cdot (\mathbf{b} + \mathbf{c}) = \mathbf{a} \cdot \mathbf{b} + \mathbf{a} \cdot \mathbf{c}; and scalars factor out, (λa)⋅b=λ(a⋅b)(\lambda\mathbf{a}) \cdot \mathbf{b} = \lambda(\mathbf{a} \cdot \mathbf{b}). Combined with a⋅a=∣a∣2\mathbf{a} \cdot \mathbf{a} = |\mathbf{a}|^2, these let you expand ∣a+b∣2=(a+b)⋅(a+b)=∣a∣2+2 a⋅b+∣b∣2|\mathbf{a} + \mathbf{b}|^2 = (\mathbf{a} + \mathbf{b}) \cdot (\mathbf{a} + \mathbf{b}) = |\mathbf{a}|^2 + 2\,\mathbf{a} \cdot \mathbf{b} + |\mathbf{b}|^2, the vector form of the cosine rule, which underlies many geometric proofs.

Proving geometric results with the dot product

The dot product turns geometry into algebra. To prove that the diagonals of a rhombus are perpendicular, write the sides as a\mathbf{a} and b\mathbf{b} with ∣a∣=∣b∣|\mathbf{a}| = |\mathbf{b}|; the diagonals are a+b\mathbf{a} + \mathbf{b} and a−b\mathbf{a} - \mathbf{b}, and their dot product is (a+b)⋅(a−b)=∣a∣2−∣b∣2=0(\mathbf{a} + \mathbf{b}) \cdot (\mathbf{a} - \mathbf{b}) = |\mathbf{a}|^2 - |\mathbf{b}|^2 = 0, so the diagonals meet at right angles. Likewise the dot product proves the angle in a semicircle is a right angle. These short vector proofs are popular SCSA extended-response items.

Find the angle between a=(1,2,2)\mathbf{a} = (1, 2, 2) and b=(2,0,−1)\mathbf{b} = (2, 0, -1)

We use the formula cos⁡θ=a⋅b∣a∣∣b∣\cos\theta = \tfrac{\mathbf{a}\cdot\mathbf{b}}{|\mathbf{a}||\mathbf{b}|}, computing the dot product first because if it is zero we can conclude immediately without computing the magnitudes.

Step 1: Compute the dot product

Multiply matching components and sum the results:

a⋅b=(1)(2)+(2)(0)+(2)(−1)=2+0−2=0.\mathbf{a}\cdot\mathbf{b} = (1)(2) + (2)(0) + (2)(-1) = 2 + 0 - 2 = 0.

Step 2: Interpret the dot product

The scalar product is zero and neither vector is the zero vector, so the angle formula gives cos⁡θ=0\cos\theta = 0, which means θ=π2\theta = \tfrac{\pi}{2}. The vectors are perpendicular.

Step 3: Verify using the magnitudes

Computing the magnitudes confirms the result. We have ∣a∣=1+4+4=3|\mathbf{a}| = \sqrt{1 + 4 + 4} = 3 and ∣b∣=4+0+1=5|\mathbf{b}| = \sqrt{4 + 0 + 1} = \sqrt{5}, giving cos⁡θ=035=0\cos\theta = \tfrac{0}{3\sqrt{5}} = 0, which confirms a right angle.

Final answer: θ=π2\theta = \dfrac{\pi}{2}; the vectors are perpendicular.

Common traps
Adding instead of multiplying components
The dot product multiplies matching components then sums; it is not a1+b1+…a_1 + b_1 + \dots.
Forgetting the magnitudes in the angle formula
cos⁡θ\cos\theta divides the dot product by the product of magnitudes, not by one of them.
Confusing scalar and vector projection
The scalar projection is a number; the vector projection is a vector along b\mathbf{b}.

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 2022-style6 marks
Calculator-assumed. Points are A(1,0,2)A(1, 0, 2), B(3,1,1)B(3, 1, 1) and C(2,−1,4)C(2, -1, 4). (a) Find AB⃗\vec{AB} and AC⃗\vec{AC}. (b) Find the angle ∠BAC\angle BAC to the nearest degree.
Show worked answer →

An angle-at-a-vertex question.

(a) AB⃗=B−A=(2,1,−1)\vec{AB} = B - A = (2, 1, -1) and AC⃗=C−A=(1,−1,2)\vec{AC} = C - A = (1, -1, 2).

(b) Dot product: AB⃗⋅AC⃗=(2)(1)+(1)(−1)+(−1)(2)=2−1−2=−1\vec{AB} \cdot \vec{AC} = (2)(1) + (1)(-1) + (-1)(2) = 2 - 1 - 2 = -1. Magnitudes: ∣AB⃗∣=4+1+1=6|\vec{AB}| = \sqrt{4 + 1 + 1} = \sqrt{6} and ∣AC⃗∣=1+1+4=6|\vec{AC}| = \sqrt{1 + 1 + 4} = \sqrt{6}. So cos⁡∠BAC=−16 6=−16\cos\angle BAC = \dfrac{-1}{\sqrt{6}\,\sqrt{6}} = -\dfrac{1}{6}, giving ∠BAC=cos⁡−1 ⁣(−16)≈99.6∘\angle BAC = \cos^{-1}\!\left(-\dfrac{1}{6}\right) \approx 99.6^\circ, about 100∘100^\circ.

Markers reward both displacement vectors from the vertex AA, the dot product, the magnitudes, and the inverse cosine.

WACE 2021-style4 marks
Calculator-free. Find the value of tt for which a=(2,t,−1)\mathbf{a} = (2, t, -1) and b=(3,1,t)\mathbf{b} = (3, 1, t) are perpendicular.
Show worked answer →

A perpendicularity-condition question.

Perpendicular vectors have zero scalar product. Compute a⋅b=(2)(3)+(t)(1)+(−1)(t)=6+t−t=6\mathbf{a} \cdot \mathbf{b} = (2)(3) + (t)(1) + (-1)(t) = 6 + t - t = 6.

The dot product is 66 for every value of tt, and 6≠06 \neq 0, so there is no value of tt that makes the vectors perpendicular. Markers reward setting the dot product to zero, simplifying to the constant 66, and the correct conclusion that no such tt exists.

Practise this

Sources & how we know this

ExamExplained