Professional Documents
Culture Documents
where f (k) denotes the k-th derivative of f , Rn is the residual Rn (x) = for some [a, b]. In other words we can write the function f (x) = Pn (x) + Rn (x) where Pn (x) =
k=0 n
and Rn (x) = f (n+1) () the residual that is expected to be small for x near c. Now we will see some applications:
Taylors approximation for n = 1 is f (x) f (c) + f (c)(x c). Taylors approximation for n = 2 is f (x) f (c) + f (c)(x c) +
f (c) 2! (x
c).
By taking in the Taylors polynomial x + h instead of x and x instead of c we have f (x) 2 f (x) 3 f (n) (x) n h + h + + h + Rn () 2! 3! n! f (n+1) () n+1 h Chn+1 (n + 1)!
|Rn ()| =
The last expression of the Taylors polynomial is the most popular in numerical analysis since usually in the discrete level two successive steps dier by h and thus they are x and x + h. This formula also provides information about the approximation error. If for example the discretization step is h then the error approximating f by Pn is of O(hn+1 ). Therefore if h 1 and n suciently large we expect the error to be small. An application of Taylors polynomial is the approximation of the derivative f (x) by nite dierences. Specically, consider the 1st order Taylors polynomial: f (x + h) = f (x) + f (x)h + O(h2 ). Solving with respect to f (x) we have that f (x + h) f (x) + O(h). f (x) = h Thus, f (x + h) f (x) f (x) . h Some very popular Taylor expansions are the following:
ex = 1 + x + sin(x) = x cos(x) = 1
The Taylors polynomials of order 2, 4 and 8 approximating the function f (x) = cos(x) is presented. We observe that the approximation is better as the order of the polynomial increases.
15
cos(x)
10
10
15 5