For two-node Gaussian quadrature with linear weight, the monic node polynomial must be orthogonal to and for weight . Indeed, exactness through degree three makes the quadrature of and vanish at its nodes. The moment equations are
so and . Thus the Gaussian quadrature nodes, labelled in increasing order, are
Integrating the linear Lagrange interpolation cardinal functions gives the weights
They are positive, sum to , and reproduce the first moment . Any cubic polynomial has remainder of degree at most one after division by ; orthogonality annihilates the other part both in the integral and at the nodes. This proves degree-three exactness, not merely the two moment conditions for the weights.
For any distinct nodes, the polynomial has degree , is nonnegative, and vanishes at every node. The quadrature rule sum for is zero, but because the weight is positive and is positive except at finitely many points. Therefore no such rule is exact for all polynomials of degree at most , irrespective of the chosen weights.
For the sine weight, its first four moments are . A monic degree-two orthogonal polynomial is
since direct use of these moments gives . Its roots lie in and are
The weights follow by requiring exactness for and : and , and the symmetric nodes imply both weights are one. To prove cubic exactness, divide any cubic as , with of degree at most one. The integral of is zero by orthogonality, and its nodal values vanish; the remaining linear polynomial is integrated exactly. This is the two-node Gaussian quadrature with sine weight; the argument proves its Gaussian quadrature property without assuming a general quadrature theorem.
Use the Lagrange interpolation polynomial
Its square has degree , so the exactness already proved gives
The positive weights of Gaussian quadrature follow because is a nonzero continuous polynomial. Thus these Gaussian quadrature weights are in fact positive, rather than merely nonnegative.
A degree- Legendre polynomial is orthogonal, for integration on , to every polynomial of degree at most , and has distinct roots in . Divide by :
The Orthogonality of Legendre polynomials gives . At every quadrature node , . The assumed exactness for therefore proves exactness up to degree , the characteristic property of Gaussian quadrature.
To prove convergence of positive quadrature on continuous functions, for a continuous , the Weierstrass approximation theorem supplies a polynomial with . For every sufficiently large , the Gaussian quadrature rule is exact for this fixed polynomial. Positivity of its weights and their sum then give
Since is arbitrary, . Notice that no differentiability of is needed; uniform polynomial approximation and positivity provide the whole argument.
Let be the distinct interior roots of where its sign changes, and put . If , orthogonality gives . But has constant sign on , apart from its isolated zeros, because every sign change has been canceled. It is not identically zero, and the positive weight makes its integral nonzero, a contradiction. Thus . Degree forces exactly distinct simple roots, all inside .
For distinct nodes, let . Lagrange interpolation polynomial gives for every polynomial of degree at most . Integrating this identity proves exactness with .
For the Gaussian quadrature nodes, divide any as , with . The integral of vanishes by orthogonality, and its nodal values vanish because . The remaining polynomial is integrated exactly by the preceding interpolation result. Hence
Its weights are positive: exactness applied to gives .
Define the error functional . It annihilates polynomials of degree at most . For , the Peano kernel theorem gives
where a formal Peano kernel with the normalization made explicit is
No evaluation of is needed. The supplied inner product presupposes an integrable positive weight on the finite interval, so the integral and point-evaluation error functional is bounded on continuous functions.
For fixed interpolation nodes , interpolate any as
Integrating shows that the unique weights making the quadrature rule exact through degree are
Now let the nodes be the zeros of the degree- orthogonal polynomial . Given any , polynomial division gives
Orthogonality gives , while makes the quadrature sum for vanish. The rule is already exact on , so it is exact on . This is the defining precision property of Gaussian quadrature.
The Legendre polynomial is orthogonal on to every polynomial of degree below . Suppose it changes sign at only distinct interior points , and put
choosing its overall sign so that on . This product is positive except at finitely many points, so
contradicting orthogonality because . Thus has at least sign-changing roots in ; its degree is , so these are all its roots and they are distinct.
For arbitrary distinct nodes , let
be the Lagrange basis polynomials. Every polynomial of degree below satisfies , so the required weights exist and are
They are unique because applying any such formula to recovers .
Now assume exactness for every of degree below and define . For every polynomial of degree below , the product has degree below and vanishes at every node. Therefore
There is a unique monic polynomial of degree orthogonal to all lower-degree polynomials, so is the monic normalization of and the are precisely the roots of . Taking gives
Finally has degree , so exactness gives
These are the positive weights of Gaussian quadrature.
Let be the Lagrange interpolation polynomial for the roots , and define
For , polynomial division gives with . Orthogonality kills the first term, while interpolation gives . Therefore
Taking proves uniqueness. Taking also shows
This is Gaussian quadrature.