What is a Vector?
A vector is an object with magnitude and direction, like velocity or force. In dimensions, it is an -tuple. A vector space is any set of objects that can be added and scaled by numbers (scalars), obeying natural rules. This abstraction applies to arrows, polynomials, matrices, and functions.
Two core operations define the space:
| Operation | Rule | Geometric meaning |
|---|---|---|
| Vector addition | Tip-to-tail placement | |
| Scalar multiplication | Stretch, shrink, or reverse |
These operations obey vector-space axioms: commutative and associative addition, a zero vector that changes nothing, additive inverses, and distributive laws.
Length and Pitfalls
The magnitude (norm) of a vector measures its length. For a 2D vector, the Pythagorean norm formula is:
A unit vector has norm 1 and captures pure direction. In computing, vectors serve as graphics coordinates, machine learning feature vectors, and language model embeddings.
| Concept | Correct Meaning | Common Mistake |
|---|---|---|
| Magnitude | Single length | Treating components as the length |
| Addition | Componentwise addition | Adding magnitudes directly () |
Pitfall: Do not treat vectors as mere lists of numbers. A vector is defined by how it adds and scales, and the length of a vector sum is generally not the sum of their individual lengths.