The problem is :
Given $M > 0$ a constant, show that exists $\phi \in C^{\infty}(R)$ with the following properties:
i) $\phi(x) = x , \forall x \in [-M,M] $
ii) $ 0 \leq\varphi^{'}(x) \leq 1, \forall \ x $
This question arises form my question in the link
In the previous link the user 79635 says : let $M$ be a constant , mollifing the function $f(x) = \min ( \max (x, M+1), -M-1 )$ , you obtain a function $\phi$ with the properties said above.
I am trying to do the mollifcation, but i am not getting anywhere. Someone can give me a hand ?
Thanks in advance.