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.
 
I multiplied the values first without the error limit. Got 19.38. rounded it off to 2 significant figures since the given data has 2 significant figures. So = 19. For error I used the above formula. It comes out about 1.48. Now my question is. Should I write the answer as 19±1.5 (rounding 1.48 to 2 significant figures) OR should I write it as 19±1. So in short, should the error have same number of significant figures as the mean value or should it have the same number of decimal places as...
Thread 'A cylinder connected to a hanging mass'
Let's declare that for the cylinder, mass = M = 10 kg Radius = R = 4 m For the wall and the floor, Friction coeff = ##\mu## = 0.5 For the hanging mass, mass = m = 11 kg First, we divide the force according to their respective plane (x and y thing, correct me if I'm wrong) and according to which, cylinder or the hanging mass, they're working on. Force on the hanging mass $$mg - T = ma$$ Force(Cylinder) on y $$N_f + f_w - Mg = 0$$ Force(Cylinder) on x $$T + f_f - N_w = Ma$$ There's also...

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
8K
3
Replies
102
Views
10K
Back
Top