Bases

How many numbers do you need to pin down a point in space? In the plane, two coordinates suffice. In ordinary space, three are needed. This article makes that intuition precise by defining a basis. A basis is a list of vectors that is simultaneously efficient and complete. Efficient means no redundancy, i.e. linearly independent. Complete means it reaches every vector, i.e. it spans. The two ideas of Linear Independence and Span and Linear Combinations are each useful separately. Here they combine into the single most important structural concept in linear algebra. Bases matter because they give every vector space a coordinate system. Once a basis is fixed, every vector corresponds to exactly one list of scalars. This list is called its coordinates. Linear algebra then becomes computable. Matrices, systems of equations, and geometric transformations all secretly refer back to a choice of basis. Without a basis theorem guaranteeing existence and uniqueness of representation, none of this machinery would be justified. The big picture is that a basis is a minimal spanning set. It is simultaneously a maximal independent set. These turn out to be the same notion. This is itself a small miracle proved below. This equivalence is what lets us later prove something important. Any two bases of a finite-dimensional space have the same size. This gives rise to the notion of dimension. This article delivers a rigorous definition of basis. It presents the fundamental theorem that basis vectors give unique representations. It includes full proofs and worked examples with genuinely asymmetric numbers. It offers a counterexample showing why independence cannot be dropped. Finally, it maps where bases show up throughout mathematics and its applications.

Key takeaways
  • A basis is a list of vectors that is linearly independent and spans the vector space.
  • Equivalently, a basis is a list from which every vector can be written as a linear combination in exactly one way.
  • Every finite-dimensional vector space has a basis, and (proved elsewhere) all bases of the same space have the same length.
  • A basis turns abstract vectors into concrete coordinate lists, enabling matrix computations.
  • Dropping independence or dropping spanning each breaks the uniqueness-of-representation property.
  • Key idea: a basis is exactly a spanning list with no redundancy — independent enough to give uniqueness, big enough to give existence.

Where this lives today

Bases are the computational bridge between abstract vector spaces and concrete arithmetic with matrices: choosing a basis converts every linear map into a matrix and every vector into a coordinate column, which is why matrix algebra works at all. In numerical linear algebra, changing between bases (orthonormal bases especially) underlies algorithms like QR decomposition, least-squares fitting, and eigenvalue computation. In physics, choosing a basis of energy eigenstates in quantum mechanics turns an abstract Hilbert-space problem into a concrete matrix (Heisenberg) formulation; changes of basis correspond to changes of observer frame or representation. In signal processing and data compression (JPEG, MP3, wavelets), signals are expressed in bases like the Fourier or wavelet basis chosen so that most coordinates are near zero, enabling compression. In machine learning and statistics, principal component analysis constructs a new orthonormal basis aligned with directions of maximal variance, re-expressing data in coordinates that are more informative than the raw ones. In coding theory and cryptography, finite vector spaces over finite fields use bases to construct error-correcting codes and lattice-based cryptographic schemes, where the choice of "reduced" basis (short, nearly orthogonal vectors) is itself a deep algorithmic problem (e.g. the LLL algorithm).

Ask the tutor: If I have two different bases of the same space, how exactly do I convert one vector's coordinates from one basis to the other?

DefinitionBasis

Let VV be a vector space over a field F\mathbb{F} (for concreteness, F=R\mathbb{F} = \mathbb{R} or C\mathbb{C}). A list of vectors

β=(v1,v2,…,vn)\beta = (v_1, v_2, \dots, v_n)

in VV is called a basis of VV if it satisfies both of the following: 1. (Spanning) span⁡(v1,…,vn)=V\operatorname{span}(v_1, \dots, v_n) = V; that is, every v∈Vv \in V can be written as

v=a1v1+a2v2+⋯+anvnv = a_1 v_1 + a_2 v_2 + \cdots + a_n v_n

for some scalars a1,…,an∈Fa_1, \dots, a_n \in \mathbb{F}. 2. (Linear independence) The only scalars a1,…,an∈Fa_1, \dots, a_n \in \mathbb{F} satisfying

a1v1+a2v2+⋯+anvn=0a_1 v_1 + a_2 v_2 + \cdots + a_n v_n = 0

