MAT187 L06 - Approximating Errors

#MAT187 PCE

Remainder is the difference between the actual value of the function and its approximation.
Rn(x)=f(x)Pn(x)
Note that the remainder is signed, so it can be either positive or negative at a point.

Error is the absolute value of the remainder.
Error=|Rn(x)|=|f(x)Pn(x)|

Taylor's Theorem
If you choose a centre at x=a to approximate a function that has (n+1) continuous derivatives on an interval I close to x=a, then:
f(x)=pn(x)+Rn(x), xϵI
...where pn(x) is the nth Taylor polynomial centred at x=a,
and Rn(x)=f(n+1)(c)(n+1)!(xa)n+1

For the error approximation:

Example: Error of ex.
For the third degree Taylor polynomial of ex, centered at x=0, which is:
P3(x)=1+x+x22+x33!
...we can try to estimate the error R3(x) using:
R3(x)=f(3+1)(c)(3+1)!(x0)(3+1)=f(4)(c)4!x(4)
We don't know what c is, but we know that it is bounded by 0 and x.
So, let's say that we want to approximate the error at x=0.9.
Since 0cx, we know that 0c0.9.
And, since ex is always increasing, f4(c)=ec=e0.9 must result in a "worst case scenario" for R3(x).
i.e. Max(R3(0.9))=e0.94!(0.9)(4)