Overview
Vector operations allow us to combine and manipulate vectors. The fundamental operations are addition, scalar multiplication, and products.
Vector Addition
For vectors u=u1u2⋮un and v=v1v2⋮vn:
u+v=u1+v1u2+v2⋮un+vn
Properties of Addition
| Property | Formula |
|---|
| Commutative | u+v=v+u |
| Associative | (u+v)+w=u+(v+w) |
| Identity | u+0=u |
| Inverse | u+(−u)=0 |
Scalar Multiplication
For scalar c and vector v:
cv=cv1cv2⋮cvn
Properties
| Property | Formula |
|---|
| Distributive | c(u+v)=cu+cv |
| Distributive | (c+d)v=cv+dv |
| Associative | c(dv)=(cd)v |
| Identity | 1v=v |
Dot Product (Inner Product)
For vectors u and v in Rn:
u⋅v=u1v1+u2v2+⋯+unvn=∑i=1nuivi
Properties of Dot Product
- Commutative: u⋅v=v⋅u
- Distributive: u⋅(v+w)=u⋅v+u⋅w
- Scalar: (cu)⋅v=c(u⋅v)
- Self: v⋅v=∥v∥2
Geometric Interpretation
u⋅v=∥u∥∥v∥cosθ
where θ is the angle between u and v.
Orthogonality
Two vectors are orthogonal (perpendicular) if:
u⋅v=0
Cross Product (3D Only)
For vectors u=u1u2u3 and v=v1v2v3:
u×v=u2v3−u3v2u3v1−u1v3u1v2−u2v1
Properties of Cross Product
- Anti-commutative: u×v=−(v×u)
- Distributive: u×(v+w)=u×v+u×w
- Scalar: c(u×v)=(cu)×v=u×(cv)
- Self: v×v=0
Geometric Interpretation
- ∥u×v∥=∥u∥∥v∥sinθ
- Result is perpendicular to both u and v
- Represents area of parallelogram formed by u and v
Examples
Example 1: Vector Addition
u=[23], v=[1−2]
u+v=[2+13+(−2)]=[31]
Example 2: Dot Product
u=123, v=4−56
u⋅v=1(4)+2(−5)+3(6)=4−10+18=12
Example 3: Cross Product
u=100, v=010
u×v=0(0)−0(1)0(0)−1(0)1(1)−0(0)=001