Legendre Polynomials, Lagrange Interpolation, and Gaussian Quadrature
This section develops the mathematical foundation behind Gaussian quadrature and orthogonal collocation. The key ingredients are Legendre polynomials, Lagrange interpolating polynomials, and Gaussian integration rules.
Legendre Polynomials¶
Legendre polynomials satisfy
for on .
The first two are
The recurrence relation is
Orthogonality¶
Legendre polynomials satisfy
Therefore every polynomial of degree at most is orthogonal to .
Lagrange Interpolation¶
Given distinct support points
define
These satisfy
Hence an interpolant is
Gaussian Quadrature¶
Approximate
where
Legendre–Gauss (LG)¶
LG points are the roots of
Using points exactly integrates every polynomial of degree
Legendre–Gauss–Radau (LGR)¶
One endpoint is fixed, typically
The remaining points are roots of
Exactness:
Legendre–Gauss–Lobatto (LGL)¶
Both endpoints are fixed,
Interior points are roots of
Exactness:
Comparison¶
| Method | Endpoints | Exact degree |
|---|---|---|
| LG | None | |
| LGR | One | |
| LGL | Both |
Why Gaussian Quadrature Works¶
A polynomial of degree at most can be decomposed into
where and have degree at most . Orthogonality eliminates the first term after integration, while the remainder is represented exactly by the Lagrange interpolant.
Accuracy Growth¶
For LG quadrature:
| Points | Exact degree |
|---|---|
| 2 | 3 |
| 3 | 5 |
| 4 | 7 |
| 5 | 9 |
| 6 | 11 |
| 7 | 13 |
Each additional collocation point increases the exact polynomial degree by two.
Application to Optimal Control¶
Gaussian quadrature provides highly accurate approximations for:
integral cost functions,
state integration,
orthogonal collocation methods,
pseudospectral optimal control.
Summary¶
Legendre polynomials are orthogonal on .
Lagrange polynomials interpolate exactly at support points.
Gaussian quadrature combines both ideas.
LG, LGR and LGL differ by endpoint constraints.
Gaussian quadrature achieves much higher accuracy than low-order rules using the same number of points.
Connection. Those approximation tools determine both quadrature weights and the endpoint structure of the LGL transcription.