3.13 The scalar product

3.13 The scalar product

IB Maths: Analysis and Approaches HL: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • v⋅w=v1w1+v2w2+v3w3=∣v∣∣w∣cos⁡θ\mathbf{v}\cdot\mathbf{w}=v_1w_1+v_2w_2+v_3w_3=|\mathbf{v}||\mathbf{w}|\cos\theta, and the answer is a number.
  • The product is commutative and distributive, and v⋅v=∣v∣2\mathbf{v}\cdot\mathbf{v}=|\mathbf{v}|^2.
  • Angle: cos⁡θ=v⋅w∣v∣∣w∣\cos\theta=\frac{\mathbf{v}\cdot\mathbf{w}}{|\mathbf{v}||\mathbf{w}|}, using vectors from the same point.
  • Perpendicular: v⋅w=0\mathbf{v}\cdot\mathbf{w}=0. Parallel: ∣v⋅w∣=∣v∣∣w∣|\mathbf{v}\cdot\mathbf{w}|=|\mathbf{v}||\mathbf{w}|.

Definition

Multiply matching components and add, or multiply the lengths by the cosine of the angle between them.

For v=(v1,v2,v3)\mathbf{v}=(v_1,v_2,v_3) and w=(w1,w2,w3)\mathbf{w}=(w_1,w_2,w_3), the scalar product (dot product) is a number, not a vector. Here θ\theta is the angle between the vectors, placed tail to tail.

Example: (2,−1,3)⋅(1,4,2)=2−4+6=4(2,-1,3)\cdot(1,4,2)=2-4+6=4.

|a| = 4|b| = 360°OAB
Two vectors from O: |a| = 4, |b| = 3, angle 60°, so a·b = 6.
  • Componentsv1w1+v2w2+v3w3v_1w_1+v_2w_2+v_3w_3
  • Angle form∣v∣∣w∣cos⁡θ|\mathbf{v}||\mathbf{w}|\cos\theta

What is (3,1,−2)⋅(2,−4,5)(3,1,-2)\cdot(2,-4,5)?

Properties

It is commutative and distributive, and v⋅v=∣v∣2\mathbf{v}\cdot\mathbf{v}=|\mathbf{v}|^2, so brackets expand like algebra.

Also (kv)⋅w=k(v⋅w)(k\mathbf{v})\cdot\mathbf{w}=k(\mathbf{v}\cdot\mathbf{w}). The distributive property lets you expand brackets:

∣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

Whenever you see ∣…∣2|\dots|^2 of a sum, rewrite it as a scalar product with itself and expand.

aba + bOAC
With a = (3, 0) and b = (1, 2): |a + b|² = |a|² + 2a·b + |b|² = 9 + 6 + 5 = 20, the squared length of the diagonal.
  • Commutativev⋅w=w⋅v\mathbf{v}\cdot\mathbf{w}=\mathbf{w}\cdot\mathbf{v}
  • u⋅(v+w)\mathbf{u}\cdot(\mathbf{v}+\mathbf{w})u⋅v+u⋅w\mathbf{u}\cdot\mathbf{v}+\mathbf{u}\cdot\mathbf{w}
  • Self productv⋅v=∣v∣2\mathbf{v}\cdot\mathbf{v}=|\mathbf{v}|^2

Worked example

Given ∣a∣=3|\mathbf{a}|=3, ∣b∣=4|\mathbf{b}|=4 and an angle of 60∘60^\circ between them, find ∣a+b∣|\mathbf{a}+\mathbf{b}|.

If ∣a∣=2|\mathbf{a}|=2, ∣b∣=5|\mathbf{b}|=5 and a⋅b=3\mathbf{a}\cdot\mathbf{b}=3, what is ∣a−b∣2|\mathbf{a}-\mathbf{b}|^2?

The angle between two vectors

Rearrange the definition: divide the scalar product by the product of the lengths.

Rearranging the definition gives cos⁡θ=v⋅w∣v∣∣w∣\cos\theta=\frac{\mathbf{v}\cdot\mathbf{w}}{|\mathbf{v}||\mathbf{w}|} with 0≤θ≤π0\le\theta\le\pi.

