Tutorials › Calculus III › Symmetry and Linearity of the Dot Product

Dot Products and Projections · Tutorial 52 of 999

Symmetry and Linearity of the Dot Product

Learn why the dot product is symmetric and linear in each vector, and use these properties to simplify vector expressions reliably.

Beginner 8 min read

What You'll Learn

  • State the component definition of the dot product in three dimensions.
  • Prove that reversing the order of the vectors leaves the dot product unchanged.
  • Derive linearity in each argument from the component definition.
  • Expand dot products involving sums and scalar multiples.
  • Recognize and correct common sign and order errors.

Why These Properties Matter

The component formula for a dot product gives a direct way to calculate it. But many expressions contain sums of vectors or scalar multiples, and calculating every new vector component by component can become cumbersome. Symmetry and linearity let us reorganize those expressions before or during calculation.

These properties also explain why the dot product behaves predictably when its inputs are rearranged or combined. We will prove them from the component definition, then use them in examples. Throughout, vectors are in \(\mathbb{R}^3\), and scalars are real numbers.

Definition of the Dot Product

If \(\mathbf{u}=(u_1,u_2,u_3)\) and \(\mathbf{v}=(v_1,v_2,v_3)\), their dot product is the real number obtained by multiplying corresponding components and adding the results:

$$ \mathbf{u}\cdot\mathbf{v} = u_1v_1+u_2v_2+u_3v_3. $$

Vector addition is componentwise, so \(\mathbf{u}+\mathbf{v}=(u_1+v_1,u_2+v_2,u_3+v_3)\). Scalar multiplication is also componentwise: for a real number \(a\), \(a\mathbf{u}=(au_1,au_2,au_3)\). These facts, together with ordinary distributivity and commutativity of real-number multiplication, are all we need for the proofs below.

Definition: The dot product is symmetric if \(\mathbf{u}\cdot\mathbf{v}=\mathbf{v}\cdot\mathbf{u}\). It is linear in an argument if it distributes over vector addition in that argument and allows scalar factors to be taken outside the dot product.

Symmetry: Reversing the Order

Symmetry says that the order of the two vectors does not affect the result. It follows directly from commutativity of real-number multiplication:

$$ \begin{aligned} \mathbf{u}\cdot\mathbf{v} &=u_1v_1+u_2v_2+u_3v_3\\ &=v_1u_1+v_2u_2+v_3u_3\\ &=\mathbf{v}\cdot\mathbf{u}. \end{aligned} $$

Each term can be reversed because \(u_iv_i=v_iu_i\) for real numbers. The result is not an assumption about the vectors’ components; it holds for every pair of vectors in \(\mathbb{R}^3\).

Worked Example: Checking Symmetry with Components

Let \(\mathbf{u}=(2,-1,3)\) and \(\mathbf{v}=(-4,5,2)\). First calculate the dot product in the given order:

$$ \mathbf{u}\cdot\mathbf{v} =2(-4)+(-1)(5)+3(2) =-8-5+6 =-7. $$

Now reverse the order and calculate again:

$$ \mathbf{v}\cdot\mathbf{u} =(-4)(2)+5(-1)+2(3) =-8-5+6 =-7. $$

The results agree, as symmetry predicts. As a check, the component products in both calculations are \(-8\), \(-5\), and \(6\), whose sum is \(-7\).

Linearity in the First Argument

Linearity in the first argument consists of two rules. If \(\mathbf{u}\), \(\mathbf{v}\), and \(\mathbf{w}\) are vectors and \(a,b\) are real scalars, then a sum in the first argument separates into a sum of dot products, and scalar multiples can be taken outside:

$$ (\mathbf{u}+\mathbf{v})\cdot\mathbf{w} =\mathbf{u}\cdot\mathbf{w}+\mathbf{v}\cdot\mathbf{w}, \qquad (a\mathbf{u})\cdot\mathbf{w} =a(\mathbf{u}\cdot\mathbf{w}). $$

Combining these rules gives the more general formula:

