Vectors
Mathematics · Cheatsheet

Vectors

Chapter 1 · Vector Foundations

📋 Reference · always available
Magnitude
v=v12+v22+v32|\mathbf{v}| = \sqrt{v_1^2 + v_2^2 + v_3^2}
Addition / scaling
Component-wise: (a1+b1,)(a_1+b_1,\,\dots); kv=(kv1,)k\mathbf{v}=(kv_1,\dots).
Dot product
ab=a1b1+a2b2+a3b3=abcosθ\mathbf{a}\cdot\mathbf{b} = a_1b_1+a_2b_2+a_3b_3 = |\mathbf{a}||\mathbf{b}|\cos\theta
Perpendicular test
ab=0    ab\mathbf{a}\cdot\mathbf{b} = 0 \iff \mathbf{a}\perp\mathbf{b}
Unit vector
v^=vv\hat{\mathbf{v}} = \frac{\mathbf{v}}{|\mathbf{v}|}
Magnitude / unit
a=a12+a22+a32,  a^=aa|\mathbf{a}|=\sqrt{a_1^2+a_2^2+a_3^2},\;\hat{\mathbf a}=\tfrac{\mathbf a}{|\mathbf a|}
Dot product
ab=abcosθ=a1b1+a2b2+a3b3\mathbf a\cdot\mathbf b = |\mathbf a||\mathbf b|\cos\theta = a_1b_1+a_2b_2+a_3b_3
=0 ⟺ perpendicular.
Cross product
a×b=absinθ|\mathbf a\times\mathbf b| = |\mathbf a||\mathbf b|\sin\theta
⟂ to both; =0 ⟺ parallel.
Common trap
Dot gives a scalar, cross gives a vector; angle uses the dot product.