Given that $x\in \mathbb{R}$ and $-2\leq x\leq 2$
prove: $|cos(x) -1 +\frac{x^2}{2}| \leq\frac{2}{3} $
What I have so far:
for all x in between -2 and 2, $cos(x)\in[0, 1] $ and $-1 +\frac{x^2}{2}\in[-1, 1] $
I've tried to solve for this inquality using the mean value theorem and just using the fact that the terms $cos(x)$ and $-1 +\frac{x^2}{2}$ are bounded. But i can't seem to get to the number 2/3
For $x\in \mathbb{R}$, we have Taylor series around $x=0$ give $$\cos(x)=1-\frac{x^{2}}{2}+\frac{x^{4}}{24}+\mathcal{O}(x^{6}).$$ Hence, $$\forall x\in [0,2], \varepsilon\in \left] 0,x\right[ \subset ]0,2[: \quad \quad \left|\cos(x)-1+\frac{x^{2}}{2}\right|=\left|\frac{\cos(\varepsilon)x^{4}} {24}{}\right|\leqslant \frac{2^{4}}{24}=\frac{2}{3}.$$