The Dot Product
Understand how the dot product connects angles, projections, and work in multivariable calculus.
What Is the Dot Product?
The dot product (also called the scalar product) takes two vectors and returns a single number: not a vector, but a scalar. It measures how much two vectors "agree" in direction.
Multiply corresponding components and add the results. The output is a real number: positive, negative, or zero.
The Geometric Formula
The dot product has an equivalent geometric definition that reveals its connection to the angle between vectors:
What the Sign Tells You
Since \(\mathbf{a} \cdot \mathbf{b} = \|\mathbf{a}\|\|\mathbf{b}\|\cos\theta\), the sign of the dot product depends entirely on \(\cos\theta\):
Finding the Angle Between Vectors
Rearranging the geometric formula gives us a direct way to find the angle:
This works in any dimension: \(\mathbb{R}^2\), \(\mathbb{R}^3\), or higher. The result always satisfies \(0 \leq \theta \leq \pi\).
Scalar Projection
The scalar projection of \(\mathbf{b}\) onto \(\mathbf{a}\) answers: "How far does \(\mathbf{b}\) extend in the direction of \(\mathbf{a}\)?"
Vector Projection
The vector projection of \(\mathbf{b}\) onto \(\mathbf{a}\) is the actual vector lying along \(\mathbf{a}\) that represents the shadow of \(\mathbf{b}\):
Work as a Dot Product
In physics, work done by a constant force \(\mathbf{F}\) over a displacement \(\mathbf{d}\) is exactly the dot product:
Only the component of force along the displacement does work. The dot product captures exactly that.
Dot Product vs. Cross Product
| Dot Product | Cross Product | |
|---|---|---|
| Notation | \(\mathbf{a} \cdot \mathbf{b}\) | \(\mathbf{a} \times \mathbf{b}\) |
| Result | Scalar (number) | Vector |
| Formula | \(\|\mathbf{a}\|\|\mathbf{b}\|\cos\theta\) | \(\|\mathbf{a}\|\|\mathbf{b}\|\sin\theta\;\hat{n}\) |
| Measures | Alignment / parallelism | Perpendicularity / area |
| Zero when | Perpendicular (\(\theta = 90^\circ\)) | Parallel (\(\theta = 0^\circ\) or \(180^\circ\)) |
| Dimensions | \(\mathbb{R}^n\) (any) | \(\mathbb{R}^3\) only |
How to Compute Step by Step
Example 1: Basic Computation
Find \(\mathbf{a} \cdot \mathbf{b}\) where \(\mathbf{a} = \langle 3, -1, 4 \rangle\) and \(\mathbf{b} = \langle 2, 5, -2 \rangle\).
Example 2: Finding the Angle
Find the angle between \(\mathbf{u} = \langle 1, 2, 2 \rangle\) and \(\mathbf{v} = \langle 3, -1, 1 \rangle\).
Example 3: Projection and Work
A force \(\mathbf{F} = \langle 4, 3 \rangle\) moves an object along \(\mathbf{d} = \langle 6, 0 \rangle\). Find the work done and the projection of \(\mathbf{F}\) onto \(\mathbf{d}\).
Properties of the Dot Product
Common Mistakes to Avoid
Question 1 of 5
What is \(\langle 2, -3, 1 \rangle \cdot \langle 4, 1, -5 \rangle\)?
Question 2 of 5
If \(\mathbf{a}\cdot\mathbf{b} < 0\), what can you conclude about the angle \(\theta\) between them?
Question 3 of 5
What is \(\text{proj}_{\mathbf{a}}\,\mathbf{b}\) when \(\mathbf{a} = \langle 1, 0 \rangle\) and \(\mathbf{b} = \langle 3, 4 \rangle\)?
Question 4 of 5
A force \(\mathbf{F} = \langle 5, 12 \rangle\) acts over a displacement \(\mathbf{d} = \langle 4, 0 \rangle\). How much work is done?
Question 5 of 5
Find the angle between \(\mathbf{u} = \langle 1, 1 \rangle\) and \(\mathbf{v} = \langle -1, 1 \rangle\).