Dot Product Formula

Dot Product Formula

Formula

Summary

This formula calculates the dot product of two vectors. Geometrically, the result can be interpretted as projecting the second vector onto the line of the first vector and then multiplying the positive or negative magnitude of the projected vector with the magnitude of the first vector.

Expression Description
The first vector.
The second vector.
The summation operator.
The -th element of the first vector.
The -th element of the second vector.

How to use

The dot product of two vectors is calculated by summing together the product of corresponding elements. For example, the dot product of two vectors is calculated like this:

Geometrically, the dot product is interpretted as projecting the second vector onto the line of the first vector and then multiplying the positive or negative magnitude of the projected vector with the magnitude of the first vector.

Negative dot product example.

In this case, because the projected vector points in the opposite direction, the sign is negative. When the vectors point in the same direction, the dot product is positive.

Positive dot product example.

And, when the vectors are perpendicular, the dot product is zero.

Zero dot product example.

Related Formulas

Dot Product Geometric

The dot product can be geometrically interpreted as the magnitude of the two vectors multiplied by the cosine of the angle between them.