Professional Documents
Culture Documents
- Inner Product
4.1
Inner Product:
4.2
(8, 9)
480
9 5
2 2
0 8 79
1.2
6
457
= 2 5 9
4)| 4 1
-1 . 0
-1 6 , 12
|( ) |=
9 |) = , 9
-(8
, |(8
-5 )
-8 ,
|(
20 56
8113
3 39
.4
)| =9
- 5
|(- 8,
(-8, -5)
4.3
n
Example: Dot product in R
The dot product of u (u1 , u 2 , , u n ) andv (v1 , vreturns
2 , , avn )
scalar quantity
u v u1v1 u2v2 un vn (u v is a real number)
( The dot product is defined as the sum of component-by-component
multiplications )
u v , w u, w (Additivity
v , w Axiom)
u , v u (Homogeneity
, v Axiom)
v, v 0 &v, v iff 0v = 0 (Positivity Axiom)
A real vector space with an inner product is called a real inner
product space.
4.5
Norm and distance:
If V is a real inner product space, then the norm (or length) of a
v is defined by
vector v in V is denoted by and v . v,v
The distance between two vectors is denoted by d(u, v) and is
d by
defined (u , v ) u. v
A vector of norm 1 is called a unit vector.
Theorem:
If u and v are vectors in a real inner product space V, and if k is a
scalar, then:
v 0
&v 0 if and only if v = 0.
k v
k v
du , v d v , u
du , v 0 & d ifvand if0 u = v.
, u only
4.6
Example: Euclidean or Standard inner product on Rn
u, v (Symmetry
v , u Axiom)
u , v u1v1 u2 v2 un vn
v1u1 v2u2 vn un v , u
u v, w u ,(Additivity
w Axiom)v, w
u v , w u1 v1 w1 u2 v2 w2 un vn wn
u1w1 v1w1 u2 w2 v2 w2 un wn vn wn
u1w1 u 2 w2 un wn v1w1 v2 w2 vn wn
u, w v, w
4.7
u, v u , v Axiom)
(Homogeneity
u , v u1v1 u2 v2 un vn
u1v1 u2 v2 un vn
u , v
v, v
& 0 viff, vv = 0(Positivity
0 Axiom)
u , u 0 u12 u 22 un2 0
u1 u2 un 0
4.8
Finding the inner product of two vectors
4.10
Example: Weighted inner product on Rn
v, v
& 0 viff, vv = 0(Positivity
0 Axiom)
4.12
Finding the inner product of two vectors in the inner product space
Rn with the weighted inner product
u , v 2u1v1 3u2 v2
u u, u 2(3)(3) 3(1)(1) 21
v v, v 2(0)(0) 3(2)(2) 12 2 3
4.13
1 6 , - 4 ) || = (8, 9)
- ( 8, 9) || = ||(-
| | (-8 , 5 )
( 8 , 9) ) = 6 4 1
, 5 ) , 2 3 . 6 .2 6
(-8, 5) d((-8 5 ) , ( 8 , 9)) = 9
d((-8, 1 1
16.492 = 0 4
||(-8 9 )|| 1 2.
, 5) ,
|| = | | (8
) || =
||(-8 14. , 9
, 5) 247 ||(8
|| =
9.4
33
4.14
u 16
2 2
u 2u 3u
1 2 16
4.15
n
Example: Inner product on R generated by a matrix
n
( Any vector of R can be viewed as a column matrix )
Finding the inner product of two vectors in the inner product space
1 0
Rn with the inner product generated by the matrix
T 1 1
1 0 1 0
u , v u v
1 1 1 1
The inner product of u = (3, 1) and v = (0, 2) is
4.16
T T
1 0 3 1 0 0 3 0 0
u , v 3 4 12
1 1 1 1 1 2 4 2 2
T T
1 0 3 1 0 3 3 3
u 25 5
1 1 1 1 1 1 4 4
T T
1 0 0 1 0 0 0 0
v 4 2
1 1 2 1 1 2 2 2
T
1 0 3 1 0 3
d (u, v) u v (3,1)
1 1 1 1 1 1
T
3 3
9 4 13
2 2
4.17
Example: Standard inner products on Mn
tr V
T
U
V, U
uv1nn1 uv2nn2 vunnnn unv1n1
u nv2n 2 uvnnnn
u11 u 21 u n1 v11 v12 v1n
u12 u 22 u n 2 v21 v22 v2 n
tr
u1n u 2 n u nn vn1 vn 2 vnn
4.18
u v, w u ,(Additivity
w Axiom)v, w
U V, W tr U V W
T
tr UT V T W
tr U T
W V W T
U, W V , W
k u, v (Homogeneity
k u , v Axiom)
kU, V tr kU V T
tr k U V
T
k U, V
4.19
v, v
& 0 viff, vv = 0(Positivity
0 Axiom)
u11 u 21 u n1 u11 u12 u1n
u12 u 22 u n 2 u 21 u 22 u 2 n
T
U , U tr U U tr
u1n u 2 n u nn u n1 u n 2 u nn
u112 u21
2
un21
tr
2 2 2
u1n u2n unn
T
u11 u12 u1n v11 v12 v1n
u 21 u 22 u2 n v21 v22 v2 n
T
U , V tr U V tr
u n1 u n 2 u nn v
n1 vn 2 vnn
u11v11 u12v12 u1n v1n u21v21 u 22v22
u1n v1n u nn vnn 4.20
Finding the inner product of two vectors in the inner product space
Mn with the standard inner product
2 3 1 2
The inner product ofu
and v is
4 1 0 1
2 3 1 2
T
T
U , V tr U V tr ( 2)(1) (3)(2) ( 4)(0) (1)(1)
4 1 0 1
9
T
2 3 2 3
U 2 2 3 2 4 2 12 30 5.477
4 1 4 1
T
1 2 1 2
V 6 2.449
0 1 0 1
T
1 1 1 1 1 1
d (u, v) u v 18 4.243
4 0 4 0 4 0
4.21
Example: Standard inner products on Pn
p( x) ( 2 )( 2 ) (1)(1) 5
q( x) (1)(1) (1)(1) 2
d p( x) , q( x) p( x) q( x) 2 x 2
0 0, 1 0, 2 0, 3 0, , n 0
p ( x ) , q ( x ) p ( x0 ) q ( x0 ) p ( x1 ) q ( x1 ) p ( x n ) q ( x n )
This inner product is called evaluation inner product on Pn.
4.23
Example: Not a inner products
The function of two vectors p(x) and q(x) in Pn defined
by p ( x ) , q ( x ) p1q1 p 2 q 2 p n q n
p( x) , p( x) 0
For, p(x) = 1
2 2
u
1 1
For,
2 1 2 2 5 5
U, V det 0
2 1 1 1 5 5
4.24
Exercise:
U , V det U V
The function of two vectors U and V in Mn defined by
u (u1 , u 2 , , u n )
v (v1 , v2 , , vn )
The function of two vectors and
n
u , v maxu1v1 , u2 v2 , , un vn
in R defined by
4.25
Thank
You
4.26