A vector is a mathematical object that has both magnitude (size or length) and direction.
Examples from real life:
In mathematics, we usually represent vectors as arrows or lists of numbers.
In 2D (flat plane), a vector is written as:
\[ \vec{v} = \begin{pmatrix} 3 \\ 4 \end{pmatrix} \quad \text{or} \quad \vec{v} = (3, 4) \]The first number is the x-component (horizontal), the second is the y-component (vertical).
In 3D (space), it has three components:
\[ \vec{v} = \begin{pmatrix} 1 \\ -2 \\ 5 \end{pmatrix} \]Key ideas:
Next lesson: How to add, subtract, and scale vectors.