The function is
Let
Finding the second derivative of f.
\The maximum value of on the interval [0, 2] is
To obtain an error E that is less than 0.00001, you must choose n such that
\\
Solving the problem using will be cumbersome. So, to make problem easy consider the error value less than or equal to 0.01
To obtain an error E that is less than 0.01, you must choose n such that
\\
So, you can choose n = 4(because n must be grather than or equal to 3.849) and apply the trapezoidal rule
\Where (a, b) = (0, 2) and
Therefore .