
In mathematics, a bump function (also called a test function) is a function on a Euclidean space 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 forms a vector space, denoted or The dual space of this space endowed with a suitable topology is the space of distributions.

Examples
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
Consider the function
defined for every real number x.
The function
has a strictly positive denominator everywhere on the real line, hence g is also smooth. Furthermore, g(x) = 0 for x ≤ 0 and g(x) = 1 for x ≥ 1, hence it provides a smooth transition from the level 0 to the level 1 in the unit interval [0, 1]. To have the smooth transition in the real interval [a, b] with a < b, consider the function
For real numbers a < b < c < d, the smooth function
equals 1 on the closed interval [b, c] and vanishes outside the open interval (a, d), hence it can serve as a bump function.
Caution must be taken since, as example, taking , leads to:
which is not an infinitely differentiable function (so, is not "smooth"), so the constraints a < b < c < d must be strictly fulfilled.
Some interesting facts about the function:
Are that make smooth transition curves with "almost" constant slope edges (a bump function with true straight slopes is portrayed this Another example).
A proper example of a smooth Bump function would be:
A proper example of a smooth transition function will be:
where could be noticed that it can be represented also through Hyperbolic functions:
Existence of bump functions
It is possible to construct bump functions "to specifications". Stated formally, if is an arbitrary compact set in
dimensions 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
Properties and uses
While bump functions are smooth, the identity theorem prohibits their 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
See also
- Cutoff function – Integration kernels for smoothing out sharp features
- Laplacian of the indicator – Limit of sequence of smooth functions
- Non-analytic smooth function – Mathematical functions which are smooth but not analytic
- Schwartz space – Function space of all functions whose derivatives are rapidly decreasing
Citations
- The partial derivatives
are continuous functions so the image of the compact subset
is a compact subset of
The supremum is over all non-negative integers
where because
and
are fixed, this supremum is taken over only finitely many partial derivatives, which is why
- Nestruev 2020, pp. 13–16.
- K. O. Mead and L. M. Delves, "On the convergence rate of generalized Fourier expansions," IMA J. Appl. Math., vol. 12, pp. 247–259 (1973) doi:10.1093/imamat/12.3.247.
- Steven G. Johnson, Saddle-point integration of C∞ "bump" functions, arXiv:1508.04376 (2015).
References
- (10 September 2020). Smooth Manifolds and Observables. Graduate Texts in Mathematics. Vol. 220. Cham, Switzerland: Springer Nature. ISBN 978-3-030-45649-8. OCLC 1195920718.
In mathematics a bump function also called a test function is a function f Rn R displaystyle f mathbb R n to mathbb R on a Euclidean space Rn displaystyle mathbb 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 Rn displaystyle mathbb R n forms a vector space denoted C0 Rn displaystyle mathrm C 0 infty mathbb R n or Cc Rn displaystyle mathrm C mathrm c infty mathbb R n The dual space of this space endowed with a suitable topology is the space of distributions The graph of the bump function x y R2 PS r displaystyle x y in mathbb R 2 mapsto Psi r where r x2 y2 1 2 displaystyle r left x 2 y 2 right 1 2 and PS r e 1 1 r2 1 r lt 1 displaystyle Psi r e 1 1 r 2 cdot mathbf 1 r lt 1 ExamplesThe 1d bump function PS x displaystyle Psi x The function PS R R displaystyle Psi mathbb R to mathbb R given by PS x exp 1x2 1 if x lt 1 0 if x 1 displaystyle Psi x begin cases exp left frac 1 x 2 1 right amp text if x lt 1 0 amp text if x geq 1 end cases is an example of a bump function in one dimension Note that the support of this function is the closed interval 1 1 displaystyle 1 1 In fact by definition of support we have that supp PS x R PS x 0 1 1 displaystyle operatorname supp Psi overline x in mathbb R Psi x neq 0 overline 1 1 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 exp y2 displaystyle exp left y 2 right scaled to fit into the unit disc the substitution y2 1 1 x2 displaystyle y 2 1 left 1 x 2 right corresponds to sending x 1 displaystyle x pm 1 to y displaystyle y infty A simple example of a square bump function in n displaystyle n variables is obtained by taking the product of n displaystyle n copies of the above bump function in one variable so F x1 x2 xn PS x1 PS x2 PS xn displaystyle Phi x 1 x 2 dots x n Psi x 1 Psi x 2 cdots Psi x n A radially symmetric bump function in n displaystyle n variables can be formed by taking the function PSn Rn R displaystyle Psi n mathbb R n to mathbb R defined by PSn x PS x displaystyle Psi n mathbf x Psi mathbf x This function is supported on the unit ball centered at the origin For another example take an h displaystyle h that is positive on c d displaystyle c d and zero elsewhere for example h x exp 1 x c d x c lt x lt d0 otherwise displaystyle h x begin cases exp left frac 1 x c d x right amp c lt x lt d 0 amp mathrm otherwise end cases Smooth transition functions The non analytic smooth function f x considered in the article Consider the function f x e 1xif x gt 0 0if x 0 displaystyle f x begin cases e frac 1 x amp text if x gt 0 0 amp text if x leq 0 end cases defined for every real number x The smooth transition g from 0 to 1 defined here The function g x f x f x f 1 x x R displaystyle g x frac f x f x f 1 x qquad x in mathbb R has a strictly positive denominator everywhere on the real line hence g is also smooth Furthermore g x 0 for x 0 and g x 1 for x 1 hence it provides a smooth transition from the level 0 to the level 1 in the unit interval 0 1 To have the smooth transition in the real interval a b with a lt b consider the function R x g x ab a displaystyle mathbb R ni x mapsto g Bigl frac x a b a Bigr For real numbers a lt b lt c lt d the smooth function R x g x ab a g d xd c displaystyle mathbb R ni x mapsto g Bigl frac x a b a Bigr g Bigl frac d x d c Bigr equals 1 on the closed interval b c and vanishes outside the open interval a d hence it can serve as a bump function Caution must be taken since as example taking a 1 lt b c 0 lt d 1 displaystyle a 1 lt b c 0 lt d 1 leads to q x 11 e1 2 x x2 x displaystyle q x frac 1 1 e frac 1 2 x x 2 x which is not an infinitely differentiable function so is not smooth so the constraints a lt b lt c lt d must be strictly fulfilled Some interesting facts about the function q x a 11 ea 1 2 x x2 x displaystyle q x a frac 1 1 e frac a 1 2 x x 2 x Are that q x 32 displaystyle q left x frac sqrt 3 2 right make smooth transition curves with almost constant slope edges a bump function with true straight slopes is portrayed this Another example A proper example of a smooth Bump function would be u x 1 if x 0 0 if x 1 11 e1 2 x x2 x otherwise displaystyle u x begin cases 1 text if x 0 0 text if x geq 1 frac 1 1 e frac 1 2 x x 2 x text otherwise end cases A proper example of a smooth transition function will be w x 11 e2x 1x2 xif 0 lt x lt 1 0if x 0 1if x 1 displaystyle w x begin cases frac 1 1 e frac 2x 1 x 2 x amp text if 0 lt x lt 1 0 amp text if x leq 0 1 amp text if x geq 1 end cases where could be noticed that it can be represented also through Hyperbolic functions 11 e2x 1x2 x 12 1 tanh 2x 12 x2 x displaystyle frac 1 1 e frac 2x 1 x 2 x frac 1 2 left 1 tanh left frac 2x 1 2 x 2 x right right Existence of bump functionsAn illustration of the sets in the construction It is possible to construct bump functions to specifications Stated formally if K displaystyle K is an arbitrary compact set in n displaystyle n dimensions and U displaystyle U is an open set containing K displaystyle K there exists a bump function ϕ displaystyle phi which is 1 displaystyle 1 on K displaystyle K and 0 displaystyle 0 outside of U displaystyle U Since U displaystyle U can be taken to be a very small neighborhood of K displaystyle K this amounts to being able to construct a function that is 1 displaystyle 1 on K displaystyle K and falls off rapidly to 0 displaystyle 0 outside of K displaystyle K while still being smooth Bump functions defined in terms of convolution The construction proceeds as follows One considers a compact neighborhood V displaystyle V of K displaystyle K contained in U displaystyle U so K V V U displaystyle K subseteq V circ subseteq V subseteq U The characteristic function xV displaystyle chi V of V displaystyle V will be equal to 1 displaystyle 1 on V displaystyle V and 0 displaystyle 0 outside of V displaystyle V so in particular it will be 1 displaystyle 1 on K displaystyle K and 0 displaystyle 0 outside of U displaystyle U This function is not smooth however The key idea is to smooth xV displaystyle chi V a bit by taking the convolution of xV displaystyle chi V with a mollifier The latter is just a bump function with a very small support and whose integral is 1 displaystyle 1 Such a mollifier can be obtained for example by taking the bump function F displaystyle Phi from the previous section and performing appropriate scalings Bump functions defined in terms of a function c R 0 displaystyle c mathbb R to 0 infty with support 0 displaystyle infty 0 An alternative construction that does not involve convolution is now detailed It begins by constructing a smooth function f Rn R displaystyle f mathbb R n to mathbb R that is positive on a given open subset U Rn displaystyle U subseteq mathbb R n and vanishes off of U displaystyle U This function s support is equal to the closure U displaystyle overline U of U displaystyle U in Rn displaystyle mathbb R n so if U displaystyle overline U is compact then f displaystyle f is a bump function Start with any smooth function c R R displaystyle c mathbb R to mathbb R that vanishes on the negative reals and is positive on the positive reals that is c 0 displaystyle c 0 on 0 displaystyle infty 0 and c gt 0 displaystyle c gt 0 on 0 displaystyle 0 infty where continuity from the left necessitates c 0 0 displaystyle c 0 0 an example of such a function is c x e 1 x displaystyle c x e 1 x for x gt 0 displaystyle x gt 0 and c x 0 displaystyle c x 0 otherwise Fix an open subset U displaystyle U of Rn displaystyle mathbb R n and denote the usual Euclidean norm by displaystyle cdot so Rn displaystyle mathbb R n is endowed with the usual Euclidean metric The following construction defines a smooth function f Rn R displaystyle f mathbb R n to mathbb R that is positive on U displaystyle U and vanishes outside of U displaystyle U So in particular if U displaystyle U is relatively compact then this function f displaystyle f will be a bump function If U Rn displaystyle U mathbb R n then let f 1 displaystyle f 1 while if U displaystyle U varnothing then let f 0 displaystyle f 0 so assume U displaystyle U is neither of these Let Uk k 1 displaystyle left U k right k 1 infty be an open cover of U displaystyle U by open balls where the open ball Uk displaystyle U k has radius rk gt 0 displaystyle r k gt 0 and center ak U displaystyle a k in U Then the map fk Rn R displaystyle f k mathbb R n to mathbb R defined by fk x c rk2 x ak 2 displaystyle f k x c left r k 2 left x a k right 2 right is a smooth function that is positive on Uk displaystyle U k and vanishes off of Uk displaystyle U k For every k N displaystyle k in mathbb N let Mk sup pfk p1x1 pnxn x x Rn and p1 pn Z satisfy 0 pi k and p ipi displaystyle M k sup left left frac partial p f k partial p 1 x 1 cdots partial p n x n x right x in mathbb R n text and p 1 ldots p n in mathbb Z text satisfy 0 leq p i leq k text and p sum i p i right where this supremum is not equal to displaystyle infty so Mk displaystyle M k is a non negative real number because Rn Uk Uk Rn displaystyle left mathbb R n setminus U k right cup overline U k mathbb R n the partial derivatives all vanish equal 0 displaystyle 0 at any x displaystyle x outside of Uk displaystyle U k while on the compact set Uk displaystyle overline U k the values of each of the finitely many partial derivatives are uniformly bounded above by some non negative real number The series f k 1 fk2kMk displaystyle f sum k 1 infty frac f k 2 k M k converges uniformly on Rn displaystyle mathbb R n to a smooth function f Rn R displaystyle f mathbb R n to mathbb R that is positive on U displaystyle U and vanishes off of U displaystyle U Moreover for any non negative integers p1 pn Z displaystyle p 1 ldots p n in mathbb Z p1 pn p1x1 pnxnf k 1 12kMk p1 pnfk p1x1 pnxn displaystyle frac partial p 1 cdots p n partial p 1 x 1 cdots partial p n x n f sum k 1 infty frac 1 2 k M k frac partial p 1 cdots p n f k partial p 1 x 1 cdots partial p n x n where this series also converges uniformly on Rn displaystyle mathbb R n because whenever k p1 pn displaystyle k geq p 1 cdots p n then the k displaystyle k th term s absolute value is Mk2kMk 12k displaystyle leq tfrac M k 2 k M k tfrac 1 2 k This completes the construction As a corollary given two disjoint closed subsets A B displaystyle A B of Rn displaystyle mathbb R n the above construction guarantees the existence of smooth non negative functions fA fB Rn 0 displaystyle f A f B mathbb R n to 0 infty such that for any x Rn displaystyle x in mathbb R n fA x 0 displaystyle f A x 0 if and only if x A displaystyle x in A and similarly fB x 0 displaystyle f B x 0 if and only if x B displaystyle x in B then the function h fAfA fB Rn 0 1 displaystyle h frac f A f A f B mathbb R n to 0 1 is smooth and for any x Rn displaystyle x in mathbb R n h x 0 displaystyle h x 0 if and only if x A displaystyle x in A h x 1 displaystyle h x 1 if and only if x B displaystyle x in B and 0 lt h x lt 1 displaystyle 0 lt h x lt 1 if and only if x A B displaystyle x not in A cup B In particular h x 0 displaystyle h x neq 0 if and only if x Rn A displaystyle x in mathbb R n smallsetminus A so if in addition U Rn A displaystyle U mathbb R n smallsetminus A is relatively compact in Rn displaystyle mathbb R n where A B displaystyle A cap B varnothing implies B U displaystyle B subseteq U then h displaystyle h will be a smooth bump function with support in U displaystyle overline U Properties and usesWhile bump functions are smooth the identity theorem prohibits their 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 x displaystyle partial x 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 limx x dndxnf x 0 for all n 0 n Z displaystyle lim x to partial x pm frac d n dx n f x 0 text for all n geq 0 n in mathbb Z 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 1 k displaystyle 1 k for a large angular frequency k displaystyle k The Fourier transform of the particular bump function PS x e 1 1 x2 1 x lt 1 displaystyle Psi x e 1 1 x 2 mathbf 1 x lt 1 from above can be analyzed by a saddle point method and decays asymptotically as k 3 4e k displaystyle k 3 4 e sqrt k for large k displaystyle k See alsoCutoff function Integration kernels for smoothing out sharp featuresPages displaying short descriptions of redirect targets Laplacian of the indicator Limit of sequence of smooth functions Non analytic smooth function Mathematical functions which are smooth but not analytic Schwartz space Function space of all functions whose derivatives are rapidly decreasingCitationsThe partial derivatives pfk p1x1 pnxn Rn R displaystyle frac partial p f k partial p 1 x 1 cdots partial p n x n mathbb R n to mathbb R are continuous functions so the image of the compact subset Uk displaystyle overline U k is a compact subset of R displaystyle mathbb R The supremum is over all non negative integers 0 p p1 pn k displaystyle 0 leq p p 1 cdots p n leq k where because k displaystyle k and n displaystyle n are fixed this supremum is taken over only finitely many partial derivatives which is why Mk lt displaystyle M k lt infty Nestruev 2020 pp 13 16 K O Mead and L M Delves On the convergence rate of generalized Fourier expansions IMA J Appl Math vol 12 pp 247 259 1973 doi 10 1093 imamat 12 3 247 Steven G Johnson Saddle point integration of C bump functions arXiv 1508 04376 2015 References 10 September 2020 Smooth Manifolds and Observables Graduate Texts in Mathematics Vol 220 Cham Switzerland Springer Nature ISBN 978 3 030 45649 8 OCLC 1195920718