Professional Documents
Culture Documents
Length:
The length of a vector v (v1 , v2 ,, vn ) in Rn is given by
|| v || v12 v22
vn 2 ( || v || is a real number)
Ex 1:
(a) In R5, the length of v (0 , 2 , 1 , 4 , 2) is given by
|| v || 0 2 (2) 2 12 4 2 (2) 2 25 5
2
17
2
2
17
3
17
) is given by
17
2 2 3
|| v ||
1
17
17 17 17
(If the length of v is 1, then v is a unit vector)
R2 : e1 , e2 1,0 , 0,1
R3 : e1 , e2 , e3 1,0,0 , 0,1,0 , 0,0,1
Rn : e1 , e2 ,
, en 1,0,
,0 , 0,1,
,0 , 0,0,
,1
Pf:
v (v1 , v2 , , vn )
cv (cv1 , cv2 , , cvn )
| c | v1 v2 vn
2
| c | || v ||
1
0
v
1
If u
v (u has the same direction as v)
v
v
|| u ||
|| v ||
|| cv || | c | || v ||
1
|| v || 1 (u has length 1)
|| v ||
Notes:
(1) The vector
v
is called the unit vector in the direction of v
|| v ||
v
(3 , 1 , 2)
1
(3 , 1 , 2)
2
2
2
|| v ||
14
3 (1) 2
1
2
3
,
,
14 14 14
2
14
3 1 2
14
14 14 14
v
is a unit vector
v
Properties of distance
(1) d (u , v) 0
u v u1v1 u2v2
(4) v v || v || 2
(5) v v 0 ,
v0
The proofs of the above properties follow easily from the definition
of dot product
Euclidean n-space:
n
R was defined to be the set of all order n-tuples of real
numbers
n
When R is combined with the standard operations of
vector addition, scalar multiplication, vector length,
and dot product, the resulting vector space is called
Euclidean n-space
u (2 , 2) , v (5 , 8), w (4 , 3)
(a) u v
(e) u ( v 2w)
Sol:
(a ) u v (2)(5) (2)(8) 6
u v 1, u u 11, v v 5
u v 1 1
u v u u v v 11 5 55
uv u v
v u v u 2 v u cos
2
v u (u1 v1 ) 2 (u2 v2 ) 2
2
v v12 v22
2
u u12 u22
2
u1v1 u2 v2
uv
cos
v u
v u
uv
cos
, 0
|| u || || v ||
Opposite
direction
u v 0
u v 0
2
2
cos 1 cos 0 cos 0
u v 0
Same
direction
2
cos 0 cos 1
Note:
The angle between the zero vector and another vector is
not defined (since the denominator cannot be zero)
u (4 , 0 , 2 , 2) v (2 , 0 , 1 , 1)
Sol:
u u u
42 02 22 22
24
v v v 22 0 1 12 6
2
uv
12
12
cos
1
|| u || || v ||
24 6
144
Orthogonal vectors:
Two vectors u and v in Rn are orthogonal (perpendicular) if
uv 0
Note:
The vector 0 is said to be orthogonal to every vector
u (4 , 2) Let v (v1 , v2 )
u v (4 , 2) (v1 , v2 )
4v1 2v2
0
t
v1
, v2 t
2
t
v ,t , t R
2
u (u v) v (u v) u u 2(u v) v v
|| u || 2 2(u v) || v || 2 || u || 2 2 | u v | || v || 2 (c |c|)
|| u || 2 2 || u || || v || || v || 2 (Cauchy-Schawrz inequality)
(|| u || || v ||) 2
|| u v || || u || || v ||
Note:
Equality occurs in the triangle inequality if and only if
the vectors u and v have the same direction (in this
situation, cos = 1 and thus u v u v )
|| u v || || u || || v ||
2
The geometric meaning: for any right triangle, the sum of the squares of the
lengths of two legs equals the square of the length of the hypotenuse.
|| u v || || u || || v ||
5.23
u n
v1
v
v 2
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
(The result of the dot product of u and v is the same as the result
of the matrix multiplication of uT and v)
u , v
(4)v , v 0 and v , v 0
if and only if
v0
Note:
u (u1 , u2 ,, un ) , v (v1 , v2 ,, vn )
u , v u v u1v1 u2v2 unvn
By Theorem3, this dot product satisfies the required four axioms.
Thus, the dot product can be a kind of inner product in Rn
u , v u1v1 2u 2 v2
Sol:
(1) u , v u1v1 2u2v2 v1u1 2v2u2 v , u
(2) w ( w1 , w2 )
Let v (1 , 2 , 1)
Then v v (1)(1) 2(2)(2) (1)(1) 6 0
Norm (length) of u:
|| u || u , u
Normalizing vectors
(1) If || v || 1 , then v is called a unit vector
(2)
Normalizing
v 0
v
v
For p a0 a1 x an x n and q b0 b1 x bn x n ,
and
p , q a0b0 a1b1
Let p( x) 1 2 x 2 , q( x) 4 2 x x 2 be polynomials in P2
(a) p , q ?
Sol:
(b) || q || ?
(c) d ( p , q) ?
q , q 42 (2)2 12 21
p q 3 2 x 3x 2
d ( p , q) || p q || p q, p q
(3)2 22 (3)2 22
(1) || u || 0
(2) || u || 0 if and only if u 0
(3) || cu || | c | || u ||
(3) d (u , v) d ( v , u)
Theorem 8
Let u and v be vectors in an inner product space V
(1) Cauchy-Schwarz inequality:
| u , v| || u || || v ||
Theorem 4
|| u v || || u || || v ||
Theorem 5
|| u v || 2 || u || 2 || v || 2
Theorem 6
projv u av, a 0
uv
v
uv
vv
|| u || || v ||
uv
projv u
v
vv
u , v
v , v
d (u, cv )
d (u, projv u)
projv u
cv
Orthogonal set:
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
v i , v j 0, for i j
Orthonormal set:
An orthogonal set in which each vector is a unit vector is
called orthonormal set
S v1 , v 2 , , v n V
For i j, v i , v j v i , v i v i
For i j , v i , v j 0
Note:
If S is also a basis, then it is called an orthogonal basis or
an orthonormal basis
n
The standard basis for R is orthonormal. For example,
S (1,0,0),(0,1,0),(0,0,1)
is an orthonormal basis for R3
S
,
, 0 ,
2
2
v2
2
2 2 2
6 , 6 , 3 ,
v3
2 1
2
,
3 3
3
Sol:
First, show that the three vectors are mutually orthogonal
v1 v 2 16 16 0 0
v1 v 3
2
3 2
2
3 2
00
2
2 2 2
v 2 v3
0
9
9
9
12 0 1
1
2
|| v 2 || v 2 v 2
2
36
|| v 3 || v 3 v 3
4
9
2
36
8
9
94
1
9
v1 1 0 x 0 x 2 ,
v2 0 x 0x2 ,
v3 0 0 x x 2 ,
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
11 0 0 0 0 1
v1
v1 , v1
v2
v2 , v2
0 0 11 0 0 1
v3
v3 , v3
0 0 0 0 11 1
For c1v1 c2 v 2
cn v n 0
c1v1 c2 v 2
cn v n , vi 0, v i 0
c1 v1 , v i c2 v 2 , v i ci v i , v i cn v n , v i
ci v i , v i 0
vi , vi 0
ci 0 i S is linearly independent
Sol:
v1 , v 2 , v3 , v 4 : nonzero vectors
v1 v 2 2 0 0 2 0
v 2 v 3 1 0 0 1 0
v1 v 3 2 0 4 2 0
v 2 v 4 1 0 0 1 0
v1 v 4 2 6 2 2 0
v3 v 4 1 0 2 1 0
S is orthogonal
S is a basis for R 4 (by Corollary to Theorem 10)
The corollary to Thm. 5.10 shows an advantage of introducing the concept of
orthogonal vectors, i.e., it is not necessary to solve linear systems to test
whether S is a basis (e.g., Ex 2 in Section 4.5) if S is a set of orthogonal vectors
w w, v1 v1 w, v 2 v 2
w, v n v n
Pf:
B {v1 , v 2 , , v n }
1
Since vi , v j
0
i j
, then
i j
w, v i (k1 v1 k2 v 2
k1 v1 , v i
ki
kn v n ), v i
ki v i , v i
kn v n , v i
for i = 1 to n
w w, v1 v1 w, v 2 v 2 w, v n v n
Note:
If B {v1 , v 2 , , v n } is an orthonormal basis for V and w V ,
w B
w , v1
w , v
2
w , v n
Ex
For w = (5, 5, 2), find its coordinates relative to the standard
basis for R3
w, v1 w v1 (5 , 5 , 2) (1 , 0 , 0) 5
w, v 2 w v 2 (5, 5 , 2) (0 , 1 , 0) 5
w, v 3 w v 3 (5 , 5 , 2) (0 , 0 , 1) 2
5
[w ]B 5
2
In fact, it is not necessary to use Thm. 5.11 to find the coordinates relative
to the standard basis, because we know that the coordinates of a vector
relative to the standard basis are the same as the components of that vector
The advantage of the orthonormal basis emerges when we try to find the
coordinate matrix of a vector relative to an nonstandard orthonormal basis
(see the next slide)
v2
v3
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
v2
w2
w1 v1
v2
v1
v1 , v 2 is a basis for R 2
projw1 v 2
w 2 v 2 projw1 v 2 is
orthogonal to w1 v1
w1 w 2
{
,
} is an orthonormal basis for R 2
w1 w 2
Let w1 v1
v 2 , w1
w 2 v 2 projS1 v 2 v 2
w1
w1 , w1
w 3 v3 projS2 v3 v3
v3 , w1
w1 , w1
w1
S1 span({w 1 })
S 2 span({w 1 , w 2 })
v3 , w 2
w2 , w2
w2
n 1
w n v n projSn1 v n v n
v1
B {(1 , 1 , 0) ,
v2
(1 , 2 , 0) ,
v3
(0 , 1 , 2)}
Sol:
w1 v1 (1 , 1 , 0)
v 2 w1
3
1 1
w2 v2
w1 (1 , 2 , 0) (1 , 1 , 0) ( , , 0)
w1 w1
2
2 2
v 3 w1
v3 w 2
w3 v3
w1
w2
w1 w1
w2 w2
1
1/ 2 1 1
(0 , 1 , 2) (1 , 1 , 0)
( , , 0) (0 , 0 , 2)
2
1/ 2 2 2
Orthogonal basis
1 1
B' {w1 , w 2 , w 3} {(1, 1, 0), ( , , 0), (0, 0, 2)}
2 2
Orthonormal basis
w1 w 2 w 3
1 1
1 1
B' ' {
,
,
} {(
,
, 0), (
,
, 0), (0, 0, 1)}
w1 w 2 w 3
2 2
2 2
Sol:
1 1 0 7 0
2 1 2 6 0
G.-J.E
1 0 2 1 0
0 1 2 8 0
x1 2s t
2 1
x 2s 8t
2 8
s t
2
x3 s
1 0
x
t
0 1
4
w1 v1 and u1
w1 1
2 2 1
2, 2, 1, 0 , , , 0
w1 3
3 3 3
w 2 v 2 v 2 , u1 u1 (due to w 2 v 2
v 2 , u1
u1 and u1 , u1 1)
u1 , u1
2 2 1 2 2 1
1, 8, 0, 1 1, 8, 0, 1 , , , 0 , , , 0
3 3 3 3 3 3
w2
1
u2
3, 4, 2, 1
w2
30
2 2 1 3 4
2
1
B' '
, , ,0 ,
,
,
,
3 3 3 30 30 30 30
product space V
w
v
u1 1 1
w1
v1
w2
u2
, where w 2 v 2 v 2 , u1 u1
w2
w3
u3
, where w 3 v 3 v 3 , u1 u1 v 3 , u 2 u 2
w3
n 1
wn
un
, where w n v n v n , u i u i
wn
i 1
{u1 , u 2 ,