13.07.2015 Views

Mathematical Methods for Physics and Engineering - Matematica.NET

Mathematical Methods for Physics and Engineering - Matematica.NET

Mathematical Methods for Physics and Engineering - Matematica.NET

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

27.4 NUMERICAL INTEGRATIONso, provided g(x) is a reasonably smooth function, the approximation is a goodone.Taking 3-point integration as an example, the three x i are the zeros of P 3 (x) =12 (5x3 − 3x), namely 0 <strong>and</strong> ±0.774 60, <strong>and</strong> the corresponding weights are21 × ( − 2) 3 2= 8 2<strong>and</strong>9(1 − 0.6)× ( )6 2= 5 9 .2Table 27.8 gives the integration points (in the range −1 ≤ x i ≤ 1) <strong>and</strong> thecorresponding weights w i <strong>for</strong> a selection of n-point Gauss–Legendre schemes.◮Using a 3-point <strong>for</strong>mula in each case, evaluate the integral∫ 11I =0 1+x dx, 2(i) using the trapezium rule, (ii) using Simpson’s rule, (iii) using Gaussian integration. Alsoevaluate the integral analytically <strong>and</strong> compare the results.(i) Using the trapezium rule, we obtainI = 1 × [ ( 12 2 f(0) + 2f 1) ]2 + f(1)[= 1 4 1+8+ ] 15 2 =0.7750.(ii) Using Simpson’s rule, we obtainI = 1 × [ ( 13 2 f(0) + 4f 1) ]2 + f(1)[= 1 6 1+16+ ] 15 2 =0.7833.(iii) Using Gaussian integration, we obtainI = 1 − 0 ∫ 1dz2 −1 1+ 1 (z +1)24{}= 1 0.555 56 [f(−0.774 60) + f(0.774 60)] +0.888 89f(0)2{}= 1 0.555 56 [0.987 458 + 0.559 503] +0.888 89 × 0.82=0.785 27.(iv) Exact evaluation gives∫ 1dxI =0 1+x = [ tan −1 x ] 1= π =0.785 40.2 04In practice, a compromise has to be struck between the accuracy of the result achieved<strong>and</strong> the calculational labour that goes into obtaining it. ◭Further Gaussian quadrature procedures, ones that utilise the properties of theChebyshev polynomials, are available <strong>for</strong> integrals over finite ranges when theintegr<strong>and</strong>s involve factors of the <strong>for</strong>m (1 − x 2 ) ±1/2 . In the same way as decreasinglinear <strong>and</strong> quadratic exponentials are h<strong>and</strong>led through the weight functions inGauss–Laguerre <strong>and</strong> Gauss–Hermite quadrature, respectively, the square root1007

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!