Dot Product Formula

The dot product of two vectors a = a_1, a_2 and b = b_1, b_2 is the scalar a x b = a_1 b_1 + a_2 b_2.

The Formula

ab=a1b1+a2b2++anbn=abcosθ\mathbf{a} \cdot \mathbf{b} = a_1 b_1 + a_2 b_2 + \cdots + a_n b_n = \|\mathbf{a}\| \|\mathbf{b}\| \cos\theta

When to use: The dot product measures how much two vectors point in the same direction. If they point the same way, the dot product is large and positive. If perpendicular, it is zero. If they point in opposite directions, it is negative. Think of it as a 'similarity score' for directions.

Quick Example

a=1,2,b=3,1\mathbf{a} = \langle 1, 2 \rangle, \quad \mathbf{b} = \langle 3, -1 \rangle
ab=1(3)+2(1)=1\mathbf{a} \cdot \mathbf{b} = 1(3) + 2(-1) = 1
Since ab>0\mathbf{a} \cdot \mathbf{b} > 0, the angle between them is less than 90°90°.

Notation

ab\mathbf{a} \cdot \mathbf{b} uses a raised dot. Do not confuse with a×b\mathbf{a} \times \mathbf{b} (cross product).

What This Formula Means

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.

The dot product measures how much two vectors point in the same direction. If they point the same way, the dot product is large and positive. If perpendicular, it is zero. If they point in opposite directions, it is negative. Think of it as a 'similarity score' for directions.

Formal View

The dot product (inner product) on Rn\mathbb{R}^n: ab=i=1naibi=abcosθ\mathbf{a} \cdot \mathbf{b} = \sum_{i=1}^{n} a_i b_i = \|\mathbf{a}\|\|\mathbf{b}\|\cos\theta. Properties: bilinear, symmetric (ab=ba\mathbf{a} \cdot \mathbf{b} = \mathbf{b} \cdot \mathbf{a}), positive-definite (aa>0\mathbf{a} \cdot \mathbf{a} > 0 for a0\mathbf{a} \neq \mathbf{0}). Orthogonality: ab    ab=0\mathbf{a} \perp \mathbf{b} \iff \mathbf{a} \cdot \mathbf{b} = 0.

Worked Examples

Example 1

easy
Find 1,23,1\langle 1, 2 \rangle \cdot \langle 3, -1 \rangle.

Answer

11

First step

1
Step 1: Multiply corresponding components and sum: 1(3)+2(1)1(3) + 2(-1).

Full solution

  1. 2
    Step 2: =32=1= 3 - 2 = 1.
  2. 3
    Note: The result is a scalar (number), not a vector.
The dot product multiplies corresponding components and sums the results, producing a scalar. A positive dot product means the vectors point in roughly the same direction (angle < 90°).

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.

Example 3

easy
Compute 2,52,5\langle 2, 5 \rangle \cdot \langle 2, 5 \rangle and interpret it.

Common Mistakes

  • Reporting a vector as the answer - the dot product is always a single scalar; multiply matching components and add them
  • Pairing components crosswise like a1b2a_1b_2 - pair like-with-like: a1b1+a2b2a_1b_1+a_2b_2
  • Forgetting that cosθ\cos\theta form needs magnitudes - ab=abcosθ\mathbf{a}\cdot\mathbf{b}=\|\mathbf{a}\|\|\mathbf{b}\|\cos\theta, so solve cosθ=abab\cos\theta=\frac{\mathbf{a}\cdot\mathbf{b}}{\|\mathbf{a}\|\|\mathbf{b}\|} for the angle

Why This Formula Matters

The dot product is the one operation that converts directional alignment into a single comparable number, which is why it powers angle-finding, work in physics (W=FdW=\mathbf{F}\cdot\mathbf{d}), and the perpendicularity test that underlies projections and orthogonality. Recognizing it by "Do I have two vectors and need one number measuring their directional agreement (not a new vector)?" — rather than by familiar numbers — is what lets a student tell it apart from cross product and scalar multiplication and vector addition in a mixed problem set.

Frequently Asked Questions

What is the Dot Product formula?

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.

How do you use the Dot Product formula?

The dot product measures how much two vectors point in the same direction. If they point the same way, the dot product is large and positive. If perpendicular, it is zero. If they point in opposite directions, it is negative. Think of it as a 'similarity score' for directions.

What do the symbols mean in the Dot Product formula?

ab\mathbf{a} \cdot \mathbf{b} uses a raised dot. Do not confuse with a×b\mathbf{a} \times \mathbf{b} (cross product).

Why is the Dot Product formula important in Math?

The dot product is the one operation that converts directional alignment into a single comparable number, which is why it powers angle-finding, work in physics (W=FdW=\mathbf{F}\cdot\mathbf{d}), and the perpendicularity test that underlies projections and orthogonality. Recognizing it by "Do I have two vectors and need one number measuring their directional agreement (not a new vector)?" — rather than by familiar numbers — is what lets a student tell it apart from cross product and scalar multiplication and vector addition in a mixed problem set.

What do students get wrong about Dot Product?

The procedure for dot product is the easy part; the trap is reporting a vector as the answer. Asking "Do I have two vectors and need one number measuring their directional agreement (not a new vector)?" first is what keeps a correct-looking calculation from being attached to the wrong concept.

What should I learn before the Dot Product formula?

Before studying the Dot Product formula, you should understand: vector operations, vector magnitude direction.