The integral over a finite interval of a function
for an arbitrary function with a non-negative weight function
can be approximated by integrating its approximation by
Lagrange polynomials:
(12)
where
. Thus the constant
coefficients
are found which are used for the approximation of the integral.