CCalclabhub

Vectors

Dot product from components

Multiply the components that occupy the same position in each vector, then add the three products to obtain a single scalar.

Last updated

The Formula

a · b = a1b1 + a2b2 + a3b3

Multiply the components that occupy the same position in each vector, then add the three products to obtain a single scalar.

SymbolMeaning
a1, a2, a3Components of the first vector
b1, b2, b3Components of the second vector
a · bThe scalar dot product

What Each Symbol Means

a1, a2, a3any

Components of the first vector

The three coordinates of vector a, taken in order.

b1, b2, b3any

Components of the second vector

The three coordinates of vector b; each pairs with the matching coordinate of a.

a · bsquare of input unit

The scalar dot product

A single number, positive, negative or zero, with the square of the input unit.

See It Worked With Real Numbers

A formula on its own does not tell you which number goes where. The how to calculate the dot product of two vectors page applies this equation to a concrete case, shows every intermediate step, and names the mistakes that produce a wrong answer even when the algebra is right.

Where This Formula Appears

This equation is the working core of How To Calculate The Dot Product Of Two Vectors, filed under Math. Every number the guide produces comes from substituting into this one line.

Common Questions

What is the formula for Dot product from components?

The formula for Dot product from components is a · b = a1b1 + a2b2 + a3b3. Multiply the components that occupy the same position in each vector, then add the three products to obtain a single scalar.

What does each symbol in Dot product from components stand for?

a1, a2, a3 is components of the first vector; b1, b2, b3 is components of the second vector; a · b is the scalar dot product.

What units should I use with Dot product from components?

Substitute a1, a2, a3 in any, b1, b2, b3 in any, a · b in square of input unit. Convert every input to those units before you start, because the equation only returns the right answer when the units on both sides agree.

What is a common mistake when using Dot product from components?

Treating the result as a vector. The dot product has no components and no direction. It is one scalar number, so writing an answer such as (32, 0, 0) is a category error. If a vector answer is required, the operation wanted is the vector projection, which multiplies the scalar projection by the unit vector b/|b|.