(4)Use Error estimate for Taylor series, composite trapezoidal and composite Simpsons rule
Problem Statement
Use Error estimate for Taylor series, composite trapezoidal and composite Simpson's rule to find n such that
and compare to numerical results.
Solution

Taylor Series


with
and 

![{\displaystyle E_{n}=I-I_{n}=\int _{0}^{1}\left[f(x)-f_{n}(x)\right]dx=\int _{0}^{1}\underbrace {\frac {x^{n}}{(n+1)!}} _{w(x)}\underbrace {f^{(n+1)}\left(\xi (x)\right)} _{g(x)}dx}](../../../2859777faca43e27a6683904deab21eaf49d4b78.svg)
for ![{\displaystyle \alpha \in [0,1]}](../../../daf3c62599ea71319c85f715c9e590d2bab2d036.svg)

, 
, 




Below are the values from Numerical Analysis of Taylor series from HW_1




We are getting same values from both analysis for Taylor series
Trapazoidal Rule
Error for Composite Trapazoidal rule is given by
where
for
For the given function
, we have
For the given interval [0,1] the maximum value of function
is achieved at
Below are the results from Numerical analysis from HW 1
We can see that we are getting order
at n=128 from both the analysis.
Composite Simpsons Rule
The error estimate of the Composite Simpson's rule is given as
where
for
For the given function
, we have
The function
has maximum value at
Below are the results from Numerical analysis from HW 1
We can see that we are getting order
at n=4 from both the analysis.