Approximation of the Fabius function $f(x) = \text{FabiusF}[x+1]\cdot \text{HeavisideTheta}[1-x^2]$ - FabiusF[x] doesn't work in Wolfram-Alpha
I am looking to figure out how well the displaced version of the Fabius function $f(x) = \text{FabiusF}[x+1],\quad |x|\leq 1$ could being approximated by the function: $$g(x) = \frac{1+\exp\left(\frac{-1}{|x|^{\frac{3}{4}\sqrt{2\pi}}}\right)}{1+\exp\left(\frac{1-2\ |x|}{x^2-|x|}\right)}$$ but I don't have Mathematica and I use instead Wolfram-Alpha where the function FabiusF[x] is not working as you could see here, so I would like to ask for help in order to compare in a plot $f(x)$ and $g(x)$ for $x\in [-1,\ 1]$ (just a picture will work), and also if possible the plot of $f'(x)$ and $g'(x)$.
This is related to this other question, so if you want to improve it by changing some constants, you are also welcome. "Supposedly" $f(x)$ should fulfill $f'(x) = 2f(2x+1)-2f(2x-1)$ which is what I am trying to match in the approximation (or something "similar" like $f'(x) = k\left(f(2x+1)-f(2x-1)\right)$ for some $k \in \mathbb{R}$).
Thanks a lot beforehand.
Added after the question was answered
I have realized later that the following function: $$q(x)=\frac{1}{1+\exp\left(\frac{1-2|x|}{x^2-|x|}\right)}$$ Matches "almost perfectly" the comstruction of a "smooth" transition curve show in Wikipedia Non-analytic smooth function:
- Define $$f(x)=\begin{cases}e^{-\frac{1}{x}},\quad x>0\\ 0,\quad x\leq 0\end{cases}$$
- Define $$p(x)=\frac{f(x)}{f(x)+f(1-x)}$$
- Then for some real valued constants $a<b<c<d$ one could built a smooth bump function as: $$r(x)=p\left(\frac{x-a}{b-a}\right)\cdot p\left(\frac{d-x}{d-c}\right)$$ which is non-zero in $[a,\ d]$ such is flat on $[b,\ c]$
One can "experimentally" see that for $[a,\ d]\equiv [-1,\ 1]$, by chosing $b\to 0,\ c\to 0$ then $q(x)$ matches $r(x)$ on $(-1,\ 1)\setminus\{0\}$.
Then, by playing with $q(x)$ I realized two interesting things about the function: $$q(x,a)=\frac{1}{1+\exp\left(\frac{a(1-2|x|)}{x^2-|x|}\right)}$$
- The function $q(x,4)$ fits "really good" the function $r(x)$ if I change the definition of $f(x)$ to $$f(x)=\begin{cases}e^{-\frac{1}{x^2}},\quad x>0\\ 0,\quad x\leq 0\end{cases}$$
- The function $q(x,\frac{\sqrt{3}}{2})$ "looks like" a perfect smooth transition function with straight-line edges, fulfilling having a derivative with flat tops - but unfortunately it don't fulfill solving a DDE like $y'(x)=k\left(y(2x+1)-y(2x-1)\right)$ for some constant $k$.
You could see them on Desmos:
The lines that fit the slope of $q(x,\frac{\sqrt{3}}{2})$ are: $$L^\pm=\pm \sqrt{3}\ (x\pm 1)-\frac12(\sqrt{3}-1)$$