Show that for every $x\ge -1$ we have the inequality
$$(1+x)^{1+x} \ge 1 + x + x^2 + \frac{x^3}{2}$$ with equality only if $x = 0$.
Notes:
One of Bernoulli's inequalities : $(1+x)^a \ge 1 + a x$ if $x\ge -1$ and $a\ge 1$, so $(1+x)^{1+x}\ge 1 + x + x^2$ for $x \ge 0$.
We can further improve it as follows $(1+x)^{1+x} \ge 1 + x + x^2 + \frac{x^3}{2} + \frac{x^4}{3} + \frac{x^5}{12} $ for $x \ge -1$.
One could look at the Taylor expansion of $(1+x)^{1+x}= \exp( (1+x) \log (1+x))$
Any feedback would be appreciated!
For any real $a$, we use the Taylor expansion of $(1+x)^a$ about $x = 0$, with Lagrange form of the remainder, and obtain $$(1+x)^a = 1 + ax + {a(a-1) \over 2}(1 + c)^{a -2} x^2$$ here $c$ is in the open interval $(0,x)$ or $(x,0)$. Substituting $a = 1 + x$ gives $$(1 + x)^{1 + x} = 1 + x + x^2 + {(1 + x)x \over 2}(1 + c)^{x - 1}x^2$$ Thus we need to show that ${(1 + x)x \over 2}(1 + c)^{x - 1}x^2 > {x^3 \over 2}$ when $x \neq 0$. Thus if $x > 0$ we must show $(1 + x)(1 + c)^{x-1} > 1$, and if $x < 0$ we must show $(1 + x)(1 + c)^{x-1} < 1$. We do this in three cases.
Case 1: $x \geq 1$. Then $(1 + x)(1 + c)^{x-1} \geq (1 + x)(1 + 0)^{x - 1} = 1 + x > 1$.
Case 2: $0 < x < 1$. Then $(1 + x)(1 + c)^{x-1} > (1 + x)(1 + x)^{x-1}$ since the exponent $x-1$ is negative and $c < x$. Then $(1 + x)(1 + x)^{x-1} = (1 + x)^x > (1 + 0)^x = 1$.
Case 3: $-1 < x < 0$. Then $(1 + x)(1 + c)^{x-1} < (1 + x)(1 + c)^{-1} < (1 + x)(1 + x)^{-1} = 1$