Section 1.2: Dot Product and Norms
Dot Product (Scalar Product)
The dot product of two vectors u=[u1,u2,…,un] and v=[v1,v2,…,vn] in Rn is defined as:
u⋅v=i=1∑nuivi=u1v1+u2v2+⋯+unvn.
Key Properties:
- Commutative: u⋅v=v⋅u
- Distributive: u⋅(v+w)=u⋅v+u⋅w
- Bilinearity: Scalars factor out: (cu)⋅v=c(u⋅v)
- Relation to Angles: u⋅v=∥u∥∥v∥cosθ, where θ is the angle between u and v.
Geometric Insight:
- Orthogonality: u⋅v=0 if and only if u and v are perpendicular (when u,v=0).
- Projections: The projection of u onto v is projvu=(v⋅vu⋅v)v.
Vector Norms
A norm measures a vector’s magnitude. The Euclidean norm (ℓ2-norm) is derived from the dot product:
∥u∥2=u⋅u=u12+u22+⋯+un2.
Other Common Norms:
- ℓ1-norm (Manhattan norm): ∥u∥1=∣u1∣+∣u2∣+⋯+∣un∣
- ℓ∞-norm (Maximum norm): ∥u∥∞=max(∣u1∣,∣u2∣,…,∣un∣)
Properties of Norms:
- ∥u∥≥0, and ∥u∥=0 iff u=0.
- ∥cu∥=∣c∣⋅∥u∥ for any scalar c.
- Triangle Inequality: ∥u+v∥≤∥u∥+∥v∥.
Key Inequalities
- Cauchy-Schwarz Inequality:
∣u⋅v∣≤∥u∥2∥v∥2.
Equality holds iff u and v are linearly dependent.
- Triangle Inequality (for norms): As above.
Applications
- Normalization: A unit vector in the direction of u is u^=u/∥u∥2.
- Distance: Euclidean distance between u and v is ∥u−v∥2.
- Orthogonality: Central to least-squares solutions (Section 7) and diagonalization (Section 10).