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.
Examples
The function Ψ:ℝ→ℝ given by Ψ(x)={exp(1x2−1), if |x|<1,0, if |x|≥1, is an example of a bump function in one dimension. Note that the support of this function is the closed interval [−1,1]. In fact, by definition of support, we have that supp(Ψ):={x∈ℝ:Ψ(x)≠0}‾=(−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) scaled to fit into the unit disc: the substitution y2=1/(1−x2) corresponds to sending x=±1 to y=∞. A simple example of a (square) bump function in n variables is obtained by taking the product of n copies of the above bump function in one variable, so Φ(x1,x2,…,xn)=Ψ(x1)Ψ(x2)⋯Ψ(xn). A radially symmetric bump function in n variables can be formed by taking the function Ψn:ℝn→ℝ defined by Ψn(𝐱)=Ψ(|𝐱|). This function is supported on the unit ball centered at the origin. For another example, take an h that is positive on (c,d) and zero elsewhere, for example h(x)={exp(−1(x−c)(d−x)),c<x<d0,otherwise. Smooth transition functions
A standard starting point is the function f(x)={e−1xif x>0,0if x≤0, defined for every real number x.
From this, define g(x)=f(x)f(x)+f(1−x),x∈ℝ. 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: ℝ∋x↦g(x−ab−a). 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 ℝ∋x↦g(x−ab−a)g(d−xd−c) 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 a=−1, b=c=0, and d=1 gives the smooth bump function u(x)={1,if x=0,0,if |x|≥1,11+e1−2|x|x2−|x|,otherwise. The formula q(x)=11+e1−2|x|x2−|x| is the expression for this function only on 0<|x|<1; by itself it does not specify the endpoint values at x=−1,0,1. A related parameterized interior expression is q(x,a)=11+ea(1−2|x|)x2−|x|. For example, q(x,32), with suitable endpoint values supplied, gives smooth transition curves with "almost" constant slope edges. A bump function with true straight slopes is portrayed by the Rvachev's up function. The transition function g above can also be written explicitly as w(x)={11+e2x−1x2−xif 0<x<1,0if x≤0,1if x≥1, and, on 0<x<1, its nonconstant branch can be represented using Hyperbolic functions: 11+e2x−1x2−x=12(1−tanh(2x−12(x2−x))) Notice that u(x) could be used to build extended flat-top smooth bump functions, as example, for an integer value M>0: y(x)=∑k=−MMu(x+k) will have an unitary flat-top on x∈[−M,M] while being zero on |x|≥M+1, somehow working similar to a Partition of unity.
Existence of bump functions
… excerpt ends here. Continue reading the full article.





