Dot Product Formula

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

The Formula

a⋅b=a1b1+a2b2+⋯+anbn=∥a∥∥b∥cos⁡θ

Ask yourself: Do I have two vectors and need one number measuring their directional agreement (not a new vector)?

Quick example

a=⟨1,2⟩,b=⟨3,−1⟩
a⋅b=1(3)+2(−1)=1
Since a⋅b>0, the angle between them is less than 90°.

Notation

a⋅b uses a raised dot. Do not confuse with a×b (cross product).

What this formula means

The dot product of two vectors a=⟨a1,a2⟩ and b=⟨b1,b2⟩ is the scalar a⋅b=a1b1+a2b2. Equivalently, a⋅b=∥a∥∥b∥cos⁡θ, where θ is the angle between the vectors.

The dot product is a shadow measurement: shine light straight down onto the line of b, measure the shadow that a casts, and multiply by the length of b. A vector at right angles casts no shadow, so the result is 0, and one pointing backwards casts its shadow on the far side, a negative result. Unlike a real shadow, swapping the two roles gives the same answer.

Formal view

The dot product (inner product) on Rn: a⋅b=∑i=1naibi=∥a∥∥b∥cos⁡θ. Properties: bilinear, symmetric (a⋅b=b⋅a), positive-definite (a⋅a>0 for a≠0). Orthogonality: a⊥b  ⟺  a⋅b=0.

Worked examples

Example 1

easy
Find ⟨1,2⟩⋅⟨3,−1⟩.
Show solution

Answer

1

First step

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

Full solution

  1. 2.
    Step 2: =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⟩ and b=⟨1,1⟩.

Example 3

easy
Compute ⟨2,5⟩⋅⟨2,5⟩ 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 a1b2 - pair like-with-like: a1b1+a2b2
  • Forgetting that cos⁡θ form needs magnitudes - a⋅b=∥a∥∥b∥cos⁡θ, so solve cos⁡θ=a⋅b∥a∥∥b∥ for the angle

Why this formula matters

The dot product turns a question about angles into arithmetic on components, so you can check whether two walls, roads or forces meet at right angles without a protractor. In physics, work is the dot product of force and displacement: only the part of a push along the motion counts. Without it, finding the angle between ⟨2,5⟩ and ⟨4,1⟩ would take a careful scale drawing.

Frequently asked questions

What is the Dot Product formula?

The dot product of two vectors a=⟨a1,a2⟩ and b=⟨b1,b2⟩ is the scalar a⋅b=a1b1+a2b2. Equivalently, a⋅b=∥a∥∥b∥cos⁡θ, where θ is the angle between the vectors.

How do you use the Dot Product formula?

Use it when you have two vectors and want one number about how they line up: the angle between them, a check for perpendicular, or the part of one vector lying along another, as in a projection or the work done by a force. If you need a new vector perpendicular to two 3D vectors, use the cross product. If you are combining the vectors into a resultant, add them; if you are stretching one vector, use scalar multiplication.

What do the symbols mean in the Dot Product formula?

a⋅b uses a raised dot. Do not confuse with a×b (cross product).

Why is the Dot Product formula important in Math?

The dot product turns a question about angles into arithmetic on components, so you can check whether two walls, roads or forces meet at right angles without a protractor. In physics, work is the dot product of force and displacement: only the part of a push along the motion counts. Without it, finding the angle between ⟨2,5⟩ and ⟨4,1⟩ would take a careful scale drawing.

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.