Introduction to Linear Algebra
Vectors are n-tuples of numbers.
x⃗=⎣⎢⎢⎡x1x2⋮xn⎦⎥⎥⎤xi∈R
Different notations exist, such as x⃗=(x1,x2,…,xn)
Operations With Vectors
Equality
x⃗=⎣⎢⎢⎡x1x2⋮xn⎦⎥⎥⎤xi∈R and y⃗=⎣⎢⎢⎡y1y2⋮yn⎦⎥⎥⎤yi∈R
are equal if each corresponding value is the same.
x1=y1,x1=y1,…,xn=yn
Addition and Subtraction
Combining vectors (recall "tip to tail").
⎣⎢⎢⎡x1x2⋮xn⎦⎥⎥⎤±⎣⎢⎢⎡y1y2⋮yn⎦⎥⎥⎤=⎣⎢⎢⎡x1±y1x2±y2⋮xn±yn⎦⎥⎥⎤
Scalar Multiplication
Scaling done on the vector which only changes magnitude.
A negative refers to 'flipping' or reversing its direction.
cx⃗=⎣⎢⎢⎡cx1cx2⋮cxn⎦⎥⎥⎤c∈R
Dot Product
Directional multiplication.
⎣⎢⎢⎡x1x2⋮xn⎦⎥⎥⎤⋅⎣⎢⎢⎡y1y2⋮yn⎦⎥⎥⎤=x1y1+x2y2+…+xnyn
See Better Explained
Magnitude (Length)
Essentially an n-dimensional pythagorean theorem to find the length of a vector.
∥x⃗∥=√x12+x22+…+xn2
Orthogonality (Perpendicular)
x⃗⊥y⃗⇔x⃗⋅y⃗=0
Angles
cos(θ)=∥x⃗∥∥y⃗∥x⃗⋅y⃗
For the acute angle, find θ where 0≤θ≤π.
Two vectors are parallel if θ=0 or θ=π.
Projections
proju⃗v⃗=∥u⃗∥2u⃗⋅v⃗u⃗