Question: This method uses the trapezoidal rule and gains precision step wise by halving h and adding an error estimate. Do this for the integral of
This method uses the trapezoidal rule and gains precision step wise by halving h and adding an error estimate. Do this for the integral of f(x) = e-xfrom x = 0 to x = 2 with TOL = 10-3, as follows.
Apply the trapezoidal rule (2) with h = 2 (hence n = 1) to get an approximation J11. Halve h and use (2) to get J21 and an error estimate

If |ϵ21| ¤ TOL, stop. The result is J22 = J21 + ϵ21.
Show that ϵ21 = 0.066596, hence |ϵ21| > TOL and go on. Use (2) with h/4 to get J31 and add to it the error estimate ϵ31 = 1/3(J31 - J21) to get the better J32 = J31 + ϵ31. Calculate

If |ϵ32| ¤ TOL, stop. The result is J33 = J32 + ϵ32. (Why does 24 = 16 come in?) Show that we obtain ϵ32 = 0.000266, so that we can stop. Arrange J- and ϵ-values in a kind of difference table.

If |ϵ32| were greater than TOL, you would have to go on and calculate in the next step J41 from (2) with then h = 1/4; then

where 63 = 26 - 1. (How does this come in?)
Apply the Romberg method to the integral of f(x) = 1/4Ïx4cos 1/4Ïx from x = 0 to 2 with TOL = 10-4.
(J21 J11). 22 1 21 32 24 (J32 J22) 15 (J32 - J22).
Step by Step Solution
3.36 Rating (162 Votes )
There are 3 Steps involved in it
The factor 2 4 16 comes in because we have replaced h by 1... View full answer
Get step-by-step solutions from verified subject matter experts
