Numerical Analysis ES 341
Assignment No : 1
Q1 : Construct the third and fourth order Taylor polynomial for the function
2
f (x) = xex at x0 = 0
also compute the error bound for
|f (x) − P3 (x)|, f or 0 ≤ x ≤ 0.4
|f (x) − P4 (x)|, f or 0 ≤ x ≤ 0.4
Q2 : Find the second order Taylor polynomial , compute the error bound and approximate f(0.5)
and g(0.5) on the interval [0, 1]
f (x) = ex cos(x),
g(x) = ex sin(x)
Q3 : Use bisection and Fixed point iteration method for each of the following equations, determine
an interval of convergence, estimate the number of iterations necessary to obtained approximation
accurate to within 10−4
(a). f1 (x) = (x + 2)(x + 1)2 x(x − 1)3 (x − 2),
(b). f2 (x) = x2 − ex − 3x + 2,
( x )1
e 2
(c). f3 (x) = − x,
3
(d). f4 (x) = 2xcos(2x) − (x + 1)2 ,
1 1
(e). f5 (x) = cos(x) + sin(x) − x
2 2
compare the results.