Find the dot product of two vectors
For a = (a1, a2, a3) and b = (b1, b2, b3), the dot product is a·b = a1b1 + a2b2 + a3b3. It is a number, and it is 0 for perpendicular vectors.
This is original written practice with invented vectors. Each answer is checked with the identity |a + b|² = |a|² + |b|² + 2 a·b.
Multiply matching parts, add, then check with the sum vector
- Multiply the matching components and add the three products.
- Find a + b and work out |a + b|², the sum of the squares of its components.
- Work out |a|² and |b|² the same way.
- Check: |a|² + |b|² + 2 (a·b) must equal |a + b|².
a = (2, 3, 1) and b = (1, −2, 4)
a·b = 2 − 6 + 4 = 0, so the vectors are perpendicular.
Check: a + b = (3, 1, 5), so |a + b|² = 9 + 1 + 25 = 35. Also |a|² = 14, |b|² = 21, and 14 + 21 + 0 = 35.
a = (1, 4, 2) and b = (3, −1, 2)
a·b = 3 − 4 + 4 = 3.
Check: a + b = (4, 3, 4), so |a + b|² = 16 + 9 + 16 = 41. Also |a|² = 21, |b|² = 14, and 21 + 14 + 6 = 41.
a = (2, −1, 3) and b = (5, 2, −1)
a·b = 10 − 2 − 3 = 5.
Check: a + b = (7, 1, 2), so |a + b|² = 49 + 1 + 4 = 54. Also |a|² = 14, |b|² = 30, and 14 + 30 + 10 = 54.
Counterexample: dropping the minus signs
A student works out a·b for a = (2, −1, 3) and b = (5, 2, −1) as 10 + 2 + 3 = 15.
The check fails. The identity would need 14 + 30 + 30 = 74, but |a + b|² is 54. The products are 10, −2 and −3, so the dot product is 5.
Try one yourself
Find a·b for a = (1, 2, 2) and b = (3, −1, 2), and check it.
Show the worked self-check
a·b = 3 − 2 + 4 = 5. Check: a + b = (4, 1, 4), so |a + b|² = 16 + 1 + 16 = 33. Also |a|² = 9, |b|² = 14, and 9 + 14 + 10 = 33.
Scope and limits
- The page covers the dot product of two vectors in three dimensions with the components given.
- It does not cover the cross product, projections or the angle between vectors.
- The vectors are invented, and the questions are practice, not an exam key.
- Every answer is checked with the sum vector.
Common questions
Is the dot product of two vectors a vector or a number?
It is a number, which is why it is also called the scalar product. The three component products are added into one value.
What does a dot product of zero tell you about two vectors?
If both vectors are non-zero, a zero dot product means they are perpendicular. The first worked example shows this with a·b = 0.
Does swapping a and b change the dot product?
No. Each product like a1b1 is the same when the vectors swap places, so a·b equals b·a.
Why does the check use the square of the sum vector?
Squaring a + b component by component and expanding gives |a|² + |b|² + 2 a·b. A wrong dot product breaks that equality, so it exposes the slip.
Sources and scope
Sources checked . They support the component formula for the dot product. The numbers, worked examples and self-check above are original EZT practice.
- OpenStax Calculus Volume 3: The Dot Product, for the dot product of vectors in three dimensions.
- OpenStax Precalculus 2e: Vectors, for the dot product of two vectors.
Read the Class 12 vector algebra chapterBrowse tuition and practice pages