Professional Documents
Culture Documents
INNER PRODUCT
SPACES
5.1 Length and Dot Product in Rn
5.2 Inner Product Spaces
5.3 Orthonormal Bases: Gram-Schmidt Process
5.4 Mathematical Models and Least Square Analysis
5.5 Applications of Inner Product Space
Work (p.248)
|| v || v1 v2 vn
2 2 2
|| v || 0 2 (2) 2 12 4 2 (2) 2 25 5
2 2 2
2 2 3 17
|| v || 1
17 17 17 17
(v is a unit vector)
c 2 (v1 v2 vn )
2 2 2
| c | v1 v2 vn
2 2 2
| c | || v ||
Elementary Linear Algebra: Section 5.1, p.233 6/101
Thm 5.2: (Unit vector in the direction of v)
v
If v is a nonzero vector in Rn, then the vector u
|| v ||
has length 1 and has the same direction as v. This vector u
is called the unit vector in the direction of v.
Pf:
1
v is nonzero v 0 0
v
1
u v (u has the same direction as v)
v
v 1
|| u || || v || 1 (u has length 1 )
|| v || || v ||
Elementary Linear Algebra: Section 5.1, p.233 7/101
Notes:
v
(1) The vector is called the unit vector in the direction of v.
|| v ||
(2) The process of finding the unit vector in the direction of v
is called normalizing the vector v.
v (3 , 1 , 2) 1 3 1 2
(3 , 1 , 2) , ,
|| v || 3 (1) 2
2 2 2
14 14 14 14
2 2 2
3 1 2 14
1
14 14 14 14
v
is a unit vector.
v
Elementary Linear Algebra: Section 5.1, p.233 9/101
Distance between two vectors:
The distance between two vectors u and v in Rn is
d (u , v) || u v ||
d (u , v) || u v || || (0 2 , 2 0 , 2 1) ||
(2) 2 2 2 12 3
u v u1v1 u 2 v 2 u n v n
u (2 , 2) , v (5 , 8), w (4 , 3)
(a) u v (b) (u v )w (c) u (2 v ) (d) || w || 2 (e) u ( v 2w )
Sol:
(a) u v (2)(5) (2)(8) 6
(b) (u v)w 6w 6(4 , 3) (24 , 18)
(c) u (2v) 2(u v) 2(6) 12
(d) || w ||2 w w (4)(4) (3)(3) 25
(e) v 2w (5 (8) , 8 6) (13 , 2)
u ( v 2w ) (2)(13) (2)( 2) 26 4 22
Sol:
(u 2 v) (3u v) u (3u v) 2 v (3u v)
u (3u) u v (2 v) (3u) (2 v) v
3(u u) u v 6( v u) 2( v v)
3(u u) 7(u v) 2( v v)
0 0
2 2 2
cos 1 cos 0 cos 0 cos 0 cos 1
Note:
The angle between the zero vector and another vector is
not defined.
v vv 2 2
0 1 12
2 2
6
u v (4)( 2) (0)(0) (2)( 1) (2)(1) 12
uv 12 12
cos 1
|| u || || v || 24 6 144
|| u v || || u || || v ||
Note:
Equality occurs in the triangle inequality if and only if
the vectors u and v have the same direction.
|| u v || 2 || u || 2 || v || 2
u1 v1
u v (A vector u (u1 , u2 , , un ) in Rn
u 2 v 2
is represented as an n×1 column matrix)
u n v n
v1
v
u v u T v [u1 u 2 u n ] 2 [u1v1 u 2 v 2 u n v n ]
v n
25/101
Keywords in Section 5.1
length: 長度
norm: 範數
unit vector: 單位向量
standard unit vector : 標準單位向量
normalizing: 單範化
distance: 距離
dot product: 點積
Euclidean n-space: 歐基里德n維空間
Cauchy-Schwarz inequality: 科西-舒瓦茲不等式
angle: 夾角
triangle inequality: 三角不等式
Pythagorean theorem: 畢氏定理
26/101
5.2 Inner Product Spaces
Inner product:
Let u, v, and w be vectors in a vector space V, and let c be
any scalar. An inner product on V is a function that associates
a real number <u, v> with each pair of vectors u and v and
satisfies the following axioms.
(1) 〈u , v〉〈v , u〉
(2) 〈u , v w〉〈u , v〉〈u , w〉
(3) c〈u , v〉〈cu , v〉
v〉 0
(4) 〈v ,and 〈v , ifv〉 0only if
and v0
Note:
A vector space V with an inner product is called an inner
product space.
Vector space: V , ,
Inner product space: V , , , ,
By Theorem 5.3, this dot product satisfies the required four axioms.
Thus it is an inner product on Rn.
〈v , v〉 0 v1 2v2 0 v1 v2 0 ( v 0)
2 2
|| u || 〈u , u〉
Note:
|| u ||2 〈u , u〉
Orthogonal: (u v )
v 0 v direction of v)
not a unit vector
Properties of distance:
(1) d (u , v) 0
(2) d (u , v) 0 if and only if u v
(3) d (u , v) d ( v , u)
|| u v || 2 || u || 2 || v || 2 Theorem 5.6
projvu u , v v
Sol:
u , v (6)(1) (2)( 2) (4)(0) 10
v , v 12 22 02 5
uv
projv u v 105 (1 , 2 , 0) (2 , 4 , 0)
vv
Note:
u projv u (6, 2, 4) (2, 4, 0) (4, 2, 4) is orthogonal to v (1,2,0).
u , v
d (u , projv u) d (u , cv) , c
v , v
42/101
Keywords in Section 5.2
inner product: 內積
inner product space: 內積空間
norm: 範數
distance: 距離
angle: 夾角
orthogonal: 正交
unit vector: 單位向量
normalizing: 單範化
Cauchy – Schwarz inequality: 科西 - 舒瓦茲不等式
triangle inequality: 三角不等式
Pythagorean theorem: 畢氏定理
orthogonal projection: 正交投影
43/101
5.3 Orthonormal Bases: Gram-Schmidt Process
Orthogonal:
A set S of vectors in an inner product space V is called an
orthogonal set if every pair of vectors in the set is orthogonal.
S v1 , v 2 ,, v n V
Orthonormal: vi , v j 0 i j
An orthogonal set in which each vector is a unit vector is
called orthonormal.
S v1 , v 2 , , v n V
1 i j
vi , v j
Note: 0 i j
If S is a basis, then it is called an orthogonal basis or an
orthonormal basis.
Elementary Linear Algebra: Section 5.3, p.254 44/101
Ex 1: (A nonstandard orthonormal basis for R3)
Show that the following set is an orthonormal basis.
v1 v2 v3
1 1 2 2 2 2 2 2 1
S , , 0 , ,
6 , 6 , 3 , 3
,
3 3
2 2
Sol:
Show that the three vectors are mutually orthogonal.
v1 v 2 16 16 0 0
2 2
v1 v 3 0 0
3 2 3 2
2 2 2 2
v 2 v3 0
9 9 9
|| v 1 || v 1 v1 1
2
12 0 1
|| v 2 || v 2 v 2 2
36
2
36
8
9
1
|| v 3 || v 3 v 3 4
9
94 1
9
1
Sol:
v1 1 0 x 0 x 2 , v2 0 x 0x2 , v3 0 0x x2 ,
Then
v1 , v 2 (1)(0) (0)(1) (0)(0) 0,
v1 , v 3 (1)(0) (0)(0) (0)(1) 0,
v 2 , v 3 (0)(0) (1)(0) (0)(1) 0
S is orthogonal .
S is a basis for R 4 (by Corollary to Theorem 5.10)
w V
w k1v1 k2 v 2 kn v n (unique representation)
B {v1 , v 2 , , v n } is orthonormal
1 i j
vi , v j
0 i j
Elementary Linear Algebra: Section 5.3, p.258 52/101
〈w , v i〉〈(k1 v1 k 2 v 2 k n v n ) , v i〉
k〈
1 v1 , v i〉 k〈
i v i , v i〉 k〈
n v n , v i〉
ki i
w w, v1 v1 w, v 2 v 2 w, v n v n
Note:
If B {v 1 , v 2 , , v n } is an orthonormal basis for V and w V ,
Then the corresponding coordinate matrix of w relative to B is
w, v1
w , v
w B 2
w , v
n
B {( 53 , 54 , 0) , ( 54 , 53 , 0) , (0 , 0 , 1)}
Sol:
w, v1 w v1 (5 , 5 , 2) ( 53 , 54 , 0) 1
w, v 2 w v 2 (5, 5 , 2) ( 54 , 53 , 0) 7
w, v 3 w v 3 (5 , 5 , 2) (0 , 0 , 1) 2
1
[w ]B 7
2
Sol: v1 u1 (1 , 1 , 0)
u 2 v1 3 1 1
v2 u2 v1 (1 , 2 , 0) (1 , 1 , 0) ( , , 0)
v1 v1 2 2 2
u 3 v1 u3 v 2
v3 u3 v1 v2
v1 v1 v2 v2
1 1/ 2 1 1
(0 , 1 , 2) (1 , 1 , 0) ( , , 0) (0 , 0 , 2)
2 1/ 2 2 2
Elementary Linear Algebra: Section 5.3, p.260 56/101
Orthogonal basis
1 1
B' {v1 , v 2 , v 3} {(1, 1, 0), ( , , 0), (0, 0, 2)}
2 2
Orthonormal basis
v1 v 2 v 3 1 1 1 1
B' ' { , , } {( , , 0), ( , , 0), (0, 0, 1)}
v1 v 2 v 3 2 2 2 2
v1 u1 2, 2, 1, 0
u 2 , v1 18
v2 u2 v1 1, 8, 0, 1 2, 2, 1, 0
v1 , v1 9
3, 4, 2, 1
B' 2,2,1,0 3,4,2,1 (orthogonal basis)
2 2 1 3 4 2 1
B' ' , , ,0 , , , ,
3 3 3 30 30 30 30
(orthonormal basis)
60/101
Keywords in Section 5.3
orthogonal set: 正交集合
orthonormal set: 單範正交集合
orthogonal basis: 正交基底
orthonormal basis: 單範正交基底
linear independent: 線性獨立
Gram-Schmidt Process: Gram-Schmidt過程
61/101
5.4 Mathematical Models and Least Squares Analysis
Orthogonal subspaces:
The subspaces W1 and W2 of an inner product space V are orthogonal
if v1 , v 2 0 for all v1 in W1 and all v 2 in W2 .
Ex 2: (Orthogonal subspaces)
The subspaces
1 1 - 1
W1 span( 0, 1 ) and W2 span( 1 )
1 0 1
are orthogonal because v1 , v 2 0 for any vector in W1 and any vector in W2 is zero .
W {v V | v , w 0 , w W }
Ex:
If V R 2 , W x axis
Then (1) W y - axis is a subspace of R 2
(2) W W (0,0)
(3) (W ) W
) 1,0,0 (1, , )
6 3 1 9 3
(0, ,
10 10 10 5 5
Elementary Linear Algebra: Section 5.4, p.269 67/101
Find by the other method:
A w1 , w 2 , b v
Ax b
x ( AT A) 1 AT b
projcs ( A)b Ax A( AT A) 1 AT b
|| v projW v || || v w ||
or || v projW v || min
wW
|| v w ||
( v projW v) (projW v w)
w projW v projW v w 0
|| v w ||2 || v projW v ||2
|| v projW v |||| v w ||
Check:
(CS ( A)) NS ( A )
(CS ( A )) NS ( A)
CS ( A) NS ( AT ) R 4
CS ( AT ) NS ( A) R3
x1 2 s t 2 1
x s 1 0
1 2 1 0
A
2 s t
0 0 0 1 x3 t 0 1
x 0 0 0
4
2,1,0,0 1,0,1,0 is a basis for W
Notes:
(1) dim(W ) dim(W ) dim( R 4 )
(2) W W R 4
Elementary Linear Algebra: Section 5.4, p.267 76/101
Least squares problem:
Ax b (A system of linear equations)
m n n 1 m 1
(2) When the system is inconsistent, how to find the “best possible”
solution of the system. That is, the value of x for which the
difference between Ax and b is small.
b CS ( A) ( Ax b is an inconsiste nt system )
Let Axˆ projCS ( A ) b
(b Axˆ ) CS ( A)
b Axˆ (CS ( A)) NS ( A )
A (b Axˆ ) 0
i.e. A Axˆ A b (the normal system associated with Ax = b)
53
x̂ 3
2
1 1 5 61
3 8
projCS ( A ) b Ax 1 2 3 6
ˆ
1 3 176
2
84/101
Keywords in Section 5.4
orthogonal to W: 正交於W
orthogonal complement: 正交補集
direct sum: 直和
projection onto a subspace: 在子空間的投影
fundamental subspaces: 基本子空間
least squares problem: 最小平方問題
normal equations: 一般方程式
85/101
5.5 Applications of Inner Product Spaces
u2 u3 u1 u3 u1 u2
u v i j k
v2 v3 v1 v3 v1 v2
(u2v3 u3v2 )i (u1v3 u3v1 ) j (u1v2 u2v1 )k
Notes:
(1) The cross product is defined only for vectors in R3.
(2) The cross product of two vectors in R3 is orthogonal to two vectors.
(3) The cross product of two vectors in Rn, n ≠ 3 is not defined here.
Elementary Linear Algebra: Section 5.5, p.277 87/101
Ex 1: (Finding the Cross Product of Two Vectors)
u i 2j k v 3i j 2k
Sol:
i j k
2 1 1 1 1 2
u v 1 2 1 i j k 3i 5 j 7k
1 2 3 2 3 1
3 1 2
i j k
1 2 3 2 3 1
vu 3 1 2 i j k 3i 5 j 7k
2 1 1 1 1 2
1 2 1
i j k
1 2 3 2 3 1
v v 3 1 2 i j k 0i 0 j 0k 0
1 2 3 2 3 1
2 1 2
Elementary Linear Algebra: Section 5.5, p.278 88/101
Thm 5.17: (Algebraic Properties of the Cross Product)
If u, v, and w are vectors in R3 and c is a scalar, then the following
properties are true.
1. u v ( v u )
2. u ( v w ) (u v) (u w )
3. c(u v ) cu v u cv
4. u 0 0 u 0
5. u u 0
6. u ( v w ) (u v ) w
i j k
v u v1 v2 v3 (v2u3 v3u2 )i (v1u3 v3u1 ) j (v1u2 v2u1 )k
u1 u2 u3
(u2v3 u3v2 )i (u1v3 u3v1 ) j (u1v2 u2v1 )k
( v u )
Note:
The vectors u × v and v × u have equal lengths but
opposite directions.
Elementary Linear Algebra: Section 5.5, p.278-279 90/101
Thm 5.18: (Geometric Properties of the Cross Product)
Area u v sin u v
Notes:
(1) The three vectors u, v, and u × v form a right-handed
system.
(2) The three vectors u, v, and v × u form a left-handed system.
Elementary Linear Algebra: Section 5.5, p.279 92/101
Ex 2: (Finding a Vector Orthogonal to Two Given Vectors)
u i 4j k v 2i 3j
Sol: i j k
u v 1 4 1 3i 2 j 11k
length 2 3 0
u v (3)2 22 112 134
unit vector
u v 3 2 11
i j k
u v 134 134 134
3 2 11
( , , ) (1, 4, 1) 0
134 134 134
3 2 11
( , , ) (2, 3, 0) 0
134 134 134
Elementary Linear Algebra: Section 5.5, p.280 93/101
Ex 3: (Finding the Area of a Parallelogram)
u 3i 4 j k v 2 j 6k
Sol:
i j k
u v 3 4 1 26i 18 j 6k
0 2 6
area
u v 262 182 6 2
1036 32.19
95/101
Keywords in Section 5.5
cross product: 外積
parallelogram: 平行四邊形
96/101
5.1 Linear Algebra Applied
Electric/Magnetic Flux
=F AB
where AB represents the directed line segment from A
to B. The quantity (cos ) F is the length of the
orthogonal projection of F onto AB Orthogonal
projections are discussed on the next page.
M AB F
where AB represents the vector whose initial point is
A and whose terminal point is B. The magnitude of the
moment M measures the tendency of AB to rotate
counterclockwise about an axis directed along the
vector M.