Solution

ID: past-exam-of-the-approximation-theory-and-finite-element-methods-course-of-the-university-of-oxford/2008/a/2/d/solution

Exactness on constants and linear functions gives
With the nodes just computed, the solution is
To prove cubic exactness rather than merely moment matching, divide a polynomial of degree at most three by the monic :
The weighted integral of vanishes by orthogonality, and its two nodal values vanish because the nodes are roots of . The remaining is integrated exactly by the two equations above. This proves Gaussian quadrature exactness through degree three.

New to topics? Read the docs here!