[Math] Using Taylor’s inequality to estimate accuracy of the approximation $f(x) \approx T_n(x)$

approximationcalculusestimationinequalitytaylor expansion

So, I started out with $$f(x)=e^{-x^2}cos(x) \;\;\;at\;\;\; a=0$$ And after finding the Taylor Polynomial $T_3(x)$ for that function, I have $$T_3(x)=1-{{3x^2}\over 2}$$ Now hopefully that is correct. Next, I need to use the Taylor inequality to estimate the accuracy of the approximation $f(x) \approx T_n(x)$ where x satisfies $\left\lvert x \right\rvert \le 1$ I'm not exactly sure where to get started with this second bit. This problem can't be found in my book and the ones that are even sort of similar have more information than given here.

Any help is greatly appreciated, thank you.

EDIT:
Here is an example from my book about how to go about approximating these things: enter image description here This is basically the only thing I have to go off of.

Best Answer

Based on the excerpt from your book, the form of the Taylor remainder that you are using is called the Lagrange remainder. It says that

$$f(x)-T_n(x)=\frac{f^{(n+1)}(\xi(x))}{(n+1)!} (x-a)^{n+1}$$

where $\xi(x)$ is an unknown number between $x$ and $a$. (Generally it is also unknowable, in the sense that you wouldn't be doing Taylor approximation at all if you knew what $\xi(x)$ was.) Thus you can obtain a bound for the absolute error of

$$\frac{M}{(n+1)!} |x-a|^{n+1}$$

if you can show that $|f^{(n+1)}(y)| \leq M$ for all $y \in [a,x]$. An example is

$$|e^x-T_n(x)| \leq \frac{e^x}{(n+1)!} x^{n+1}$$

for $x>0$.

Related Question