lacunary - Mathnotes

Dot Product

Definition of Dot Product

Given two vectors in R2, define their dot product as:

xy=(x1,y1)(x2,y2)=x1x2+y1y2

Given two vectors in Rn, define their dot product as:

xy=(x1,x2,,xn)(y1,y2,,yn)=x1y1+x2y2++xnyn

One geometric interpretation of the dot product of u and v is that it's the component of u in the direction of v times the magnitude of v. Thus, one u and v are pointing in generally the same direction it's positive, in generally opposite directions it's negative, and when they're perpindicular (orthogonal) it is 0.

Indeed, the cosine of the angle between two unit vectors is the dot product between them, and in general, the cosine of the angle θ between two vectors u and v is the dot product of the unit vectors in their respective directions:

cosθ=u||u||v||v||=uv||u|| ||v||

uv=||u||||v||cosθ

Properties of Dot Product

For these properties, let x,y,zRn and cR.

xy=yx x,yRn(Commutative Property)

xx=||x||20,xx=0 iff x=0(Property of Magnitude)

c(xy)=(cx)y=(cy)x(Associative Property)

x(y+z)=xy+xz(Distributive Property over Addition)