This whole subtopic is higher level. Nothing in it is on an SL paper.
Educerie · IB Diploma · Mathematics: analysis and approaches
IB Mathematics AA 3.13 · HL only
The scalar product
How do you multiply two vectors to get a number, and how does that number find the angle between them and decide at once whether they are perpendicular or parallel?
What you will learn
HL Know how to calculate the scalar product from components, and that the result is a number.
HL Understand why v · w = |v||w| cos θ, and how it gives the angle between two vectors.
HL Know that non-zero vectors are perpendicular when v · w = 0 and parallel when |v · w| = |v||w|.
HL Know the algebra rules of the scalar product, including v · v = |v|².
You must be able to
HL Find the angle between two vectors, exactly on Paper 1 and to three figures on Paper 2.
HL Find an unknown that makes two vectors perpendicular.
HL Calculate an angle of a triangle from its vertices, using two vectors out of that vertex.
HL Calculate a length such as |a + b| from given lengths and a scalar product.
HL Show that two vectors are perpendicular or parallel.
HL Prove a geometric result, such as the angle in a semicircle, with the scalar product.
In the exam. Paper 1 (no calculator): find a scalar product, show two vectors are perpendicular (3 marks), find the possible values of an unknown that makes them perpendicular (4 marks), an exact angle such as 3π, the length of a sum such as ∣a+b∣ from lengths and an angle, and short proofs with the properties. Paper 2: the angle between vectors or at the vertex of a triangle given by coordinates, and the area that follows (3 to 7 marks). The scalar product is then used in every question on lines and planes (3.14 to 3.18).
1Calculating it from components
For v=v1i+v2j+v3k and w=w1i+w2j+w3k,
v⋅w=v1w1+v2w2+v3w3 · in the formula booklet. The answer is a scalar, not a vector.
Worked example 1 (Paper 1). Find (5i+2j−3k)⋅(−i+4j+2k).
(5)(−1)+(2)(4)+(−3)(2)=−5+8−6=−3
Pair the i-parts, the j-parts and the k-parts, multiply each pair, and add. A missing component is 0.
The result has no i, j or k in it. Writing −5i+8j−6k as the answer is a common error, and it is simply wrong.
Column vectors follow the same rule. In two dimensions the v3w3 term is simply absent: (6−2)⋅(17)=6−14=−8.
Multiplying a vector by a number, as in 3v, is a different operation. Its answer is a vector.
The base vectors show where the definition comes from. i⋅i=1 because each has components 1, 0, 0. i⋅j=0 because 1×0+0×1+0×0=0.
So the three base vectors have length 1 and are perpendicular in pairs. Multiply out (v1i+v2j+v3k)⋅(w1i+w2j+w3k) and every mixed product vanishes. Only v1w1+v2w2+v3w3 is left.
A vector dotted with itself is the sum of its squared components, which is ∣v∣2 by Pythagoras. This is the key to everything in section 8.
2The same number from lengths and an angle
The angle between two vectors is measured with both vectors starting at the same point, tail to tail, as in Figure 1. It always lies in the range 0≤θ≤π.
If the vectors are drawn nose to tail, slide one of them first. The angle at the join is not θ.
Figure 1 · The angle between two vectors is measured tail to tail
v⋅w=∣v∣∣w∣cosθ · in the formula booklet, where θ is the angle between v and w.
Why the two forms agree
The guide's TOK question asks why the scalar product is defined as it is. This is the answer.
Draw v and w tail to tail. The third side of the triangle is v−w, as in Figure 2. Find ∣v−w∣2 in two ways.
Figure 2 · The triangle behind v · w = |v||w| cos θ
∣v−w∣2=(v1−w1)2+(v2−w2)2+(v3−w3)2=∣v∣2+∣w∣2−2(v1w1+v2w2+v3w3)square each difference∣v−w∣2=∣v∣2+∣w∣2−2∣v∣∣w∣cosθcosine rule in the trianglev1w1+v2w2+v3w3=∣v∣∣w∣cosθcompare the two lines
The guide's enrichment suggestion runs the other way. Take ∣v∣∣w∣cosθ as the definition and expand ∣v−w∣2 with the properties of section 8. The result is the cosine rule.
Either way, the component definition was chosen because it measures something geometric.
The sign tells you the angle
∣v∣ and ∣w∣ are positive, so v⋅w has the same sign as cosθ. Figure 3 shows the three cases.
Figure 3 · The sign of v · w tells you the kind of angle
v⋅w>0: θ is acute.
v⋅w=0: θ=2π, a right angle.
v⋅w<0: θ is obtuse.
In Worked example 1, the scalar product −3 says at once that the angle between those vectors is obtuse.
Because −1≤cosθ≤1, the scalar product always lies between −∣v∣∣w∣ and ∣v∣∣w∣.
The top value belongs to vectors pointing the same way (θ=0).
The bottom value belongs to vectors pointing opposite ways (θ=π).
Worked example 2 (Paper 1).
(a) ∣u∣=5, ∣v∣=2 and the angle between them is 4π. Find u⋅v.
(b) ∣p∣=6, ∣q∣=4 and p⋅q=−12. Find the angle between p and q.
u⋅v=(5)(2)cos4π=10×22=52(a) lengths and angle: no components neededcosθ=(6)(4)−12=−21(b) rearrange the same formulaθ=32πobtuse, as the negative sign said
Neither part gave components. The formula works in both directions. Questions use the lengths-and-angle form when the vectors are described in words or by a figure.
3Finding the angle between two vectors
Rearrange the geometric form:
cosθ=∣v∣∣w∣v1w1+v2w2+v3w3 · in the formula booklet.
The routine is always three numbers: the scalar product, then the two lengths. Then divide and take the inverse cosine.
Worked example 3 (Paper 1). Find the exact angle between a=2i+2k and b=−3i.
On Paper 1 the fraction must come out as one of the familiar values. If it does not, recheck the arithmetic before reaching for a decimal.
Worked example 4 (Paper 2). Find the angle between a=3i−j+2k and b=i+4j+5k, in degrees.
a⋅b=3−4+10=9positive: expect an acute angle∣a∣=9+1+4=14∣b∣=1+16+25=42cosθ=14429=0.37115…θ=68.2∘(3 s.f.), or1.19radians
Keep the full calculator value of cosθ. Rounding it to 0.37 first gives 68.3∘, which is wrong in the third figure and loses the accuracy mark.
Check the answer against the sign: an acute answer agrees with the positive scalar product.
4Angles in a triangle: choose the vectors that start at the vertex
For the angle ABC at the vertex B, both vectors must start at B: use BA and BC. Using AB and BC measures the angle between one side and the extension of the other, which is π−B. Figure 4 shows the difference.
Figure 4 · For angle ABC, both vectors must start at B
Worked example 5 (Paper 2).A(−1,2,3), B(2,0,5) and C(1,4,−1). Find angle ABC and the area of triangle ABC.
BA=a−b=−3i+2j−2kBC=c−b=−i+4j−6kBA⋅BC=(−3)(−1)+(2)(4)+(−2)(−6)=23∣BA∣=17,∣BC∣=53cosB=175323=90123B=40.0∘(3 s.f.)sinB=1−901529=901372sinB>0 in a trianglearea=211753901372=21372=93=9.64(3 s.f.)
The area used the SL formula 21absinC with the two sides meeting at B. Finding sinB exactly from cosB avoids carrying a rounded angle. (In 3.16 the vector product gives the area more directly.)
The same idea finds an angle in a solid. Name the vertex, build two vectors out of it, and use section 4.
5Perpendicular vectors
For non-zero vectors, cosθ=0 exactly when θ=2π, so:
v⋅w=0⇔v and w are perpendicular (for non-zero v and w).
This is the scalar product's most used fact. It proves a right angle, and it finds an unknown that makes one.
The "non-zero" condition matters. 0⋅w=0 for every w, but the zero vector has no direction. So it is not perpendicular to anything in a meaningful sense.
Worked example 6 (Paper 1). Find p such that 5i+pj−2k is perpendicular to 2i−3j−k.
(5)(2)+(p)(−3)+(−2)(−1)=010−3p+2=0p=4
Worked example 7 (Paper 1).a=mi+3j−2k and b=(m−5)i+4j+3k. Find the values of m for which a and b are perpendicular.
An unknown in both vectors gives a quadratic, so expect two values and give both. Neither vector is the zero vector for either value (the j-component of a is 3), so both answers stand.
To show a triangle has a right angle at Q, show QP⋅QR=0, with both vectors out of Q; Q4 below does this.
6Parallel vectors
For parallel vectors θ=0 (same direction) or θ=π (opposite directions). Then cosθ=±1, and
∣v⋅w∣=∣v∣∣w∣ for parallel vectors.
Worked example 8 (Paper 1). Show that u=4i−4j+2k and w=−6i+6j−3k are parallel, and say whether they point the same way.
u⋅w=−24−24−6=−54∣u∣=16+16+4=6,∣w∣=36+36+9=9∣u⋅w∣=54=∣u∣∣w∣so cosθ=−1 and θ=π
They are parallel and point in opposite directions, because the scalar product is negative.
The test from 3.12, w=−23u, reaches the same conclusion faster when the components are simple. Use whichever the question points to. A "hence" after a scalar product calculation wants this one.
7The algebra of the scalar product
The guide lists four properties. Each follows from the definition by writing out components.
Property
In words
v⋅w=w⋅v
order does not matter (it is commutative)
u⋅(v+w)=u⋅v+u⋅w
brackets expand as usual (it distributes over addition)
(kv)⋅w=k(v⋅w)
a scalar can be taken outside
v⋅v=∣v∣2
a vector dotted with itself is its length squared
Together these let you expand brackets exactly as in ordinary algebra, as long as every product is a dot product. They matter most when a question gives lengths and a scalar product but no components.
Worked example 9 (Paper 1).∣p∣=2, ∣q∣=3 and p⋅q=−1. Find ∣3p−q∣.
Square first, expand, and take the square root last. Stopping at 51 is a common last-line loss.
The two extremes of section 2 also bound the length of a sum. From ∣a+b∣2=∣a∣2+2a⋅b+∣b∣2, the sum is longest when the vectors point the same way (θ=0). It is shortest when they point opposite ways (θ=π).
Example: for ∣a∣=9 and ∣b∣=4, 5≤∣a+b∣≤13.
Worked example 10 (Paper 1).∣a∣=8 and ∣b∣=6, and 3a+b is perpendicular to a−2b.
No components appear. The perpendicular condition gives the scalar product, and the geometric form turns it into the angle.
8What the number measures
Rearranged, ∣v∣v⋅w=∣w∣cosθ. That is the scalar component of w along v. It is the signed length of the "shadow" of w on the line of v, shown in Figure 5. It says how much of w points along v.
It is positive when θ is acute and negative when θ is obtuse, because the shadow then points against v. The shadow's length itself is ∣w∣∣cosθ∣.
Figure 5 · What the number measures: the shadow of one vector on another
Worked example 11 (Paper 1). Find the component of w=i+5j+2k along v=3i+4k.
v⋅w=3+0+8=11,∣v∣=5∣w∣cosθ=511
In physics, the work done by a force F moving an object through a displacement s is F⋅s. That is the part of the force along the motion times the distance moved.
Example: a force of 6i+2j newtons moving an object by 4i−3j metres does 24−6=18 joules of work. A force at right angles to the motion does no work, which is the perpendicular test again.
9Proofs with the scalar product
The properties turn geometric facts into algebra. The pattern: name the vectors, express the lines in question with them, expand, and read off the conclusion. The classic example is the angle in a semicircle.
Worked example 12 (Paper 1 or 3). A and B are the ends of a diameter of a circle with centre O. P is any other point on the circle. Prove that angle APB is a right angle.
Figure 6 · The angle in a semicircle, proved with a scalar product
let OB=u,soOA=−u,and letOP=p∣p∣=∣u∣=rboth are radiiPA=−u−p,PB=u−pPA⋅PB=(−u−p)⋅(u−p)=−u⋅u+u⋅p−p⋅u+p⋅p=−∣u∣2+∣p∣2=−r2+r2=0expand
PA and PB are non-zero (P is neither A nor B) and their scalar product is 0. So they are perpendicular and angle APB = 2π.
The proof never used coordinates, so it holds for every circle and every P.
Worked example 13 (Paper 1). The diagonals of a parallelogram are equal in length. Prove that the parallelogram is a rectangle.
let the sides from one corner be a and b;the diagonals area+banda−b∣a+b∣2=∣a−b∣2equal diagonals, squared∣a∣2+2a⋅b+∣b∣2=∣a∣2−2a⋅b+∣b∣24a⋅b=0
So a⋅b=0, and the two sides at that corner are non-zero and perpendicular. The corner is a right angle, and a parallelogram with one right angle is a rectangle.
Practice questions
31 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.