Vectors in R^n and the Standard Basis
Learning objectives
- Define as the set of ordered n-tuples and perform component-wise addition and scalar multiplication
- Form linear combinations and compute the span of a set of vectors
- Distinguish linear independence from linear dependence and recognise the standard basis
- Predict when a set of vectors must be dependent purely from a count of dimensions
Every linear-algebra problem you will ever encounter lives inside , or a structure built to behave like it. Whether you are training a 768-dimensional language-model embedding, rotating a triangle in a game engine, or fitting a regression line to housing data, you are working inside an ordered tuple of real numbers, equipped with two operations: add two tuples component-wise, scale a tuple by a real number. Almost nothing else is required. The whole apparatus of vectors, span, independence, and basis, the entire subject of this chapter, is built on those two operations and nothing more.
What a vector actually is
The space is the set of all ordered -tuples with each . Two operations are built in: addition, defined as , and scalar multiplication, . These obey eight axioms (associativity, commutativity, distributivity, etc.) that together make a vector space. A vector has no preferred starting point, what matters is its components, which encode magnitude and direction simultaneously.
Linear combinations and span
A linear combination of vectors is any expression of the form with . The set of all such combinations is the span, written . Geometrically, the span of one non-zero vector is a line through the origin; the span of two non-parallel vectors in is a plane; in general, the span is the smallest subspace containing the given vectors.
Independence and the standard basis
Vectors are linearly independent when the only solution to is . If a non-trivial solution exists, the vectors are dependent, meaning at least one is a linear combination of the others, it carries no new information. The standard basis of consists of the unit vectors , the cleanest possible independent spanning set.
The matrix-multiplier above shows how a matrix maps the standard basis vectors to new vectors that become the columns of the matrix. The image of the unit square is a parallelogram spanned by those two image vectors, an immediate geometric picture of span and independence in . Try setting both columns equal: the parallelogram collapses to a line, telling you the columns are dependent and span only a 1-dimensional subspace.
- Machine learning embeddings: A modern transformer encodes each word or image patch as a vector in or higher. Similar concepts cluster together, and operations like analogy ("king − man + woman") are literally vector addition in .
- Computer graphics: Every vertex of a 3D model is a point in (or with homogeneous coordinates). A scene with one million polygons stores millions of vectors and operates on them all in parallel on the GPU.
- Statistics and regression: A data set of observations of features is naturally a collection of vectors in . Linear regression finds the best linear combination of the feature vectors that explains the response variable, pure span arithmetic.
Pause and think: If you have vectors sitting inside , must at least one of them be a linear combination of the others? Use the geometric picture (a plane in can hold at most two independent directions) before reaching for a formal proof.
Try it
- Before computing, predict whether lies in . Then verify by solving and .
- Predict: are and linearly independent? Then verify using the determinant of the matrix whose columns are these vectors.
- Express as a linear combination of and . Predict the coefficients first by inspection, then solve the system precisely.
- Use the matrix widget above: set the columns to and . Read off the area of the image parallelogram (it equals the absolute value of the determinant). Predict before you compute.
- True or false: any three vectors in are linearly dependent. Justify in one sentence using the dimension count.
A trap to watch for
Students routinely confuse "independent" with "non-zero" and "spans " with "has vectors". Neither identification holds. The set has two non-zero vectors but is dependent (the second is twice the first) and spans only the -axis. Conversely, has three vectors in and so must be dependent, you can never have more independent vectors than the dimension of the space. Always check both conditions explicitly: the vectors must span the space and be linearly independent for the count of vectors to equal the dimension.
What you now know
You can compute linear combinations, decide membership in a span, and test independence in . The next section (§1.3) lifts these ideas one level: linear maps between and are completely encoded by matrices, and span / independence translate into the column space and kernel.
Mark section complete →
References
- Garrity, T. (2002). All the Mathematics You Missed: But Need to Know for Graduate School. Cambridge University Press, ch. 1, §1.2.
- Strang, G. (2016). Introduction to Linear Algebra (5th ed.). Wellesley-Cambridge Press, ch. 1.
- Axler, S. (2015). Linear Algebra Done Right (3rd ed.). Springer, ch. 1-2.
- Lay, D. C. (2015). Linear Algebra and Its Applications (5th ed.). Pearson, ch. 1.
- Halmos, P. R. (1958). Finite-Dimensional Vector Spaces (2nd ed.). Van Nostrand, ch. 1.