Resources For Teachers For Tutors For Students & Parents Pricing
Year 11 Specialist (Unit 1 & 2) Algebra of vectors

Scalar product of vectors

20 practice questions 0 video lessons Theory + worked examples

Master the scalar product of vectors for Year 11 Specialist Mathematics in Queensland (QCAA). The scalar (dot) product multiplies two vectors to give a single number, and it is the key to measuring the angle between two vectors.

You will learn to compute the scalar product in Cartesian form, use it to find angles and to test whether vectors are perpendicular or parallel, and read the sign to classify an angle as acute, right or obtuse — core skills for the algebra of vectors.

Create a free accountTrack your progress and save your work as you go.
Create free account

Theory

The scalar (dot) product combines two vectors to give a single number. In Year 11 Specialist Mathematics (QCAA, Queensland) it is the tool for finding the angle between two vectors and for testing whether they are perpendicular or parallel. This page shows both formulas and how to apply them to vectors in Cartesian form.

The scalar product (also called the dot product) of two vectors \(\mathbf{a}\) and \(\mathbf{b}\) is written \(\mathbf{a}\cdot\mathbf{b}\). The result is a scalar — an ordinary number, not a vector.

There are two equivalent formulas. In component form, multiply matching components and add: \(\mathbf{a}\cdot\mathbf{b}=a_1 b_1 + a_2 b_2\). In geometric form, \(\mathbf{a}\cdot\mathbf{b}=|\mathbf{a}||\mathbf{b}|\cos\theta\), where \(\theta\) is the angle between the two vectors.

Setting the two forms equal makes the scalar product a way to find an angle: \(\cos\theta=\dfrac{\mathbf{a}\cdot\mathbf{b}}{|\mathbf{a}||\mathbf{b}|}\). A useful special case is \(\mathbf{a}\cdot\mathbf{a}=|\mathbf{a}|^2\).

Two non-zero vectors are perpendicular exactly when \(\mathbf{a}\cdot\mathbf{b}=0\) (because \(\cos 90^\circ=0\)). The sign of the scalar product tells you the angle at a glance: positive means acute, zero means a right angle, and negative means obtuse.

Angle between two vectorsTwo vectors a=(4,1) and b=(1,3) drawn from the origin, with the angle theta between them marked by an arc. The scalar product gives cos theta. x y θ a b
The scalar product gives the angle \(\theta\) between \(\mathbf{a}\) and \(\mathbf{b}\) via \(\cos\theta=\dfrac{\mathbf{a}\cdot\mathbf{b}}{|\mathbf{a}||\mathbf{b}|}\).
Perpendicular vectors have zero scalar productVectors a=(4,1) and b=(-1,4) drawn from the origin meet at a right angle; a small square marks the 90 degree angle. Their scalar product is zero. x y a b
Perpendicular vectors: \(\mathbf{a}\cdot\mathbf{b}=(4)(-1)+(1)(4)=0\), so they meet at \(90^\circ\).

For \(\mathbf{a}=a_1\mathbf{i}+a_2\mathbf{j}\) and \(\mathbf{b}=b_1\mathbf{i}+b_2\mathbf{j}\), the scalar product in component form is:

\[ \mathbf{a}\cdot\mathbf{b}=a_1 b_1 + a_2 b_2 \]
ab=a1b1+a2b2

The geometric form links the scalar product to the angle \(\theta\) between the vectors:

\[ \mathbf{a}\cdot\mathbf{b}=|\mathbf{a}||\mathbf{b}|\cos\theta \]
ab=|a||b|cosθ

Rearranging gives the angle, and the self-product gives the squared magnitude:

\[ \cos\theta=\dfrac{\mathbf{a}\cdot\mathbf{b}}{|\mathbf{a}||\mathbf{b}|} \qquad \mathbf{a}\cdot\mathbf{a}=|\mathbf{a}|^2 \]
cosθ=ab|a||b|
Perpendicular and parallel tests. Non-zero \(\mathbf{a}\) and \(\mathbf{b}\) are perpendicular when \(\mathbf{a}\cdot\mathbf{b}=0\), and parallel when \(a_1 b_2 - a_2 b_1 = 0\).

How to use the scalar product

  1. Read the components of each vector, keeping the signs, as \((a_1,a_2)\) and \((b_1,b_2)\).
  2. Multiply and add: compute \(\mathbf{a}\cdot\mathbf{b}=a_1 b_1 + a_2 b_2\) — a single number.
  3. To test perpendicularity, check whether \(\mathbf{a}\cdot\mathbf{b}=0\); if an unknown is involved, set the scalar product to \(0\) and solve.
  4. To find an angle, also compute \(|\mathbf{a}|\) and \(|\mathbf{b}|\), then evaluate \(\theta=\cos^{-1}\!\left(\dfrac{\mathbf{a}\cdot\mathbf{b}}{|\mathbf{a}||\mathbf{b}|}\right)\).
Example 1 — Scalar product from components
Find \(\mathbf{a}\cdot\mathbf{b}\) for \(\mathbf{a}=2\mathbf{i}+5\mathbf{j}\) and \(\mathbf{b}=3\mathbf{i}+4\mathbf{j}\).
Solution

Multiply matching components, then add:

