4

I am stuck on the following problem:

Let $\,\,g \, \colon [0,2] \to \Bbb R \,$ be a twice continuously differentiable function. If $\displaystyle \int_{0}^{2}g(x)dx \approx 2 g(1),$ then the error in the approximation is :

  1. $\frac{g'(\xi)}{12}$ for some $\,\,\xi \in (0,2)$

  2. $\frac{g'(\xi)}{2}$ for some $\,\,\xi \in (0,2)$

  3. $\frac{g''(\xi)}{3}$ for some $\,\,\xi \in (0,2)$

  4. $\frac{g''(\xi)}{6}$ for some $\,\,\xi \in (0,2)$

Can someone help me out ?

learner
  • 6,726

1 Answers1

0

The error of midpoint rule is $\dfrac{g''(\xi)(b-a)^3}{24}$ (if the interval is not divided into subintervals). In your example $a=0$ and $b=2$.

The answers with the first derivative could be ruled out without knowing the precise error term. The midpoint rule is exact for linear functions; the error comes from convexity/concavity which is expressed by the second derivative.