
In
mathematics, a
set of vectors in a
vector space
In mathematics and physics, a vector space (also called a linear space) is a set whose elements, often called '' vectors'', may be added together and multiplied ("scaled") by numbers called '' scalars''. Scalars are often real numbers, but ...
is called a basis if every element of may be written in a unique way as a finite
linear combination of elements of . The coefficients of this linear combination are referred to as components or coordinates of the vector with respect to . The elements of a basis are called .
Equivalently, a set is a basis if its elements are
linearly independent
In the theory of vector spaces, a set of vectors is said to be if there is a nontrivial linear combination of the vectors that equals the zero vector. If no such linear combination exists, then the vectors are said to be . These concepts ...
and every element of is a
linear combination of elements of . 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.
Definition
A basis of a
vector space
In mathematics and physics, a vector space (also called a linear space) is a set whose elements, often called '' vectors'', may be added together and multiplied ("scaled") by numbers called '' scalars''. Scalars are often real numbers, but ...
over a
field (such as the
real numbers
In mathematics, a real number is a number that can be used to measure a ''continuous'' one-dimensional quantity such as a distance, duration or temperature. Here, ''continuous'' means that values can have arbitrarily small variations. Every ...
or the
complex number
In mathematics, a complex number is an element of a number system that extends the real numbers with a specific element denoted , called the imaginary unit and satisfying the equation i^= -1; every complex number can be expressed in the for ...
s ) is a linearly independent
subset
In mathematics, set ''A'' is a subset of a set ''B'' if all elements of ''A'' are also elements of ''B''; ''B'' is then a superset of ''A''. It is possible for ''A'' and ''B'' to be equal; if they are unequal, then ''A'' is a proper subset o ...
of that
span
Span may refer to:
Science, technology and engineering
* Span (unit), the width of a human hand
* Span (engineering), a section between two intermediate supports
* Wingspan, the distance between the wingtips of a bird or aircraft
* Sorbitan es ...
s . This means that a subset of is a basis if it satisfies the two following conditions:
;''linear independence''
: for every
finite
Finite is the opposite of infinite. It may refer to:
* Finite number (disambiguation)
* Finite set, a set whose cardinality (number of elements) is some natural number
* Finite verb
Traditionally, a finite verb (from la, fīnītus, past partici ...
subset
of , if
for some
in , then
;''spanning property''
: for every vector in , one can choose
in and
in such that
The
scalars
are called the coordinates of the vector with respect to the basis , and by the first property they are uniquely determined.
A vector space that has a
finite
Finite is the opposite of infinite. It may refer to:
* Finite number (disambiguation)
* Finite set, a set whose cardinality (number of elements) is some natural number
* Finite verb
Traditionally, a finite verb (from la, fīnītus, past partici ...
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
Orientation may refer to:
Positioning in physical space
* Map orientation, the relationship between directions on a map and compass directions
* Orientation (housing), the position of a building with respect to the sun, a concept in building desi ...
, 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 to 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
In mathematics, a sequence is an enumerated collection of objects in which repetitions are allowed and order matters. Like a set, it contains members (also called ''elements'', or ''terms''). The number of elements (possibly infinite) is called ...
, an
indexed family, or similar; see below.
Examples

The set of the
ordered pair
In mathematics, an ordered pair (''a'', ''b'') is a pair of objects. The order in which the objects appear in the pair is significant: the ordered pair (''a'', ''b'') is different from the ordered pair (''b'', ''a'') unless ''a'' = ''b''. (In co ...
s of
real number
In mathematics, a real number is a number that can be used to measurement, measure a ''continuous'' one-dimensional quantity such as a distance, time, duration or temperature. Here, ''continuous'' means that values can have arbitrarily small var ...
s 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 and . These vectors form a basis (called the
standard basis
In mathematics, the standard basis (also called natural basis or canonical basis) of a coordinate vector space (such as \mathbb^n or \mathbb^n) is the set of vectors whose components are all zero, except one that equals 1. For example, in th ...
) because any vector of may be uniquely written as
Any other pair of linearly independent vectors of , such as and , forms also a basis of .
More generally, if is a
field, the set
of
-tuples of elements of is a vector space for similarly defined addition and scalar multiplication. Let
be the -tuple with all components equal to 0, except the th, which is 1. Then
is a basis of
which is called the ''standard basis'' of
A different flavor of example is given by
polynomial ring
In mathematics, especially in the field of algebra, a polynomial ring or polynomial algebra is a ring (which is also a commutative algebra) formed from the set of polynomials in one or more indeterminates (traditionally also called variable ...
s. If is a field, the collection of all
polynomial
In mathematics, a polynomial is an expression consisting of indeterminates (also called variables) and coefficients, that involves only the operations of addition, subtraction, multiplication, and positive-integer powers of variables. An ex ...
s in one
indeterminate
Indeterminate may refer to:
In mathematics
* Indeterminate (variable), a symbol that is treated as a variable
* Indeterminate system, a system of simultaneous equations that has more than one solution
* Indeterminate equation, an equation that ha ...
with coefficients in is an -vector space. One basis for this space is the
monomial basis
In mathematics the monomial basis of a polynomial ring is its basis (as a vector space or free module over the field or ring of coefficients) that consists of all monomials. The monomials form a basis because every polynomial may be uniquely ...
, consisting of all
monomial
In mathematics, a monomial is, roughly speaking, a polynomial which has only one term. Two definitions of a monomial may be encountered:
# A monomial, also called power product, is a product of powers of variables with nonnegative integer expon ...
s:
Any set of polynomials such that there is exactly one polynomial of each degree (such as the
Bernstein basis polynomials or
Chebyshev polynomials
The Chebyshev polynomials are two sequences of polynomials related to the cosine and sine functions, notated as T_n(x) and U_n(x). They can be defined in several equivalent ways, one of which starts with trigonometric functions:
The Chebys ...
) is also a basis. (Such a set of polynomials is called a
polynomial sequence.) But there are also many bases for that are not of this form.
Properties
Many properties of finite bases result from the
Steinitz exchange lemma, which states that, for any vector space , given a finite
spanning set and a
linearly independent
In the theory of vector spaces, a set of vectors is said to be if there is a nontrivial linear combination of the vectors that equals the zero vector. If no such linear combination exists, then the vectors are said to be . These concepts ...
set of elements of , one may replace well-chosen elements of by the elements of to get a spanning set containing , having its other elements in , and having the same number of elements as .
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
In mathematics, the axiom of choice, or AC, is an axiom of set theory equivalent to the statement that ''a Cartesian product of a collection of non-empty sets is non-empty''. Informally put, the axiom of choice says that given any collection ...
or a weaker form of it, such as the
ultrafilter lemma.
If is a vector space over a field , then:
* If is a linearly independent subset of a spanning set , then there is a basis such that
* has a basis (this is the preceding property with being the
empty set
In mathematics, the empty set is the unique set having no elements; its size or cardinality (count of elements in a set) is zero. Some axiomatic set theories ensure that the empty set exists by including an axiom of empty set, while in oth ...
, and ).
* All bases of have the same
cardinality
In mathematics, the cardinality of a set is a measure of the number of elements of the set. For example, the set A = \ contains 3 elements, and therefore A has a cardinality of 3. Beginning in the late 19th century, this concept was generalized ...
, which is called the
dimension
In physics and mathematics, the dimension of a mathematical space (or object) is informally defined as the minimum number of coordinates needed to specify any point within it. Thus, a line has a dimension of one (1D) because only one coor ...
of . This is the
dimension theorem.
* A generating set is a basis of if and only if it is minimal, that is, no
proper subset
In mathematics, set ''A'' is a subset of a set ''B'' if all elements of ''A'' are also elements of ''B''; ''B'' is then a superset of ''A''. It is possible for ''A'' and ''B'' to be equal; if they are unequal, then ''A'' is a proper subset o ...
of is also a generating set of .
* A linearly independent set is a basis if and only if it is maximal, that is, it is not a proper subset of any linearly independent set.
If is a vector space of dimension , then:
* A subset of with elements is a basis if and only if it is linearly independent.
* A subset of with elements is a basis if and only if it is a spanning set of .
Coordinates
Let be a vector space of finite dimension over a field , and
be a basis of . By definition of a basis, every in may be written, in a unique way, as
where the coefficients
are scalars (that is, elements of ), which are called the ''coordinates'' of over . 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 , 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
In mathematics, a sequence is an enumerated collection of objects in which repetitions are allowed and order matters. Like a set, it contains members (also called ''elements'', or ''terms''). The number of elements (possibly infinite) is called ...
similarly indexed, and a vector is completely characterized by the sequence of coordinates. An ordered basis is also called a frame, a word commonly used, in various contexts, for referring to a sequence of data allowing defining coordinates.
Let, as usual,
be the set of the
-tuples of elements of . This set is an -vector space, with addition and scalar multiplication defined component-wise. The map
is a
linear isomorphism from the vector space
onto . In other words,
is the
coordinate space of , and the -tuple
is the
coordinate vector
In linear algebra, a coordinate vector is a representation of a vector as an ordered list of numbers (a tuple) that describes the vector in terms of a particular ordered basis. An easy example may be a position such as (5, 2, 1) in a 3-dimensio ...
of .
The
inverse image by
of
is the -tuple
all of whose components are 0, except the th that is 1. The
form an ordered basis of
, which is called its
standard basis
In mathematics, the standard basis (also called natural basis or canonical basis) of a coordinate vector space (such as \mathbb^n or \mathbb^n) is the set of vectors whose components are all zero, except one that equals 1. For example, in th ...
or
canonical basis. The ordered basis 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 may be defined as the isomorphism that maps the canonical basis of
onto a given ordered basis of . In other words it is equivalent to define an ordered basis of , or a linear isomorphism from
onto .
Change of basis
Let be a vector space of dimension over a field . Given two (ordered) bases
and
of , it is often useful to express the coordinates of a vector 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 over the old and the new basis respectively, the change-of-basis formula is
for .
This formula may be concisely written in
matrix
Matrix most commonly refers to:
* ''The Matrix'' (franchise), an American media franchise
** '' The Matrix'', a 1999 science-fiction action film
** "The Matrix", a fictional setting, a virtual reality environment, within ''The Matrix'' (franchi ...
notation. Let be the matrix of the and
be the
column vector
In linear algebra, a column vector with m elements is an m \times 1 matrix consisting of a single column of m entries, for example,
\boldsymbol = \begin x_1 \\ x_2 \\ \vdots \\ x_m \end.
Similarly, a row vector is a 1 \times n matrix for some n, ...
s of the coordinates of 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 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 .
Related notions
Free module
If one replaces the field occurring in the definition of a vector space by a
ring, one gets the definition of a
module. For modules,
linear independence
In the theory of vector spaces, a set of vectors is said to be if there is a nontrivial linear combination of the vectors that equals the zero vector. If no such linear combination exists, then the vectors are said to be . These concepts a ...
and
spanning sets are defined exactly as for vector spaces, although "
generating set" is more commonly used than that of "spanning set".
Like for vector spaces, a ''basis'' of a module is a linearly independent subset that is also a generating set. A major difference with the theory of vector spaces is that not every module has a basis. A module that has a basis is called a ''free module''. Free modules play a fundamental role in module theory, as they may be used for describing the structure of non-free modules through
free resolutions.
A module over the integers is exactly the same thing as an
abelian group
In mathematics, an abelian group, also called a commutative group, is a group in which the result of applying the group operation to two group elements does not depend on the order in which they are written. That is, the group operation is com ...
. Thus a free module over the integers is also a free abelian group. Free abelian groups have specific properties that are not shared by modules over other rings. Specifically, every subgroup of a free abelian group is a free abelian group, and, if is a subgroup of a finitely generated free abelian group (that is an abelian group that has a finite basis), then there is a basis
of and an integer such that
is a basis of , for some nonzero integers For details, see .
Analysis
In the context of infinite-dimensional vector spaces over the real or complex numbers, the term (named after
Georg Hamel) or algebraic basis can be used to refer to a basis as defined in this article. This is to make a distinction with other notions of "basis" that exist when infinite-dimensional vector spaces are endowed with extra structure. The most important alternatives are
orthogonal bases on
Hilbert space
In mathematics, Hilbert spaces (named after David Hilbert) allow generalizing the methods of linear algebra and calculus from (finite-dimensional) Euclidean vector spaces to spaces that may be infinite-dimensional. Hilbert spaces arise natu ...
s,
Schauder bases, and
Markushevich bases on
normed linear space
In mathematics, a normed vector space or normed space is a vector space over the real or complex numbers, on which a norm is defined. A norm is the formalization and the generalization to real vector spaces of the intuitive notion of "lengt ...
s. In the case of the real numbers R viewed as a vector space over the field Q of rational numbers, Hamel bases are uncountable, and have specifically the
cardinality
In mathematics, the cardinality of a set is a measure of the number of elements of the set. For example, the set A = \ contains 3 elements, and therefore A has a cardinality of 3. Beginning in the late 19th century, this concept was generalized ...
of the continuum, which is the
cardinal number
In mathematics, cardinal numbers, or cardinals for short, are a generalization of the natural numbers used to measure the cardinality (size) of sets. The cardinality of a finite set is a natural number: the number of elements in the set. T ...
where
is the smallest infinite cardinal, the cardinal of the integers.
The common feature of the other notions is that they permit the taking of infinite linear combinations of the basis vectors in order to generate the space. This, of course, requires that infinite sums are meaningfully defined on these spaces, as is the case for
topological vector space
In mathematics, a topological vector space (also called a linear topological space and commonly abbreviated TVS or t.v.s.) is one of the basic structures investigated in functional analysis.
A topological vector space is a vector space that is al ...
s – a large class of vector spaces including e.g.
Hilbert space
In mathematics, Hilbert spaces (named after David Hilbert) allow generalizing the methods of linear algebra and calculus from (finite-dimensional) Euclidean vector spaces to spaces that may be infinite-dimensional. Hilbert spaces arise natu ...
s,
Banach space
In mathematics, more specifically in functional analysis, a Banach space (pronounced ) is a complete normed vector space. Thus, a Banach space is a vector space with a metric that allows the computation of vector length and distance between ve ...
s, or
Fréchet space
In functional analysis and related areas of mathematics, Fréchet spaces, named after Maurice Fréchet, are special topological vector spaces.
They are generalizations of Banach spaces ( normed vector spaces that are complete with respect ...
s.
The preference of other types of bases for infinite-dimensional spaces is justified by the fact that the Hamel basis becomes "too big" in Banach spaces: If ''X'' is an infinite-dimensional normed vector space which is
complete (i.e. ''X'' is a
Banach space
In mathematics, more specifically in functional analysis, a Banach space (pronounced ) is a complete normed vector space. Thus, a Banach space is a vector space with a metric that allows the computation of vector length and distance between ve ...
), then any Hamel basis of ''X'' is necessarily
uncountable. This is a consequence of the
Baire category theorem
The Baire category theorem (BCT) is an important result in general topology and functional analysis. The theorem has two forms, each of which gives sufficient conditions for a topological space to be a Baire space (a topological space such that the ...
. The completeness as well as infinite dimension are crucial assumptions in the previous claim. Indeed, finite-dimensional spaces have by definition finite bases and there are infinite-dimensional (''non-complete'') normed spaces which have countable Hamel bases. Consider the space of the
sequence
In mathematics, a sequence is an enumerated collection of objects in which repetitions are allowed and order matters. Like a set, it contains members (also called ''elements'', or ''terms''). The number of elements (possibly infinite) is called ...
s
of real numbers which have only finitely many non-zero elements, with the norm Its
standard basis
In mathematics, the standard basis (also called natural basis or canonical basis) of a coordinate vector space (such as \mathbb^n or \mathbb^n) is the set of vectors whose components are all zero, except one that equals 1. For example, in th ...
, consisting of the sequences having only one non-zero element, which is equal to 1, is a countable Hamel basis.
Example
In the study of
Fourier series
A Fourier series () is a summation of harmonically related sinusoidal functions, also known as components or harmonics. The result of the summation is a periodic function whose functional form is determined by the choices of cycle length (or '' ...
, one learns that the functions are an "orthogonal basis" of the (real or complex) vector space of all (real or complex valued) functions on the interval
, 2πthat are square-integrable on this interval, i.e., functions ''f'' satisfying
The functions are linearly independent, and every function ''f'' that is square-integrable on
, 2πis an "infinite linear combination" of them, in the sense that
for suitable (real or complex) coefficients ''a''
''k'', ''b''
''k''. But many square-integrable functions cannot be represented as ''finite'' linear combinations of these basis functions, which therefore ''do not'' comprise a Hamel basis. Every Hamel basis of this space is much bigger than this merely countably infinite set of functions. Hamel bases of spaces of this kind are typically not useful, whereas
orthonormal bases of these spaces are essential in
Fourier analysis.
Geometry
The geometric notions of an
affine space
In mathematics, an affine space is a geometric structure that generalizes some of the properties of Euclidean spaces in such a way that these are independent of the concepts of distance and measure of angles, keeping only the properties relat ...
,
projective space,
convex set
In geometry, a subset of a Euclidean space, or more generally an affine space over the reals, is convex if, given any two points in the subset, the subset contains the whole line segment that joins them. Equivalently, a convex set or a convex ...
, and
cone have related notions of ''basis''. An affine basis for an ''n''-dimensional affine space is
points in
general linear position. A is
points in general position, in a projective space of dimension ''n''. A of a
polytope
In elementary geometry, a polytope is a geometric object with flat sides ('' faces''). Polytopes are the generalization of three-dimensional polyhedra to any number of dimensions. Polytopes may exist in any general number of dimensions as an ...
is the set of the vertices of its
convex hull. A consists of one point by edge of a polygonal cone. See also a
Hilbert basis (linear programming).
Random basis
For a
probability distribution
In probability theory and statistics, a probability distribution is the mathematical function that gives the probabilities of occurrence of different possible outcomes for an experiment. It is a mathematical description of a random phenomeno ...
in with a
probability density function
In probability theory, a probability density function (PDF), or density of a continuous random variable, is a function whose value at any given sample (or point) in the sample space (the set of possible values taken by the random variable) c ...
, such as the equidistribution in an ''n''-dimensional ball with respect to Lebesgue measure, it can be shown that randomly and independently chosen vectors will form a basis
with probability one, which is due to the fact that linearly dependent vectors , ..., in should satisfy the equation (zero determinant of the matrix with columns ), and the set of zeros of a non-trivial polynomial has zero measure. This observation has led to techniques for approximating random bases.

It is difficult to check numerically the linear dependence or exact orthogonality. Therefore, the notion of ε-orthogonality is used. For
spaces with inner product, ''x'' is ε-orthogonal to ''y'' if
(that is, cosine of the angle between and is less than ).
In high dimensions, two independent random vectors are with high probability almost orthogonal, and the number of independent random vectors, which all are with given high probability pairwise almost orthogonal, grows exponentially with dimension. More precisely, consider equidistribution in ''n''-dimensional ball. Choose ''N'' independent random vectors from a ball (they are
independent and identically distributed
In probability theory and statistics, a collection of random variables is independent and identically distributed if each random variable has the same probability distribution as the others and all are mutually independent. This property is usua ...
). Let ''θ'' be a small positive number. Then for
random vectors are all pairwise ε-orthogonal with probability .
This growth exponentially with dimension and
for sufficiently big . This property of random bases is a manifestation of the so-called .
The figure (right) illustrates distribution of lengths N of pairwise almost orthogonal chains of vectors that are independently randomly sampled from the ''n''-dimensional cube as a function of dimension, ''n''. A point is first randomly selected in the cube. The second point is randomly chosen in the same cube. If the angle between the vectors was within then the vector was retained. At the next step a new vector is generated in the same hypercube, and its angles with the previously generated vectors are evaluated. If these angles are within then the vector is retained. The process is repeated until the chain of almost orthogonality breaks, and the number of such pairwise almost orthogonal vectors (length of the chain) is recorded. For each ''n'', 20 pairwise almost orthogonal chains were constructed numerically for each dimension. Distribution of the length of these chains is presented.
Proof that every vector space has a basis
Let be any vector space over some field . Let be the set of all linearly independent subsets of .
The set is nonempty since the empty set is an independent subset of , and it is
partially ordered by inclusion, which is denoted, as usual, by .
Let be a subset of that is totally ordered by , and let be the union of all the elements of (which are themselves certain subsets of ).
Since is totally ordered, every finite subset of is a subset of an element of , which is a linearly independent subset of , and hence is linearly independent. Thus is an element of . Therefore, is an upper bound for in : it is an element of , that contains every element of .
As is nonempty, and every totally ordered subset of has an upper bound in ,
Zorn's lemma asserts that has a maximal element. In other words, there exists some element of satisfying the condition that whenever for some element of , then .
It remains to prove that is a basis of . Since belongs to , we already know that is a linearly independent subset of .
If there were some vector of that is not in the span of , then would not be an element of either. Let . This set is an element of , that is, it is a linearly independent subset of (because w is not in the span of L
max, and is independent). As , and (because contains the vector that is not contained in ), this contradicts the maximality of . Thus this shows that spans .
Hence is linearly independent and spans . It is thus a basis of , 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
In mathematics, the axiom of choice, or AC, is an axiom of set theory equivalent to the statement that ''a Cartesian product of a collection of non-empty sets is non-empty''. Informally put, the axiom of choice says that given any collection ...
. 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.
See also
*
Basis of a matroid
*
Basis of a linear program
*
*
*
Notes
References
General references
*
*
*
Historical references
*
*
*
*
*
* , reprint:
*
*
*
*
*
External links
* Instructional videos from Khan Academy
Introduction to bases of subspacesProof that any subspace basis has same number of elements*
*
{{DEFAULTSORT:Basis (Linear Algebra)
Articles containing proofs
Axiom of choice
Linear algebra