Skip to main content
SingaporeMathsSyllabus dot point

How does the scalar product measure the angle between vectors and project one onto another?

Define and compute the scalar (dot) product, use it to find angles between vectors, test for perpendicularity, and find the projection of one vector onto another

A focused answer to the H2 Mathematics outcome on the scalar product. The algebraic and geometric definitions, finding the angle between vectors, the perpendicularity test, and projecting one vector onto another.

Generated by Claude Opus 4.89 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this dot point is asking
  2. The answer
  3. Examples in context
  4. Try this

What this dot point is asking

SEAB wants you to define the scalar (dot) product both algebraically and geometrically, use it to find the angle between two vectors, test whether vectors are perpendicular, and compute the projection of one vector onto another.

The answer

Two definitions

The scalar product of a\mathbf{a} and b\mathbf{b} is a number, defined equivalently by:

ab=a1b1+a2b2+a3b3(algebraic)\mathbf{a} \cdot \mathbf{b} = a_1 b_1 + a_2 b_2 + a_3 b_3 \qquad \text{(algebraic)}

ab=abcosθ(geometric)\mathbf{a} \cdot \mathbf{b} = |\mathbf{a}||\mathbf{b}|\cos\theta \qquad \text{(geometric)}

where θ\theta is the angle between them. Equating the two forms is the source of every angle calculation.

Finding the angle

Rearranging the geometric form:

cosθ=abab.\cos\theta = \frac{\mathbf{a} \cdot \mathbf{b}}{|\mathbf{a}||\mathbf{b}|}.

Compute the dot product and the two magnitudes, then take the inverse cosine.

The perpendicularity test

Since cos90=0\cos 90^\circ = 0, two non-zero vectors are perpendicular if and only if their dot product is zero. This is the quickest test for a right angle and underpins normal vectors to planes.

Projection

The scalar projection of a\mathbf{a} onto b\mathbf{b} (the length of the shadow of a\mathbf{a} along b\mathbf{b}) is abb\dfrac{\mathbf{a}\cdot\mathbf{b}}{|\mathbf{b}|}. The vector projection multiplies this by the unit vector bb\dfrac{\mathbf{b}}{|\mathbf{b}|} to give a vector along b\mathbf{b}.

Examples in context

Example 1. Work done by a force. The work done by a constant force F\mathbf{F} over a displacement d\mathbf{d} is W=Fd=FdcosθW = \mathbf{F}\cdot\mathbf{d} = |\mathbf{F}||\mathbf{d}|\cos\theta, so only the component of force along the motion does work, which is why a force perpendicular to motion does none.

Example 2. Checking a right angle in geometry. To verify that a triangle with vertices given by position vectors has a right angle at BB, compute BABC\overrightarrow{BA}\cdot\overrightarrow{BC}; a result of zero confirms the right angle without measuring.

Try this

Q1. Compute (132)(411)\begin{pmatrix} 1 \\ 3 \\ -2 \end{pmatrix} \cdot \begin{pmatrix} 4 \\ -1 \\ 1 \end{pmatrix}. [2 marks]

  • Cue. 432=14 - 3 - 2 = -1.

Q2. Show that (210)\begin{pmatrix} 2 \\ 1 \\ 0 \end{pmatrix} and (125)\begin{pmatrix} -1 \\ 2 \\ 5 \end{pmatrix} are perpendicular. [2 marks]

  • Cue. Dot product =2+2+0=0= -2 + 2 + 0 = 0, so perpendicular.

Q3. State the geometric meaning of ab=0\mathbf{a}\cdot\mathbf{b} = 0 for non-zero vectors. [1 mark]

  • Cue. The vectors are perpendicular (the angle between them is 9090^\circ).

Exam-style practice questions

Practice questions written in the style of SEAB exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

Original4 marksFind the angle between the vectors a=(122)\mathbf{a} = \begin{pmatrix} 1 \\ 2 \\ 2 \end{pmatrix} and b=(201)\mathbf{b} = \begin{pmatrix} 2 \\ 0 \\ -1 \end{pmatrix}.
Show worked answer →

ab=(1)(2)+(2)(0)+(2)(1)=2+02=0\mathbf{a} \cdot \mathbf{b} = (1)(2) + (2)(0) + (2)(-1) = 2 + 0 - 2 = 0.

Since the dot product is 00, the vectors are perpendicular: the angle is 9090^\circ.

(Had the dot product been nonzero, use cosθ=abab\cos\theta = \dfrac{\mathbf{a}\cdot\mathbf{b}}{|\mathbf{a}||\mathbf{b}|}.)

Markers reward computing the dot product and recognising that a zero dot product means a right angle.

Original4 marksGiven a=(340)\mathbf{a} = \begin{pmatrix} 3 \\ 4 \\ 0 \end{pmatrix} and b=(100)\mathbf{b} = \begin{pmatrix} 1 \\ 0 \\ 0 \end{pmatrix}, find the length of the projection of a\mathbf{a} onto b\mathbf{b}.
Show worked answer →

The (scalar) projection of a\mathbf{a} onto b\mathbf{b} is abb\dfrac{\mathbf{a}\cdot\mathbf{b}}{|\mathbf{b}|}.

ab=3(1)+4(0)+0=3\mathbf{a}\cdot\mathbf{b} = 3(1) + 4(0) + 0 = 3, and b=1|\mathbf{b}| = 1.

So the projection length is 31=3\dfrac{3}{1} = 3.

Markers reward the projection formula, the dot product, and dividing by the magnitude of b\mathbf{b}.

Related dot points