Dot Product Formula

The Formula

\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

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

Notation

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

What This Formula Means

The dot product of two vectors \mathbf{a} = \langle a_1, a_2 \rangle and \mathbf{b} = \langle b_1, b_2 \rangle is the scalar \mathbf{a} \cdot \mathbf{b} = a_1 b_1 + a_2 b_2. Equivalently, \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 \mathbb{R}^n: \mathbf{a} \cdot \mathbf{b} = \sum_{i=1}^{n} a_i b_i = \|\mathbf{a}\|\|\mathbf{b}\|\cos\theta. Properties: bilinear, symmetric (\mathbf{a} \cdot \mathbf{b} = \mathbf{b} \cdot \mathbf{a}), positive-definite (\mathbf{a} \cdot \mathbf{a} > 0 for \mathbf{a} \neq \mathbf{0}). Orthogonality: \mathbf{a} \perp \mathbf{b} \iff \mathbf{a} \cdot \mathbf{b} = 0.

Worked Examples

Example 1

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

Solution

  1. 1
    Step 1: Multiply corresponding components and sum: 1(3) + 2(-1).
  2. 2
    Step 2: = 3 - 2 = 1.
  3. 3
    Note: The result is a scalar (number), not a vector.

Answer

1
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 \mathbf{a} = \langle 1, 0 \rangle and \mathbf{b} = \langle 1, 1 \rangle.

Common Mistakes

  • Expecting a vector resultβ€”the dot product always produces a scalar
  • Confusing dot product (\mathbf{a} \cdot \mathbf{b}) with cross product (\mathbf{a} \times \mathbf{b})
  • Forgetting the orthogonality test: if \mathbf{a} \cdot \mathbf{b} = 0 and neither vector is the zero vector, the vectors are perpendicular

Why This Formula Matters

The dot product tests orthogonality (perpendicularity), computes projections, finds angles between vectors, and calculates work in physics (W = \mathbf{F} \cdot \mathbf{d}). It is foundational in machine learning, signal processing, and quantum mechanics.

Frequently Asked Questions

What is the Dot Product formula?

The dot product of two vectors \mathbf{a} = \langle a_1, a_2 \rangle and \mathbf{b} = \langle b_1, b_2 \rangle is the scalar \mathbf{a} \cdot \mathbf{b} = a_1 b_1 + a_2 b_2. Equivalently, \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?

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

Why is the Dot Product formula important in Math?

The dot product tests orthogonality (perpendicularity), computes projections, finds angles between vectors, and calculates work in physics (W = \mathbf{F} \cdot \mathbf{d}). It is foundational in machine learning, signal processing, and quantum mechanics.

What do students get wrong about Dot Product?

The result of a dot product is a scalar (number), not a vector. This is the key difference from the cross product.

What should I learn before the Dot Product formula?

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