I was recently experimenting in wolfram alpha to "make" smooth Bump functions, and I found some interesting attempts which have all the real line as domain, but I believe are compact supported since its values are non-zero only for a tight interval:
- $f(x) = e^{-2 \cdot x^{2n} \cdot e^{x^2}}$ for integer $n \geq 1$ are non-zero between (-1; 1), have max value 1, and increasing n gives them a flat-top making them, I think, non-analytical. I believe they could be nice transitions/window functions.
As example: https://www.wolframalpha.com/input/?i=e%5E%28-2*x%5E8*e%5E%28x%5E2%29%29+for+x%3D-1.2+to+1.2
- $f(x) = e^{-(2x)^{2n} \cdot e^{(2x)^2}}$ for integer $n \geq 1$ are non-zero between (-1/2; 1/2), have max value 1, and increasing n gives them a flat-top making them, I think, non-analytical. Also increasing n make them really squared so I believe they could be in the limit a representation of the standard rectangular function (wolfram-alpha calculate the area only up n=200 and it was almost 1).
- $f(x) = e^{-(n+1)! \cdot x^{2n} \cdot e^{x^2}}$ for integer $n$ between [1; 4] are non-zero between (-1; 1), have max value 1, increasing n gives them a flat-top making them, I think, non-analytical, and their area under the curve integrates approximately 1, so I believe they could be interesting mollifiers for numerical calculations.
I don't have enough mathematical background to probe if they are Bump functions, so I will be happy to receive your opinions about them, hoping they will be useful for anybody else.
Any function $f \in C_C^{\infty}$ can be expressed as $$ f(x) = \begin{cases} \phi(x), & x \in (a,b) \\ 0, & x\in \mathbb{R}\setminus (a,b)\end{cases} $$
where, $\phi \in C^{\infty}(a,b)$ and the one-sided derivatives of all orders exist are are null at $x = a,b$. For example,
$$ f(x)=\begin{cases} e^{-\frac{1}{(x+1)^2}} \cdot e^{-\frac{1}{(x-1)^2}}, & |x| < 1\\ 0, & |x|\ge 1\end{cases} $$
fullfills the requirements.