Answer on Question #74242 – Math – Quantitative Methods
Question
For h=0.5,25,125 solve integration from ∫011+x21dx and improve the accuracy by Romberg integration. Compare your value with the real value.
Solution
Evaluate an integral ∫011+x21dx and improve the accuracy by Romberg integration. We begin by using the Trapezoidal Rule, or, equivalently, the Composite Trapezoidal Rule
∫abf(x)dx≈2h[f0+2i=1∑N−1fi+fN],h=Nb−a,xi=x0+ih,x0=a,xN=b
We get
N=1,h=1,IT=2h[f0+f1]=0.750000.N=2,h=21,IT=2h[f0+2f1+f2]=0.775000N=4,h=41,IT=2h[f0+2f1+2f2+2f3+f4]=0.782794N=8,h=81,IT=2h[f0+2f1+2f2+2f3+2f4+2f5+2f6+2f7+f8]=0.784752N=8,h=81,IT=2h[f0+2f1+2f2+2f3+2f4+2f5+2f6+2f7+2f8+2f9+2f10+2f11+2f12+2f13+2f14+2f15+f16]=0.785452
Exact solution of the given integral is as follows:
∫011+x21dx=[tan−1x]01=tan−11−tan−10=0.785398 in radians.
Compare. Approximate value is 0.785452 when h=1/16 and the real value is 0.785398.
Using trapezoidal rule with Romberg integration to achieve the accuracy of 10−6
R1=12h2f−(ξ),0<ξ<1
Since f(x)=1+x21 for 0≤x≤1, for achieving accuracy of 10−6, we require h=0.007. Hence at least (1−0)/0.007=144 function evaluations to achieve this accuracy if trapezoidal rule is used directly.
Answer provided by https://www.AssignmentExpert.com