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.
Definition 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 {𝐯1,…,𝐯m} of B, if c1𝐯1+⋯+cm𝐯m=𝟎 for some c1,…,cm in F, then c1=⋯=cm=0; and the spanning property: for every vector 𝐯 in V, one can choose a1,…,an in F and 𝐯1,…,𝐯n in B such that 𝐯=a1𝐯1+⋯+an𝐯n. In other words, 𝐯 can be represented as a linear combination of some vectors in B. 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 ai that appear in this combination are uniquely determined; they are called the coordinates of 𝐯 with respect to the basis B. A vector space that has a finite basis is called finite-dimensional. In this case, the finite subset can be taken as B 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.
Examples
The set ℝ2 of the ordered pairs of real numbers is a vector space under the operations of component-wise addition (a,b)+(c,d)=(a+c,b+d) and scalar multiplication λ(a,b)=(λa,λb), 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 ℝ2 may be uniquely written as 𝐯=a𝐞1+b𝐞2. Any other pair of linearly independent vectors of ℝ2, such as (1, 1) and (−1, 2), forms also a basis of ℝ2. More generally, if F is a field, the set Fn of n-tuples of elements of F is a vector space for similarly defined addition and scalar multiplication. Let 𝐞i=(0,…,0,1,0,…,0) be the n-tuple with all components equal to 0, except the ith, which is 1. Then 𝐞1,…,𝐞n is a basis of Fn, which is called the standard basis of Fn. 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: B={1,X,X2,…}. 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.
Properties 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 L⊆B⊆S. 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.
… excerpt ends here. Continue reading the full article.



![Basis (linear algebra): Empirical distribution of lengths N of pairwise almost orthogonal chains of vectors that are independently randomly sampled from the n-dimensional cube [−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.[8]](https://thumb.wikimedia.org/wikipedia/commons/thumb/c/cd/Random_almost_orthogonal_sets.png/500px-Random_almost_orthogonal_sets.png?utm_source=en.wikipedia.org&utm_campaign=parser&utm_content=thumbnail)