Prove that $e^x \le \dfrac{1}{1-x}, x\lt 1.$
I find that if we set $f(x)=e^x(1-x)$ then $f(0)=1 $ and $f'(x)<0, x\in(0,1]$ proving the inequality for $x\in[0,1]$ but I don't see how to prove it for $x\in(-\infty,0)$. The derivative $f'(x)\gt0 $ in that interval ... would $f(0)=0$ in addition to that be sufficient to prove it for $x\in(-\infty,0)$?
If that doesn't work, could we use something like mean value theorem or simliar to prove it!
For 0 < x < 1,
$$e^x = \sum_{k=0}^\infty\frac{x^k}{k!} < \sum_{k=0}^\infty x^k = \frac{1}{1-x}.$$
If $y > 0$ we have $e^y > 1+y$ and $e^{-y} < (1+y)^{-1}$. Set $x = -y < 0.$
Then with $x < 0$ we have
$$e^x < \frac{1}{1-x}$$