In mathematics, a set of vectors in a vector space is called a basis (: bases) 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 and every element of is a linear combination of elements of .[1] 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.
A basis of a vector space over a field (such as the real numbers or the complex numbers) is a linearly independent subset of that spans . This means that a subset of is a basis if it satisfies the two following conditions:
\{v1,...c,vm\}
c1v1+ … +cmvm=0
c1,...c,cm
a1,...c,an
v1,...c,vn
The scalars
ai
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 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, an indexed family, or similar; see below.
The set of the ordered pairs of real numbers is a vector space under the operations of component-wise addition and scalar multiplication where
λ
More generally, if is a field, the set
Fn
e1,\ldots,en
Fn,
Fn.
A different flavor of example is given by polynomial rings. If is a field, the collection of all polynomials in one indeterminate with coefficients in is an -vector space. One basis for this space is the monomial basis, 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 that are not of this form.
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 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 or a weaker form of it, such as the ultrafilter lemma.
If is a vector space over a field, then:
If is a vector space of dimension, then:
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, aswhere the coefficients
λ1,\ldots,λn
3b1+2b2
2b1+3b2
Let, as usual,
Fn
Fn
Fn
\varphi-1(v)
The inverse image by
\varphi
bi
ei
ei
Fn
\varphi
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
Fn
Fn
Fn
See main article: Change of basis. Let be a vector space of dimension over a field . Given two (ordered) bases
Bold=(v1,\ldots,vn)
Bnew=(w1,\ldots,wn)
Bold
Bnew.
Bold
Bnew
Typically, the new basis vectors are given by their coordinates over the old basis, that is, If
(x1,\ldots,xn)
(y1,\ldots,yn)
This formula may be concisely written in matrix notation. Let be the matrix of the andbe the column vectors 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 isfor .
See main article: Free module and Free abelian group. 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 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. 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
e1,\ldots,en
a1e1,\ldots,akek
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 spaces, Schauder bases, and Markushevich bases on normed linear spaces. 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 of the continuum, which is the cardinal number where
\aleph0
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 spaces – a large class of vector spaces including e.g. Hilbert spaces, Banach spaces, or Fréchet spaces.
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 that is complete (i.e. X is a Banach space), then any Hamel basis of X is necessarily uncountable. This is a consequence of the Baire category theorem. 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 that have countable Hamel bases. Consider the space of the sequences
x=(xn)
In the study of Fourier series, 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 [0, 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 [0, 2π] is an "infinite linear combination" of them, in the sense that
for suitable (real or complex) coefficients ak, bk. But many[2] 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.
The geometric notions of an affine space, projective space, convex set, and cone have related notions of basis.[3] An affine basis for an n-dimensional affine space is
n+1
n+2
For a probability distribution in with a probability density function, 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.[5] [6]
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
\left|\left\langlex,y\right\rangle\right|/\left(\left\|x\right\|\left\|y\right\|\right)<\varepsilon
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). Let θ be a small positive number. Then for
random vectors are all pairwise ε-orthogonal with probability .[6] This growth exponentially with dimension and
N\ggn
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.
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, 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. 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.