$$ (a\mathbf{u}+b\mathbf{v})\cdot\mathbf{w} =a(\mathbf{u}\cdot\mathbf{w})+b(\mathbf{v}\cdot\mathbf{w}). $$

To see why the formula holds, write \(\mathbf{u}=(u_1,u_2,u_3)\), \(\mathbf{v}=(v_1,v_2,v_3)\), and \(\mathbf{w}=(w_1,w_2,w_3)\). Then \(a\mathbf{u}+b\mathbf{v}=(au_1+bv_1,au_2+bv_2,au_3+bv_3)\). Applying the dot product definition and distributing in each component gives:

$$ \begin{aligned} (a\mathbf{u}+b\mathbf{v})\cdot\mathbf{w} &=(au_1+bv_1)w_1+(au_2+bv_2)w_2+(au_3+bv_3)w_3\\ &=a(u_1w_1+u_2w_2+u_3w_3) +b(v_1w_1+v_2w_2+v_3w_3)\\ &=a(\mathbf{u}\cdot\mathbf{w})+b(\mathbf{v}\cdot\mathbf{w}). \end{aligned} $$

This establishes both distribution over a sum and pulling out a scalar: choosing \(a=b=1\) gives the sum rule, while choosing one vector term to be zero gives the scalar rule. The argument depends on the component definition and real-number distributivity.

Linearity in the Second Argument

The dot product is also linear in its second argument. In this case, the rules are:

$$ \mathbf{u}\cdot(\mathbf{v}+\mathbf{w}) =\mathbf{u}\cdot\mathbf{v}+\mathbf{u}\cdot\mathbf{w}, \qquad \mathbf{u}\cdot(a\mathbf{v}) =a(\mathbf{u}\cdot\mathbf{v}). $$

These rules can be proved by the same component expansion. They also follow immediately from the symmetry just proved and linearity in the first argument. For example, symmetry lets us move the sum to the first position, apply first-argument linearity, and then use symmetry again:

$$ \begin{aligned} \mathbf{u}\cdot(\mathbf{v}+\mathbf{w}) &=(\mathbf{v}+\mathbf{w})\cdot\mathbf{u}\\ &=\mathbf{v}\cdot\mathbf{u}+\mathbf{w}\cdot\mathbf{u}\\ &=\mathbf{u}\cdot\mathbf{v}+\mathbf{u}\cdot\mathbf{w}. \end{aligned} $$

Likewise, \(\mathbf{u}\cdot(a\mathbf{v})=(a\mathbf{v})\cdot\mathbf{u}=a(\mathbf{v}\cdot\mathbf{u})=a(\mathbf{u}\cdot\mathbf{v})\). Thus the dot product is linear in either argument when the other is held fixed.

Theorem: For vectors \(\mathbf{u},\mathbf{v},\mathbf{w}\in\mathbb{R}^3\) and scalars \(a,b\in\mathbb{R}\), the dot product satisfies symmetry and linearity in each argument: \((a\mathbf{u}+b\mathbf{v})\cdot\mathbf{w}=a(\mathbf{u}\cdot\mathbf{w})+b(\mathbf{v}\cdot\mathbf{w})\), and \(\mathbf{w}\cdot(a\mathbf{u}+b\mathbf{v})=a(\mathbf{w}\cdot\mathbf{u})+b(\mathbf{w}\cdot\mathbf{v})\).

Using Linearity to Simplify Expressions

Linearity allows an expression to be expanded one argument at a time. The scalar coefficients remain as ordinary real-number factors. For example, distributing over both arguments gives:

$$ (a\mathbf{u}+b\mathbf{v})\cdot(c\mathbf{w}+d\mathbf{z}) =ac(\mathbf{u}\cdot\mathbf{w}) +ad(\mathbf{u}\cdot\mathbf{z}) +bc(\mathbf{v}\cdot\mathbf{w}) +bd(\mathbf{v}\cdot\mathbf{z}). $$

This follows by first distributing across the second argument and then across the first argument in each resulting term. It does not require multiplying vectors as if they were numbers; each final term is a scalar dot product multiplied by scalar coefficients.

Worked Example: Taking a Linear Combination in One Argument

