Lecture2 Vectors
Lecture2 Vectors
Equality
a b
a b
Zero Vector
2
a = (xa, ya)
• a−b
b = (xb, yb)
3
Example
Given a vector u = (u1, u2, . . . , un) in Rn, Determine the length of the vector
the length or norm of u is defined as u = (2, 3, −1)
√ √
|u| = u·u= u1u1 + u2u2 + · · · + unun
and
|u|2 = u · u
6
A unit vector û is a vector with the same Find a unit vector in the direction of
direction as u, but with a length of 1 u = (2, 3, −1)
u
û =
|u|
7
Example
Orthogonality Example
If two vectors u and v are orthogonal Show that the vectors u = (1, 1, 5) and
(perpendicular) v = (2, 3, −1) are orthogonal
v
1
(1 )
then θ = 2 π, and cos 2 π = 0.
Hence,
u·v =0
10
Example
Orthogonal Projection
P v S R
−→
Write the vector u = P Q as the sum of two
vectors:
−→
• P S that is parallel to v
−→
• SQ that is perpendicular to v
12