Angle Between Vectors Notes
These Angle Between Vectors Notes explain how to find the angle separating two vectors in three dimensions, with the working shown line by line. The dot product divided by the two lengths gives the cosine of that angle, because the dot product already measures how much the vectors agree. Taking the inverse cosine turns that ratio back into an angle. Following the same pattern every time keeps the lengths and the dot product in their right places.
Enter the components of \(\vec{A}\) and \(\vec{B}\).
Step-by-step method
- Set up the problem.
- Write the formula.
- Substitute the vectors into the formula.
- Work out the dot product and the two magnitudes.
- Work out the angle.
Formula: Angle Between Vectors Formula
This formula gives the angle between two vectors. Divide the dot product by both magnitudes, then take the inverse cosine.
Useful Tips to Remember
The angle between two vectors is always between \(0^{\circ}\) and \(180^{\circ}\). A dot product of 0 means the angle is exactly \(90^{\circ}\). Work out the dot product and both magnitudes separately before dividing, and keep them exact until the last step. Make sure your calculator is in degree mode when taking the inverse cosine.
Required knowledge
- How to find the dot product, covered in the Dot Product Calculator.
- How to find the length of a vector, covered in the Magnitude of a Vector Calculator.
- How to simplify square roots, covered in the Simplifying Radicals Calculator.
Where Is the Angle Between Vectors Used?
The angle between two vectors tells you how far apart two directions are, which matters in physics, engineering and computing. Engineers use it to find the angle between forces or between members of a frame. In robotics, it sets how far a joint must turn to point an arm in a new direction. Graphics software uses it for viewing angles and reflections, and in text search the cosine of this angle is the standard way to measure how similar two documents are.
- Angles between forces and structural members
- Turning angles for robot joints
- Viewing and reflection angles in graphics
- Cosine similarity in text search
- Checking whether two directions are perpendicular
Angle Between Vectors Practice Problems
Example 1 finds the angle between \(\langle 1, 0, 0 \rangle\) and \(\langle 0, 1, 0 \rangle\), which is a right angle, and Example 2 uses \(\langle 1, 2, 3 \rangle\) and \(\langle 4, 5, 6 \rangle\), which gives a rounded answer. Examples 3 and 4 give you two more problems of the same kind to try. Work through the dot product and magnitudes yourself, then 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 vectors into the formula.
- Work out the dot product and the two magnitudes.
- Work out the angle.
Formula
Formula: Angle Between Vectors Formula
This formula gives the angle between two vectors. Divide the dot product by both magnitudes, then take the inverse cosine.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the angle between \(\vec{A} = \left\langle 1,\; 0,\; 0 \right\rangle\) and \(\vec{B} = \left\langle 0,\; 1,\; 0 \right\rangle\).
Step 2
Step 2 - Write the formula.
In this problem: The cosine of the angle between two vectors is their dot product divided by the product of their magnitudes, so the inverse cosine of that fraction gives the angle.
Step 3
Step 3 - Substitute the vectors into the formula.
In this problem: Replacing \(\vec{A}\) and \(\vec{B}\) in \(\theta = \cos^{-1}\left(\frac{\vec{A} \cdot \vec{B}}{|\vec{A}|\,|\vec{B}|}\right)\) gives \(\theta = \cos^{-1}\left(\frac{\left\langle 1,\; 0,\; 0 \right\rangle \cdot \left\langle 0,\; 1,\; 0 \right\rangle}{|\left\langle 1,\; 0,\; 0 \right\rangle|\,|\left\langle 0,\; 1,\; 0 \right\rangle|}\right)\).
Step 4
Step 4 - Work out the dot product and the two magnitudes.
In this problem: The fraction needs the dot product and the magnitudes of both vectors, so each one is worked out in turn.
Step 4a
Step 4a - Work out the dot product.
In this problem: The dot product is worked out from the components, covered in the Dot Product Calculator. Multiplying the matching components gives \(1 \times 0 = 0\), \(0 \times 1 = 0\) and \(0 \times 0 = 0\). Adding the three products gives \(0 + 0 + 0 = 0\).
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,\; 0,\; 0 \right\rangle\) and \(\vec{B} = \left\langle 0,\; 1,\; 0 \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 0 + 0 \times 1 + 0 \times 0\).
Step 4
Step 4 - Work out the dot product.
In this problem: Multiplying the matching components gives \(1 \times 0 = 0\), \(0 \times 1 = 0\) and \(0 \times 0 = 0\). Adding the three products gives \(0 + 0 + 0 = 0\).
Final Answer
Step 4b
Step 4b - Work out the magnitude of A.
In this problem: The magnitude of \(\vec{A}\) is worked out from its components, covered in the Magnitude of a Vector Calculator. Squaring the components gives \(1^{2} = 1\), \(0^{2} = 0\) and \(0^{2} = 0\). Adding the squares gives \(1 + 0 + 0 = 1\). Taking the square root gives \(\sqrt{1} = 1\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Substitute the components into the formula.
- Work out the magnitude.
Formula
Formula: Magnitude Formula
This formula gives the length of a vector from its components. Square each component, add the squares, then take the square root.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the magnitude of \(\vec{A} = \left\langle 1,\; 0,\; 0 \right\rangle\).
Step 2
Step 2 - Write the formula.
In this problem: The magnitude is the length of the vector. It comes from Pythagoras' theorem in three dimensions: square each component, add the squares and take the square root.
Step 3
Step 3 - Substitute the components into the formula.
In this problem: Replacing each component in \(|\vec{A}| = \sqrt{a_{1}^{2} + a_{2}^{2} + a_{3}^{2}}\) gives \(|\vec{A}| = \sqrt{1^{2} + 0^{2} + 0^{2}}\).
Step 4
Step 4 - Work out the magnitude.
In this problem: Squaring the components gives \(1^{2} = 1\), \(0^{2} = 0\) and \(0^{2} = 0\). Adding the squares gives \(1 + 0 + 0 = 1\). Taking the square root gives \(\sqrt{1} = 1\).
Final Answer
Step 4c
Step 4c - Work out the magnitude of B.
In this problem: The magnitude of \(\vec{B}\) is worked out in the same way. Squaring the components gives \(0^{2} = 0\), \(1^{2} = 1\) and \(0^{2} = 0\). Adding the squares gives \(0 + 1 + 0 = 1\). Taking the square root gives \(\sqrt{1} = 1\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Substitute the components into the formula.
- Work out the magnitude.
Formula
Formula: Magnitude Formula
This formula gives the length of a vector from its components. Square each component, add the squares, then take the square root.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the magnitude of \(\vec{B} = \left\langle 0,\; 1,\; 0 \right\rangle\).
Step 2
Step 2 - Write the formula.
In this problem: The magnitude is the length of the vector. It comes from Pythagoras' theorem in three dimensions: square each component, add the squares and take the square root.
Step 3
Step 3 - Substitute the components into the formula.
In this problem: Replacing each component in \(|\vec{A}| = \sqrt{a_{1}^{2} + a_{2}^{2} + a_{3}^{2}}\) gives \(|\vec{B}| = \sqrt{0^{2} + 1^{2} + 0^{2}}\).
Step 4
Step 4 - Work out the magnitude.
In this problem: Squaring the components gives \(0^{2} = 0\), \(1^{2} = 1\) and \(0^{2} = 0\). Adding the squares gives \(0 + 1 + 0 = 1\). Taking the square root gives \(\sqrt{1} = 1\).
Final Answer
Step 5
Step 5 - Work out the angle.
In this problem: Putting the three values back in gives \(\theta = \cos^{-1}\left(\frac{0}{1 \times 1}\right)\). The fraction works out to \(\frac{0}{1 \times 1} = 0\), and taking the inverse cosine gives \(\theta = 90^{\circ}\).
Final Answer
See Example 2 Hide Example 2
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Substitute the vectors into the formula.
- Work out the dot product and the two magnitudes.
- Work out the angle.
Formula
Formula: Angle Between Vectors Formula
This formula gives the angle between two vectors. Divide the dot product by both magnitudes, then take the inverse cosine.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the angle between \(\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 cosine of the angle between two vectors is their dot product divided by the product of their magnitudes, so the inverse cosine of that fraction gives the angle.
Step 3
Step 3 - Substitute the vectors into the formula.
In this problem: Replacing \(\vec{A}\) and \(\vec{B}\) in \(\theta = \cos^{-1}\left(\frac{\vec{A} \cdot \vec{B}}{|\vec{A}|\,|\vec{B}|}\right)\) gives \(\theta = \cos^{-1}\left(\frac{\left\langle 1,\; 2,\; 3 \right\rangle \cdot \left\langle 4,\; 5,\; 6 \right\rangle}{|\left\langle 1,\; 2,\; 3 \right\rangle|\,|\left\langle 4,\; 5,\; 6 \right\rangle|}\right)\).
Step 4
Step 4 - Work out the dot product and the two magnitudes.
In this problem: The fraction needs the dot product and the magnitudes of both vectors, so each one is worked out in turn.
Step 4a
Step 4a - Work out the dot product.
In this problem: The dot product is worked out from the components, covered in the Dot Product Calculator. 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\).
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
Step 4b
Step 4b - Work out the magnitude of A.
In this problem: The magnitude of \(\vec{A}\) is worked out from its components, covered in the Magnitude of a Vector Calculator. Squaring the components gives \(1^{2} = 1\), \(2^{2} = 4\) and \(3^{2} = 9\). Adding the squares gives \(1 + 4 + 9 = 14\). Taking the square root gives \(\sqrt{14} \approx 3.74\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Substitute the components into the formula.
- Work out the magnitude.
Formula
Formula: Magnitude Formula
This formula gives the length of a vector from its components. Square each component, add the squares, then take the square root.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the magnitude of \(\vec{A} = \left\langle 1,\; 2,\; 3 \right\rangle\).
Step 2
Step 2 - Write the formula.
In this problem: The magnitude is the length of the vector. It comes from Pythagoras' theorem in three dimensions: square each component, add the squares and take the square root.
Step 3
Step 3 - Substitute the components into the formula.
In this problem: Replacing each component in \(|\vec{A}| = \sqrt{a_{1}^{2} + a_{2}^{2} + a_{3}^{2}}\) gives \(|\vec{A}| = \sqrt{1^{2} + 2^{2} + 3^{2}}\).
Step 4
Step 4 - Work out the magnitude.
In this problem: Squaring the components gives \(1^{2} = 1\), \(2^{2} = 4\) and \(3^{2} = 9\). Adding the squares gives \(1 + 4 + 9 = 14\). Taking the square root gives \(\sqrt{14} \approx 3.74\).
Final Answer
Step 4c
Step 4c - Work out the magnitude of B.
In this problem: The magnitude of \(\vec{B}\) is worked out in the same way. Squaring the components gives \(4^{2} = 16\), \(5^{2} = 25\) and \(6^{2} = 36\). Adding the squares gives \(16 + 25 + 36 = 77\). Taking the square root gives \(\sqrt{77} \approx 8.77\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Substitute the components into the formula.
- Work out the magnitude.
Formula
Formula: Magnitude Formula
This formula gives the length of a vector from its components. Square each component, add the squares, then take the square root.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the magnitude of \(\vec{B} = \left\langle 4,\; 5,\; 6 \right\rangle\).
Step 2
Step 2 - Write the formula.
In this problem: The magnitude is the length of the vector. It comes from Pythagoras' theorem in three dimensions: square each component, add the squares and take the square root.
Step 3
Step 3 - Substitute the components into the formula.
In this problem: Replacing each component in \(|\vec{A}| = \sqrt{a_{1}^{2} + a_{2}^{2} + a_{3}^{2}}\) gives \(|\vec{B}| = \sqrt{4^{2} + 5^{2} + 6^{2}}\).
Step 4
Step 4 - Work out the magnitude.
In this problem: Squaring the components gives \(4^{2} = 16\), \(5^{2} = 25\) and \(6^{2} = 36\). Adding the squares gives \(16 + 25 + 36 = 77\). Taking the square root gives \(\sqrt{77} \approx 8.77\).
Final Answer
Step 5
Step 5 - Work out the angle.
In this problem: Putting the three values back in gives \(\theta = \cos^{-1}\left(\frac{32}{\sqrt{14} \times \sqrt{77}}\right)\). The fraction works out to \(\frac{32}{\sqrt{14} \times \sqrt{77}} \approx 0.9746\), and taking the inverse cosine gives \(\theta \approx 12.93^{\circ}\).
Final Answer
See Example 3 Hide Example 3
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Substitute the vectors into the formula.
- Work out the dot product and the two magnitudes.
- Work out the angle.
Formula
Formula: Angle Between Vectors Formula
This formula gives the angle between two vectors. Divide the dot product by both magnitudes, then take the inverse cosine.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the angle between \(\vec{A} = \left\langle 2,\; 1,\; 2 \right\rangle\) and \(\vec{B} = \left\langle 1,\; 0,\; 1 \right\rangle\).
Step 2
Step 2 - Write the formula.
In this problem: The cosine of the angle between two vectors is their dot product divided by the product of their magnitudes, so the inverse cosine of that fraction gives the angle.
Step 3
Step 3 - Substitute the vectors into the formula.
In this problem: Replacing \(\vec{A}\) and \(\vec{B}\) in \(\theta = \cos^{-1}\left(\frac{\vec{A} \cdot \vec{B}}{|\vec{A}|\,|\vec{B}|}\right)\) gives \(\theta = \cos^{-1}\left(\frac{\left\langle 2,\; 1,\; 2 \right\rangle \cdot \left\langle 1,\; 0,\; 1 \right\rangle}{|\left\langle 2,\; 1,\; 2 \right\rangle|\,|\left\langle 1,\; 0,\; 1 \right\rangle|}\right)\).
Step 4
Step 4 - Work out the dot product and the two magnitudes.
In this problem: The fraction needs the dot product and the magnitudes of both vectors, so each one is worked out in turn.
Step 4a
Step 4a - Work out the dot product.
In this problem: The dot product is worked out from the components, covered in the Dot Product Calculator. Multiplying the matching components gives \(2 \times 1 = 2\), \(1 \times 0 = 0\) and \(2 \times 1 = 2\). Adding the three products gives \(2 + 0 + 2 = 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 2,\; 1,\; 2 \right\rangle\) and \(\vec{B} = \left\langle 1,\; 0,\; 1 \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 1 + 1 \times 0 + 2 \times 1\).
Step 4
Step 4 - Work out the dot product.
In this problem: Multiplying the matching components gives \(2 \times 1 = 2\), \(1 \times 0 = 0\) and \(2 \times 1 = 2\). Adding the three products gives \(2 + 0 + 2 = 4\).
Final Answer
Step 4b
Step 4b - Work out the magnitude of A.
In this problem: The magnitude of \(\vec{A}\) is worked out from its components, covered in the Magnitude of a Vector Calculator. Squaring the components gives \(2^{2} = 4\), \(1^{2} = 1\) and \(2^{2} = 4\). Adding the squares gives \(4 + 1 + 4 = 9\). Taking the square root gives \(\sqrt{9} = 3\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Substitute the components into the formula.
- Work out the magnitude.
Formula
Formula: Magnitude Formula
This formula gives the length of a vector from its components. Square each component, add the squares, then take the square root.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the magnitude of \(\vec{A} = \left\langle 2,\; 1,\; 2 \right\rangle\).
Step 2
Step 2 - Write the formula.
In this problem: The magnitude is the length of the vector. It comes from Pythagoras' theorem in three dimensions: square each component, add the squares and take the square root.
Step 3
Step 3 - Substitute the components into the formula.
In this problem: Replacing each component in \(|\vec{A}| = \sqrt{a_{1}^{2} + a_{2}^{2} + a_{3}^{2}}\) gives \(|\vec{A}| = \sqrt{2^{2} + 1^{2} + 2^{2}}\).
Step 4
Step 4 - Work out the magnitude.
In this problem: Squaring the components gives \(2^{2} = 4\), \(1^{2} = 1\) and \(2^{2} = 4\). Adding the squares gives \(4 + 1 + 4 = 9\). Taking the square root gives \(\sqrt{9} = 3\).
Final Answer
Step 4c
Step 4c - Work out the magnitude of B.
In this problem: The magnitude of \(\vec{B}\) is worked out in the same way. Squaring the components gives \(1^{2} = 1\), \(0^{2} = 0\) and \(1^{2} = 1\). Adding the squares gives \(1 + 0 + 1 = 2\). Taking the square root gives \(\sqrt{2} \approx 1.41\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Substitute the components into the formula.
- Work out the magnitude.
Formula
Formula: Magnitude Formula
This formula gives the length of a vector from its components. Square each component, add the squares, then take the square root.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the magnitude of \(\vec{B} = \left\langle 1,\; 0,\; 1 \right\rangle\).
Step 2
Step 2 - Write the formula.
In this problem: The magnitude is the length of the vector. It comes from Pythagoras' theorem in three dimensions: square each component, add the squares and take the square root.
Step 3
Step 3 - Substitute the components into the formula.
In this problem: Replacing each component in \(|\vec{A}| = \sqrt{a_{1}^{2} + a_{2}^{2} + a_{3}^{2}}\) gives \(|\vec{B}| = \sqrt{1^{2} + 0^{2} + 1^{2}}\).
Step 4
Step 4 - Work out the magnitude.
In this problem: Squaring the components gives \(1^{2} = 1\), \(0^{2} = 0\) and \(1^{2} = 1\). Adding the squares gives \(1 + 0 + 1 = 2\). Taking the square root gives \(\sqrt{2} \approx 1.41\).
Final Answer
Step 5
Step 5 - Work out the angle.
In this problem: Putting the three values back in gives \(\theta = \cos^{-1}\left(\frac{4}{3 \times \sqrt{2}}\right)\). The fraction works out to \(\frac{4}{3 \times \sqrt{2}} \approx 0.9428\), and taking the inverse cosine gives \(\theta \approx 19.47^{\circ}\).
Final Answer
See Example 4 Hide Example 4
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Substitute the vectors into the formula.
- Work out the dot product and the two magnitudes.
- Work out the angle.
Formula
Formula: Angle Between Vectors Formula
This formula gives the angle between two vectors. Divide the dot product by both magnitudes, then take the inverse cosine.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the angle between \(\vec{A} = \left\langle 3,\; -1,\; 2 \right\rangle\) and \(\vec{B} = \left\langle 1,\; 4,\; 0 \right\rangle\).
Step 2
Step 2 - Write the formula.
In this problem: The cosine of the angle between two vectors is their dot product divided by the product of their magnitudes, so the inverse cosine of that fraction gives the angle.
Step 3
Step 3 - Substitute the vectors into the formula.
In this problem: Replacing \(\vec{A}\) and \(\vec{B}\) in \(\theta = \cos^{-1}\left(\frac{\vec{A} \cdot \vec{B}}{|\vec{A}|\,|\vec{B}|}\right)\) gives \(\theta = \cos^{-1}\left(\frac{\left\langle 3,\; -1,\; 2 \right\rangle \cdot \left\langle 1,\; 4,\; 0 \right\rangle}{|\left\langle 3,\; -1,\; 2 \right\rangle|\,|\left\langle 1,\; 4,\; 0 \right\rangle|}\right)\).
Step 4
Step 4 - Work out the dot product and the two magnitudes.
In this problem: The fraction needs the dot product and the magnitudes of both vectors, so each one is worked out in turn.
Step 4a
Step 4a - Work out the dot product.
In this problem: The dot product is worked out from the components, covered in the Dot Product Calculator. Multiplying the matching components gives \(3 \times 1 = 3\), \(\left(-1\right) \times 4 = -4\) and \(2 \times 0 = 0\). Adding the three products gives \(3 - 4 + 0 = -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 3,\; -1,\; 2 \right\rangle\) and \(\vec{B} = \left\langle 1,\; 4,\; 0 \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 + \left(-1\right) \times 4 + 2 \times 0\).
Step 4
Step 4 - Work out the dot product.
In this problem: Multiplying the matching components gives \(3 \times 1 = 3\), \(\left(-1\right) \times 4 = -4\) and \(2 \times 0 = 0\). Adding the three products gives \(3 - 4 + 0 = -1\).
Final Answer
Step 4b
Step 4b - Work out the magnitude of A.
In this problem: The magnitude of \(\vec{A}\) is worked out from its components, covered in the Magnitude of a Vector Calculator. Squaring the components gives \(3^{2} = 9\), \(\left(-1\right)^{2} = 1\) and \(2^{2} = 4\). Adding the squares gives \(9 + 1 + 4 = 14\). Taking the square root gives \(\sqrt{14} \approx 3.74\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Substitute the components into the formula.
- Work out the magnitude.
Formula
Formula: Magnitude Formula
This formula gives the length of a vector from its components. Square each component, add the squares, then take the square root.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the magnitude of \(\vec{A} = \left\langle 3,\; -1,\; 2 \right\rangle\).
Step 2
Step 2 - Write the formula.
In this problem: The magnitude is the length of the vector. It comes from Pythagoras' theorem in three dimensions: square each component, add the squares and take the square root.
Step 3
Step 3 - Substitute the components into the formula.
In this problem: Replacing each component in \(|\vec{A}| = \sqrt{a_{1}^{2} + a_{2}^{2} + a_{3}^{2}}\) gives \(|\vec{A}| = \sqrt{3^{2} + \left(-1\right)^{2} + 2^{2}}\).
Step 4
Step 4 - Work out the magnitude.
In this problem: Squaring the components gives \(3^{2} = 9\), \(\left(-1\right)^{2} = 1\) and \(2^{2} = 4\). Adding the squares gives \(9 + 1 + 4 = 14\). Taking the square root gives \(\sqrt{14} \approx 3.74\).
Final Answer
Step 4c
Step 4c - Work out the magnitude of B.
In this problem: The magnitude of \(\vec{B}\) is worked out in the same way. Squaring the components gives \(1^{2} = 1\), \(4^{2} = 16\) and \(0^{2} = 0\). Adding the squares gives \(1 + 16 + 0 = 17\). Taking the square root gives \(\sqrt{17} \approx 4.12\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Substitute the components into the formula.
- Work out the magnitude.
Formula
Formula: Magnitude Formula
This formula gives the length of a vector from its components. Square each component, add the squares, then take the square root.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the magnitude of \(\vec{B} = \left\langle 1,\; 4,\; 0 \right\rangle\).
Step 2
Step 2 - Write the formula.
In this problem: The magnitude is the length of the vector. It comes from Pythagoras' theorem in three dimensions: square each component, add the squares and take the square root.
Step 3
Step 3 - Substitute the components into the formula.
In this problem: Replacing each component in \(|\vec{A}| = \sqrt{a_{1}^{2} + a_{2}^{2} + a_{3}^{2}}\) gives \(|\vec{B}| = \sqrt{1^{2} + 4^{2} + 0^{2}}\).
Step 4
Step 4 - Work out the magnitude.
In this problem: Squaring the components gives \(1^{2} = 1\), \(4^{2} = 16\) and \(0^{2} = 0\). Adding the squares gives \(1 + 16 + 0 = 17\). Taking the square root gives \(\sqrt{17} \approx 4.12\).
Final Answer
Step 5
Step 5 - Work out the angle.
In this problem: Putting the three values back in gives \(\theta = \cos^{-1}\left(\frac{-1}{\sqrt{14} \times \sqrt{17}}\right)\). The fraction works out to \(\frac{-1}{\sqrt{14} \times \sqrt{17}} \approx -0.0648\), and taking the inverse cosine gives \(\theta \approx 93.72^{\circ}\).
Final Answer
Calculator and Practice Mode
Want to check your own working? The Angle Between Vectors 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, Angle Between Vectors 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.