The Dot Product
Angles & Projections
Discover how the dot product connects algebra and geometry: compute angles between vectors, test for orthogonality, and find scalar projections.
What Is the Dot Product?
The dot product (also called the scalar product) takes two vectors and returns a single number: not a vector. Given \(\mathbf{a} = \langle a_1, a_2, a_3 \rangle\) and \(\mathbf{b} = \langle b_1, b_2, b_3 \rangle\), the algebraic definition is:
Multiply corresponding components, then add the products. The result is a scalar (a real number), which encodes deep geometric information about the two vectors.
The Geometric Meaning
Why the Dot Product Matters
From computing work in physics (\(W = \mathbf{F}\cdot\mathbf{d}\)) to lighting in computer graphics, the dot product is everywhere.
Finding the Angle Between Vectors
Orthogonal Vectors
The Sign Tells Direction
Scalar Projection
Vector Projection
The scalar projection gives you the length. The vector projection gives you the actual vector along \(\mathbf{a}\). Multiply the scalar projection by the unit vector \(\hat{\mathbf{a}}\).
Dot Product vs Cross Product
| Dot Product \(\mathbf{a}\cdot\mathbf{b}\) | Cross Product \(\mathbf{a}\times\mathbf{b}\) | |
|---|---|---|
| Result Type | Scalar (number) | Vector |
| Formula (geometric) | \(\|\mathbf{a}\|\|\mathbf{b}\|\cos\theta\) | \(\|\mathbf{a}\|\|\mathbf{b}\|\sin\theta\,\hat{\mathbf{n}}\) |
| Measures | How aligned vectors are | How perpendicular vectors are |
| Zero when | Perpendicular (\(\theta=90^\circ\)) | Parallel (\(\theta=0^\circ\) or \(180^\circ\)) |
| Works in | Any dimension | 3D only |
Step-by-Step Method
Example 1: Finding the Angle
Find the angle between \(\mathbf{a}=\langle 1,2,3\rangle\) and \(\mathbf{b}=\langle 4,-5,6\rangle\).
Example 2: Orthogonality Check
Are \(\mathbf{u}=\langle 2,3\rangle\) and \(\mathbf{v}=\langle -3,2\rangle\) orthogonal?
Example 3: Projection
Find \(\text{proj}_{\mathbf{a}}\,\mathbf{b}\) where \(\mathbf{a}=\langle 2,1\rangle\) and \(\mathbf{b}=\langle 3,4\rangle\).
Key Properties
Common Mistakes
Question 1 of 5
Compute \(\langle 2, -1, 3\rangle \cdot \langle 4, 5, -2\rangle\).
Question 2 of 5
If \(\mathbf{a}\cdot\mathbf{b}=0\), what does this tell us about the two vectors?
Question 3 of 5
Find the scalar projection of \(\mathbf{b}=\langle 6,0\rangle\) onto \(\mathbf{a}=\langle 3,4\rangle\).
Question 4 of 5
What is the angle between \(\mathbf{a}=\langle 1,0\rangle\) and \(\mathbf{b}=\langle 1,1\rangle\)?
Question 5 of 5
Find \(\text{proj}_{\mathbf{a}}\,\mathbf{b}\) where \(\mathbf{a}=\langle 1,2\rangle\) and \(\mathbf{b}=\langle 4,3\rangle\).