are a1=a2=⋯=an=0a_1 = a_2 = \cdots = a_n = 0. (The notion extends to infinite-dimensional spaces using arbitrary indexed families rather than finite lists, with span meaning the set of finite linear combinations; this article treats the finite-dimensional case throughout.)

Intuition

A spanning list is enough material to build every vector in VV; an independent list has no wasted material — no vector in the list is a "clone" expressible via the others. A basis asks for both at once: exactly enough material, with nothing to spare. Think of R2\mathbb{R}^2. The list ((1,0),(0,1),(1,1))\big((1,0),(0,1),(1,1)\big) spans R2\mathbb{R}^2 but is not independent — the third vector is the sum of the first two, so it's redundant weight. The list ((1,0))\big((1,0)\big) is independent but does not span — it can only ever reach the xx-axis. The list ((1,0),(0,1))\big((1,0),(0,1)\big) threads the needle: independent and spanning, so it is a basis. So is the "tilted" list ((2,1),(1,1))\big((2,1),(1,1)\big), showing bases are far from unique — but every vector still gets exactly one address relative to whichever basis you pick.

Figure
Two different bases of the plane give two different — but each unique — coordinate grids for the same point (3,2)
Standard basis (1,0),(0,1) e₁=(1,0) e₂=(0,1) v=(3,2) Tilted basis (2,1),(1,1) u₁=(2,1) u₂=(1,1) v = 1·u₁ + 1·u₂

The central theorem

TheoremUnique Representation with respect to a Basis

Let VV be a vector space over a field F\mathbb{F}, and let β=(v1,…,vn)\beta = (v_1, \dots, v_n) be a list of vectors in VV. Then β\beta is a basis of VV if and only if every vector v∈Vv \in V can be written as

v=a1v1+⋯+anvnv = a_1 v_1 + \cdots + a_n v_n

for a unique choice of scalars a1,…,an∈Fa_1, \dots, a_n \in \mathbb{F}.

Proof

We prove both directions. Let β=(v1,…,vn)\beta = (v_1,\dots,v_n).

(⇒\Rightarrow) Suppose β\beta is a basis. By the spanning condition, every v∈Vv \in V has at least one representation

v=a1v1+⋯+anvn.v = a_1 v_1 + \cdots + a_n v_n.

We must show this representation is unique. Suppose vv has two representations:

v=a1v1+⋯+anvnandv=b1v1+⋯+bnvn,v = a_1 v_1 + \cdots + a_n v_n \qquad \text{and} \qquad v = b_1 v_1 + \cdots + b_n v_n,

with ai,bi∈Fa_i, b_i \in \mathbb{F}. Subtracting the second equation from the first (using vector space axioms of additive inverses and distributivity of scalar multiplication over vector addition) gives

0=v−v=(a1−b1)v1+(a2−b2)v2+⋯+(an−bn)vn.0 = v - v = (a_1 - b_1)v_1 + (a_2 - b_2)v_2 + \cdots + (a_n - b_n)v_n.

This is a linear combination of v1,…,vnv_1,\dots,v_n equal to the zero vector, with coefficients (a1−b1),…,(an−bn)(a_1-b_1),\dots,(a_n-b_n). Since β\beta is linearly independent, the only way a linear combination of v1,…,vnv_1,\dots,v_n equals 00 is with all coefficients zero (this is precisely the definition of linear independence). Hence

ai−bi=0for all i=1,…,n,a_i - b_i = 0 \quad \text{for all } i = 1,\dots,n,

so ai=bia_i = b_i for every ii. The two representations coincide; representation is unique.

(⇐\Leftarrow) Suppose every v∈Vv \in V has a unique representation as a linear combination of v1,…,vnv_1,\dots,v_n. We must show β\beta is both spanning and independent. Spanning: By hypothesis every v∈Vv \in V has some representation v=a1v1+⋯+anvnv = a_1v_1 + \cdots + a_nv_n (existence is part of "unique representation" — uniqueness presupposes existence). Hence every v∈Vv \in V lies in span⁡(v1,…,vn)\operatorname{span}(v_1,\dots,v_n), so span⁡(v1,…,vn)=V\operatorname{span}(v_1,\dots,v_n) = V. Independence: Suppose a1v1+⋯+anvn=0a_1v_1 + \cdots + a_nv_n = 0 for some scalars a1,…,ana_1,\dots,a_n. The zero vector 0∈V0 \in V also has the trivial representation

