It is easily shown that the function $$\begin{cases} \exp \left(\frac{1}{x^2-1} \right) & |x| < 1 \\ 0 & \text{otherwise} \\ \end{cases}$$ is smooth and has compact support in $\mathbb R$. I tried playing with it to find a function with the following properties:
a. $f(x)=0$ for $x \le 0$
b. $f(x)=1$ for $x \ge 1$
c. $f$ is monotonically increasing.
d. $f$ is smooth.
Is it possible to find an explicit formula for such $f$?