Skip to main content

Gauss quadrature numerical integration

Short answer

Gauss quadrature approximates ∫_{-1}^{1} f dξ ≈ Σ w_i f(ξ_i), integrating polynomials up to degree 2n–1 exactly. After mapping x=1+ξ, exact I=12.4. 2‑point gives 12.222 (−1.4% error); 3‑point gives 12.400 (exact).

Explain Gauss quadrature as used in finite element integration. Evaluate I=∫02(x4+3x) dxI = \displaystyle\int_0^2 (x^4 + 3x)\,dx using 2-point and 3-point Gauss quadrature and compare with the exact value.

Gauss quadrature

In isoparametric elements, the stiffness integral ∫[B]T[D][B]det⁡J dξ dη\int [B]^T[D][B]\det J\,d\xi\,d\eta is rational in ξ\xi and η\eta, so it is evaluated numerically over −1≤ξ≤1-1 \le \xi \le 1:

∫−11f(ξ) dξ≈∑i=1nwi f(ξi)\int_{-1}^{1} f(\xi)\,d\xi \approx \sum_{i=1}^{n} w_i\,f(\xi_i)

An nn-point rule has sampling points ξi\xi_i and weights wiw_i chosen to integrate exactly a polynomial of degree up to 2n−12n - 1.

nnPoints ξi\xi_iWeights wiw_iExact up to degree
1021
2±0.57735\pm0.577351, 13
3±0.77460\pm0.77460, 05/9, 5/9, 8/95

For two dimensions, the rule is applied in both directions, ∑∑wiwjf(ξi,ηj)\sum\sum w_iw_jf(\xi_i, \eta_j) (2×22\times2 gives 4 points for a 4-node element).

Numerical example

Change of limits: x=1+ξx = 1 + \xi, so dx=dξdx = d\xi and f(ξ)=(1+ξ)4+3(1+ξ)f(\xi) = (1 + \xi)^4 + 3(1 + \xi).

Exact value:

I=[x55+3x22]02=325+6=12.4I = \left[\frac{x^5}{5} + \frac{3x^2}{2}\right]_0^2 = \frac{32}{5} + 6 = 12.4

2-point rule: ξ=±0.57735\xi = \pm0.57735

ξ\xix=1+ξx = 1 + \xiffww
−0.57735-0.577350.422650.03191+1.26795=1.299860.03191 + 1.26795 = 1.299861
+0.57735+0.577351.577356.19035+4.73205=10.922366.19035 + 4.73205 = 10.922361
I2=1.29986+10.92236=12.222I_2 = 1.29986 + 10.92236 = 12.222

The error is −1.4%-1.4\%; the rule is not exact because x4x^4 is of degree 4 > 3.

3-point rule: ξ=−0.77460, 0, +0.77460\xi = -0.77460,\ 0,\ +0.77460

ξ\xixxffww
−0.77460-0.774600.225400.678795/9
01.000004.000008/9
+0.77460+0.774601.7746015.241215/9
I3=59(0.67879+15.24121)+89(4.0)=8.8444+3.5556=12.400I_3 = \tfrac{5}{9}(0.67879 + 15.24121) + \tfrac{8}{9}(4.0) = 8.8444 + 3.5556 = 12.400

This equals the exact value, since the polynomial is of degree 4 ≤ 5.

Answer: 2-point: I=12.222I = 12.222 (error 1.4 %); 3-point: I=12.400I = 12.400 (exact).

✓ Answer checked by Claude Opus 5.5 (high effort)

All Finite Element Method chapter 7 questions →