There was a proof in my differential equations class which stated that this function existed:
Find $f\in C^{\infty}(\mathbb{R})$ such that $f(x)=0$ if $x\leq 1/2$ and $f(x)=1$ if $x\geq 1$
At least prove that this function exists
Using a sine function it is pretty easy to find $f\in C^{1}(\mathbb{R})$
ATEMPT
I have tried to transform $f(x)=e^{-1/x^2}$ as $f(x)=0, f^{n)}(0)=0$ but cannot think of how to get it to be smooth on $x=1$