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 typically takes the form of an infinite series whose convergence depends on the topology of the space.