Dot Product Notes
These Dot Product Notes explain how to multiply two vectors into a single number, with the working shown line by line. Matching components are multiplied and the results added, which measures how much of one vector lies along the other. A result of zero means the two are at right angles, and the sign tells you whether they broadly agree or oppose. Following the same pattern every time keeps each component paired with its partner.
Enter the components of \(\vec{A}\) and \(\vec{B}\).
Step-by-step method
- Set up the problem.
- Write the formula.
- Substitute the components into the formula.
- Work out the dot product.
Formula: Dot Product Formula
This formula multiplies two vectors into a single number. Multiply the matching components, then add the three products.
Useful Tips to Remember
The dot product is a number, not a vector. A result of 0 means the vectors are perpendicular, a positive result means they point broadly the same way, and a negative result means they point broadly apart. The order does not matter, so \(\vec{A} \cdot \vec{B} = \vec{B} \cdot \vec{A}\). The dot product of a vector with itself is its magnitude squared.
Required knowledge
- How to multiply numbers, including negatives, covered in the Multiplication of Small Numbers Calculator.
- How to add positive and negative results, covered in the Addition of Small Numbers Calculator.
- How the length of a vector is measured, covered in the Magnitude of a Vector Calculator.
Where Is the Dot Product Used?
The dot product measures how much two vectors point the same way, so it shows up wherever direction and alignment matter. Physics uses it to find the work done by a force along a path. In 3D graphics, the dot product of a light direction and a surface normal decides how bright each pixel is. Search engines and recommendation systems use dot products to score how similar two items are, and neural networks are built from millions of them.
- Work done by a force in physics
- Lighting and shading in 3D graphics
- Checking whether two vectors are perpendicular
- Similarity scores in search and recommendations
- The basic operation inside neural networks
Dot Product Practice Problems
Example 1 finds \(\langle 1, 2, 3 \rangle \cdot \langle 4, 5, 6 \rangle\), and Example 2 uses a fraction component with two zeros. Examples 3 and 4 give you two more problems of the same kind to try. Multiply the matching components, add the products and compare.
The worked examples below go through the same pattern from start to finish, so you can compare every step with your own working. Try each problem on paper first, then open the example and check your working one step at a time, so you can see exactly which step went wrong if your answer does not match. Use them to check your answers and to understand why each step works.
See Example 1 Hide Example 1
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Substitute the components into the formula.
- Work out the dot product.
Formula
Formula: Dot Product Formula
This formula multiplies two vectors into a single number. Multiply the matching components, then add the three products.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the dot product of \(\vec{A} = \left\langle 1,\; 2,\; 3 \right\rangle\) and \(\vec{B} = \left\langle 4,\; 5,\; 6 \right\rangle\).
Step 2
Step 2 - Write the formula.
In this problem: The dot product multiplies the matching components of the two vectors and adds the three products, giving a single number.
Step 3
Step 3 - Substitute the components into the formula.
In this problem: Replacing each component in \(\vec{A} \cdot \vec{B} = a_{1}b_{1} + a_{2}b_{2} + a_{3}b_{3}\) gives \(\vec{A} \cdot \vec{B} = 1 \times 4 + 2 \times 5 + 3 \times 6\).
Step 4
Step 4 - Work out the dot product.
In this problem: Multiplying the matching components gives \(1 \times 4 = 4\), \(2 \times 5 = 10\) and \(3 \times 6 = 18\). Adding the three products gives \(4 + 10 + 18 = 32\).
Final Answer
See Example 2 Hide Example 2
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Substitute the components into the formula.
- Work out the dot product.
Formula
Formula: Dot Product Formula
This formula multiplies two vectors into a single number. Multiply the matching components, then add the three products.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the dot product of \(\vec{A} = \left\langle \frac{1}{2},\; 0,\; 0 \right\rangle\) and \(\vec{B} = \left\langle 2,\; 3,\; 4 \right\rangle\).
Step 2
Step 2 - Write the formula.
In this problem: The dot product multiplies the matching components of the two vectors and adds the three products, giving a single number.
Step 3
Step 3 - Substitute the components into the formula.
In this problem: Replacing each component in \(\vec{A} \cdot \vec{B} = a_{1}b_{1} + a_{2}b_{2} + a_{3}b_{3}\) gives \(\vec{A} \cdot \vec{B} = \frac{1}{2} \times 2 + 0 \times 3 + 0 \times 4\).
Step 4
Step 4 - Work out the dot product.
In this problem: Multiplying the matching components gives \(\frac{1}{2} \times 2 = 1\), \(0 \times 3 = 0\) and \(0 \times 4 = 0\). Adding the three products gives \(1 + 0 + 0 = 1\).
Final Answer
See Example 3 Hide Example 3
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Substitute the components into the formula.
- Work out the dot product.
Formula
Formula: Dot Product Formula
This formula multiplies two vectors into a single number. Multiply the matching components, then add the three products.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the dot product of \(\vec{A} = \left\langle 2,\; -3,\; 1 \right\rangle\) and \(\vec{B} = \left\langle 4,\; 1,\; 5 \right\rangle\).
Step 2
Step 2 - Write the formula.
In this problem: The dot product multiplies the matching components of the two vectors and adds the three products, giving a single number.
Step 3
Step 3 - Substitute the components into the formula.
In this problem: Replacing each component in \(\vec{A} \cdot \vec{B} = a_{1}b_{1} + a_{2}b_{2} + a_{3}b_{3}\) gives \(\vec{A} \cdot \vec{B} = 2 \times 4 + \left(-3\right) \times 1 + 1 \times 5\).
Step 4
Step 4 - Work out the dot product.
In this problem: Multiplying the matching components gives \(2 \times 4 = 8\), \(\left(-3\right) \times 1 = -3\) and \(1 \times 5 = 5\). Adding the three products gives \(8 - 3 + 5 = 10\).
Final Answer
See Example 4 Hide Example 4
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Substitute the components into the formula.
- Work out the dot product.
Formula
Formula: Dot Product Formula
This formula multiplies two vectors into a single number. Multiply the matching components, then add the three products.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the dot product of \(\vec{A} = \left\langle 3,\; 0,\; -2 \right\rangle\) and \(\vec{B} = \left\langle 1,\; 7,\; 4 \right\rangle\).
Step 2
Step 2 - Write the formula.
In this problem: The dot product multiplies the matching components of the two vectors and adds the three products, giving a single number.
Step 3
Step 3 - Substitute the components into the formula.
In this problem: Replacing each component in \(\vec{A} \cdot \vec{B} = a_{1}b_{1} + a_{2}b_{2} + a_{3}b_{3}\) gives \(\vec{A} \cdot \vec{B} = 3 \times 1 + 0 \times 7 + \left(-2\right) \times 4\).
Step 4
Step 4 - Work out the dot product.
In this problem: Multiplying the matching components gives \(3 \times 1 = 3\), \(0 \times 7 = 0\) and \(\left(-2\right) \times 4 = -8\). Adding the three products gives \(3 + 0 - 8 = -5\).
Final Answer
Calculator and Practice Mode
Want to check your own working? The Dot Product Calculator solves any problem you type in and shows every step, so you can compare it line by line with your answer and find exactly where a mistake crept in. When you are ready to test yourself, Dot Product Practice gives you a new problem at Easy, Medium or Hard level, checks your answer and shows the full working whenever you get one wrong. Practice Mode for this calculator is available on the Pro plan.