Professional Documents
Culture Documents
u v u1 v1 u 2 v 2 u n v n
|| 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)
A standard unit vector in Rn:
e1 , e 2 ,, e n 1,0,,0, 0,1,,0, 0,0,,1
Ex:
the standard unit vector in R2: i, j 1,0, 0,1
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
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 1 2 3
The angle between two vectors in Rn:
uv
cos , 0
|| u || || v ||
Opposite Same
uv 0 uv 0 uv 0 direction
direction
0 0
2 2 2
cos 1 cos 0 cos 1
cos 0 cos 0
Note:
The angle between the zero vector and another vector is
not defined.