Basis (linear algebra)
Set of vectors used to define coordinates

In mathematics, a set B of elements of a vector space V is called a basis (pl.: bases) if every element of V can be written in a unique way as a finite linear combination of elements of B. The coefficients of this linear combination are referred to as components or coordinates of the vector with respect to B. The elements of a basis are called basis vectors.
Equivalently, a set B is a basis if its elements are linearly independent and every element of V is a linear combination of elements of B. In other words, a basis is a linearly independent spanning set.
A vector space can have several bases; however all the bases have the same number of elements, called the dimension of the vector space.
This article deals mainly with finite-dimensional vector spaces. However, many of the principles are also valid for infinite-dimensional vector spaces.
Basis vectors find applications in the study of crystal structures and frames of reference.
01Definition
A basis B of a vector space V over a field F (such as the real numbers or the complex numbers
) is a linearly independent subset of V that spans V. This means that a subset B of V is a basis if it satisfies the two following conditions:
- linear independence: for every finite subset
of B, if
for some
in F, then
; and
- the spanning property: for every vector
in
, one can choose
in
and
in
such that
. In other words,
can be represented as a linear combination of some vectors in
.
The first property may be equivalently phrased as follows: if a linear combination of vectors in B is equal to the zero vector, then all the scalars coefficients of the combination must be zero.
If B is a basis for V, then every vector in V can be written as a linear combination of vectors in B (by the spanning property); it follows from linear independence that this can be done in exactly one way. Thus, the scalar coefficients
that appear in this combination are uniquely determined; they are called the coordinates of
with respect to the basis
.
A vector space that has a finite basis is called finite-dimensional. In this case, the finite subset can be taken as itself to check for linear independence in the above definition.
It is often convenient or even necessary to have an ordering on the basis vectors, for example, when discussing orientation, or when one considers the scalar coefficients of a vector with respect to a basis without referring explicitly to the basis elements. In this case, the ordering is necessary for associating each coefficient with the corresponding basis element. This ordering can be done by numbering the basis elements. In order to emphasize that an order has been chosen, one speaks of an ordered basis, which is therefore not simply an unstructured set, but a sequence, an indexed family, or similar; see § Ordered bases and coordinates below.