0=0⋅v1+0⋅v2+⋯+0⋅vn.0 = 0\cdot v_1 + 0 \cdot v_2 + \cdots + 0 \cdot v_n.

By hypothesis, representations of any vector — in particular of 00 — are unique. Since a1v1+⋯+anvn=0a_1v_1+\cdots+a_nv_n = 0 is a representation of 00, uniqueness forces it to coincide with the trivial one:

a1=a2=⋯=an=0.a_1 = a_2 = \cdots = a_n = 0.

This is exactly the definition of linear independence for the list β\beta. Both directions are established using only the definitions of span and linear independence, and elementary vector space axioms (existence of additive inverses, distributivity); no result depending on this theorem was invoked, so the argument is non-circular. ■\blacksquare

∎
CorollaryExistence of a basis from independent, spanning candidates

If VV is spanned by a finite list of vectors, then VV has a basis, and that basis may be extracted from the spanning list by discarding redundant vectors one at a time. (This existence fact is a consequence of the <span class="wiki-link-missing">Steinitz Exchange Lemma</span> machinery and is developed fully alongside <a class="wiki-link" href="/wiki/math-linalg-dimension" data-track="wiki_article.body.wiki_link">Dimension</a>; it is stated here only to record that the definition of basis is never vacuous for finitely spanned spaces.)

Worked examples

Example 1 — a genuinely tilted basis of R3\mathbb{R}^3. Let v1=(1,2,0)v_1 = (1,2,0), v2=(0,1,3)v_2 = (0,1,3), v3=(2,0,1)v_3 = (2,0,1). We show β=(v1,v2,v3)\beta = (v_1,v_2,v_3) is a basis of R3\mathbb{R}^3 and find the unique coordinates of w=(5,1,7)w = (5,1,7). Independence. Suppose a1v1+a2v2+a3v3=0a_1v_1 + a_2v_2 + a_3v_3 = 0. Componentwise:

a1+2a3=0,2a1+a2=0,3a2+a3=0.a_1 + 2a_3 = 0,\qquad 2a_1 + a_2 = 0, \qquad 3a_2 + a_3 = 0.

From the first equation, a1=−2a3a_1 = -2a_3. Substituting into the second, −4a3+a2=0-4a_3 + a_2 = 0, so a2=4a3a_2 = 4a_3. Substituting into the third, 12a3+a3=13a3=012a_3 + a_3 = 13a_3 = 0, so a3=0a_3 = 0. Then a2=0a_2 = 0 and a1=0a_1 = 0. The only solution is trivial, so β\beta is linearly independent. Spanning. Since β\beta is an independent list of 3 vectors in R3\mathbb{R}^3, and (as will be justified by the exchange lemma / dimension theory) any independent list of length equal to dim⁡V\dim V automatically spans VV, β\beta spans R3\mathbb{R}^3. To keep this example self-contained without invoking that theorem, we verify spanning directly by solving for arbitrary (x,y,z)(x,y,z):

a1+2a3=x,2a1+a2=y,3a2+a3=z.a_1 + 2a_3 = x,\qquad 2a_1 + a_2 = y,\qquad 3a_2 + a_3 = z.

Solve: from equation 1, a1=x−2a3a_1 = x - 2a_3. Plug into equation 2: 2x−4a3+a2=y⇒a2=y−2x+4a32x - 4a_3 + a_2 = y \Rightarrow a_2 = y - 2x + 4a_3. Plug into equation 3:

3(y−2x+4a3)+a3=z  ⇒  3y−6x+13a3=z  ⇒  a3=z−3y+6x13.3(y - 2x + 4a_3) + a_3 = z \;\Rightarrow\; 3y - 6x + 13a_3 = z \;\Rightarrow\; a_3 = \frac{z - 3y + 6x}{13}.

This determines a3a_3 (hence a1,a2a_1, a_2) for every (x,y,z)(x,y,z), so a solution always exists: β\beta spans R3\mathbb{R}^3. Combined with independence, β\beta is a basis. Coordinates of w=(5,1,7)w=(5,1,7). Using the formula above with x=5,y=1,z=7x=5, y=1, z=7:

