Create your own
Lesson illustration

Computing and Interpreting Dot Products

Good to see you again. Last time, you learned to express vectors in Cartesian components and to add or subtract them by treating the horizontal and vertical directions separately. The dot product uses those same components, but with a fundamentally different purpose: instead of producing a new vector, it produces one number that measures directional alignment.

In this lesson, you will calculate dot products from components and from magnitudes plus an angle, determine angles between vectors, and interpret positive, zero, and negative results physically. This is an important bridge to work and energy later in the course, and to torque in the next vector lesson.


A new kind of vector multiplication

Vector addition combines two effects and returns another vector:

The dot product, written with a centered dot, combines two vectors and returns a scalar: an ordinary number, possibly with physical units.

For two-dimensional vectors,

the dot product is

The procedure is precise:

  1. Multiply the matching -components.
  2. Multiply the matching -components.
  3. Add those two products.

Do not write the result as . That would still be a vector, whereas a dot product must be a scalar.

The Vector Dot Product

Watch “The Vector Dot Product” by Professor Dave Explains for a compact visual introduction to the component rule, its relation to angle, and the special meaning of a zero dot product.

Watch the definition for the component calculation and the crucial fact that the result is a scalar. Then watch key properties, especially the result of dotting a vector with itself. Continue with the angle formula and its worked example, then finish with orthogonality to connect a zero result with perpendicular vectors.

Component calculation

Let

Then

The negative sign is meaningful; it is not merely an algebraic accident. Shortly, we will see that it tells us these vectors point more oppositely than together.

Notice also that the dot product is commutative:

The matching-component products are the same in either order.


A vector dotted with itself

The dot product connects directly to the magnitude formula you used in the previous lesson. If

then

But by the Pythagorean theorem,

Therefore,

For example, with

we obtain

Its magnitude is therefore

This is a useful consistency check: a vector dotted with itself cannot be negative, because it is the square of its magnitude.


The geometric meaning: alignment and angle

The component rule is efficient when the components are known. But often in physics, a problem gives the magnitudes of two vectors and the angle between them. The equivalent geometric form of the dot product is

where is the smallest angle between the two nonzero vectors, from to radians.

This formula shows that the dot product measures alignment, weighted by the magnitudes of the vectors. The cosine factor identifies how much one vector points along the direction of the other.

To see why this formula makes sense, choose axes so that lies along the positive -axis. Then its components are

If makes an angle with , its components in those axes are

Using the component definition gives

Thus,

The dot product does not merely ask whether two vectors are long or short. It asks: how much of one vector lies in the direction of the other?

Angle between vectorsSign of Dot-product interpretation
Positive maximumSame direction
Acute anglePositiveSome shared direction
ZeroPerpendicular
Obtuse angleNegativeMore opposite than aligned
Negative minimumExactly opposite directions

A dot product of zero is especially important:

provided neither vector is the zero vector. The zero vector has no definite direction, so an angle involving it is undefined, although its dot product with every vector is still zero.


Finding an angle from components

Suppose

First calculate the dot product:

Next find each magnitude:

Rearrange the geometric dot-product formula:

Substitute:

Therefore,

The positive dot product predicted an acute angle, and confirms it.

When using a calculator for a less tidy result, calculate the cosine first and then apply inverse cosine:

Be sure the calculator is in degree mode if a problem requests degrees, or radian mode if it requests radians. Also, the fraction inside inverse cosine must lie between and . A value outside that range usually signals an arithmetic error, apart from tiny rounding discrepancies.

4.1: The Dot Product - Physics LibreTexts

Read Physics LibreTexts’ “The Dot Product” to consolidate the component definition, the magnitude-angle relationship, perpendicularity test, and the physical example of work.

In the subsection “The Dot Product and Its Properties,” read from the definition and scalar result. Follow the component examples, then note the identity relating a vector dotted with itself to its squared magnitude. Next, in “Find the Angle between Two Vectors,” read the geometric setup. Focus on the formula involving cosine and the rearrangement used to determine an angle; the Law of Cosines derivation is worth following once as an explanation of why the component and geometric formulas agree. Finally, read the subsection “Orthogonal Vectors,” then in “Work” read from the physical motivation and continue through the wagon example. Pay particular attention to why only the force component parallel to the displacement contributes to work.


Projection: the quantity the dot product extracts

The expression

is the signed component of in the direction of . It is called the scalar projection of onto .

Therefore, the dot product can be read as

This is why a perpendicular component does not affect the dot product. Its projection along the other vector is zero.

For example, imagine moving horizontally while a force has both horizontal and vertical components. The vertical part may matter for other aspects of the situation, but it contributes nothing to the dot product of force with a purely horizontal displacement.


Physical interpretation: work done by a force

One major physics application is work. For a constant force acting during a displacement ,

The unit is

where , joule, is the unit of work and energy.

Suppose a force and displacement are

Using components,

The vertical part of the force contributes no work because there is no vertical displacement.

We can verify the same result geometrically. The force magnitude is

The angle between the force and horizontal displacement has

Thus,

A positive value means the force has a component in the direction of motion. A negative value means its component is opposite the displacement, as with friction slowing an object. A zero value means the force is perpendicular to the displacement.

This example also illustrates a general units rule: the dot product’s units are the product of the units of the two vectors. For force dotted with displacement, that product is a joule. For a displacement dotted with another displacement, the unit would be .


Choosing the right form and avoiding common errors

In a problem, choose the form that matches the information supplied:

Given informationEfficient method
Both vectors in componentsMultiply corresponding components and add
Two magnitudes and their included angleUse
Components but the angle is requiredFind the dot product and magnitudes, then use inverse cosine

The main pitfalls are straightforward:

  • Returning a vector. A dot product is one scalar, not a pair of components.
  • Multiplying without adding. Both matching-component products must be included.
  • Dropping negative signs. A negative dot product often has an important interpretation.
  • Using the wrong angle. The formula needs the angle between the two vectors, not necessarily either vector’s direction angle measured from the -axis.
  • Forgetting units. A physical dot product usually has units, and those units should be multiplied consistently.
  • Interpreting zero too broadly. For nonzero vectors, a zero dot product means perpendicular. With a zero vector, it does not determine an angle.

Wrap-up

The dot product has two equivalent forms:

and

The component form is computationally direct; the magnitude-angle form reveals the meaning. A positive result indicates alignment, zero indicates perpendicularity for nonzero vectors, and a negative result indicates opposition. The identity

also ties the dot product directly to vector magnitude.

Next, you will study the cross product. Unlike the dot product, it produces a vector rather than a scalar, and it captures a different geometric feature: the oriented area and rotational tendency associated with two vectors.

Can't find a good explanation? Sign up and we'll make it for you

Sign up