# Bump function

The graph of the bump function ${\displaystyle (x,y)\in \mathbf {R} ^{2}\mapsto \Psi (r),}$ where ${\displaystyle r=(x^{2}+y^{2})^{\frac {1}{2}}}$ and ${\displaystyle \Psi (r)=e^{-{\frac {1}{1-r^{2}}}}\cdot \mathbf {1} _{\{|r|<1\}}.}$

In mathematics, a bump function (also called a test function) is a function ${\displaystyle f:\mathbf {R} ^{n}\to \mathbf {R} }$ on a Euclidean space ${\displaystyle \mathbf {R} ^{n}}$ which is both smooth (in the sense of having continuous derivatives of all orders) and compactly supported. The set of all bump functions with domain ${\displaystyle \mathbf {R} ^{n}}$ forms a vector space, denoted ${\displaystyle C_{0}^{\infty }(\mathbf {R} ^{n})}$ or ${\displaystyle C_{c}^{\infty }(\mathbf {R} ^{n})}$. The dual space of this space endowed with a suitable topology is the space of distributions.

## Examples

The function ${\displaystyle \Psi :\mathbf {R} \rightarrow \mathbf {R} }$ given by

${\displaystyle \Psi (x)={\begin{cases}\exp \left(-{\frac {1}{1-x^{2}}}\right),&x\in (-1,1)\\0,&{\mbox{otherwise}}\end{cases}}}$

is an example of a bump function in one dimension. It is clear from the construction that this function has compact support, since a function of the real line has compact support if and only if it has bounded closed support. The proof of smoothness follows along the same lines as for the related function discussed in the Non-analytic smooth function article. This function can be interpreted as the Gaussian function ${\displaystyle \exp(-y^{2})}$ scaled to fit into the unit disc: the substitution ${\displaystyle y^{2}=1/(1-x^{2})}$ corresponds to sending ${\displaystyle x=\pm 1}$ to ${\displaystyle y=\infty }$.

A simple example of a bump function in ${\displaystyle n}$ variables is obtained by taking the product of ${\displaystyle n}$ copies of the above bump function in one variable, so

${\displaystyle \Phi (x_{1},x_{2},\dots ,x_{n})=\Psi (x_{1})\Psi (x_{2})\cdots \Psi (x_{n}).}$

## Existence of bump functions

An illustration of the sets in the construction.

It is possible to construct bump functions "to specifications". Stated formally, if ${\displaystyle K}$ is an arbitrary compact set in ${\displaystyle n}$ dimensions and ${\displaystyle U}$ is an open set containing ${\displaystyle K}$, there exists a bump function ${\displaystyle \phi }$ which is ${\displaystyle 1}$ on ${\displaystyle K}$ and ${\displaystyle 0}$ outside of ${\displaystyle U}$. Since ${\displaystyle U}$ can be taken to be a very small neighborhood of ${\displaystyle K}$, this amounts to being able to construct a function that is ${\displaystyle 1}$ on ${\displaystyle K}$ and falls off rapidly to ${\displaystyle 0}$ outside of ${\displaystyle K}$, while still being smooth.

The construction proceeds as follows. One considers a compact neighborhood ${\displaystyle V}$ of ${\displaystyle K}$ contained in ${\displaystyle U}$, so ${\displaystyle K\subseteq V^{\circ }\subseteq V\subseteq U}$. The characteristic function ${\displaystyle \chi _{V}}$ of ${\displaystyle V}$ will be equal to ${\displaystyle 1}$ on ${\displaystyle V}$ and ${\displaystyle 0}$ outside of ${\displaystyle V}$, so in particular, it will be ${\displaystyle 1}$ on ${\displaystyle K}$ and ${\displaystyle 0}$ outside of ${\displaystyle U}$. This function is not smooth however. The key idea is to smooth ${\displaystyle \chi _{V}}$ a bit, by taking the convolution of ${\displaystyle \chi _{V}}$ with a mollifier. The latter is just a bump function with a very small support and whose integral is ${\displaystyle 1}$. Such a mollifier can be obtained, for example, by taking the bump function ${\displaystyle \Phi }$ from the previous section and performing appropriate scalings.

## Properties and uses

While bump functions are smooth, they cannot be analytic unless they vanish identically. This is a simple consequence of the identity theorem. Bump functions are often used as mollifiers, as smooth cutoff functions, and to form smooth partitions of unity. They are the most common class of test functions used in analysis. The space of bump functions is closed under many operations. For instance, the sum, product, or convolution of two bump functions is again a bump function, and any differential operator with smooth coefficients, when applied to a bump function, will produce another bump function.

The Fourier transform of a bump function is a (real) analytic function, and it can be extended to the whole complex plane: hence it cannot be compactly supported unless it is zero, since the only entire analytic bump function is the zero function (see Paley–Wiener theorem and Liouville's theorem). Because the bump function is infinitely differentiable, its Fourier transform must decay faster than any finite power of ${\displaystyle 1/k}$ for a large angular frequency ${\displaystyle |k|}$.[1] The Fourier transform of the particular bump function

${\displaystyle \Psi (x)=e^{-{\frac {1}{1-x^{2}}}}\mathbf {1} _{\{|x|<1\}}}$

from above can be analyzed by a saddle-point method, and decays asymptotically as

${\displaystyle |k|^{-{\frac {3}{4}}}e^{-{\sqrt {|k|}}}}$

for large ${\displaystyle |k|}$.[2]