a3=7−3(1)+6(5)13=7−3+3013=3413.a_3 = \frac{7 - 3(1) + 6(5)}{13} = \frac{7 - 3 + 30}{13} = \frac{34}{13}.

Then

a2=1−2(5)+4⋅3413=1−10+13613=−9+13613=−117+13613=1913,a_2 = 1 - 2(5) + 4\cdot\frac{34}{13} = 1 - 10 + \frac{136}{13} = -9 + \frac{136}{13} = \frac{-117+136}{13} = \frac{19}{13},
a1=5−2⋅3413=5−6813=65−6813=−313.a_1 = 5 - 2\cdot\frac{34}{13} = 5 - \frac{68}{13} = \frac{65-68}{13} = -\frac{3}{13}.

Check:

−313(1,2,0)+1913(0,1,3)+3413(2,0,1)=(−3+6813, −6+1913, 57+3413)=(6513,1313,9113)=(5,1,7).-\tfrac{3}{13}(1,2,0) + \tfrac{19}{13}(0,1,3) + \tfrac{34}{13}(2,0,1) = \left(\tfrac{-3+68}{13},\ \tfrac{-6+19}{13},\ \tfrac{57+34}{13}\right) = \left(\tfrac{65}{13}, \tfrac{13}{13}, \tfrac{91}{13}\right) = (5,1,7).

It checks out exactly. By the Unique Representation theorem, these are the only scalars representing ww in this basis — no other triple works.

Example 2 — polynomials: a non-monomial basis of P2(R)\mathcal{P}_2(\mathbb{R}). Let V=P2(R)V = \mathcal{P}_2(\mathbb{R}), polynomials of degree at most 2, with the standard basis (1,x,x2)(1, x, x^2) well known to work. Consider instead

q1=1+x,q2=x+x2,q3=1+x2.q_1 = 1 + x, \qquad q_2 = x + x^2, \qquad q_3 = 1 + x^2.

We check γ=(q1,q2,q3)\gamma = (q_1, q_2, q_3) is a basis and express p(x)=4+3x−x2p(x) = 4 + 3x - x^2 in it. Independence. Suppose c1q1+c2q2+c3q3=0c_1 q_1 + c_2 q_2 + c_3 q_3 = 0 (the zero polynomial). Expanding:

c1(1+x)+c2(x+x2)+c3(1+x2)=(c1+c3)+(c1+c2)x+(c2+c3)x2.c_1(1+x) + c_2(x+x^2) + c_3(1+x^2) = (c_1+c_3) + (c_1+c_2)x + (c_2+c_3)x^2.

Matching coefficients of 1,x,x21, x, x^2 to zero gives the system

c1+c3=0,c1+c2=0,c2+c3=0.c_1 + c_3 = 0, \qquad c_1 + c_2 = 0, \qquad c_2 + c_3 = 0.

From the first, c3=−c1c_3 = -c_1. From the second, c2=−c1c_2 = -c_1. Substitute into the third: −c1+(−c1)=−2c1=0⇒c1=0-c_1 + (-c_1) = -2c_1 = 0 \Rightarrow c_1 = 0, hence c2=c3=0c_2 = c_3 = 0. Independent. Spanning / coordinates of pp. We solve c1q1+c2q2+c3q3=p=4+3x−x2c_1 q_1 + c_2 q_2 + c_3 q_3 = p = 4 + 3x - x^2 directly:

c1+c3=4,c1+c2=3,c2+c3=−1.c_1 + c_3 = 4, \qquad c_1 + c_2 = 3, \qquad c_2 + c_3 = -1.

Add all three equations: 2(c1+c2+c3)=4+3+(−1)=62(c_1+c_2+c_3) = 4 + 3 + (-1) = 6, so c1+c2+c3=3c_1+c_2+c_3 = 3. Subtracting each original equation from this sum:

c2=3−4=−1,c3=3−3=0,c1=3−(−1)=4.c_2 = 3 - 4 = -1, \qquad c_3 = 3 - 3 = 0, \qquad c_1 = 3 - (-1) = 4.

