Inner products allow for the introduction of intuitive geometrical concepts,such as the length of a vector and the angle or distance between two vectors. A major purpose of inner products is to determine whether vectors are orthogonal to each other.
Dot Product
It is a special type of inner product.The scalar product/dot product of two vectors in Rn is given by
xTy=∑ni=1xiyi
Example
from numpy import inf
from numpy import array
a = array([1, 2, 3])
b = array([2, 3, 4])
print(a)
print(b)
print("dot product")
print(a.dot(b))
O/P
[1 2 3][2 3 4]
dot product
20
General Inner products
Let V be a vector space and Ω:V×V→R be a bilinear mapping that takes two vectors and maps them onto real number. Then
Ω is called symmetric if Ω(x,y)=Ω(y,x) for all x,y∈V, i.e., the order of the arguments does not matter.
Ω is called positive definite if
∀x∈V/{0}: Ω(x,x)>0,Ω(0,0)=0Definition:Let V be a vector space and Ω:V×V→R be a bilinear mapping that takes two vectors and maps them onto real number. Then
- A positive definite, symmetric bilinear mapping Ω:V×V→R is called an inner product on V.We typically write <x,y> instead of Ω(x,y)
- The pair (V,<⋅,⋅>) is called an inner product space or (real) vector space with inner product.If we use the dot product defined as xTx, we call (V,<⋅,⋅>) a Euclidean vector space
Inner Product that is not dot product
Consider V=R2. If we define
<x,y>:=x1y1−(x1y2+x2y1)+2x2y2
then <⋅,⋅> is an inner product but different from the dot product.
<x,y>:=x1y1−(x1y2+x2y1)+2x2y2
=y1x1−(y1x2+y2x1)+2y2x2=<y,x>
Thus it is symmetric
It holds that
<x,x>=x21−(2x1x2)+2x22
=(x1−x2)2+x22
This is a sum of positive terms for x≠0. Moreover, this expression shows that if <x,x>=0 then x2=0 and then x1=0, i.e., x=0. Hence, <.,.> is positive definite.
Comments
Post a Comment