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 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 \mathbf e_1, \ldots, \mathbf e_n of and an integer such that a_1 \mathbf e_1, \ldots, a_k \mathbf e_k 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 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 {{nowrap|2^{\aleph_0},}} where \aleph_0 (
aleph-nought) 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 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 {{nowrap|c_{00},}} the space of the
sequences x=(x_n) of real numbers that have only finitely many non-zero elements, with the norm Its
standard basis, 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, one learns that the functions {{math|1={1} ∪ { sin(
nx), cos(
nx) :
n = 1, 2, 3, ... }}} 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 \int_0^{2\pi} \left|f(x)\right|^2\,dx The functions {{math|1={1} ∪ { sin(
nx), cos(
nx) :
n = 1, 2, 3, ... }}} 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 \lim_{n\to\infty} \int_0^{2\pi} \biggl|a_0 + \sum_{k=1}^n \left(a_k\cos\left(kx\right)+b_k\sin\left(kx\right)\right)-f(x)\biggr|^2 dx = 0 for suitable (real or complex) coefficients
ak,
bk. 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,
projective space,
convex set, and
cone have related notions of
basis. An
affine basis for an
n-dimensional affine space is n+1 points in
general linear position. A ''''
is n+2 points in general position, in a projective space of dimension n
. A '
of a polytope 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 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. File:Random almost orthogonal sets.png|thumb|270px|Empirical 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. 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. 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==