How to prove the following inequality
$$(1-x) \ln(1-x) \geq -x + x^2/2\, \textrm{ for } x\in(0,1)?$$
In general how should one go about proving/approximating exponential and logarithms to get the following type of inequalities.
$$ e^{-x} \leq 1 - x + \frac{x^2}2,\; \textrm{ when } x\geq 0 $$
$$ e^{-x} \leq 1 - x/2,\;\; \textrm{ for } x \in [0,1.59] $$
$$ \ln(1+x) \geq x/2,\;\; \textrm{ for } x \in [0,2.5] $$
You could find more of these here.
It is quite trivial that $$ -1-\log(1-t)\geq -1+t \tag{1} $$ holds for any $t\in(0,1)$, hence by considering some $x\in(0,1)$ and applying $\int_{0}^{x}(\ldots)\,dt $ to both sides of $(1)$ the claim follows in a straightforward way.
A much more accurate approximation is $$ \forall x\in(0,1),\qquad (1-x)\log(1-x) \geq \frac{x \left(-6+3 x+2 x^2\right)}{6-x^2}.\tag{2}$$