For the angle of a triangle at a vertex BB, use the two vectors starting at BB: BA→\overrightarrow{BA} and BC→\overrightarrow{BC}.

A negative scalar product means the angle is obtuse.

116.6°BAC
B(0,0), A(3,0), C(-1,2): BA·BC = -3, so the angle at B is obtuse.
  • Anglecos⁡θ=v⋅w∣v∣∣w∣\cos\theta=\dfrac{\mathbf{v}\cdot\mathbf{w}}{|\mathbf{v}||\mathbf{w}|}

Worked example

Find the angle between BA→=(2,1,2)\overrightarrow{BA}=(2,1,2) and BC→=(1,−2,2)\overrightarrow{BC}=(1,-2,2).

What is the angle between (1,−1,0)(1,-1,0) and (0,1,1)(0,1,1)?

Perpendicular and parallel vectors

Perpendicular vectors have scalar product 0; parallel vectors have ∣v⋅w∣=∣v∣∣w∣|\mathbf{v}\cdot\mathbf{w}|=|\mathbf{v}||\mathbf{w}|.

For non-zero vectors, perpendicular means v⋅w=0\mathbf{v}\cdot\mathbf{w}=0, because cos⁡90∘=0\cos90^\circ=0. Parallel means ∣v⋅w∣=∣v∣∣w∣|\mathbf{v}\cdot\mathbf{w}|=|\mathbf{v}||\mathbf{w}|, because cos⁡θ=±1\cos\theta=\pm1.

To find an unknown that makes two vectors perpendicular, set the scalar product equal to 0 and solve.

OAB
Perpendicular vectors: (3, 0)·(0, 2) = 0.

Perpendicular

Test:
v⋅w=0\mathbf{v}\cdot\mathbf{w}=0
Angle:
Angle 90°

Parallel

Test:
∣v⋅w∣=∣v∣∣w∣|\mathbf{v}\cdot\mathbf{w}|=|\mathbf{v}||\mathbf{w}|
Angle:
Angle 0° or 180°

Worked example

Find tt so that (2,2,−1)(2,2,-1) and (−1,t,2)(-1,t,2) are perpendicular.

Are (2,3,−1)(2,3,-1) and (4,−2,2)(4,-2,2) perpendicular, parallel or neither?

Proofs and applications

Zero scalar product proves right angles, and F⋅d\mathbf{F}\cdot\mathbf{d} gives the work done by a force.

Work done by a constant force F\mathbf{F} moving an object through d\mathbf{d} is F⋅d\mathbf{F}\cdot\mathbf{d}. The part of F\mathbf{F} along d\mathbf{d} is λd\lambda\mathbf{d} with λ=F⋅dd⋅d\lambda=\frac{\mathbf{F}\cdot\mathbf{d}}{\mathbf{d}\cdot\mathbf{d}}. What is left, F−λd\mathbf{F}-\lambda\mathbf{d}, is perpendicular to d\mathbf{d} and does no work.

To prove a right angle, show a scalar product is 0, as in the angle in a semicircle.

OABP
Angle in a semicircle: AP·BP = (4.8)(−1.2) + (2.4)(2.4) = 0.

Worked example

Prove that the angle in a semicircle is 90∘90^\circ.

A force (5,0,−2)(5,0,-2) N moves an object through (2,3,5)(2,3,5) m. How much work is done?

Try an exam question

(a) Find tt so that a=(2−1t)\mathbf{a}=\begin{pmatrix}2\\-1\\t\end{pmatrix} and b=(142)\mathbf{b}=\begin{pmatrix}1\\4\\2\end{pmatrix} are perpendicular. (b) Find the angle between (122)\begin{pmatrix}1\\2\\2\end{pmatrix} and (2−36)\begin{pmatrix}2\\-3\\6\end{pmatrix}.

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Find u⋅v\mathbf{u}\cdot\mathbf{v}.

1 mark, marked against the mark scheme

Revision notes