TOPICS
Search

Gaussian Quadrature


Gaussian quadrature is a numerical integration rule that chooses abscissas and weights to integrate polynomials of the highest possible polynomial degree exactly. The fundamental theorem of Gaussian quadrature states that the optimal abscissas of the m-point Gaussian quadrature formulas are precisely the roots of the orthogonal polynomials of polynomial degree m for the same interval and weighting function. For a nonnegative weighting function with finite moments of all orders and positive integral against the square of every nonzero polynomial, Gaussian quadrature fits all polynomials up to polynomial degree 2m-1 exactly. Slightly less optimal fits are obtained when nodes are constrained to include endpoints, as in Radau quadrature or Lobatto quadrature.

W(x)intervalx_i are roots of
1(-1,1)P_n(x)
e^(-t)(0,infty)L_n(x)
e^(-t^2)(-infty,infty)H_n(x)
(1-t^2)^(-1/2)(-1,1)T_n(x)
(1-t^2)^(1/2)(-1,1)U_n(x)
x^(1/2)(0,1)x^(-1/2)P_(2n+1)(sqrt(x))
x^(-1/2)(0,1)P_(2n)(sqrt(x))

To determine the weights corresponding to the Gaussian abscissas x_i, compute a Lagrange interpolating polynomial for f(x) by letting

 pi(x)=product_(j=1)^m(x-x_j)
(1)

(where Chandrasekhar 1967 uses F instead of pi), so

 pi^'(x_j)=[(dpi)/(dx)]_(x=x_j)=product_(i=1; i!=j)^m(x_j-x_i).
(2)

