How can I prove (preferrably without the use of any heavy theorems) the existence of a smooth function $\mu\!:\mathbb{R}\rightarrow\!\mathbb{R}$ with properties $\mu(0)\!>\!\varepsilon$, $\:\mu_{[2\varepsilon,\infty)}\!=\!0$, $\:-1\!<\!\mu'\!\leq\!0$?
I'm guessing bump functions should come in handy, but I don't know how to bound the derivative.
This is needed in the proof of Morse handle attachment theorem: Banyaga & Hurtubise, p.65.
The function $$f(x)=\begin{cases}e^{-\frac 1 {\sqrt x}}&x>0\\0&x\le 0\end{cases}$$ is smooth. Note that for $x>0$ we have $f'(x) = \frac12 x^{-\frac32}e^{-\frac1{\sqrt x}}$ and $f''(x) = \frac14x^{-3}(1-3\sqrt x) e^{-\frac1{\sqrt x}}$. Therefore $0\le f'(x)\le f'(\frac19)= \frac{27}{2e^3}$.
Now set $\mu(x) = a\cdot f(b\cdot(2\epsilon - x))$ with $a=\frac76e^3\epsilon>0$ and $b=\frac1{18\epsilon}>0$. We obtain