Definition in Terms of Vector Magnitudes and Angles

The dot product of two vectors and is defined in terms of the vector magnitudes and as well as the angle between the vectors .

Definition of a Dot Product

This definition holds for vectors in any number of dimensions. Since and are positive, the sign of depends on the angle according to the following table.

Sign of Angle between and
acute ()
right ()
obtuse ()

Practice Problems

Problem 1

Let and be vectors in the -plane with magnitudes and angles measured counterclockwise from the positive -axis. The magnitude of is , and its angle is . The magnitude of is , and its angle is . Determine .

Problem 2

Fill in the multiplication table below for dot products between the 3D unit vectors and

Computation in Terms of Components

The dot product can also be very conveniently computed in terms of the two-dimensional components of and according to the following theorem.

Theorem: Computing a Dot Product in Terms of Vector Components (2D)

Practice Problems

Problem 1

Find the value of for which is perpendicular to the vector .

Problem 2

Find all the numbers for which is perpendicular to the vector .

Problem 3

For and , calculate the cosine of the angle between the two vectors.

Problem 4

Find the 2D vectors of magnitude perpendicular to . (Don’t worry about rationalizing denominators.)

Problem 5

Consider the vectors and

(a) Determine if the angle between these two vectors is acute, right, or obtuse.

(b) State a 3D vector that is perpendicular to both

Formula in three dimensions

The dot product can be computed in terms of the three-dimensional components of and

Theorem: Computing a Dot Product in Terms of Vector Components (3D)

Notice how elegantly this extends the two-dimensional formula into three dimensions. One of the big reasons why dot products have been established as their own object is due to the simplicity that is associated with their computation despite having nontrivial tie to the original vectors still given by

Practice Problem

Problem

Show that if , then .

Properties of Dot Products

Properties of Dot Products

Let and be arbitrary vectors and be any constant. Then, the commutative, distributive, and assosciative properties of dot products hold as described in the table below.

PropertyDetails
Commutative Property
Distributive Property
Assosciative Property

Computing Projections with Dot Products

The projection of on , denoted is the component of in the direction of .

The projection of a vector on a second vector , denoted as , can be found through a dot product by means of the following formula.

Projection of Vector on Vector .

Practice Problems

Problem 1

Compute if and

Problem 2

Show that if , and neither or are the zero vector, then is perpendicular to .

Computing the Angle Between Vectors with Dot Products

From the definition given at the beginning of the article, one can rearrange the formula to solve for the angle between the two vectors and

Angle Between Two Vectors

This formula works for any two vectors and for which the dot product and magnitudes are known.

Practice Problem

Problem 1

Find the angle between the 2D vectors and

Problem 2

Find the angle between the 3D vectors and