Check: c1q1+c2q2+c3q3=4(1+x)+(−1)(x+x2)+0(1+x2)=4+4x−x−x2=4+3x−x2=p(x)c_1 q_1 + c_2 q_2 + c_3 q_3 = 4(1+x) + (-1)(x+x^2) + 0(1+x^2) = 4 + 4x - x - x^2 = 4 + 3x - x^2 = p(x). ✓. Since this general solving procedure (a linear system with a unique solution for arbitrary right-hand side, as the same elimination argument works for any target coefficients) succeeds for every polynomial in P2(R)\mathcal P_2(\mathbb R), γ\gamma spans VV; combined with independence, γ\gamma is a basis, and (4,−1,0)(4,-1,0) are the unique γ\gamma-coordinates of pp.

CounterexampleWhy linear independence cannot be dropped

Consider V=R2V = \mathbb{R}^2 and the list

S=((1,0), (0,1), (1,1)).S = \big((1,0),\ (0,1),\ (1,1)\big).

This list spans R2\mathbb{R}^2: for any (x,y)(x,y), we have (x,y)=x(1,0)+y(0,1)+0(1,1)(x,y) = x(1,0) + y(0,1) + 0(1,1). So the spanning half of the basis definition holds. But SS is not independent, since

1⋅(1,0)+1⋅(0,1)+(−1)⋅(1,1)=(0,0)1\cdot(1,0) + 1\cdot(0,1) + (-1)\cdot(1,1) = (0,0)

is a nontrivial relation among the vectors. Because independence fails, the Unique Representation theorem's conclusion fails too: the vector (1,1)(1,1) has two different representations in SS,

(1,1)=0⋅(1,0)+0⋅(0,1)+1⋅(1,1)and(1,1)=1⋅(1,0)+1⋅(0,1)+0⋅(1,1),(1,1) = 0\cdot(1,0) + 0\cdot(0,1) + 1\cdot(1,1) \qquad \text{and} \qquad (1,1) = 1\cdot(1,0) + 1\cdot(0,1) + 0\cdot(1,1),

and in fact infinitely many, since for any t∈Rt\in\mathbb R,

(1,1)=(1−t)(1,0)+(1−t)(0,1)+t(1,1)(1,1) = (1-t)(1,0) + (1-t)(0,1) + t(1,1)

is also a valid representation (check: (1−t)+t=1(1-t)+t=1 in each coordinate). This shows that spanning alone, without independence, permits — indeed guarantees, whenever the list is longer than a basis — multiple representations. Independence is exactly the ingredient the proof used to rule out this multiplicity, confirming that hypothesis is not removable.

Scope, edge cases & common traps

SituationWhat to watch for
The zero vector space {0}\{0\}Its basis is the empty list ()(); the empty sum is defined as 00, so the theorem still holds vacuously/trivially.
A list containing 00Any list including the zero vector is automatically dependent (1⋅0=01\cdot 0 = 0 is a nontrivial-looking but valid dependency once other coefficients are 00... more precisely 1⋅0=01\cdot 0 = 0 already witnesses dependence by itself), so it can never be part of a basis.
Order of vectors in β\betaA basis is a list (ordered), because coordinates are read off in that order; permuting the list gives a different (though related) coordinate system, so "the same set" with different orders is not "the same basis" for coordinate purposes.
Infinite-dimensional spacesThe definition adapts via indexed families and finite linear combinations; existence of a basis there needs the Axiom of Choice (Hamel bases) — genuinely more delicate and outside finite-dimensional scope here.
Confusing "spans" with "is a basis"A spanning list that is too long is not a basis — check independence separately; a common student error is to stop after confirming spanning.

The mathematician behind it

Origins · 1 minHermann Günther Grassmann and how this was discovered
HG
Hermann Günther Grassmann
1809–1877 · 19th-century Germany

Grassmann, a schoolteacher and largely self-taught mathematician in Stettin, developed in his 1844 treatise Die lineale Ausdehnungslehre ("Theory of Linear Extension") a strikingly general theory of vector spaces of arbitrary dimension, including the ideas of linear independence, span, and basis in essentially modern algebraic form, decades before the language of "vector space" was standardized. His work was so far ahead of contemporary notation and so densely written that it went largely unrecognized in his lifetime; he later shifted much of his energy to linguistics and Sanskrit scholarship, where he received more immediate recognition. Only after his death did mathematicians such as Peano formalize and popularize the axiomatic vector space concept that made Grassmann's basis theory the standard foundation of linear algebra.

