Vectors and the dot product (SACE Stage 2 Specialist Mathematics)
Syllabus dot point
“Represent vectors in three dimensions, compute magnitudes and unit vectors, and use the dot product to find angles and test for perpendicularity.”
8 min read ·
Quick answer
A 3D vector a=a1i+a2j+a3k has magnitude ∣a∣=a12+a22+a32. The dot product is a⋅b=a1b1+a2b2+a3b3=∣a∣∣b∣cosθ, so cosθ=∣a∣∣b∣a⋅b. Two nonzero vectors are perpendicular exactly when their dot product is zero.
You need to represent vectors in three dimensions, find magnitudes and unit vectors, and use the dot (scalar) product to compute angles and test for perpendicularity.
Vectors in three dimensions
Write a vector in component form using the standard basis i,j,k:
a=a1i+a2j+a3k=a1a2a3.
Addition and scalar multiplication act componentwise. The magnitude (length) is
∣a∣=a12+a22+a32.
A unit vector in the direction of a is a^=∣a∣1a, which has length 1.
The dot product
The dot (scalar) product
For a=(a1,a2,a3) and b=(b1,b2,b3),
a⋅b=a1b1+a2b2+a3b3=∣a∣∣b∣cosθ,
where θ is the angle between the vectors (0≤θ≤π). The result is a scalar. Note a⋅a=∣a∣2.
The two forms are the key tool: the component form computes a number, and equating it to ∣a∣∣b∣cosθ extracts the angle.
Finding the angle between vectors
Rearranging gives cosθ=∣a∣∣b∣a⋅b.
Angle between two 3D vectors
Find the angle between a=2i−j+2k and b=i+2j+2k
Step 1: Compute the dot product
Multiply corresponding components and add. This gives a single number that encodes how much the two vectors point in the same direction.
a⋅b=(2)(1)+(−1)(2)+(2)(2)=2−2+4=4.
Step 2: Compute both magnitudes
The magnitude of each vector is the square root of the sum of squared components. We need both magnitudes to normalise the dot product into a cosine.
∣a∣=22+(−1)2+22=9=3,∣b∣=12+22+22=9=3.
Step 3: Find the angle using cosθ=∣a∣∣b∣a⋅b
Substituting the dot product and both magnitudes into the angle formula gives a value for cosθ, which we then invert.
cosθ=3×34=94.
So θ=cos−1(94)≈63.6∘ (about 1.11 radians).
Final answer:θ≈63.6∘
Perpendicularity and projection
Perpendicular test
Two nonzero vectors are perpendicular if and only if a⋅b=0. This is because cos90∘=0. It is the fastest way to check perpendicularity and to find an unknown component that makes two vectors orthogonal.
The scalar projection of a onto b is ∣b∣a⋅b, the signed length of the shadow of a along b. The vector projection is (∣b∣2a⋅b)b. Projections appear when resolving one vector into components parallel and perpendicular to another, for instance splitting a force into a component along an incline and a component perpendicular to it.
Properties of the dot product
The dot product obeys familiar algebraic rules that make it easy to manipulate. It is commutative, a⋅b=b⋅a, and distributive over addition, a⋅(b+c)=a⋅b+a⋅c, so an expression like (p+r)⋅(r−p) expands exactly like a binomial product. It also satisfies a⋅a=∣a∣2, which is the bridge between the algebra of dot products and the geometry of lengths. These properties are what let you prove geometric results - such as the perpendicularity of a rhombus's diagonals - purely by expanding dot products, without coordinates.
Finding a value for perpendicularity
For what value of t are u=3i+tj−k and v=2i+j+4k perpendicular?
Step 1: Set up the perpendicularity condition
Two nonzero vectors are perpendicular if and only if their dot product equals zero. This follows directly from the formula u⋅v=∣u∣∣v∣cosθ, since cos90∘=0. So we require u⋅v=0.
Step 2: Compute the dot product in terms of t and solve
Multiplying corresponding components and setting the result equal to zero gives an equation in t.
u⋅v=(3)(2)+(t)(1)+(−1)(4)=6+t−4=t+2.
Perpendicular means t+2=0, so t=−2.
Final answer:t=−2
Common errors
Treating the dot product as a vector
a⋅b is a scalar (a single number), not a vector.
Forgetting the square root in the magnitude
∣a∣=a12+a22+a32; leaving off the root gives ∣a∣2.
Sign errors in components
A negative component, squared in the magnitude or multiplied in the dot product, must keep its sign through the arithmetic.
Using degrees and radians inconsistently
Decide on one unit for the angle and keep your calculator in that mode; mixing them is a frequent cause of wrong answers.
Exam-style questions
Questions in the style of SACE Board 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.
SACE 2022-style3 marks
Calculator-assumed. The points are A(1,2,−3), B(5,3,−2) and C(6,7,−3). Find AB⋅AC and hence cos(∠BAC).
Show worked answer →
First the two vectors from A: AB=(4,1,1) and AC=(5,5,0).
Magnitudes: ∣AB∣=42+12+12=18=32 and ∣AC∣=52+52=50=52. [1 mark]
So cos(∠BAC)=32×5225=3025=65. [1 mark]
SACE 2021-style2 marks
Calculator-free. The rhombus OPQR has OP=p and OR=r. Show that OQ⋅PR=∣r∣2−∣p∣2, then prove the diagonals are perpendicular.
Show worked answer →
The diagonals are OQ=p+r and PR=r−p.
Expand: OQ⋅PR=(p+r)⋅(r−p)=p⋅r−p⋅p+r⋅r−r⋅p. Since p⋅r=r⋅p, the middle terms cancel, leaving ∣r∣2−∣p∣2. [1 mark]
In a rhombus all sides are equal, so ∣p∣=∣r∣, giving OQ⋅PR=0. A zero dot product of two nonzero vectors means they are perpendicular, so the diagonals are perpendicular. [1 mark]
SACE 2023-style2 marks
Calculator-free. Find the value of t for which u=3i+tj−k and v=2i+j+4k are perpendicular.
Show worked answer →
Set the dot product to zero:
u⋅v=(3)(2)+(t)(1)+(−1)(4)=6+t−4=t+2.
Perpendicular means t+2=0, so t=−2.
Marks: one for the dot product expression, one for solving t=−2.