02Examples
The set of the ordered pairs of real numbers is a vector space under the operations of component-wise addition
and scalar multiplication
where
is any real number. A simple basis of this vector space consists of the two vectors e1 = (1, 0) and e2 = (0, 1). These vectors form a basis (called the standard basis) because any vector v = (a, b) of
may be uniquely written as
Any other pair of linearly independent vectors of
, such as (1, 1) and (−1, 2), forms also a basis of
.
More generally, if F is a field, the set of n-tuples of elements of F is a vector space for similarly defined addition and scalar multiplication. Let
be the n-tuple with all components equal to 0, except the ith, which is 1. Then
is a basis of
which is called the standard basis of
A different flavor of example is given by polynomial rings. If F is a field, the collection F[X] of all polynomials in one indeterminate X with coefficients in F is an F-vector space. One basis for this space is the monomial basis B, consisting of all monomials: Any set of polynomials such that there is exactly one polynomial of each degree (such as the Bernstein basis polynomials or Chebyshev polynomials) is also a basis. (Such a set of polynomials is called a polynomial sequence.) But there are also many bases for F[X] that are not of this form.
03Properties
Many properties of finite bases result from the Steinitz exchange lemma, which states that, for any vector space V, given a finite spanning set S and a linearly independent set L of n elements of V, one may replace n well-chosen elements of S by the elements of L to get a spanning set containing L, having its other elements in S, and having the same number of elements as S.
Most properties resulting from the Steinitz exchange lemma remain true when there is no finite spanning set, but their proofs in the infinite case generally require the axiom of choice or a weaker form of it, such as the ultrafilter lemma.
If V is a vector space over a field F, then:
- If L is a linearly independent subset of a spanning set S ⊆ V, then there is a basis B such that
- V has a basis (this is the preceding property with L being the empty set, and S = V).
- All bases of V have the same cardinality, which is called the dimension of V. This is the dimension theorem.
- A generating set S is a basis of V if and only if it is minimal, that is, no proper subset of S is also a generating set of V.
- A linearly independent set L is a basis if and only if it is maximal, that is, it is not a proper subset of any linearly independent set.
If V is a vector space of dimension n, then:
- A subset of V with n elements is a basis if and only if it is linearly independent.
- A subset of V with n elements is a basis if and only if it is a spanning set of V.
04Coordinates
Let V be a vector space of finite dimension n over a field F, and
be a basis of V. By definition of a basis, every v in V may be written, in a unique way, as
where the coefficients
are scalars (that is, elements of F), which are called the coordinates of v over B. However, if one talks of the set of the coefficients, one loses the correspondence between coefficients and basis elements, and several vectors may have the same set of coefficients. For example,
and
have the same set of coefficients {2, 3}, and are different. It is therefore often convenient to work with an ordered basis; this is typically done by indexing the basis elements by the first natural numbers. Then, the coordinates of a vector form a sequence similarly indexed, and a vector is completely characterized by the sequence of coordinates. An ordered basis, especially when used in conjunction with an origin, is also called a coordinate frame or simply a frame (for example, a Cartesian frame or an affine frame).
Let, as usual, be the set of the n-tuples of elements of F. This set is an F-vector space, with addition and scalar multiplication defined component-wise. The map
is a linear isomorphism from the vector space
onto V. In other words,
is the coordinate space of V, and the n-tuple
is the coordinate vector of v.
The inverse image by of
is the n-tuple
all of whose components are 0, except the ith that is 1. The
form an ordered basis of
, which is called its standard basis or canonical basis. The ordered basis B is the image by
of the canonical basis of
.
It follows from what precedes that every ordered basis is the image by a linear isomorphism of the canonical basis of , and that every linear isomorphism from
onto V may be defined as the isomorphism that maps the canonical basis of
onto a given ordered basis of V. In other words, it is equivalent to define an ordered basis of V, or a linear isomorphism from
onto V.
![Empirical distribution of lengths N of pairwise almost orthogonal chains of vectors that are independently randomly sampled from the n-dimensional cube ''n''</sup>"}},"i":0}}]}' id="mwAfc">[−1, 1]n as a function of dimension, n. Boxplots show the second and third quartiles of this data for each n, red bars correspond to the medians, and blue stars indicate means. Red curve shows theoretical bound given by Eq. (1) and green curve shows a refined estimate.](https://thumb.wikimedia.org/wikipedia/commons/thumb/c/cd/Random_almost_orthogonal_sets.png/500px-Random_almost_orthogonal_sets.png)
05Change of basis
Let V be a vector space of dimension n over a field F. Given two (ordered) bases and
of V, it is often useful to express the coordinates of a vector x with respect to
in terms of the coordinates with respect to
This can be done by the change-of-basis formula, that is described below. The subscripts "old" and "new" have been chosen because it is customary to refer to
and
as the old basis and the new basis, respectively. It is useful to describe the old coordinates in terms of the new ones, because, in general, one has expressions involving the old coordinates, and if one wants to obtain equivalent expressions in terms of the new coordinates; this is obtained by replacing the old coordinates by their expressions in terms of the new coordinates.
Typically, the new basis vectors are given by their coordinates over the old basis, that is,
If
and
are the coordinates of a vector x over the old and the new basis respectively, the change-of-basis formula is
for i = 1, ..., n.
This formula may be concisely written in matrix notation. Let A be the matrix of the , and
be the column vectors of the coordinates of v in the old and the new basis respectively, then the formula for changing coordinates is
The formula can be proven by considering the decomposition of the vector x on the two bases: one has
and
The change-of-basis formula results then from the uniqueness of the decomposition of a vector over a basis, here ; that is
for i = 1, ..., n.
07Proof that every vector space has a basis
Let V be any vector space over some field F. Let X be the set of all linearly independent subsets of V.
The set X is nonempty since the empty set is an independent subset of V, and it is partially ordered by inclusion, which is denoted, as usual, by ⊆.
Let Y be a subset of X that is totally ordered by ⊆, and let LY be the union of all the elements of Y (which are themselves certain subsets of V).
Since (Y, ⊆) is totally ordered, every finite subset of LY is a subset of an element of Y, which is a linearly independent subset of V, and hence LY is linearly independent. Thus LY is an element of X. Therefore, LY is an upper bound for Y in (X, ⊆): it is an element of X, that contains every element of Y.
As X is nonempty, and every totally ordered subset of (X, ⊆) has an upper bound in X, Zorn's lemma asserts that X has a maximal element. In other words, there exists some element Lmax of X satisfying the condition that whenever Lmax ⊆ L for some element L of X, then L = Lmax.
It remains to prove that Lmax is a basis of V. Since Lmax belongs to X, we already know that Lmax is a linearly independent subset of V.
If there were some vector w of V that is not in the span of Lmax, then w would not be an element of Lmax either. Let Lw = Lmax ∪ {w}. This set is an element of X, that is, it is a linearly independent subset of V (because w is not in the span of Lmax, and Lmax is independent). As Lmax ⊆ Lw, and Lmax ≠ Lw (because Lw contains the vector w that is not contained in Lmax), this contradicts the maximality of Lmax. Thus this shows that Lmax spans V.
Hence Lmax is linearly independent and spans V. It is thus a basis of V, and this proves that every vector space has a basis.
This proof relies on Zorn's lemma, which is equivalent to the axiom of choice. Conversely, it has been proved that if every vector space has a basis, then the axiom of choice is true. Thus the two assertions are equivalent.
Sources and credits
This article is adapted from the Wikipedia article “Basis (linear algebra)”, written by its contributors and licensed under CC BY-SA 4.0. Fathomly has changed the layout, removed citation markers, navigation and maintenance notices, and adjusted punctuation. This adapted version is shared under the same license. For references, see the original article.
Images, from Wikimedia Commons:
- 3d two bases same vector.svg by Maschen, CC0
- Basis graph (no label).svg by Spindled at English Wikipedia, CC BY-SA 3.0
- Random almost orthogonal sets.png by Agor153, CC BY 3.0
Fathomly is not affiliated with or endorsed by the Wikimedia Foundation. Spotted a problem? Tell us.