We define the function $\varphi : \mathbb { R } \rightarrow \mathbb { R }$ by
$$\begin{cases} \varphi ( x ) = \exp \left( \frac { - x } { \sqrt { 1 - x } } \right) & \text { if } x < 1 \\ \varphi ( x ) = 0 & \text { if } x \geqslant 1 \end{cases}$$
Show that $\varphi$ is continuous on $\mathbb { R }$ and of class $C ^ { \infty }$ on $\mathbb { R } \backslash \{ 1 \}$.