Bump function
Smooth and compactly supported function

In mathematical analysis, a bump function is a localized auxiliary function, usually chosen to be smooth and to have compact support. Bump functions are commonly used as cutoff functions, for example functions that are equal to 1 on a prescribed set and vanish outside a larger set, and as standard examples of kernels used to construct mollifiers.
Some authors use the term more broadly for any compactly supported smooth function. Such functions are important examples of test functions, especially in distribution theory, but the terms "bump function" and "test function" are not synonymous in all contexts.
01Examples
The function given by
is an example of a bump function in one dimension. Note that the support of this function is the closed interval . In fact, by definition of support, we have that
, where the closure is taken with respect the Euclidean topology of the real line. 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
scaled to fit into the unit disc: the substitution
corresponds to sending
to
A simple example of a (square) bump function in variables is obtained by taking the product of
copies of the above bump function in one variable, so
A radially symmetric bump function in variables can be formed by taking the function
defined by
. This function is supported on the unit ball centered at the origin.
For another example, take an that is positive on
and zero elsewhere, for example
.
Smooth transition functions
A standard starting point is the function
defined for every real number x.
From this, define
The denominator is strictly positive everywhere on the real line, so g is smooth. Moreover, g(x) = 0 for x ≤ 0 and g(x) = 1 for x ≥ 1, so g gives a smooth transition from 0 to 1 on the unit interval [0, 1]. Rescaling gives a smooth transition on any interval [a, b] with a < b:
A compactly supported bump function can be obtained by multiplying a rising transition by a falling transition. For real numbers a < b ≤ c < d, the function
is smooth, equals 1 on the closed interval [b, c], and vanishes outside the open interval (a, d). Thus it can serve as a bump function. When b < c the plateau has positive length; when b = c it degenerates to a single point, but the function is still smooth.
For example, taking ,
, and
gives the smooth bump function
The formula
is the expression for this function only on ; by itself it does not specify the endpoint values at
.
A related parameterized interior expression is
.
For example, , with suitable endpoint values supplied, gives smooth transition curves with "almost" constant slope edges. A bump function with true straight slopes is portrayed by this example.
The transition function g above can also be written explicitly as
and, on , its nonconstant branch can be represented using Hyperbolic functions:


02Existence of bump functions
It is possible to construct bump functions "to specifications". Stated formally, if is compact and
is an open set containing
there exists a bump function
which is
on
and
outside of
Since
can be taken to be a very small neighborhood of
this amounts to being able to construct a function that is
on
and falls off rapidly to
outside of
while still being smooth.
Bump functions defined in terms of convolution
The construction proceeds as follows. One considers a compact neighborhood of
contained in
so
The characteristic function
of
will be equal to
on
and
outside of
so in particular, it will be
on
and
outside of
This function is not smooth however. The key idea is to smooth
a bit, by taking the convolution of
with a mollifier. The latter is just a bump function with a very small support and whose integral is
Such a mollifier can be obtained, for example, by taking the bump function
from the previous section and performing appropriate scalings.
Bump functions defined in terms of a function with support
An alternative construction that does not involve convolution is now detailed.
It begins by constructing a smooth function that is positive on a given open subset
and vanishes off of
This function's support is equal to the closure
of
in
so if
is compact, then
is a bump function.
Start with any smooth function that vanishes on the negative reals and is positive on the positive reals (that is,
on
and
on
where continuity from the left necessitates
); an example of such a function is
for
and
otherwise.
Fix an open subset
of
and denote the usual Euclidean norm by
(so
is endowed with the usual Euclidean metric).
The following construction defines a smooth function
that is positive on
and vanishes outside of
So in particular, if
is relatively compact then this function
will be a bump function.
If then let
while if
then let
; so assume
is neither of these. Let
be an open cover of
by open balls where the open ball
has radius
and center
Then the map
defined by
is a smooth function that is positive on
and vanishes off of
For every
let
where this supremum is not equal to
(so
is a non-negative real number) because
the partial derivatives all vanish (equal
) at any
outside of
while on the compact set
the values of each of the (finitely many) partial derivatives are (uniformly) bounded above by some non-negative real number.
The series
converges uniformly on
to a smooth function
that is positive on
and vanishes off of
Moreover, for any non-negative integers
where this series also converges uniformly on
(because whenever
then the
th term's absolute value is
). This completes the construction.
As a corollary, given two disjoint closed subsets of
the above construction guarantees the existence of smooth non-negative functions
such that for any
if and only if
and similarly,
if and only if
then the function
is smooth and for any
if and only if
if and only if
and
if and only if
In particular,
if and only if
so if in addition
is relatively compact in
(where
implies
) then
will be a smooth bump function with support in

03Properties and uses
While bump functions are smooth, the identity theorem prohibits them from being analytic unless they vanish identically. 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.
If the boundaries of the Bump function domain is to fulfill the requirement of "smoothness", it has to preserve the continuity of all its derivatives, which leads to the following requirement at the boundaries of its domain:
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 for a large angular frequency
The Fourier transform of the particular bump function
from above can be analyzed by a saddle-point method, and decays asymptotically as
for large
The integral of the bump function is given by
where
and
are the Modified Bessel functions of the second kind.

Sources and credits
This article is adapted from the Wikipedia article “Bump function”, written by its contributors and licensed under CC BY-SA 4.0. Fathomly has changed the layout, removed citation markers, navigation and maintenance notices, and adjusted punctuation. This adapted version is shared under the same license. For references, see the original article.
Images, from Wikimedia Commons:
- Bump.png by JoshDif, CC BY-SA 4.0
- Mollifier Illustration.svg by Fred the Oyster, CC0
- Non-analytic smooth function.png by Oleg Alexandrov, Public domain
- Smooth transition from 0 to 1.png by Yoni-vL (talk), Public domain
- Venn diagram of three sets.svg by Oleg Alexandrov, Public domain
Fathomly is not affiliated with or endorsed by the Wikimedia Foundation. Spotted a problem? Tell us.