Dot Product Math Example 2

Follow the full solution, then compare it with the other examples linked below.

Example 2

medium
Find the angle between a=1,0\mathbf{a} = \langle 1, 0 \rangle and b=1,1\mathbf{b} = \langle 1, 1 \rangle.

Solution

  1. 1
    Step 1: ab=1(1)+0(1)=1\mathbf{a} \cdot \mathbf{b} = 1(1) + 0(1) = 1.
  2. 2
    Step 2: a=1\|\mathbf{a}\| = 1, b=2\|\mathbf{b}\| = \sqrt{2}.
  3. 3
    Step 3: cosθ=112=12\cos\theta = \frac{1}{1 \cdot \sqrt{2}} = \frac{1}{\sqrt{2}}.
  4. 4
    Step 4: θ=45°\theta = 45°.

Answer

45°45°
The dot product relates to the angle: cosθ=abab\cos\theta = \frac{\mathbf{a} \cdot \mathbf{b}}{\|\mathbf{a}\|\|\mathbf{b}\|}. This is one of the most important formulas in vector math.

About Dot Product

The dot product of two vectors a=a1,a2\mathbf{a} = \langle a_1, a_2 \rangle and b=b1,b2\mathbf{b} = \langle b_1, b_2 \rangle is the scalar ab=a1b1+a2b2\mathbf{a} \cdot \mathbf{b} = a_1 b_1 + a_2 b_2. Equivalently, ab=abcosθ\mathbf{a} \cdot \mathbf{b} = \|\mathbf{a}\| \|\mathbf{b}\| \cos\theta, where θ\theta is the angle between the vectors.

Learn more about Dot Product →

More Dot Product Examples