\(\mathbf{a}\cdot\mathbf{b}\)\(=\)\(a_1 b_1 + a_2 b_2\)
\(=\)\((2)(3) + (5)(4)\)
\(=\)\(6 + 20\)
\(=\)\(26\)

\(\mathbf{a}\cdot\mathbf{b}=26\).

Example 2 — Exact angle between vectors
Find the angle between \(\mathbf{a}=3\mathbf{i}+\mathbf{j}\) and \(\mathbf{b}=2\mathbf{i}+4\mathbf{j}\).
Solution

Find the scalar product and both magnitudes:

\(\mathbf{a}\cdot\mathbf{b}\)\(=\)\((3)(2) + (1)(4)\)
\(=\)\(6 + 4 = 10\)
\(|\mathbf{a}|\)\(=\)\(\sqrt{3^2+1^2} = \sqrt{10}\)
\(|\mathbf{b}|\)\(=\)\(\sqrt{2^2+4^2} = \sqrt{20}\)

Substitute into the cosine formula and simplify:

\(\cos\theta\)\(=\)\(\dfrac{10}{\sqrt{10}\times\sqrt{20}}\)
\(=\)\(\dfrac{10}{\sqrt{200}}\)
\(=\)\(\dfrac{10}{10\sqrt{2}} = \dfrac{1}{\sqrt{2}}\)
\(\theta\)\(=\)\(45^\circ\)

The angle is \(45^\circ\).

Example 3 — Find an unknown component (perpendicular)
The vectors \(\mathbf{a}=2\mathbf{i}-3\mathbf{j}\) and \(\mathbf{b}=6\mathbf{i}+m\mathbf{j}\) are perpendicular. Find \(m\).
Solution

Perpendicular means the scalar product is zero, so set it to \(0\):

\(\mathbf{a}\cdot\mathbf{b}\)\(=\)\((2)(6) + (-3)(m)\)
\(=\)\(12 - 3m\)
\(12 - 3m\)\(=\)\(0\)
\(3m\)\(=\)\(12\)
\(m\)\(=\)\(4\)

\(m=4\).

Example 4 — Angle to the nearest degree
Two forces act at a point with directions \(\mathbf{a}=5\mathbf{i}+\mathbf{j}\) and \(\mathbf{b}=\mathbf{i}+2\mathbf{j}\). Find the angle between them, to the nearest degree.
Solution

Compute the scalar product and both magnitudes:

\(\mathbf{a}\cdot\mathbf{b}\)\(=\)\((5)(1) + (1)(2)\)
\(=\)\(5 + 2 = 7\)
\(|\mathbf{a}|\)\(=\)\(\sqrt{5^2+1^2} = \sqrt{26}\)
\(|\mathbf{b}|\)\(=\)\(\sqrt{1^2+2^2} = \sqrt{5}\)

Apply the cosine formula, then take the inverse cosine:

\(\cos\theta\)\(=\)\(\dfrac{7}{\sqrt{26}\times\sqrt{5}}\)
\(=\)\(\dfrac{7}{\sqrt{130}}\)
\(\theta\)\(=\)\(\cos^{-1}\!\left(\dfrac{7}{\sqrt{130}}\right)\)
\(\approx\)\(52^\circ\)

The angle is about \(52^\circ\).

Common pitfalls

Thinking the answer is a vector. The scalar product is a single number. There are no \(\mathbf{i}\) or \(\mathbf{j}\) in \(\mathbf{a}\cdot\mathbf{b}\) — if your answer still has components, you have not finished adding.
Dropping a negative sign. Keep the sign of every component: \((2)(-3)=-6\), not \(6\). A sign slip flips acute to obtuse and can hide a perpendicular pair.
Confusing perpendicular with parallel. \(\mathbf{a}\cdot\mathbf{b}=0\) means perpendicular. Parallel vectors are tested with \(a_1 b_2 - a_2 b_1 = 0\), not the scalar product.
Forgetting to divide by the magnitudes. For an angle you need \(\cos\theta=\dfrac{\mathbf{a}\cdot\mathbf{b}}{|\mathbf{a}||\mathbf{b}|}\); the scalar product alone is not the cosine.

Frequently asked questions

What is the scalar product of two vectors?

It is the number \(\mathbf{a}\cdot\mathbf{b}=a_1 b_1 + a_2 b_2\), found by multiplying matching components and adding. It equals \(|\mathbf{a}||\mathbf{b}|\cos\theta\).

How do you find the angle between two vectors?

Use \(\cos\theta=\dfrac{\mathbf{a}\cdot\mathbf{b}}{|\mathbf{a}||\mathbf{b}|}\): work out the scalar product and both magnitudes, then take the inverse cosine.

How can you tell if two vectors are perpendicular?

Two non-zero vectors are perpendicular exactly when their scalar product is zero, \(\mathbf{a}\cdot\mathbf{b}=0\), because \(\cos 90^\circ=0\).

What does a negative scalar product mean?

A negative scalar product means \(\cos\theta<0\), so the angle between the vectors is obtuse (between \(90^\circ\) and \(180^\circ\)).

What is \(\mathbf{a}\cdot\mathbf{a}\)?

The scalar product of a vector with itself equals its magnitude squared: \(\mathbf{a}\cdot\mathbf{a}=|\mathbf{a}|^2\).

Is the scalar product a vector or a number?

It is a scalar — an ordinary number. That is why it is called the scalar (dot) product.