Ma · Mathematics

How to Prove the Dot Product Is Distributive

Published By the 9to5Science editorial team

At a glance

  1. 1. Write the components

    Represent each vector by its coordinates in the same dimension.

  2. 2. Expand the definition

    The dot product is the sum of products of matching coordinates.

  3. 3. Distribute each term

    Use ordinary distributivity on each coordinate product, then separate the sums.

  4. 4. Check with numbers

    Evaluate both sides for concrete vectors to verify the identity.

The dot product distributes over vector addition in either argument. The clearest proof uses the coordinate definition: add the corresponding vector components, multiply by the matching component of the other vector, and then distribute the ordinary multiplication over addition.

This proof applies to real vectors in the same Euclidean space, such as vectors in R2\mathbb{R}^2 or R3\mathbb{R}^3. It also shows exactly why the identity holds, rather than relying on a diagram or a geometric formula.

The coordinate definition

Let u=(u1,…,un)\mathbf{u}=(u_1,\ldots,u_n) and v=(v1,…,vn)\mathbf{v}=(v_1,\ldots,v_n) be vectors in Rn\mathbb{R}^n. Their dot product is defined by

u⋅v=∑i=1nuivi.\mathbf{u}\cdot\mathbf{v}=\sum_{i=1}^{n}u_i v_i.

In words, multiply corresponding coordinates and add the results. For example, if u=(2,−1,3)\mathbf{u}=(2,-1,3) and v=(4,5,0)\mathbf{v}=(4,5,0), then

u⋅v=2(4)+(−1)(5)+3(0)=3.\mathbf{u}\cdot\mathbf{v}=2(4)+(-1)(5)+3(0)=3.

To prove distributivity, take three vectors u,v,w∈Rn\mathbf{u},\mathbf{v},\mathbf{w}\in\mathbb{R}^n. The sum u+v\mathbf{u}+\mathbf{v} is formed coordinate by coordinate, so its iith coordinate is ui+viu_i+v_i.

Proof of the distributive laws

For distributivity in the first argument, expand the definition and use the usual distributive law for real numbers in each coordinate:

(u+v)⋅w=∑i=1n(ui+vi)wi=∑i=1n(uiwi+viwi)=∑i=1nuiwi+∑i=1nviwi=u⋅w+v⋅w.\begin{aligned} (\mathbf{u}+\mathbf{v})\cdot\mathbf{w} &=\sum_{i=1}^{n}(u_i+v_i)w_i\\ &=\sum_{i=1}^{n}(u_iw_i+v_iw_i)\\ &=\sum_{i=1}^{n}u_iw_i+\sum_{i=1}^{n}v_iw_i\\ &=\mathbf{u}\cdot\mathbf{w}+\mathbf{v}\cdot\mathbf{w}. \end{aligned}

The third equality uses the fact that a finite sum of term-by-term sums can be separated into two sums. That is precisely what allows the two dot products to appear.

The dot product is also distributive in its second argument. The same calculation gives

u⋅(v+w)=∑i=1nui(vi+wi)=∑i=1n(uivi+uiwi)=u⋅v+u⋅w.\begin{aligned} \mathbf{u}\cdot(\mathbf{v}+\mathbf{w}) &=\sum_{i=1}^{n}u_i(v_i+w_i)\\ &=\sum_{i=1}^{n}(u_iv_i+u_iw_i)\\ &=\mathbf{u}\cdot\mathbf{v}+\mathbf{u}\cdot\mathbf{w}. \end{aligned}

Thus both identities hold:

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

Worked example

Choose u=(1,2,−1)\mathbf{u}=(1,2,-1), v=(3,−1,4)\mathbf{v}=(3,-1,4), and w=(2,0,5)\mathbf{w}=(2,0,5). First add the vectors in the left-hand expression:

u+v=(4,1,3),(u+v)⋅w=4(2)+1(0)+3(5)=23.\mathbf{u}+\mathbf{v}=(4,1,3), \qquad (\mathbf{u}+\mathbf{v})\cdot\mathbf{w}=4(2)+1(0)+3(5)=23.

Now evaluate the right-hand side separately:

u⋅w=1(2)+2(0)+(−1)(5)=−3,\mathbf{u}\cdot\mathbf{w}=1(2)+2(0)+(-1)(5)=-3, v⋅w=3(2)+(−1)(0)+4(5)=26.\mathbf{v}\cdot\mathbf{w}=3(2)+(-1)(0)+4(5)=26.

Adding these dot products gives −3+26=23-3+26=23, the same result as (u+v)⋅w(\mathbf{u}+\mathbf{v})\cdot\mathbf{w}. The example checks the identity for these vectors; the coordinate proof establishes it for all vectors in Rn\mathbb{R}^n.

Why the result makes sense geometrically

If w\mathbf{w} is fixed, the number u⋅w\mathbf{u}\cdot\mathbf{w} depends linearly on u\mathbf{u}. In particular, adding two input vectors adds their dot products with w\mathbf{w}. This is the behavior of a linear function from vectors to real numbers, often called a linear functional.

For nonzero vectors u\mathbf{u} and w\mathbf{w}, the geometric formula u⋅w=∥u∥ ∥w∥cos⁡θ\mathbf{u}\cdot\mathbf{w}=\|\mathbf{u}\|\,\|\mathbf{w}\|\cos\theta also describes the dot product, where θ\theta is the angle between the vectors. But it is usually not the simplest way to prove distributivity: when you replace u\mathbf{u} with u+v\mathbf{u}+\mathbf{v}, both its length and its angle with w\mathbf{w} may change. The coordinate definition avoids that difficulty.

Common mistakes

  • Adding the wrong quantities: The dot product is a scalar, not a vector. The identity says to add two scalar dot products, not to add coordinates after taking the dot product.
  • Changing the grouping: (u+v)⋅w(\mathbf{u}+\mathbf{v})\cdot\mathbf{w} equals u⋅w+v⋅w\mathbf{u}\cdot\mathbf{w}+\mathbf{v}\cdot\mathbf{w}; it does not generally equal u⋅v+w\mathbf{u}\cdot\mathbf{v}+\mathbf{w}.
  • Using incompatible dimensions: The vectors being added must have the same number of components, and the dot products must be defined between vectors of the same dimension.
  • Treating the dot product as ordinary multiplication: The proof uses ordinary distributivity on each coordinate product, but the dot product itself is a sum of products, not a single product.

Scalar multiplication

For real scalars cc, the same coordinate definition also gives

(cu)⋅v=c(u⋅v),u⋅(cv)=c(u⋅v).(c\mathbf{u})\cdot\mathbf{v}=c(\mathbf{u}\cdot\mathbf{v}), \qquad \mathbf{u}\cdot(c\mathbf{v})=c(\mathbf{u}\cdot\mathbf{v}).

Together with additivity in both arguments, these rules say that the real dot product is bilinear. For complex vectors, the usual inner product includes complex conjugation, so scalar multiplication behaves differently in one argument; the addition identities still hold.

Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.