Then fitting a Lagrange interpolating polynomial through the m points gives

 phi(x)=sum_(j=1)^m(pi(x))/((x-x_j)pi^'(x_j))f(x_j)
(3)

for arbitrary points x. We are therefore looking for a set of points x_j and weights w_j such that for a weighting function W(x),

int_a^bphi(x)W(x)dx=int_a^bsum_(j=1)^(m)(pi(x)W(x))/((x-x_j)pi^'(x_j))dxf(x_j)
(4)
=sum_(j=1)^(m)w_jf(x_j),
(5)

with weight

 w_j=1/(pi^'(x_j))int_a^b(pi(x)W(x))/(x-x_j)dx.
(6)

The weights w_j are sometimes also called the Christoffel numbers (Chandrasekhar 1967). For the member phi_n(x) of polynomial degree n in a family of orthogonal polynomials, set m=n above. Then

 phi_n(x)=A_npi(x),
(7)

where A_n is its leading coefficient. The weights are given by

w_j=1/(phi_n^'(x_j))int_a^bW(x)(phi_n(x))/(x-x_j)dx
(8)
=-(A_(n+1)gamma_n)/(A_nphi_n^'(x_j)phi_(n+1)(x_j)),
(9)

(Hildebrand 1956, p. 322), where

 gamma_m=int_a^b[phi_m(x)]^2W(x)dx.
(10)

Using the relationship

 phi_(n+1)(x_i)=-(A_(n+1)A_(n-1))/(A_n^2)(gamma_n)/(gamma_(n-1))phi_(n-1)(x_i)
(11)

(Hildebrand 1956, p. 323) gives

 w_j=(A_n)/(A_(n-1))(gamma_(n-1))/(phi_n^'(x_j)phi_(n-1)(x_j)).
(12)

(Note that Press et al. 1992 omit the factor A_n/A_(n-1).) In Gaussian quadrature, the weights are all positive. The error is given by

E_n=(f^((2n))(xi))/((2n)!)int_a^bW(x)[pi(x)]^2dx
(13)
=(gamma_n)/(A_n^2)(f^((2n))(xi))/((2n)!),
(14)

where a<xi<b (Hildebrand 1956, pp. 320-321).

Other curious identities are

 sum_(k=0)^n([phi_k(x)]^2)/(gamma_k)=(A_n)/(A_(n+1)gamma_n)[phi_(n+1)^'(x)phi_n(x)-phi_n^'(x)phi_(n+1)(x)]
(15)

and

sum_(k=0)^(n)([phi_k(x_j)]^2)/(gamma_k)=-(A_nphi_n^'(x_j)phi_(n+1)(x_j))/(A_(n+1)gamma_n)
(16)
=1/(w_j)
(17)

(Hildebrand 1956, p. 323).

In the notation of Szegö (1975), let x_(1n)<...<x_(nn) be an ordered set of points in [a,b], and let lambda_(1n), ..., lambda_(nn) be a set of real numbers. If f(x) is an arbitrary function on the closed interval [a,b], write the Gaussian quadrature as

 Q_n(f)=sum_(nu=1)^nlambda_(nun)f(x_(nun)).
(18)

Here x_(nun) are the abscissas and lambda_(nun) are the Cotes numbers.

The nodes and weights can also be obtained from the leading n×n block J_n of the Jacobi matrix for the normalized orthogonal polynomials. Its eigenvalues are the nodes x_i. If v^((i)) is a unit eigenvector for x_i and mu_0=int_a^bW(x)dx, then

 w_i=mu_0(v_1^((i)))^2.
(19)

This is the method of Golub and Welsch (1969, pp. 221-223). Equivalently, the Christoffel function gives w_i=lambda_(n-1)(x_i).

For example, the three-point Legendre-Gauss quadrature rule has

 J_3=[0 1/sqrt(3) 0; 1/sqrt(3) 0 2/sqrt(15); 0 2/sqrt(15) 0].
(20)

Its nodes are -sqrt(3/5), 0, and sqrt(3/5), with corresponding weights 5/9, 8/9, and 5/9. The rule is exact through polynomial degree 5.

GaussianQuadratureExactness

The rule's higher-degree exactness is illustrated above by the quartic polynomial f and its quadratic Lagrange interpolating polynomial p,

f(x)=1+x^4
(21)
p(x)=1+3/5x^2.
(22)

Their values agree at the three nodes. The blue and orange shaded regions lie where f-p is positive and negative, respectively. Their signed integrals cancel. Consequently,

 int_(-1)^1f(x)dx=int_(-1)^1p(x)dx=sum_(i=1)^3w_if(x_i)=(12)/5.
(23)

The numbers beneath the nodes are the corresponding weights.


See also

Chebyshev-Gauss Quadrature, Chebyshev Quadrature, Chebyshev-Radau Quadrature, Christoffel-Darboux Kernel, Christoffel Function, Discrete Variable Representation, Fundamental Theorem of Gaussian Quadrature, Hermite-Gauss Quadrature, Jacobi-Gauss Quadrature, Jacobi Matrix, Lagrange-Mesh Method, Laguerre-Gauss Quadrature, Legendre-Gauss Quadrature, Lobatto Quadrature, Orthogonal Polynomials, Radau Quadrature

Explore with Wolfram|Alpha

References

Abramowitz, M. and Stegun, I. A. (Eds.). Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables, 9th printing. New York: Dover, pp. 887-888, 1972.Acton, F. S. Numerical Methods That Work, 2nd printing. Washington, DC: Math. Assoc. Amer., p. 103, 1990.Arfken, G. "Appendix 2: Gaussian Quadrature." Mathematical Methods for Physicists, 3rd ed. Orlando, FL: Academic Press, pp. 968-974, 1985.Beyer, W. H. CRC Standard Mathematical Tables, 28th ed. Boca Raton, FL: CRC Press, p. 461, 1987.Chandrasekhar, S. An Introduction to the Study of Stellar Structure. New York: Dover, 1967.Gauss, C. F. "Methodus nova integralium valores per approximationem inveniendi." Commentationes Societatis regiae scientarium Gottingensis recentiores 3, 39-76, 1814. Reprinted in Werke, Vol. 3. New York: George Olms, p. 163, 1981.Golub, G. H. and Welsch, J. H. "Calculation of Gauss Quadrature Rules." Math. Comput. 23, 221-230, 1969. https://doi.org/10.1090/S0025-5718-69-99647-1.Hildebrand, F. B. Introduction to Numerical Analysis. New York: McGraw-Hill, pp. 319-323, 1956.Press, W. H.; Flannery, B. P.; Teukolsky, S. A.; and Vetterling, W. T. "Gaussian Quadratures and Orthogonal Polynomials." §4.5 in Numerical Recipes in FORTRAN: The Art of Scientific Computing, 2nd ed. Cambridge, England: Cambridge University Press, pp. 140-155, 1992.Stroud, A. H. and Secrest, D. Gaussian Quadrature Formulas. Englewood Cliffs, NJ: Prentice-Hall, 1966.Szegö, G. Orthogonal Polynomials, 4th ed. Providence, RI: Amer. Math. Soc., pp. 37-48 and 340-349, 1975.Whittaker, E. T. and Robinson, G. "Gauss's Formula of Numerical Integration." §80 in The Calculus of Observations: A Treatise on Numerical Mathematics, 4th ed. New York: Dover, pp. 152-163, 1967.

Referenced on Wolfram|Alpha

Gaussian Quadrature

Cite this as:

Weisstein, Eric W. "Gaussian Quadrature." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/GaussianQuadrature.html

Subject classifications