For $x \geq 0$ I want to prove the inequality $$ x (1-e^{-x}) \leq 2 (e^{-x} + x - 1) $$ using the fundamental theorem of calculus.
Let $f(x) = x (1-e^{-x})$. Then $f(0) = 0$ and $f'(x) = 1 - e^{-x} + x e^{-x}$. Hence $$ f(x) = \int_{0}^{x} (1 - e^{-y} + y e^{-y})dy = x + e^{-x} - 1 + \int_{0}^{x} y e^{-y}dy. $$ Now this already looks quite good and it remains to show that $$ \int_{0}^{x} y e^{-y}dy \leq x + e^{-x} - 1. $$ How can I do this?
We can use Question on the proof of $e^x>1+x$ for $x>0$
For $y\ge0$
$$\int_0^ye^tdt \ge\int_0^y dt$$
$$e^y-1\ge y$$
$$1-e^{-y}\ge ye^{-y}$$
Therefore,
$$\int_0^x ye^{-y}dy\le\int_0^x(1-e^{-y})dy=x+e^{-x}-1$$