The magnitude (or norm) of a vector is its length, calculated using the Pythagorean theorem in higher dimensions.
Formula (2D): \(\|\vec{v}\| = \sqrt{x^2 + y^2}\)
Example: \(\|\begin{pmatrix} 3 \\ 4 \end{pmatrix}\| = \sqrt{9 + 16} = \sqrt{25} = 5\)
A unit vector has magnitude 1. It shows only direction.
To get unit vector: divide original vector by its magnitude.
Example: unit vector of \(\begin{pmatrix} 3 \\ 4 \end{pmatrix}\) is \(\begin{pmatrix} 3/5 \\ 4/5 \end{pmatrix}\)
The dot product of two vectors is a number (scalar) that tells us how aligned they are.
Formula (2D): \(\vec{a} \cdot \vec{b} = a_x b_x + a_y b_y\)
Example: \(\begin{pmatrix} 1 \\ 2 \end{pmatrix} \cdot \begin{pmatrix} 3 \\ 4 \end{pmatrix} = 1ยท3 + 2ยท4 = 11\)
If dot product = 0 โ vectors are perpendicular.
Next lessons: more on dot product, cross product (3D), and projections.