Gaussian quadrature
How Gaussian quadrature chooses optimal nodes and weights using orthogonal polynomials: Legendre, Chebyshev, Laguerre and Hermite.
General idea
Newton-Cotes fixes equally spaced nodes. Gauss does the opposite: it allows the nodes to move and computes weights so the rule is exact for polynomials of the highest possible degree.
Gauss-Legendre
Gauss-Legendre uses on . To apply the rule on , the integration interval is transformed and multiplied by the Jacobian.
| n | Nodes | Weights |
|---|---|---|
| 2 | -0.577350, 0.577350 | 1.000000, 1.000000 |
| 3 | 0.000000, -0.774597, 0.774597 | 0.888889, 0.555556, 0.555556 |
| 4 | -0.339981, -0.861136, 0.339981, 0.861136 | 0.652145, 0.347855, 0.652145, 0.347855 |
| 5 | 0.000000, -0.538469, -0.906180, 0.538469, 0.906180 | 0.568889, 0.478629, 0.236927, 0.478629, 0.236927 |
Other Gaussian families
The family is chosen by looking at the weight and the domain. If the integral already contains a singularity or an exponential, it is better not to fight it: include it in the weight.
| Family | Weight and domain | Polynomials |
|---|---|---|
| Legendre | w(x)=1, [-1,1] | p0=1, p1=x, recurrence by Legendre |
| Chebyshev | w(x)=1/sqrt(1-x^2), [-1,1] | T0=1, T1=x, Tk=2xT(k-1)-T(k-2) |
| Laguerre | w(x)=e^(-x), [0,+infty) | L0=1, L1=1-x, recurrence by Laguerre |
| Hermite | w(x)=e^(-x^2), (-infty,+infty) | H0=1, H1=2x, H(k+2)=2xH(k+1)-2(k+1)Hk |