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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

27.4 NUMERICAL INTEGRATION27.4.3 Gaussian integrationIn the cases considered in the previous two subsections, the function f wasmimicked by linear <strong>and</strong> quadratic functions. These yield exact answers if fitself is a linear or quadratic function (respectively) of x. This process couldbe continued by increasing the order of the polynomial mimicking-function soas to increase the accuracy with which more complicated functions f could benumerically integrated. However, the same effect can be achieved with less ef<strong>for</strong>tby not insisting upon equally spaced points x i .The detailed analysis of such methods of numerical integration, in which theintegration points are not equally spaced <strong>and</strong> the weightings given to the values ateach point do not fall into a few simple groups, is too long to be given in full here.Suffice it to say that the methods are based upon mimicking the given functionwith a weighted sum of mutually orthogonal polynomials. The polynomials, F n (x),are chosen to be orthogonal with respect to a particular weight function w(x), i.e.∫ baF n (x)F m (x)w(x) dx = k n δ nm ,where k n is some constant that may depend upon n. Often the weight function isunity <strong>and</strong> the polynomials are mutually orthogonal in the most straight<strong>for</strong>wardsense; this is the case <strong>for</strong> Gauss–Legendre integration <strong>for</strong> which the appropriatepolynomials are the Legendre polynomials, P n (x). This particular scheme isdiscussed in more detail below.Other schemes cover cases in which one or both of the integral limits a <strong>and</strong> bare not finite. For example, if the limits are 0 <strong>and</strong> ∞ <strong>and</strong> the integr<strong>and</strong> containsa negative exponential function e −αx , a simple change of variable can cast itinto a <strong>for</strong>m <strong>for</strong> which Gauss–Laguerre integration would be particularly wellsuited. This <strong>for</strong>m of quadrature is based upon the Laguerre polynomials, <strong>for</strong>which the appropriate weight function is w(x) =e −x . Advantage is taken of this,<strong>and</strong> the h<strong>and</strong>ling of the exponential factor in the integr<strong>and</strong> is effectively carriedout analytically. If the other factors in the integr<strong>and</strong> can be well mimicked bylow-order polynomials, then a Gauss–Laguerre integration using only a modestnumber of points gives accurate results.If we also add that the integral over the range −∞ to ∞ of an integr<strong>and</strong>containing an explicit factor exp(−βx 2 ) may be conveniently calculated using ascheme based on the Hermite polynomials, the reader will appreciate the closeconnection between the various Gaussian quadrature schemes <strong>and</strong> the sets ofeigenfunctions discussed in chapter 18. As noted above, the Gauss–Legendrescheme, which we discuss next, is just such a scheme, though its weight function,being unity throughout the range, is not explicitly displayed in the integr<strong>and</strong>.Gauss–Legendre quadrature can be applied to integrals over any finite rangethough the Legendre polynomials P l (x) on which it is based are only defined1005

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

Saved successfully!

Ooh no, something went wrong!