[Linear Algebra] Vector Norm, Orthogonal Vectors
Vector Norm
- For v∈Rn with entries v1,⋯,vn, the square root of v⋅v is defined because v⋅v is non-negative
- The length (or norm) of v is the non-negative scalar ∥∥∥v∥∥∥ defined as the square root of v⋅v
- ∥∥∥v∥∥∥=v⋅v=v12+v22+⋯+vn2 and ∥∥∥v∥∥∥2=v⋅v
Geometric Meaning of Vector Norm
- ∥∥∥v∥∥∥ is the length of the line segment from the origin to v
- For any scalar c, the length cv is ∣∣∣c∣∣∣ times the length of v
- ∥∥∥cv∥∥∥=∣∣∣c∣∣∣∥∥∥v∥∥∥
Unit Vector
- A vector whose length is 1 is called a unit vector
- Normalizing a vector : given a non-zero vector v, divide it by its length and we obtain a unit vector u=∥v∥1v
- u is in the same direction as v, but its length is 1
Distance between Vectors in Rn
- Definition : for u and v in Rn, the distance between u and v, written as dist(u,v), is the length of the vector u−v
- dist(u,v)=∥∥∥u−v∥∥∥
- The distance from u to v is the same as the distance from u−v to 0
Inner Product and Angle between Vectors
- Inner product between u and v can be rewritten using their norms and angle
- u⋅v=∥∥∥u∥∥∥∥∥∥v∥∥∥cosθ
Orthogonal Vectors
- Definition : u∈Rn and v∈Rn are orthogonal (to each other) if u⋅v=0
- That is, u⋅v=∥∥∥u∥∥∥∥∥∥v∥∥∥cosθ=0
- u and v are perpendicular each other