Note that polynomials in
contain at most
parameters. We'll use the ``method of undetermined coefficients'', as
is done in the following example:
Example Let
and
, then
are chosen so that
i.e.
.
Since
,
We can reduce the problem of choosing the
to is equivalent to choosing them
when
(a basis of
. These are the conditions:
More general case: Use orthogonal polynomials on the interval
of interest: use Legendre Polynomials on
,
Hermite on
, etc.
In particular, for
: Use Legendre Polynomials
.
Properties
whenever
Theorem: Suppose
are roots of the
Legendre polynomial
and that for each
Error in Gaussian Quadrature using Legendre Polynomials:
If a polynomial
of degree less then
is divided by the
Legendre polynomial
we get
with
and
of degree
.
Note that the first of the properties of the Legendre polynomials (orthogonality)
guarantees that
To get the values of the roots of
consult Abramowitz and Stegun,
Stroud and Secrest or symbolic math programs like Maple or Mathematica.
For the general interval: Convert the interval
into
using the following: Let