How Accurate Is the Midpoint Rule for Estimating Integrals?

  • Thread starter Thread starter DivGradCurl
  • Start date Start date
  • Tags Tags
    Integral
AI Thread Summary
The Midpoint Rule was applied to estimate the integral \int _0 ^{3.5} f(x)\: dx, yielding a result of 23.52, which is slightly higher than the textbook's answer of 23.44 due to rounding differences. For the error estimation, the calculated error bound was 0.085\overline{3}, while the textbook provided 0.341\overline{3}, also attributed to rounding. It was noted that the correct error bound should use the maximum value of the second derivative, which is 4. The discussion highlighted that the calculations were accurate, with discrepancies primarily arising from rounding and the application of the error bound formula. Overall, the analysis confirms the importance of precision in numerical methods and error estimation.
DivGradCurl
Messages
364
Reaction score
0
(a) Use the Midpoint Rule and the given data to estimate the value of the integral \int _0 ^{3.5} f(x)\: dx

x=0.0\quad 0.4\quad 0.8\quad 1.2\quad 1.6\quad 2.0\quad 2.4\quad 2.8\quad 3.2

f(x)=6.8\quad 6.5\quad 6.3\quad 6.4\quad 6.9\quad 7.6\quad 8.4\quad 8.8\quad 9.0

(b) If it is known that -4 \leq f^{\prime \prime} (x) \leq 1 for all x, estimate the error involved in the approximation in part (a).


The answers given in my textbook are:

(a) 23.44
(b) 0.341\overline{3}

Anyhow, this is what I have:

\bar{x}_i=0.2\quad 0.6\quad 1.0\quad 1.4\quad 1.8\quad 2.2\quad 2.6\quad 3.0

Then, I simply figured out the arithmetic mean of subsequent values of f(x) (taken two at a time)

f(\bar{x}_i)=6.65\quad 6.4\quad 6.35\quad 6.65\quad 7.25\quad 8.0\quad 8.6\quad 8.9

which makes it possible to obtain

M_8 = \Delta x \sum _{i=1} ^{8} f(\bar{x}_i) = \frac{3.2-0}{8}(6.65+ 6.4+ 6.35+ 6.65+ 7.25+ 8.0+ 8.6+ 8.9) = 23.52

For part (b), I just figured out the error bound

\left| E_M \right| \leq \frac{K(b-a)^3}{24n^2}

We are given -4 \leq f^{\prime \prime} (x) \leq 1, then \left| f^{\prime \prime} (x) \right| \leq 4 = K. So, it follows

\left| E_M \right| \leq \frac{4(3.2-0)^3}{24(8)^2} = 0.085\overline{3}

As you can see, my results are a bit different. In part (a), the author of my textbook could have applied some weighted average (I really don't know!). In part (b), there is nothing different I could do (so I wonder what is wrong with my calculations).

Any help is highly appreciated. :smile:
 
Last edited:
Physics news on Phys.org


Your calculations seem to be correct, but there are a few things to note.

Firstly, in part (a), the textbook answer of 23.44 is most likely due to rounding. Your answer of 23.52 is more accurate.

Secondly, in part (b), the textbook answer of 0.341\overline{3} is also due to rounding. Your answer of 0.085\overline{3} is more accurate.

Lastly, in part (b), the error bound formula should use the maximum value of \left| f^{\prime \prime} (x) \right|, which in this case is 4. So the correct error bound would be:

\left| E_M \right| \leq \frac{4(3.2-0)^3}{24(8)^2} = 0.341\overline{3}

So your calculations are correct, it's just a matter of rounding and using the maximum value in the error bound formula.
 
Kindly see the attached pdf. My attempt to solve it, is in it. I'm wondering if my solution is right. My idea is this: At any point of time, the ball may be assumed to be at an incline which is at an angle of θ(kindly see both the pics in the pdf file). The value of θ will continuously change and so will the value of friction. I'm not able to figure out, why my solution is wrong, if it is wrong .
TL;DR Summary: I came across this question from a Sri Lankan A-level textbook. Question - An ice cube with a length of 10 cm is immersed in water at 0 °C. An observer observes the ice cube from the water, and it seems to be 7.75 cm long. If the refractive index of water is 4/3, find the height of the ice cube immersed in the water. I could not understand how the apparent height of the ice cube in the water depends on the height of the ice cube immersed in the water. Does anyone have an...

Similar threads

Replies
1
Views
3K
3
Replies
137
Views
19K
3
Replies
104
Views
16K
3
Replies
100
Views
11K
2
Replies
86
Views
13K
Replies
14
Views
1K
Replies
33
Views
9K
3
Replies
102
Views
10K
Back
Top