Derivation: two-point Gauss-Legendre
How imposing exactness up to degree 3 gives the nodes and weights 1 on .
Exactness for 1, x, x² and x³
Seek a symmetric rule on with nodes and and equal weights , because the interval and the weight are symmetric.
Impose exactness for :
The odd functions and are automatically exact by symmetry. Impose exactness for :
Solving for r gives the two-point rule: