Suppose that $x > 0$. Given a function $f(x) = x(1 - \mathrm{e}^{-x})$, what is the easiest mathematical way to find out if this function is monotone?
It is easy to plug numbers on $x$ and see that it is increasing for $x > 0$. But how would you prove it? Should I take the derivative of $f(x)$? Or $\log(f(x))$? Please provide the proof in steps.
The easiest way is to compute $f'(x)$, which happens to be equal to $e^{-x}(e^x+x-1)$. But $x>0\implies e^x>1$. So, $x>0\implies f'(x)>0$ and therefore $f$ is monotonic.