Scalar (Dot) Product in 3D
The dot product is the single most useful operation in 3D vector geometry. With one number — $\mathbf{u} \cdot \mathbf{v}$ — you can test perpendicularity, find the angle between two vectors, project one vector onto another, and compute work in physics. This lesson builds the algebraic formula and the geometric formula side-by-side, then shows you how to switch between them fluently.
From Module 14 L01–L02 you know that the magnitude of a 3D vector $\mathbf{a} = (a_1, a_2, a_3)$ is $|\mathbf{a}| = \sqrt{a_1^2 + a_2^2 + a_3^2}$. Before checking — for $\mathbf{u} = (1, 2, 2)$ and $\mathbf{v} = (2, -1, 0)$, compute $|\mathbf{u}|$, $|\mathbf{v}|$, and then guess what $u_1 v_1 + u_2 v_2 + u_3 v_3$ tells you.
The dot product wears two costumes: an algebraic one for computation from components, and a geometric one for angles and projection. Equating the two unlocks every Module 14 dot-product problem.
The component–geometry bridge: (1) compute $\mathbf{u} \cdot \mathbf{v}$ from coordinates, (2) compute $|\mathbf{u}|$ and $|\mathbf{v}|$, (3) solve $\cos\theta = \dfrac{\mathbf{u} \cdot \mathbf{v}}{|\mathbf{u}||\mathbf{v}|}$ for the angle.
Algebraic: $\mathbf{u} \cdot \mathbf{v} = u_1 v_1 + u_2 v_2 + u_3 v_3$ · Geometric: $\mathbf{u} \cdot \mathbf{v} = |\mathbf{u}||\mathbf{v}|\cos\theta$
Key facts
- Algebraic formula: $\mathbf{u} \cdot \mathbf{v} = u_1 v_1 + u_2 v_2 + u_3 v_3$
- Geometric formula: $\mathbf{u} \cdot \mathbf{v} = |\mathbf{u}||\mathbf{v}|\cos\theta$
- $\mathbf{u} \cdot \mathbf{u} = |\mathbf{u}|^2$
- Perpendicularity test: $\mathbf{u} \perp \mathbf{v} \iff \mathbf{u} \cdot \mathbf{v} = 0$ (for non-zero vectors)
Concepts
- Why the algebraic and geometric formulas describe the same quantity
- Why the dot product is commutative ($\mathbf{u} \cdot \mathbf{v} = \mathbf{v} \cdot \mathbf{u}$) and distributive over addition
- Why the sign of $\mathbf{u} \cdot \mathbf{v}$ classifies the angle without further work
Skills
- Compute the dot product of two 3D vectors from components
- Find the angle between two vectors using the cosine formula
- Test whether two vectors are perpendicular
Given two 3D vectors $\mathbf{u} = (u_1, u_2, u_3)$ and $\mathbf{v} = (v_1, v_2, v_3)$, the scalar (dot) product is defined by either equivalent formula:
The algebraic form is for computing; the geometric form is for interpreting. Three immediate consequences:
- Self-product gives squared magnitude: $\mathbf{u} \cdot \mathbf{u} = u_1^2 + u_2^2 + u_3^2 = |\mathbf{u}|^2$.
- Angle formula: $\cos\theta = \dfrac{\mathbf{u} \cdot \mathbf{v}}{|\mathbf{u}||\mathbf{v}|}$ — rearranged from the geometric form.
- Perpendicularity test: non-zero $\mathbf{u}, \mathbf{v}$ are perpendicular iff $\mathbf{u} \cdot \mathbf{v} = 0$ (because $\cos 90° = 0$).
Properties (for any vectors $\mathbf{u}, \mathbf{v}, \mathbf{w}$ and scalar $k$):
- Commutative: $\mathbf{u} \cdot \mathbf{v} = \mathbf{v} \cdot \mathbf{u}$
- Distributive: $\mathbf{u} \cdot (\mathbf{v} + \mathbf{w}) = \mathbf{u} \cdot \mathbf{v} + \mathbf{u} \cdot \mathbf{w}$
- Scalar multiple: $(k\mathbf{u}) \cdot \mathbf{v} = k(\mathbf{u} \cdot \mathbf{v}) = \mathbf{u} \cdot (k\mathbf{v})$
- Positive definiteness: $\mathbf{u} \cdot \mathbf{u} \geq 0$, with equality iff $\mathbf{u} = \mathbf{0}$
Definition: $\mathbf{u} \cdot \mathbf{v} = u_1 v_1 + u_2 v_2 + u_3 v_3 = |\mathbf{u}||\mathbf{v}|\cos\theta$ · Result is a scalar (number), not a vector · $\mathbf{u} \cdot \mathbf{u} = |\mathbf{u}|^2$ · Properties: commutative, distributive, $(k\mathbf{u}) \cdot \mathbf{v} = k(\mathbf{u} \cdot \mathbf{v})$
Pause — copy the dot product definition $\mathbf{u}\cdot\mathbf{v} = \sum u_i v_i = |\mathbf{u}||\mathbf{v}|\cos\theta$, the scalar-result reminder, and the properties (commutative, distributive) into your book.
Quick check: Let $\mathbf{u} = (3, -1, 2)$ and $\mathbf{v} = (1, 4, -1)$. What is $\mathbf{u} \cdot \mathbf{v}$?
We just saw the dot product: $\mathbf{u}\cdot\mathbf{v} = u_1 v_1+u_2 v_2+u_3 v_3 = |\mathbf{u}||\mathbf{v}|\cos\theta$, a scalar with $\mathbf{u}\cdot\mathbf{u} = |\mathbf{u}|^2$. That raises a question: how do we use this to find the actual angle between two vectors? This card answers it → $\cos\theta = (\mathbf{u}\cdot\mathbf{v})/(|\mathbf{u}||\mathbf{v}|)$ with $\theta \in [0°,180°]$; the sign of the dot product classifies the angle as acute, right, or obtuse.
Combining the two formulas gives a direct expression for the angle:
The procedure is always three steps:
- Compute $\mathbf{u} \cdot \mathbf{v}$ using components.
- Compute $|\mathbf{u}|$ and $|\mathbf{v}|$ using $\sqrt{u_1^2 + u_2^2 + u_3^2}$.
- Substitute and take $\cos^{-1}$ to find $\theta$.
Classification by sign — read it off the dot product alone:
- $\mathbf{u} \cdot \mathbf{v} > 0$: $\cos\theta > 0$, so $\theta \in [0°, 90°)$ — acute.
- $\mathbf{u} \cdot \mathbf{v} = 0$: $\cos\theta = 0$, so $\theta = 90°$ — right angle.
- $\mathbf{u} \cdot \mathbf{v} < 0$: $\cos\theta < 0$, so $\theta \in (90°, 180°]$ — obtuse.
Angle formula: $\cos\theta = \dfrac{\mathbf{u} \cdot \mathbf{v}}{|\mathbf{u}||\mathbf{v}|}$ · $\theta \in [0°, 180°]$ — always take the non-negative angle · Sign of dot product classifies: positive = acute, zero = right, negative = obtuse · Use unit vectors to skip the denominator: if $|\hat{\mathbf{u}}| = |\hat{\mathbf{v}}| = 1$ then $\cos\theta = \hat{\mathbf{u}} \cdot \hat{\mathbf{v}}$
Pause — copy the angle formula $\cos\theta = (\mathbf{u}\cdot\mathbf{v})/(|\mathbf{u}||\mathbf{v}|)$, the range $\theta \in [0°,180°]$, the sign classification (positive → acute, zero → right, negative → obtuse), and the unit-vector shortcut into your book.
Did you get this? True or false: if $\mathbf{u} \cdot \mathbf{v} = -5$ and both vectors are non-zero, then the angle between $\mathbf{u}$ and $\mathbf{v}$ is obtuse.
Worked examples · 3 in a row, reveal as you go
For $\mathbf{u} = (2, -3, 4)$ and $\mathbf{v} = (-1, 5, 2)$, compute $\mathbf{u} \cdot \mathbf{v}$ and state whether the angle between them is acute, right, or obtuse.
Find the angle (to the nearest degree) between $\mathbf{a} = (1, 2, 2)$ and $\mathbf{b} = (3, 0, 4)$.
Find the value of $k$ for which $\mathbf{u} = (2, k, -1)$ and $\mathbf{v} = (3, -2, 4)$ are perpendicular.
Fill the gap: The angle between two non-zero vectors satisfies $\cos\theta = $ $ / (|\mathbf{u}|\,|\mathbf{v}|)$, and the vectors are perpendicular exactly when $\mathbf{u} \cdot \mathbf{v} = $ .
Misconceptions to fix · the 3 traps that cost marks
Did you get this? True or false: the dot product $\mathbf{u} \cdot \mathbf{v}$ of two 3D vectors produces another 3D vector.
Activities · practice with the ideas
Compute $\mathbf{u} \cdot \mathbf{v}$ for $\mathbf{u} = (4, -2, 1)$ and $\mathbf{v} = (3, 5, -2)$. State whether the angle is acute, right, or obtuse.
Find the angle (to the nearest degree) between $\mathbf{a} = (2, 1, -2)$ and $\mathbf{b} = (1, 2, 2)$.
For what value(s) of $\lambda$ are $\mathbf{p} = (\lambda, 2, -3)$ and $\mathbf{q} = (4, -1, \lambda)$ perpendicular?
If $\mathbf{u} \cdot \mathbf{v} = 6$, $|\mathbf{u}| = 4$, and $|\mathbf{v}| = 3$, find $\cos\theta$ and $\theta$.
Prove that $\mathbf{u} \cdot \mathbf{u} = |\mathbf{u}|^2$ for any 3D vector $\mathbf{u} = (u_1, u_2, u_3)$.
Odd one out: Three of these statements about the dot product are always true. Which one is NOT?
Earlier you analysed $\mathbf{u} = (1, 2, 2)$ and $\mathbf{v} = (2, -1, 0)$ — predicting the angle and computing the component sum.
The dot product $\mathbf{u} \cdot \mathbf{v} = 2 - 2 + 0 = 0$ shows the vectors are perpendicular — no cosine or magnitude calculation is needed. This is the central insight of the lesson: the dot product converts a geometric question ("what is the angle?") into an algebraic one ("what is this sum?"). Recognising the sign — positive, zero, or negative — instantly classifies the angle, even before you reach for $\cos^{-1}$.
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. Given $\mathbf{u} = (1, -2, 3)$ and $\mathbf{v} = (4, 1, -2)$, compute $\mathbf{u} \cdot \mathbf{v}$ and state whether the angle between them is acute, right, or obtuse. (2 marks)
Q2. Find the angle, to the nearest degree, between $\mathbf{a} = (3, 4, 0)$ and $\mathbf{b} = (1, 0, 2)$. (3 marks)
Q3. The vectors $\mathbf{u} = (m, 2, -1)$ and $\mathbf{v} = (3, m, 4)$ are perpendicular. (a) Find $m$. (b) For your value of $m$, compute $|\mathbf{u}|$ and $|\mathbf{v}|$ to verify the dot product is zero. (3 marks)
Comprehensive answers (click to reveal)
Activity answers:
1. $\mathbf{u} \cdot \mathbf{v} = (4)(3) + (-2)(5) + (1)(-2) = 12 - 10 - 2 = 0$. The vectors are perpendicular (right angle).
2. $\mathbf{a} \cdot \mathbf{b} = 2 + 2 - 4 = 0$. $|\mathbf{a}| = \sqrt{4+1+4} = 3$ and $|\mathbf{b}| = \sqrt{1+4+4} = 3$. Since the dot product is 0, $\theta = 90°$.
3. $\mathbf{p} \cdot \mathbf{q} = 4\lambda - 2 - 3\lambda = \lambda - 2$. Setting to 0 gives $\lambda = 2$.
4. $\cos\theta = 6 / (4 \cdot 3) = 1/2$, so $\theta = 60°$.
5. $\mathbf{u} \cdot \mathbf{u} = u_1^2 + u_2^2 + u_3^2$, which is precisely $|\mathbf{u}|^2$ by definition of magnitude. (Geometrically: $\mathbf{u} \cdot \mathbf{u} = |\mathbf{u}|^2 \cos 0° = |\mathbf{u}|^2$.)
Q1 (2 marks): $\mathbf{u} \cdot \mathbf{v} = (1)(4) + (-2)(1) + (3)(-2) = 4 - 2 - 6 = -4$ [1]. Negative, so the angle is obtuse [1].
Q2 (3 marks): $\mathbf{a} \cdot \mathbf{b} = (3)(1) + (4)(0) + (0)(2) = 3$ [1]. $|\mathbf{a}| = \sqrt{9 + 16} = 5$, $|\mathbf{b}| = \sqrt{1 + 4} = \sqrt{5}$ [1]. $\cos\theta = 3/(5\sqrt{5}) = 3\sqrt{5}/25 \approx 0.2683$, so $\theta \approx 75°$ [1].
Q3 (3 marks): (a) $\mathbf{u} \cdot \mathbf{v} = 3m + 2m - 4 = 5m - 4 = 0 \Rightarrow m = 4/5$ [1]. (b) $|\mathbf{u}| = \sqrt{(4/5)^2 + 4 + 1} = \sqrt{141}/5$ [1]; $|\mathbf{v}| = \sqrt{9 + 16/25 + 16} = \sqrt{641}/5$ [1]. Verification: $\mathbf{u} \cdot \mathbf{v} = 12/5 + 8/5 - 4 = 20/5 - 4 = 0$ ✓.
Five timed questions on dot products, angles, and perpendicularity in 3D. Beat the boss to bank a tier — gold (90% + speed), silver (75%), or bronze (50%). Replays welcome.
⚔ Enter the arenaClimb platforms by answering quick dot-product questions. Lighter alternative to the boss.
Mark lesson as complete
Tick when you've finished the practice and review.