You'll usually do dot product calculations with the vectors in component form. Let's look first at some simple dot products of the vectors i, j and k with each other.

In 2-space, since i = [1, 0] and j = [0, 1], we get

ii = 1,   jj = 1   and   ij = 0

In 3-space, since i = [1, 0, 0], j = [0, 1, 0] and k = [0, 0, 1], we get

ii = jj = kk = 1   and   ij = jk = ki= 0.

In words, the dot product of i, j or k with itself is always 1, and the dot products of i, j and k with each other are always 0.

The dot product of a vector with itself is a sum of squares:
  • in 2-space, if u = [u1, u2] then uu = u12 + u22,
  • in 3-space, if u = [u1, u2, u3] then uu = u12 + u22 + u32.

This means that uu is generally positive; the only possible exception occurs when all of the components of u are 0, i.e. when u = 0. Thus:

00 = 0, and if u0, uu > 0.

Notice also that the sum of squares in each case is the same sum of squares that appears in the formulas for the lengths of vectors in 2-space and 3-space (without the square root sign). This gives you a relation between dot products and the length of a vector:

uu = ||u||2.

Dot products are commutative: for vectors u and v (both either in 2-space or in 3-space), uv = vu.

Dot products are distributive over addition: for vectors u, v and w (all either in 2-space or in 3-space), u•(v + v) = uv + uw.

Both of these rules are easy to check (use the component form of the definition of the dot product) .

When finding the dot product of scalar multiples of two vectors, you can multiply by the scalars either before or after you find the dot product: for any scalar c and vectors u and v,

(cu)•v = u•(cv) = c(uv).

This is again easy to check using components.

Here's a list summarizing the calculation rules for dot products.

For any vectors u, v and w all in 2-space or all in 3-space and any scalar c,

  • ii = jj = kk = 1   and   ij = jk = ki= 0.
  • 00 = 0, and if u0, uu > 0
  • uu = ||u||2
  • uv = vu
  • u•(v + w) = uw + vw
  • (cu)•v = u•(cv) = c(uv).