3.2 Norm, Dot Product, Distance
3.2 Norm, Dot Product, Distance
Definition
If u = (u1 , u2 , . . . , un ) and v = (v1 , v2 , . . . , vn ) then the dot
product u • v of u and v is defined by
u • v = u1 v1 + u2 v2 + . . . + un vn
Take note:
To be able to take the dot product of two vectors u and v ,
the vectors u and v must have the same number of
components.
The dot product u • v is a number, not a vector.
The dot product of vectors u and v can be viewed as
matrix multiplication: u • v = u T v = v T u.
Definition
If u = (u1 , u2 , . . . , un ) and v = (v1 , v2 , . . . , vn ) then the dot
product u • v of u and v is defined by
u • v = u1 v1 + u2 v2 + . . . + un vn
Take note:
To be able to take the dot product of two vectors u and v ,
the vectors u and v must have the same number of
components.
The dot product u • v is a number, not a vector.
The dot product of vectors u and v can be viewed as
matrix multiplication: u • v = u T v = v T u.
Definition
If u = (u1 , u2 , . . . , un ) and v = (v1 , v2 , . . . , vn ) then the dot
product u • v of u and v is defined by
u • v = u1 v1 + u2 v2 + . . . + un vn
Take note:
To be able to take the dot product of two vectors u and v ,
the vectors u and v must have the same number of
components.
The dot product u • v is a number, not a vector.
The dot product of vectors u and v can be viewed as
matrix multiplication: u • v = u T v = v T u.
Definition
If u = (u1 , u2 , . . . , un ) and v = (v1 , v2 , . . . , vn ) then the dot
product u • v of u and v is defined by
u • v = u1 v1 + u2 v2 + . . . + un vn
Take note:
To be able to take the dot product of two vectors u and v ,
the vectors u and v must have the same number of
components.
The dot product u • v is a number, not a vector.
The dot product of vectors u and v can be viewed as
matrix multiplication: u • v = u T v = v T u.
Definition
The length (or norm) of a vector
v = (v1 , v2 , . . . , vn )
Definition
The length (or norm) of a vector
v = (v1 , v2 , . . . , vn )
Example
Find ||u|| if
√
1 u = (−1, 6) 37
√
2 u = (3, 0, −2) 13
Example
Find ||u|| if
√
1 u = (−1, 6) 37
√
2 u = (3, 0, −2) 13
Example
Find ||u|| if
√
1 u = (−1, 6) 37
√
2 u = (3, 0, −2) 13
Example
Find ||u|| if
√
1 u = (−1, 6) 37
√
2 u = (3, 0, −2) 13
Definition
A vector of length 1 is called a unit vector.
Finding a unit vector in the same direction as a vector is called
normalizing a vector. This is done by factoring a vector by its
length i.e. kv1k v
Example
1 Give a unit vector in the direction of u if u = (1, 0, 3, 4).
√1 (1, 0, 3, 4)
26
2 Give a unit vector that is oppositely directed to u if
u = (−1, 2, 0, 3).
− √114 (−1, 2, 0, 3)
3 Give a unit vector in the direction of u if
u = (4, −2, 1)
Definition
A vector of length 1 is called a unit vector.
Finding a unit vector in the same direction as a vector is called
normalizing a vector. This is done by factoring a vector by its
length i.e. kv1k v
Example
1 Give a unit vector in the direction of u if u = (1, 0, 3, 4).
√1 (1, 0, 3, 4)
26
2 Give a unit vector that is oppositely directed to u if
u = (−1, 2, 0, 3).
− √114 (−1, 2, 0, 3)
3 Give a unit vector in the direction of u if
u = (4, −2, 1)
Definition
A vector of length 1 is called a unit vector.
Finding a unit vector in the same direction as a vector is called
normalizing a vector. This is done by factoring a vector by its
length i.e. kv1k v
Example
1 Give a unit vector in the direction of u if u = (1, 0, 3, 4).
√1 (1, 0, 3, 4)
26
2 Give a unit vector that is oppositely directed to u if
u = (−1, 2, 0, 3).
− √114 (−1, 2, 0, 3)
3 Give a unit vector in the direction of u if
u = (4, −2, 1)
Definition
A vector of length 1 is called a unit vector.
Finding a unit vector in the same direction as a vector is called
normalizing a vector. This is done by factoring a vector by its
length i.e. kv1k v
Example
1 Give a unit vector in the direction of u if u = (1, 0, 3, 4).
√1 (1, 0, 3, 4)
26
2 Give a unit vector that is oppositely directed to u if
u = (−1, 2, 0, 3).
− √114 (−1, 2, 0, 3)
3 Give a unit vector in the direction of u if
u = (4, −2, 1)
Definition
A vector of length 1 is called a unit vector.
Finding a unit vector in the same direction as a vector is called
normalizing a vector. This is done by factoring a vector by its
length i.e. kv1k v
Example
1 Give a unit vector in the direction of u if u = (1, 0, 3, 4).
√1 (1, 0, 3, 4)
26
2 Give a unit vector that is oppositely directed to u if
u = (−1, 2, 0, 3).
− √114 (−1, 2, 0, 3)
3 Give a unit vector in the direction of u if
u = (4, −2, 1)
v = (v1 , v2 , v3 )
= v1 (1, 0, 0) + v2 (0, 1, 0) + v3 (0, 0, 1)
= v1 i + v2 j + v3 k .
v = (v1 , v2 , v3 )
= v1 (1, 0, 0) + v2 (0, 1, 0) + v3 (0, 0, 1)
= v1 i + v2 j + v3 k .
v = (v1 , v2 , v3 )
= v1 (1, 0, 0) + v2 (0, 1, 0) + v3 (0, 0, 1)
= v1 i + v2 j + v3 k .
|u • v | ≤ ||u||||v ||
Example
Is it possible to have ||u + v || = ||u|| + ||v ||? Explain your
reasoning.
Yes, for example u or v could be 0.
|u • v | ≤ ||u||||v ||
Example
Is it possible to have ||u + v || = ||u|| + ||v ||? Explain your
reasoning.
Yes, for example u or v could be 0.
|u • v | ≤ ||u||||v ||
Example
Is it possible to have ||u + v || = ||u|| + ||v ||? Explain your
reasoning.
Yes, for example u or v could be 0.
|u • v | ≤ ||u||||v ||
Example
Is it possible to have ||u + v || = ||u|| + ||v ||? Explain your
reasoning.
Yes, for example u or v could be 0.
1 1
u•v = ||u + v ||2 − ||u − v ||2
4 4
1 1
u•v = ||u + v ||2 − ||u − v ||2
4 4
Definition
The distance d(u, v ) between vectors u and v in Rn is defined
by
d(u, v ) = ||u − v ||
Example
1 Find the distance between u = (−3, 2) and v = (−1, 4).
√
2 2
2 Find the distance between u = (1, 2, 3) and v = (2, 3, 1).
√
6
Definition
The distance d(u, v ) between vectors u and v in Rn is defined
by
d(u, v ) = ||u − v ||
Example
1 Find the distance between u = (−3, 2) and v = (−1, 4).
√
2 2
2 Find the distance between u = (1, 2, 3) and v = (2, 3, 1).
√
6
Definition
The distance d(u, v ) between vectors u and v in Rn is defined
by
d(u, v ) = ||u − v ||
Example
1 Find the distance between u = (−3, 2) and v = (−1, 4).
√
2 2
2 Find the distance between u = (1, 2, 3) and v = (2, 3, 1).
√
6
Definition
The distance d(u, v ) between vectors u and v in Rn is defined
by
d(u, v ) = ||u − v ||
Example
1 Find the distance between u = (−3, 2) and v = (−1, 4).
√
2 2
2 Find the distance between u = (1, 2, 3) and v = (2, 3, 1).
√
6
Definition
The distance d(u, v ) between vectors u and v in Rn is defined
by
d(u, v ) = ||u − v ||
Example
1 Find the distance between u = (−3, 2) and v = (−1, 4).
√
2 2
2 Find the distance between u = (1, 2, 3) and v = (2, 3, 1).
√
6
Example
Find the distance between u = (−3, 2, 0) and v = (−1, 4, 1).
Example
Find the distance between u = (−3, 2, 0) and v = (−1, 4, 1).
Example
Find the distance between u = (−3, 2, 0) and v = (−1, 4, 1).
Example
Find the distance between u = (−3, 2, 0) and v = (−1, 4, 1).
Definition
For nonzero vectors u and v in Rn ,
u•v
cos θ =
||u||||v ||
Example
Find the angle between u = (3, 0) and v = (−2, 2).
θ = 43 π
Definition
For nonzero vectors u and v in Rn ,
u•v
cos θ =
||u||||v ||
Example
Find the angle between u = (3, 0) and v = (−2, 2).
θ = 34 π
Definition
For nonzero vectors u and v in Rn ,
u•v
cos θ =
||u||||v ||
Example
Find the angle between u = (3, 0) and v = (−2, 2).
θ = 34 π
u • v = u T v = v T u.
Moreover, if A is an n × n matrix and u and v are n × 1 vectors
then
Au • v = v T (Au) = u • AT v
and
u • Av = (Av )T u = AT u • v .