Skip to the formula

Scalar product formula: v · w = |v||w| cos θ

The scalar product formula is v · w = v₁w₁ + v₂w₂ + v₃w₃ = |v||w| cos θ.

What each letter means

When to use it

To find the angle between two vectors or two lines, and to test whether they are perpendicular (dot product 0).

Worked example

Find the angle between \(\mathbf v=\begin{pmatrix}1\\2\\2\end{pmatrix}\) and \(\mathbf w=\begin{pmatrix}2\\-1\\2\end{pmatrix}\).

  1. \(\mathbf v\cdot\mathbf w=2-2+4=4\); \(|\mathbf v|=|\mathbf w|=3\)
  2. \(\cos\theta=\dfrac{4}{9}\)

Answer: \(\theta=63.6^\circ\) (3 s.f.)

Common mistake

Dividing by only one magnitude when finding cos θ. Divide by |v| × |w|.

On your course

CourseIn the exam
AA HLIn the IB formula booklet
AI HLIn the IB formula booklet

From our own IB Maths formula sheets, in our words. The IB gives its booklet to schools, so we checked against our own copy: your teacher has the official one. Official: IB DP Mathematics page.

Practise and revise

Scalar (dot) product formula card: v · w = v₁w₁ + v₂w₂ + v₃w₃ = |v||w| cos θ. IB Math Revision
Scalar (dot) product formula card. Download the card (PNG) to save or print it.

Questions

What is the scalar product formula?

The scalar product formula is v · w = v₁w₁ + v₂w₂ + v₃w₃ = |v||w| cos θ. v, w: two vectors; θ: the angle between them; | v|, | w|: their magnitudes.

Is the scalar (dot) product given in the exam?

AA HL: in the IB formula booklet. AI HL: in the IB formula booklet. This comes from our own IB Maths formula sheets; your teacher has the official booklet.

How can I tell if two vectors are perpendicular?

Their scalar product is 0, because cos 90° = 0.

Our own wording, examples and card, checked by IB Math Revision. Not produced or endorsed by the International Baccalaureate Organization.