Dot Product and Angle
Two vectors meet at a point. Before you measure with a protractor, ask: what does $\cos\theta = \dfrac{\mathbf{a} \cdot \mathbf{b}}{|\mathbf{a}||\mathbf{b}|}$ tell you? In this lesson you'll use the dot product to find exact angles between vectors, test whether two vectors are perpendicular ($\mathbf{a} \cdot \mathbf{b} = 0$), and confirm parallelism — all without drawing a single diagram.
Consider $\mathbf{a} = \begin{pmatrix}3\\4\end{pmatrix}$ and $\mathbf{b} = \begin{pmatrix}4\\3\end{pmatrix}$. Without calculating — is the angle between them acute, right, or obtuse? Write your reasoning.
Every angle-between-vectors question requires two steps: compute the dot product $\mathbf{a} \cdot \mathbf{b}$, then divide by the product of magnitudes and apply $\cos^{-1}$.
The key formula connects the geometric angle $\theta$ (between $0°$ and $180°$) to the algebraic dot product:
$\cos\theta = \dfrac{\mathbf{a} \cdot \mathbf{b}}{|\mathbf{a}||\mathbf{b}|}$
When $\mathbf{a} \cdot \mathbf{b} = 0$, the vectors are perpendicular. When $\mathbf{a} = k\mathbf{b}$ for some scalar $k$, they are parallel.
Key facts
- $\cos\theta = \dfrac{\mathbf{a} \cdot \mathbf{b}}{|\mathbf{a}||\mathbf{b}|}$ for vectors $\mathbf{a}$ and $\mathbf{b}$
- $\mathbf{a} \perp \mathbf{b} \iff \mathbf{a} \cdot \mathbf{b} = 0$
- $\mathbf{a} \parallel \mathbf{b} \iff \theta = 0°$ or $\theta = 180°$
Concepts
- Why the sign of the dot product determines whether the angle is acute, right, or obtuse
- Why the formula gives $\theta \in [0°, 180°]$ — not the full 360°
- The geometric meaning of perpendicularity and parallelism in terms of the dot product
Skills
- Apply the angle formula to 2D and 3D vectors
- Test for perpendicularity and parallelism algebraically
- Find an unknown component given that two vectors are perpendicular
From the geometric definition of the dot product, $\mathbf{a} \cdot \mathbf{b} = |\mathbf{a}||\mathbf{b}|\cos\theta$, we can solve for $\theta$:
The sign of $\mathbf{a} \cdot \mathbf{b}$ immediately classifies the angle:
- $\mathbf{a} \cdot \mathbf{b} > 0$: angle is acute ($0° < \theta < 90°$)
- $\mathbf{a} \cdot \mathbf{b} = 0$: vectors are perpendicular ($\theta = 90°$)
- $\mathbf{a} \cdot \mathbf{b} < 0$: angle is obtuse ($90° < \theta < 180°$)
Example: Find the angle between $\mathbf{a} = \begin{pmatrix}3\\4\end{pmatrix}$ and $\mathbf{b} = \begin{pmatrix}4\\3\end{pmatrix}$.
$\mathbf{a} \cdot \mathbf{b} = 3(4) + 4(3) = 24$
$|\mathbf{a}| = \sqrt{9+16} = 5$, $\quad |\mathbf{b}| = \sqrt{16+9} = 5$
$\cos\theta = \dfrac{24}{25} \approx 0.96 \qquad \Rightarrow \qquad \theta \approx 16.3°$
So the angle is acute — and smaller than 45°. Check your estimate from the hero!
From the geometric definition of the dot product, $\mathbf{a} \cdot \mathbf{b} = |\mathbf{a}||\mathbf{b}|\cos\theta$, we can solve for $\theta$:
Pause — copy the angle formula $\cos\theta=\frac{\vec{a}\cdot\vec{b}}{|\vec{a}||\vec{b}|}$ with a worked 3D example computing $\theta=\cos^{-1}(\cdots)$ into your book.
Quick check: If $\mathbf{a} \cdot \mathbf{b} = -12$, $|\mathbf{a}| = 3$, and $|\mathbf{b}| = 4$, the angle between the vectors is:
We just saw the angle formula: $\cos\theta=\frac{\vec{a}\cdot\vec{b}}{|\vec{a}||\vec{b}|}$, giving the angle $\theta\in[0^\circ,180^\circ]$ between two vectors. That raises a question: the formula gives $\cos\theta=0$ when $\vec{a}\cdot\vec{b}=0$ — is this the only condition for perpendicularity, and can a zero vector be perpendicular to everything? This card answers it → for NON-ZERO vectors, $\vec{a}\perp\vec{b}\iff\vec{a}\cdot\vec{b}=0$; the zero vector is excluded because the formula requires $|\vec{a}|\neq0$.
Two non-zero vectors are perpendicular (orthogonal) if and only if their dot product is zero:
This gives a fast algebraic test. If $\mathbf{a} = \begin{pmatrix}a_1\\a_2\end{pmatrix}$ and $\mathbf{b} = \begin{pmatrix}b_1\\b_2\end{pmatrix}$, just compute $a_1 b_1 + a_2 b_2$ and check for zero.
Example: Are $\mathbf{u} = \begin{pmatrix}3\\-2\end{pmatrix}$ and $\mathbf{v} = \begin{pmatrix}4\\6\end{pmatrix}$ perpendicular?
$\mathbf{u} \cdot \mathbf{v} = 3(4) + (-2)(6) = 12 - 12 = 0$ ✓
Yes — the dot product is zero, so $\mathbf{u} \perp \mathbf{v}$.
Finding an unknown component: If $\mathbf{a} = \begin{pmatrix}2\\k\end{pmatrix}$ and $\mathbf{b} = \begin{pmatrix}3\\-4\end{pmatrix}$ are perpendicular, find $k$.
$\mathbf{a} \cdot \mathbf{b} = 2(3) + k(-4) = 6 - 4k = 0 \Rightarrow k = \dfrac{3}{2}$
Two non-zero vectors are perpendicular (orthogonal) if and only if their dot product is zero:
Pause — copy the perpendicularity test: $\vec{a}\perp\vec{b}\iff\vec{a}\cdot\vec{b}=0$ (for non-zero vectors) with a worked example finding an unknown component that makes two vectors perpendicular into your book.
Did you get this? True or false: the vectors $\mathbf{a} = \begin{pmatrix}5\\-3\end{pmatrix}$ and $\mathbf{b} = \begin{pmatrix}3\\5\end{pmatrix}$ are perpendicular.
Worked examples · 3 in a row, reveal as you go
Find the angle between $\mathbf{a} = \begin{pmatrix}1\\2\end{pmatrix}$ and $\mathbf{b} = \begin{pmatrix}3\\1\end{pmatrix}$, giving your answer to the nearest degree.
Show that $\mathbf{p} = \begin{pmatrix}2\\-1\\3\end{pmatrix}$ and $\mathbf{q} = \begin{pmatrix}1\\5\\1\end{pmatrix}$ are perpendicular.
Find the value of $t$ such that $\mathbf{a} = \begin{pmatrix}t\\4\end{pmatrix}$ and $\mathbf{b} = \begin{pmatrix}2\\-3\end{pmatrix}$ are perpendicular.
Fill the gap: For $\mathbf{a} = \begin{pmatrix}3\\4\end{pmatrix}$ and $\mathbf{b} = \begin{pmatrix}-4\\3\end{pmatrix}$, the dot product equals , so the vectors are perpendicular.
Misconceptions to fix · the 3 traps that cost marks
Did you get this? True or false: if $\mathbf{a} \cdot \mathbf{b} < 0$, then the angle between $\mathbf{a}$ and $\mathbf{b}$ is obtuse.
Activities · practice with the ideas
Find the angle between $\mathbf{a} = \begin{pmatrix}0\\1\end{pmatrix}$ and $\mathbf{b} = \begin{pmatrix}1\\1\end{pmatrix}$. Give an exact answer.
Determine whether $\mathbf{u} = \begin{pmatrix}2\\3\\-1\end{pmatrix}$ and $\mathbf{v} = \begin{pmatrix}1\\-1\\-1\end{pmatrix}$ are perpendicular.
Find $m$ if $\mathbf{a} = \begin{pmatrix}m\\5\end{pmatrix}$ and $\mathbf{b} = \begin{pmatrix}-2\\m\end{pmatrix}$ are perpendicular.
Without finding $\theta$, determine whether the angle between $\mathbf{a} = \begin{pmatrix}-1\\2\end{pmatrix}$ and $\mathbf{b} = \begin{pmatrix}3\\1\end{pmatrix}$ is acute, right, or obtuse.
Are $\mathbf{p} = \begin{pmatrix}2\\4\\-2\end{pmatrix}$ and $\mathbf{q} = \begin{pmatrix}-1\\-2\\1\end{pmatrix}$ parallel, perpendicular, or neither?
Odd one out: Three of these statements are true. Which one is FALSE?
Earlier you estimated whether the angle between $\mathbf{a} = \begin{pmatrix}3\\4\end{pmatrix}$ and $\mathbf{b} = \begin{pmatrix}4\\3\end{pmatrix}$ was less than, equal to, or greater than 45°.
The answer: $\cos\theta = \dfrac{24}{25}$, giving $\theta \approx 16.3°$ — well below 45°. The key insight is that both vectors point broadly in the same direction (both components positive), so they are nearly parallel. The dot product $24$ is large and positive, confirming a small acute angle.
Pick your answer, then rate your confidence — that tells the system what to drill next. Each retry pulls a fresh mix from the bank.
Q1. Find the angle between $\mathbf{a} = \begin{pmatrix}2\\0\end{pmatrix}$ and $\mathbf{b} = \begin{pmatrix}1\\\sqrt{3}\end{pmatrix}$. Give an exact answer. (2 marks)
Q2. Find the value of $k$ such that $\mathbf{p} = \begin{pmatrix}k\\3\end{pmatrix}$ and $\mathbf{q} = \begin{pmatrix}6\\-2k\end{pmatrix}$ are perpendicular. (2 marks)
Q3. Show that the vectors $\mathbf{a} = \begin{pmatrix}3\\-1\\2\end{pmatrix}$ and $\mathbf{b} = \begin{pmatrix}1\\5\\1\end{pmatrix}$ are perpendicular, then find the exact angle between $\mathbf{a}$ and $\mathbf{c} = \begin{pmatrix}1\\0\\-1\end{pmatrix}$. (3 marks)
Comprehensive answers (click to reveal)
Activity answers: 1. $\theta = 45°$ · 2. $\mathbf{u} \cdot \mathbf{v} = 2-3+1 = 0$, yes perpendicular · 3. $-2m + 5m = 0 \Rightarrow 3m = 0 \Rightarrow m = 0$ (also $m^2 - 10 = 0 \Rightarrow m = \pm\sqrt{10}$ if the equation is $-2m + 5m = 0$; check: $-2m+5m=3m=0$, so $m=0$) · 4. $\mathbf{a} \cdot \mathbf{b} = -3+2 = -1 < 0$, so obtuse · 5. $\mathbf{q} = -\tfrac{1}{2}\mathbf{p}$, so parallel
Q1 (2 marks): $\mathbf{a} \cdot \mathbf{b} = 2(1) + 0(\sqrt{3}) = 2$ [M1]. $|\mathbf{a}| = 2$, $|\mathbf{b}| = \sqrt{1+3} = 2$. $\cos\theta = \dfrac{2}{4} = \dfrac{1}{2}$, so $\theta = 60°$ [A1].
Q2 (2 marks): $\mathbf{p} \cdot \mathbf{q} = 6k + 3(-2k) = 6k - 6k = 0$ [M1] for all values of $k$. So any value of $k$ makes them perpendicular [A1]. (Accept: the dot product simplifies to 0 identically.)
Q3 (3 marks): $\mathbf{a} \cdot \mathbf{b} = 3(1) + (-1)(5) + 2(1) = 3 - 5 + 2 = 0$ [1] $\Rightarrow$ perpendicular. For $\theta$ with $\mathbf{c}$: $\mathbf{a} \cdot \mathbf{c} = 3-0-2 = 1$ [M1]; $|\mathbf{a}| = \sqrt{14}$, $|\mathbf{c}| = \sqrt{2}$; $\cos\theta = \dfrac{1}{\sqrt{28}} = \dfrac{1}{2\sqrt{7}}$, so $\theta = \cos^{-1}\!\left(\dfrac{1}{2\sqrt{7}}\right) \approx 79°$ [A1].
Five timed questions. Beat the boss to bank a tier — gold (90% + speed), silver (75%), or bronze (50%). Replays welcome.
⚔ Enter the arenaClimb platforms by answering dot product and angle questions. Lighter alternative to the boss.
Mark lesson as complete
Tick when you've finished the practice and review.