The scalar product

The scalar product

Spec 7.7 · Edexcel International A Level Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • The scalar product is a number: a⋅b=a1b1+a2b2+a3b3=∣a∣∣b∣cos⁡θ\mathbf{a}\cdot\mathbf{b}=a_1b_1+a_2b_2+a_3b_3=|\mathbf{a}||\mathbf{b}|\cos\theta.
  • The angle between two vectors: cos⁡θ=a⋅b∣a∣∣b∣\cos\theta=\dfrac{\mathbf{a}\cdot\mathbf{b}}{|\mathbf{a}||\mathbf{b}|}.
  • Both vectors must start at the vertex: for angle ABCABC use BA→\overrightarrow{BA} and BC→\overrightarrow{BC}.
  • a⋅b=0\mathbf{a}\cdot\mathbf{b}=0 means the non-zero vectors are perpendicular.
  • a⋅a=∣a∣2\mathbf{a}\cdot\mathbf{a}=|\mathbf{a}|^2, and a negative scalar product means an obtuse angle.

Definition and component form

The scalar product of two vectors is a number found by multiplying matching components and adding.

The scalar product of two vectors is a number, not a vector.

For a=a1i+a2j+a3k\mathbf{a}=a_1\mathbf{i}+a_2\mathbf{j}+a_3\mathbf{k} and b=b1i+b2j+b3k\mathbf{b}=b_1\mathbf{i}+b_2\mathbf{j}+b_3\mathbf{k}:

a⋅b=a1b1+a2b2+a3b3\mathbf{a}\cdot\mathbf{b}=a_1b_1+a_2b_2+a_3b_3.

It is also ∣a∣∣b∣cos⁡θ|\mathbf{a}||\mathbf{b}|\cos\theta, where θ\theta is the angle between the vectors drawn tail to tail.

In 2D, drop the third term. Note that a⋅a=∣a∣2\mathbf{a}\cdot\mathbf{a}=|\mathbf{a}|^2.

  • a⋅b\mathbf{a}\cdot\mathbf{b}a1b1+a2b2+a3b3a_1b_1+a_2b_2+a_3b_3
  • a⋅b\mathbf{a}\cdot\mathbf{b}∣a∣∣b∣cos⁡θ|\mathbf{a}||\mathbf{b}|\cos\theta
abθOAB
θ\theta is the angle between a\mathbf{a} and b\mathbf{b} when both start at the same point.

Worked example

Find p⋅q\mathbf{p}\cdot\mathbf{q} for p=2i−3j+k\mathbf{p}=2\mathbf{i}-3\mathbf{j}+\mathbf{k} and q=4i+j−5k\mathbf{q}=4\mathbf{i}+\mathbf{j}-5\mathbf{k}.

What is (2i+3j)⋅(4i−j)(2\mathbf{i}+3\mathbf{j})\cdot(4\mathbf{i}-\mathbf{j})?

The angle between two vectors

Rearrange a⋅b=∣a∣∣b∣cos⁡θ\mathbf{a}\cdot\mathbf{b}=|\mathbf{a}||\mathbf{b}|\cos\theta to find cos⁡θ\cos\theta, then take the inverse cosine.

Rearranging a⋅b=∣a∣∣b∣cos⁡θ\mathbf{a}\cdot\mathbf{b}=|\mathbf{a}||\mathbf{b}|\cos\theta gives the angle.

If a⋅b>0\mathbf{a}\cdot\mathbf{b}>0 the angle is acute, and if a⋅b<0\mathbf{a}\cdot\mathbf{b}<0 it is obtuse.

Use the sign of the scalar product to check that your angle is sensible.

abθO
The angle θ between a and b: cos θ = a·b / (|a||b|). Here θ is acute, so a·b > 0.
  • cos⁡θ\cos\thetaa⋅b∣a∣∣b∣\dfrac{\mathbf{a}\cdot\mathbf{b}}{|\mathbf{a}||\mathbf{b}|}

Worked example

Find angle AOBAOB for OA→=2i+2j+k\overrightarrow{OA}=2\mathbf{i}+2\mathbf{j}+\mathbf{k} and OB→=3i−6j+2k\overrightarrow{OB}=3\mathbf{i}-6\mathbf{j}+2\mathbf{k}.

