So a Taylor polynomial is given by the Taylor formula, but how do I approximate the error?
I see on wikipedia:
$$R_k = \frac{f^{(k+1)}(s)}{(k+1)!} (x-a)^{k+1}$$
Do I just pick any $s$ between $x$ and $a$? Example if my interval is $[1,4]$ I could pick for example 2 or 3...Or even 3,3?
Also do I withdraw it from my polynomial like with linear approximations or do I just put it on the back..? Perhaps you could give me a simple example on error approximation.
Linear error approximation:
$$f(x)-L(x)$$
That is Lagrange's form of the remainder. What you know is that $a \le s \le x$ (or the other way around, if $x < a$). To get a bound on the error, pick the value of $s$ that maximizes $f^{(k + 1)}(x)$ in that range. That might be hard to do, in which case get some upper bound, as in the end you want a (more or less crude) bound of a (hopefully small) quantity, not an exact value.