In mathematics, a basis function is an element of a particular basis for a function space. Every function in the function space can be represented as a linear combination of basis functions. In finite-dimensional vector spaces, this representation is purely algebraic and involves only finitely many basis functions, whereas in infinite-dimensional settings it may take the form of an infinite series or another limiting process whose convergence depends on the topology of the space. The choice of basis functions is not unique. Different bases can represent the same function space, but can have different properties that are useful for particular applications. For example, monomials are convenient for elementary polynomial calculations, trigonometric functions are useful for Fourier analysis, and locally supported functions are useful in numerical methods. In numerical analysis and approximation theory, basis functions are also called blending functions, particularly in applications such as interpolation. In this application, a mixture of the basis functions provides an interpolating function, with the coefficients determined by the data being interpolated. Basis functions are also used extensively in finite element methods, splines, wavelets, and other approximation methods.
Examples
Monomial basis for analytic functions The monomial functions {xn∣n∈ℕ} are the functions used in power-series representations of analytic functions. A function analytic in a neighbourhood of zero can be represented by a Taylor series f(x)=∑n=0∞anxn. The coefficients are given by an=f(n)(0)n!. Thus the monomials are the basis functions in the power-series representation. In this infinite-dimensional setting, however, this should not be confused with a Hamel basis, since a Hamel-basis expansion uses only finitely many basis elements. The appropriate notion of basis depends on the topology and structure imposed on the function space. More generally, a Taylor series about a point a uses the basis functions (x−a)n. The use of monomials as basis functions is therefore closely associated with Taylor series and polynomial approximation.
Monomial basis for polynomials The monomial basis forms a basis for the vector space of polynomials of bounded degree. For the vector space of polynomials of degree at most n, a standard basis is {1,x,x2,…,xn}. Every polynomial in this space can be written as p(x)=a0+a1x+a2x2+⋯+anxn for some coefficients a0, a1, …, an. It is therefore a linear combination of the monomial basis functions. The monomial basis is only one possible basis for this space. Other commonly used polynomial bases include the Bernstein polynomials, Chebyshev polynomials, and Legendre polynomials. Different polynomial bases can have different numerical properties, particularly when the degree is large.
Lagrange basis functions Basis functions can be chosen to correspond directly to interpolation points. Suppose that n + 1 distinct points x0,x1,…,xn are given. The Lagrange basis functions are ℓi(x)=∏j=0, j≠inx−xjxi−xj, for i = 0, …, n. Each basis function has the cardinal property ℓi(xj)=δij, where δij is the Kronecker delta. Thus ℓi is equal to 1 at its associated interpolation point and 0 at all the other interpolation points. If the corresponding data values are y0, …, yn, the unique polynomial of degree at most n passing through the data points is p(x)=∑i=0nyiℓi(x). The functions ℓi are therefore basis functions for the space of polynomials of degree at most n. Their cardinal property also makes the coefficients of the interpolation polynomial equal to the prescribed values at the interpolation points. Lagrange basis functions are used in polynomial interpolation and in the construction of Lagrange finite elements."Lagrange Interpolating Polynomial". MathWorld. Wolfram Research. Retrieved 27 August 2026."Interpolation formula". Encyclopedia of Mathematics. Retrieved 27 August 2026.
Fourier basis for L2[0,1] Sines and cosines form an orthonormal basis for square-integrable functions on a bounded interval. For the interval [0,1], one such basis is the collection {1}∪{2sin(2πnx)∣n∈ℕ, n≥1}∪{2cos(2πnx)∣n∈ℕ, n≥1}. This is an orthonormal basis for L2[0,1]. A function f in this space can be represented, with convergence in the L2 sense, by f(x)=a0+∑n=1∞(an2cos(2πnx)+bn2sin(2πnx)). The coefficients are obtained from inner products with the corresponding basis functions. This gives the usual Fourier series representation. In an infinite-dimensional space such as L2[0,1], the word "basis" refers to a topological basis in this context rather than a Hamel basis. In particular, the expansion generally contains infinitely many nonzero terms.
Orthogonal polynomial basis Polynomial spaces can also be represented using orthogonal polynomial bases. If a sequence of polynomials is orthogonal with respect to an inner product, the coefficients of an expansion can be obtained by taking inner products with the corresponding basis functions. Important examples include Legendre polynomials, Chebyshev polynomials, and Hermite polynomials. Such bases are used in approximation theory, numerical integration, spectral methods, and the solution of differential equations. For an orthogonal basis {φi}, the coefficient in an expansion f=∑iciϕi can be calculated, when the required inner products exist, from ci=⟨f,ϕi⟩⟨ϕi,ϕi⟩. For an orthonormal basis the denominator is 1.
Spline basis functions Spline spaces are commonly represented by basis functions with local support. A function in a spline space can be written as a linear combination of basis functions, with each basis function nonzero only on part of the domain. B-spline basis functions are a standard example. A spline of degree p can be written in the form S(x)=∑iciNi,p(x), where Ni,p are B-spline basis functions and ci are coefficients. Local support is useful in numerical computation because changing one coefficient affects only the part of the spline on which the corresponding basis function is nonzero.
… excerpt ends here. Continue reading the full article.