For two vectors a and b in Rn (real coordinate spaces, the dot product is defined as
a⋅b=i=1∑naibi
Where
- ai and bi are the i-th components of a and b, respectively, and
- n is the dimension of a and b.
Alternative definition
Given that a and b are vectors with lengths ∣a∣ and ∣b∣, respectively, the dot product is also equal to
a⋅b=∣a∣∣b∣cosθ
Where θ is the angle between a and b.
Note that the dot product is a less general version of the inner product.
Properties
- a⋅b=b⋅a
- (a+b)⋅c=a⋅c+b⋅c
- a⋅a=∣a∣2
- a⋅b=0 if and only if a and b are orthogonal
- For a scalar s, (sa)⋅b=s⋅(a⋅b)
Sources