Functions with '
on a topological space X are those whose closed support is a compact subset of X. If X is the real line, or n-dimensional Euclidean space, then a function has compact support if and only if it has ', since a subset of \R^n is compact if and only if it is closed and bounded. For example, the function f : \R \to \R defined above is a continuous function with compact support [-1, 1]. If f : \R^n \to \R is a smooth function then because f is identically 0 on the open subset \R^n \setminus \operatorname{supp}(f), all of f's partial derivatives of all orders are also identically 0 on \R^n \setminus \operatorname{supp}(f). The condition of compact support is stronger than the condition of
vanishing at infinity. For example, the function f : \R \to \R defined by f(x) = \frac{1}{1+x^2} vanishes at infinity, since f(x) \to 0 as |x| \to \infty, but its support \R is not compact. Real-valued compactly supported
smooth functions on a
Euclidean space are called
bump functions.
Mollifiers are an important special case of bump functions as they can be used in
distribution theory to create
sequences of smooth functions approximating nonsmooth (generalized) functions, via
convolution. In
good cases, functions with compact support are
dense in the space of functions that vanish at infinity, but this property requires some technical work to justify in a given example. As an intuition for more complex examples, and in the language of
limits, for any \varepsilon > 0, any function f on the real line \R that vanishes at infinity can be approximated by choosing an appropriate compact subset C of \R such that \left|f(x) - I_C(x) f(x)\right| for all x \in X, where I_C is the
indicator function of C. Every continuous function on a compact topological space has compact support since every closed subset of a compact space is indeed compact. ==Essential support==