To carry out the definite integral of a given function :
|
(20) |
we need to know the antiderivative (primitive or indefinite integral)
of the integrand , satisfying
. However,
may be difficult or even impossible to obtain, when is
not an elementary function (e.g., the error function
), or the closed-form expression of
is unknown, its value is known only at a set of discrete
points. In such cases, can be approximated numerically by
integrating the interpolation polynomial of the integrand ,
such as the
Lagrange polynomial interpolation:
|
(21) |
based on a set of sammple points of the integrand
with and . As discussed
in the previoius chapter, the error of this approximation is
|
(22) |
Now the integral can be written as:
|
(23) |
Here is an nth order quadrature rule or formula:
|
(24) |
with coefficients
|
(25) |
These coefficients are independent of the specific integrand
, and can therefore be pre-calculated given the abscissas
of the sammple points. When in particular
and
, we get an important property of these
coefficients:
|
(26) |
Also, above is the integration error of the quadrature
rule:
In particular, if
, we have
,
and
|
(27) |
and we also have
How accurate a quadrature rule approximate the true integral
can be measured by its degree of accuracy. If the
quadrature rule is exact for integrand if ,
but not exact if , then its degree of accuracy is .
We immediately see that the degree of accuracy of
based on is at least (
, ,
therefore ).