0:00 / 0:00

Dot Product

Multiplying vectors by scalars is simple.
Multiplying vectors by vectors is not as straightforward, and there are two kinds of vectors products:
  1. Dot product: takes two vectors in Rn\reals^n and produces a single scalar
  2. Cross product: takes two vectors in R3\reals^3 and produces another vector in R3\reals^3

The dot product (or scalar product) of u=[u1u2un]\vec{u}= \begin{bmatrix} u_1\\ u_2\\ \vdots\\u_n\\ \end{bmatrix}and v=[v1v2vn]\vec{v}= \begin{bmatrix} v_1\\ v_2\\ \vdots\\v_n\\ \end{bmatrix} is defined to be:
uv = u1v1 + u2v2 +  + unvn  R\boxed{\quad \vec{u} \cdot \vec{v} \ =\ u_1v_1\ +\ u_2v_2 \ +\ ⋯\ +\ u_n v_n \quad} \ \ \in \reals

Watch Out!
Like vector addition, the dot product only works if the vectors are in the same space!


Example
Given u=4,2,3\vec{u}=\lang 4,-2,3 \rang and v=5,4,1\vec{v}=\lang 5,4,-1 \rang, compute uv\vec u \cdot \vec v.
uv=[423][541]=45 + (2)4 + 3(1)\vec u \cdot \vec v = \begin{bmatrix} \colorOne{4}\\ \colorTwo{-2}\\ \colorThree{3} \end{bmatrix} \cdot \begin{bmatrix} \colorOne{5}\\ \colorTwo{4}\\ \colorThree{-1} \end{bmatrix} = \colorOne{4}\cdot\colorOne{5} \ +\ (\colorTwo{-2})\cdot\colorTwo{4} \ +\ \colorThree{3}\cdot(\colorThree{-1})
0:00 / 0:00

Example: Dot Product

Part A)

Given u=1,4,2\vec{u}=\lang 1,4,-2\rang and v=0,2,5\vec{v}=\lang 0,-2,5\rang, find uv\vec u \cdot \vec{v}.

uv=(1)(0)+(4)(2)+(2)(5)=810=18\begin{aligned} \vec u \cdot \vec v &=(1)(0)+(4)(−2)+(−2)(5)\\ &= -8-10\\ &= \boxed{-18} \end{aligned}

Part B)

If [213k][k91]=5\begin{bmatrix} 2\\ -\frac{1}{3}\\ k\\ \end{bmatrix} \cdot \begin{bmatrix} k\\ 9\\ 1\\ \end{bmatrix} =5, find the value of kk.

(2)(k)+(13)(9)+(k)(1)=52k3+k=53k=5+3k=83\begin{aligned} \left(2\right)\left(k\right)+\left(-\frac{1}{3}\right)\left(9\right)+\left(k\right)\left(1\right) &= 5\\ 2k - 3 + k &= 5\\ 3k&= 5+3\\ k&=\boxed{\dfrac{8}{3}} \end{aligned}

Practice: Dot Product

Fill in the blanks.

Part A)

[8243][1441]=\begin{bmatrix} -8\\ -2\\ 4\\ 3 \end{bmatrix} \cdot \begin{bmatrix} 1\\ 4\\ 4\\ -1 \end{bmatrix} =

Part B)

Given u=[23]\vec u= \begin{bmatrix} -2\\ 3\\ \end{bmatrix} and v=[5d]\vec v= \begin{bmatrix} 5\\ d\\ \end{bmatrix}, and uv=20\vec u \cdot \vec v = 20,
then d =
.

Extra Practice