Scalar product and perpendicular vectors

Scalar product and perpendicular vectors

Spec F3–F4 · AQA A-Level Further 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.
  • Angle between vectors: cos⁡θ=a⋅b∣a∣∣b∣\cos\theta=\dfrac{\mathbf a\cdot\mathbf b}{|\mathbf a||\mathbf b|}; positive means acute, negative means obtuse.
  • Vectors are perpendicular exactly when a⋅b=0\mathbf a\cdot\mathbf b=0.
  • For two lines use the direction vectors and a modulus: cos⁡θ=∣d1⋅d2∣∣d1∣∣d2∣\cos\theta=\dfrac{|\mathbf d_1\cdot\mathbf d_2|}{|\mathbf d_1||\mathbf d_2|}.

The scalar product

Multiply matching components and add: the result is a single number, not a vector.

The scalar product (dot 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 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,

where θ\theta is the angle between the vectors when both are drawn out of the same point.

Example: a=(2,−1,3)\mathbf a=(2,-1,3), b=(4,5,1)\mathbf b=(4,5,1) give a⋅b=8−5+3=6\mathbf a\cdot\mathbf b=8-5+3=6.

Useful rules:

  • a⋅b=b⋅a\mathbf a\cdot\mathbf b=\mathbf b\cdot\mathbf a
  • a⋅(b+c)=a⋅b+a⋅c\mathbf a\cdot(\mathbf b+\mathbf c)=\mathbf a\cdot\mathbf b+\mathbf a\cdot\mathbf c
  • a⋅a=∣a∣2\mathbf a\cdot\mathbf a=|\mathbf a|^2
ab45°OAB
a = (4, 0), b = (3, 3): angle 45°, a·b = 12.

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

The angle between two vectors

Rearrange the two forms of the scalar product to give cos⁡θ\cos\theta and take the inverse cosine.

Rearranging the two forms of the scalar product:

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

If a⋅b>0\mathbf a\cdot\mathbf b>0 the angle is acute; if a⋅b<0\mathbf a\cdot\mathbf b<0 it is obtuse.

  • cos⁡θ\cos\thetaa⋅b∣a∣∣b∣\dfrac{\mathbf a\cdot\mathbf b}{|\mathbf a||\mathbf b|}

Worked example

Find the angle between a=(2,−1,3)\mathbf a=(2,-1,3) and b=(4,5,1)\mathbf b=(4,5,1).

a⋅b=−5\mathbf a\cdot\mathbf b=-5 for two non-zero vectors. What can you say about the angle between them?

Perpendicular vectors

Non-zero vectors are perpendicular exactly when their scalar product is zero.

For non-zero vectors, the angle is 90∘90^\circ exactly when cos⁡θ=0\cos\theta=0, that is

a⋅b=0  ⟺  a⊥b.\mathbf a\cdot\mathbf b=0\iff\mathbf a\perp\mathbf b.

Example: (2,−1,3)⋅(1,2,0)=2−2+0=0(2,-1,3)\cdot(1,2,0)=2-2+0=0, so they are perpendicular.

To find an unknown, set the scalar product to zero. In a triangle, a zero scalar product of two sides meeting at a vertex shows a right angle at that vertex.

PQR
A zero scalar product means a right angle: (3,0)⋅(0,2)=0(3,0)\cdot(0,2)=0.

Worked example

Find kk so that (3,k,−2)⊥(2,−4,1)(3,k,-2)\perp(2,-4,1).

For which value of pp is (p,2,1)(p,2,1) perpendicular to (1,3,−4)(1,3,-4)?

The angle between two lines

Use the direction vectors with a modulus on the scalar product to get the acute angle.

The angle between two lines is found from their direction vectors d1\mathbf d_1 and d2\mathbf d_2; the base points play no part.

cos⁡θ=∣d1⋅d2∣∣d1∣∣d2∣\cos\theta=\frac{|\mathbf d_1\cdot\mathbf d_2|}{|\mathbf d_1||\mathbf d_2|}

gives the acute angle between the lines.

Using the modulus matters because a line has two opposite directions, so the vectors may make an obtuse angle even though the lines make an acute one.

Lines are perpendicular when d1⋅d2=0\mathbf d_1\cdot\mathbf d_2=0, whether or not they meet.

  • Angle between linescos⁡θ=∣d1⋅d2∣∣d1∣∣d2∣\cos\theta=\dfrac{|\mathbf d_1\cdot\mathbf d_2|}{|\mathbf d_1||\mathbf d_2|}

Worked example

Find the acute angle between lines with directions d1=(2,1,−2)\mathbf d_1=(2,1,-2) and d2=(1,4,8)\mathbf d_2=(1,4,8).

Two lines have d1⋅d2=−6\mathbf d_1\cdot\mathbf d_2=-6. What happens to the minus sign when finding the angle between the lines?

Try an exam question

Find the angle between the vectors a=(1,2,2)\mathbf a=(1,2,2) and b=(2,−3,6)\mathbf b=(2,-3,6), giving your answer to 1 decimal place.

[3 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Find a⋅b\mathbf a\cdot\mathbf b.

1 mark, marked against the mark scheme

Revision notes