a⋅b=−6\mathbf{a}\cdot\mathbf{b}=-6. What type of angle is between a\mathbf{a} and b\mathbf{b}?

Angles in shapes: direction matters

For angle ABCABC use BA→\overrightarrow{BA} and BC→\overrightarrow{BC}, because both must start at BB.

To find angle ABCABC in a triangle, use BA→\overrightarrow{BA} and BC→\overrightarrow{BC}, because both must start at BB.

Using AB→\overrightarrow{AB} with BC→\overrightarrow{BC} gives the supplement, 180∘−θ180^\circ-\theta.

The angle between two lines is found from their direction vectors. If the answer exceeds 90∘90^\circ, the acute angle between the lines is 180∘180^\circ minus it.

BABCθBAC
Both vectors start at BB, so the angle between BA→\overrightarrow{BA} and BC→\overrightarrow{BC} is angle ABCABC.

Worked example

Find angle ABCABC for A(1,−1,2)A(1,-1,2), B(3,1,3)B(3,1,3), C(2,−3,0)C(2,-3,0).

Which pair of vectors gives angle PQRPQR?

Perpendicular vectors

Non-zero vectors are perpendicular exactly when their scalar product is zero, because cos⁡90∘=0\cos90^\circ=0.

If a\mathbf{a} and b\mathbf{b} are non-zero vectors and a⋅b=0\mathbf{a}\cdot\mathbf{b}=0, then cos⁡θ=0\cos\theta=0, so a\mathbf{a} and b\mathbf{b} are perpendicular. The converse also holds.

To find an unknown constant, set the scalar product equal to zero.

This is the quickest test for a right angle in a triangle or rectangle: show the scalar product of the two sides at that vertex is 00.

  • a⋅b=0\mathbf{a}\cdot\mathbf{b}=0a⊥b\mathbf{a}\perp\mathbf{b}
abOAB
A right angle at OO: OA→⋅OB→=0\overrightarrow{OA}\cdot\overrightarrow{OB}=0.

Worked example

Find λ\lambda so that r=i+2j+λk\mathbf{r}=\mathbf{i}+2\mathbf{j}+\lambda\mathbf{k} is perpendicular to p=2i−3j+k\mathbf{p}=2\mathbf{i}-3\mathbf{j}+\mathbf{k}.

(i+kj)⋅(2i−6j)=0(\mathbf{i}+k\mathbf{j})\cdot(2\mathbf{i}-6\mathbf{j})=0. What is kk?

Solving problems

Find the vectors between points, take scalar products, and use magnitudes for lengths and areas.

Combine the tools: find vectors between points, take scalar products, and use ∣a∣|\mathbf{a}|.

  • A right angle at AA means AB→⋅AC→=0\overrightarrow{AB}\cdot\overrightarrow{AC}=0, and then area =12∣AB→∣∣AC→∣=\frac12|\overrightarrow{AB}||\overrightarrow{AC}|.
  • For a rectangle ABDCABDC, BD→=AC→\overrightarrow{BD}=\overrightarrow{AC}, so OD→=OB→+AC→\overrightarrow{OD}=\overrightarrow{OB}+\overrightarrow{AC}.
  • The angle between diagonals uses their direction vectors. Take the modulus of the cosine for the acute angle.
  1. 1

    Find vectors

    between the points, e.g. AB and AC

  2. 2

    Scalar product

    set to 0 for a right angle

  3. 3

    Solve

    for the unknown or the angle

  4. 4

    Use magnitudes

    for lengths and area

A general plan for scalar product problems.

Worked example

A(1,2,3)A(1,2,3), B(4,−1,5)B(4,-1,5) and C(3,4,p)C(3,4,p) form a triangle with a right angle at AA. Find pp and the area.

A triangle has a right angle at AA. What must be true?

Try an exam question

The vectors a=2i+j+k\mathbf{a}=2\mathbf{i}+\mathbf{j}+\mathbf{k} and b=i−3j+2k\mathbf{b}=\mathbf{i}-3\mathbf{j}+2\mathbf{k}. Find the angle between a\mathbf{a} and b\mathbf{b}, giving your answer to one decimal place.

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Find p⋅q\mathbf{p}\cdot\mathbf{q}.

1 mark, marked against the mark scheme

Revision notes