Let \(\mathbf{u}=(1,2,-1)\), \(\mathbf{v}=(3,-1,4)\), and \(\mathbf{w}=(-2,0,5)\). We will calculate \((2\mathbf{u}-\mathbf{w})\cdot\mathbf{v}\) directly, then check it by linearity.

First form the vector in the first argument:

$$ 2\mathbf{u}=(2,4,-2), \qquad 2\mathbf{u}-\mathbf{w} =(2,4,-2)-(-2,0,5) =(4,4,-7). $$

Now calculate its dot product with \(\mathbf{v}\):

$$ (2\mathbf{u}-\mathbf{w})\cdot\mathbf{v} =(4,4,-7)\cdot(3,-1,4) =4(3)+4(-1)+(-7)(4) =12-4-28 =-20. $$

For the check, calculate the two dot products separately:

$$ \mathbf{u}\cdot\mathbf{v} =1(3)+2(-1)+(-1)(4) =3-2-4 =-3, $$ $$ \mathbf{w}\cdot\mathbf{v} =(-2)(3)+0(-1)+5(4) =-6+0+20 =14. $$

Linearity predicts \(2(\mathbf{u}\cdot\mathbf{v})-\mathbf{w}\cdot\mathbf{v}\), which is \(2(-3)-14=-6-14=-20\). This agrees with the direct calculation.

Worked Example: Expanding a Product of Two Vector Sums

Let \(\mathbf{p}=(1,0,2)\), \(\mathbf{q}=(-1,3,1)\), \(\mathbf{r}=(2,1,-1)\), and \(\mathbf{s}=(0,2,1)\). Simplify and evaluate \((2\mathbf{p}-3\mathbf{q})\cdot(\mathbf{r}+2\mathbf{s})\).

First use linearity in the second argument, then in the first argument:

$$ (2\mathbf{p}-3\mathbf{q})\cdot(\mathbf{r}+2\mathbf{s}) =2(\mathbf{p}\cdot\mathbf{r})+4(\mathbf{p}\cdot\mathbf{s}) -3(\mathbf{q}\cdot\mathbf{r})-6(\mathbf{q}\cdot\mathbf{s}). $$

Calculate each dot product:

$$ \begin{aligned} \mathbf{p}\cdot\mathbf{r}&=1(2)+0(1)+2(-1)=2+0-2=0,\\ \mathbf{p}\cdot\mathbf{s}&=1(0)+0(2)+2(1)=0+0+2=2,\\ \mathbf{q}\cdot\mathbf{r}&=(-1)(2)+3(1)+1(-1)=-2+3-1=0,\\ \mathbf{q}\cdot\mathbf{s}&=(-1)(0)+3(2)+1(1)=0+6+1=7. \end{aligned} $$

Substitute these values into the expanded expression:

$$ 2(0)+4(2)-3(0)-6(7) =0+8-0-42 =-34. $$

Check by forming both vectors first: \(2\mathbf{p}-3\mathbf{q}=(2,0,4)-(-3,9,3)=(5,-9,1)\), and \(\mathbf{r}+2\mathbf{s}=(2,1,-1)+(0,4,2)=(2,5,1)\). Their dot product is \(5(2)+(-9)(5)+1(1)=10-45+1=-34\), matching the expanded result.

A Useful Cancellation

Symmetry and linearity together make some expressions collapse neatly. When an expression contains both \(\mathbf{u}\cdot\mathbf{v}\) and \(\mathbf{v}\cdot\mathbf{u}\), symmetry identifies those terms. For instance, expanding \((\mathbf{u}+\mathbf{v})\cdot(\mathbf{u}-\mathbf{v})\) gives two mixed terms with opposite signs, so they cancel.

Worked Example: Simplifying a Difference of Vector Sums

Let \(\mathbf{u}=(2,1,0)\) and \(\mathbf{v}=(1,-2,3)\). Expand first, using linearity in both arguments:

$$ \begin{aligned} (\mathbf{u}+\mathbf{v})\cdot(\mathbf{u}-\mathbf{v}) &=\mathbf{u}\cdot\mathbf{u}-\mathbf{u}\cdot\mathbf{v} +\mathbf{v}\cdot\mathbf{u}-\mathbf{v}\cdot\mathbf{v}\\ &=\mathbf{u}\cdot\mathbf{u}-\mathbf{v}\cdot\mathbf{v}, \end{aligned} $$

because symmetry gives \(\mathbf{v}\cdot\mathbf{u}=\mathbf{u}\cdot\mathbf{v}\), and those two mixed terms have opposite signs. Now evaluate the original expression directly:

$$ \mathbf{u}+\mathbf{v}=(3,-1,3), \qquad \mathbf{u}-\mathbf{v}=(1,3,-3), $$ $$ (3,-1,3)\cdot(1,3,-3) =3(1)+(-1)(3)+3(-3) =3-3-9 =-9. $$

The simplified expression gives the same result:

$$ \mathbf{u}\cdot\mathbf{u}=2(2)+1(1)+0(0)=5, \qquad \mathbf{v}\cdot\mathbf{v}=1(1)+(-2)(-2)+3(3)=1+4+9=14, $$ $$ \mathbf{u}\cdot\mathbf{u}-\mathbf{v}\cdot\mathbf{v}=5-14=-9. $$

Both calculations give \(-9\), confirming the expansion and cancellation.

Common Mistake: Losing a Sign or a Coefficient

A frequent error is to distribute a scalar or a minus sign across only part of an expression. For example, the correct expansion of \((2\mathbf{u}-\mathbf{v})\cdot\mathbf{w}\) is

$$ (2\mathbf{u}-\mathbf{v})\cdot\mathbf{w} = 2(\mathbf{u}\cdot\mathbf{w})-(\mathbf{v}\cdot\mathbf{w}) $$

A common mistake is to omit the minus sign and write \(2(\mathbf{u}\cdot\mathbf{w})+(\mathbf{v}\cdot\mathbf{w})\). For a concrete check, take \(\mathbf{u}=(1,0,0)\), \(\mathbf{v}=(0,1,0)\), and \(\mathbf{w}=(1,2,0)\). Directly, \(2\mathbf{u}-\mathbf{v}=(2,-1,0)\), so \((2\mathbf{u}-\mathbf{v})\cdot\mathbf{w}=2(1)+(-1)(2)+0(0)=0\). The mistaken expansion gives \(2(1)+2=4\), which disagrees. The correct expansion gives \(2(\mathbf{u}\cdot\mathbf{w})-(\mathbf{v}\cdot\mathbf{w})=2(1)-2=0\).

Another useful check is to keep track of which vector occupies each argument. Symmetry allows the two vectors to be swapped, but linearity does not mean that a dot product is an ordinary product of vectors. Expand a sum using the stated rules, preserve every coefficient and sign, and evaluate the resulting scalar dot products.

Why These Properties Are Useful

Symmetry and linearity reduce complicated expressions to combinations of simpler dot products. This is useful whenever vectors are written as sums of displacements, or when one vector is a scalar multiple or linear combination of others. It can also reveal cancellations that are difficult to notice if every expression is expanded into components immediately.

The properties do not by themselves say anything about angles, lengths, or projections. They are algebraic facts established from the component definition. Keeping that distinction clear helps ensure that each step uses only what has been proved or defined.

Check Your Understanding

Use the component definition, symmetry, and linearity to answer these questions.

  1. State the component formula for \(\mathbf{u}\cdot\mathbf{v}\) when both vectors are in \(\mathbb{R}^3\).
  2. Which property of real-number multiplication proves that \(\mathbf{u}\cdot\mathbf{v}=\mathbf{v}\cdot\mathbf{u}\)?
  3. Expand \((3\mathbf{a}-2\mathbf{b})\cdot\mathbf{c}\) using linearity.
  4. Expand \(\mathbf{a}\cdot(2\mathbf{b}+\mathbf{c})\) using linearity in the second argument.
  5. Explain why the mixed terms cancel when \((\mathbf{u}+\mathbf{v})\cdot(\mathbf{u}-\mathbf{v})\) is expanded.