If $0<x<$ln $2$ then $x^2\geq e^x-x-1$
I got this problem while reading a proof. Tried to prove it but failed. $e^x=1+x+\frac{x^2}{2!}+\frac{x^3}{3!}+...$. So $e^x\geq 1+x$ for all $x$ but how can I involve $x^2$ here? Can anyone please give me a hint.
Consider $f(x)=x^2-e^x+x+1$. Note that $f(0)=0$ and $f'(x)=2x-e^x+1$ also satisfies $f'(0)=0$. Moreover, $f''(x)=2-e^x\geq 0$ for $x\in[0,\log(2)]$. All this implies $f'(x)\geq 0$ for $x\in[0,\log(2)]$. The claim follows.