History
- 1844 — Grassmann publishes the Ausdehnungslehre, introducing nn-dimensional linear extension, independence, and spanning sets in essentially modern form.
- 1862 — Grassmann publishes a revised, clearer edition, still under-appreciated by his contemporaries.
- 1888 — Giuseppe Peano gives the first fully modern axiomatic definition of a vector space, crediting and clarifying Grassmann's ideas.
- 1920s–1930s — Hermann Weyl and others popularize coordinate-free, basis-theoretic linear algebra in physics and mathematics.
- Mid-20th century — bases and dimension become standard undergraduate curriculum via textbooks such as Halmos's Finite-Dimensional Vector Spaces.
Is a basis unique for a given vector space?

No — almost every nonzero vector space has infinitely many different bases. For instance R2\mathbb R^2 has the standard basis ((1,0),(0,1))((1,0),(0,1)), but also ((2,1),(1,1))((2,1),(1,1)), ((1,3),(2,5))((1,3),(2,5)), and infinitely many others, as long as the chosen vectors are independent and span. What is guaranteed (and proved via the Steinitz Exchange Lemma) is that every basis of a given finite-dimensional vector space has the same number of vectors, called the Dimension of the space. So while the specific basis is never unique, the count of vectors in any basis is a genuine invariant of VV itself.

Does every vector space have a basis?

Every finite-dimensional vector space that is spanned by finitely many vectors has a basis: start with any finite spanning list and discard vectors one at a time whenever one is a linear combination of the others, which strictly shrinks the list while preserving spanning; this process must terminate at an independent spanning list. Infinite-dimensional spaces (such as the space of all real sequences) also have bases (Hamel bases), but proving this in general requires the Axiom of Choice and such bases are typically impossible to write down explicitly.

Why does the order of vectors in a basis matter?

A basis is formally defined as an ordered list, not just a set, because the coordinates of a vector are read off in a specific slot-by-slot order: the ii-th coordinate corresponds to the ii-th basis vector. If you permute the list (v1,v2)(v_1, v_2) to (v2,v1)(v_2, v_1), the same vector v=3v1+5v2v = 3v_1 + 5v_2 now has coordinates (5,3)(5,3) instead of (3,5)(3,5). The underlying spanning set is identical, but the coordinate map — crucial for matrix representations of linear maps — depends on the ordering, so linear algebra conventionally treats bases as ordered.

How is "basis" different from just "spanning set" or "independent set"?

A spanning set guarantees every vector can be reached, but possibly in more than one way if the set has redundant vectors. An independent set guarantees no redundancy, but possibly fails to reach every vector in VV. A basis is the intersection of these two properties: enough vectors to reach everything, but no more than needed, which is exactly the combination that forces every vector to have one and only one representation, as the central theorem proves.

Can a basis of Rn\mathbb R^n have fewer or more than nn vectors?

No. Although this article proves the basis definition and unique-representation equivalence without yet fixing the number of vectors, a companion result — the Steinitz Exchange Lemma — shows any independent list in Rn\mathbb R^n has at most nn vectors, and any spanning list has at least nn vectors. Combining these forces every basis of Rn\mathbb{R}^n to have exactly nn vectors, which is why we call nn the dimension of Rn\mathbb R^n.

What goes wrong if I only check independence and skip checking spanning?

An independent list that does not span VV is not a basis; it correctly gives unique representations, but only for the smaller subspace it spans, not for all of VV. For example, ((1,0,0),(0,1,0))((1,0,0),(0,1,0)) is independent in R3\mathbb R^3 but only spans the xyxy-plane, missing vectors like (0,0,1)(0,0,1) entirely — such a vector has zero representations in this list, not one, so the Unique Representation theorem's conclusion (which asserts existence and uniqueness for every vector in VV) genuinely fails for vectors outside the span.

Is the empty list a basis of any vector space?

Yes: the empty list is the basis of the zero vector space {0}\{0\}. Vacuously, the empty list is linearly independent (there are no nontrivial coefficient choices to check), and its span is defined to be {0}\{0\} (the span of no vectors is, by convention, the singleton containing only the zero vector, since the empty sum equals 00). This matches the theorem: the only vector in {0}\{0\}, namely 00 itself, has the unique (empty) representation as the empty linear combination.

Before this

Where this leads