The problem is to compute the numerical value of the definite integral
I(f)=∫abf(x)dx where f:[a,b]→R is a given function. The solution to this problem usually takes the following form: Form a partition or grid
a≤x0≤x1≤…≤xn≤b and approximate the integral by a formula of the type
In(f)=j=0∑nwjf(xj) where the {wj} are some weights. We may be interested in the following type of questions.
Given the nodes {xj} how to find the weights to obtain a good
approximation ?
Can we find both the nodes and weights so that the formula is as
accurate as possible ?
To measure the accuracy, we may establish a result like
∣I(f)−In(f)∣=O(np1),for some p>0 Then the approximations converge fast if p is very large and this is algebraic convergence. A still better approximation is one which would converge exponentially
∣I(f)−In(f)∣=O(e−αn),for some α>0 1Integration via function approximation¶
Let {fn} be a family of approximations to f such that
n→∞lim∥f−fn∥∞=0 i.e., they converge pointwise sense. Then define
In(f)=∫abfn(x)dx=I(fn) Then the error in the integral is
En(f)=I(f)−In(f)=∫ab[f(x)−fn(x)]dx so that
∣En(f)∣≤∫ab∣f(x)−fn(x)∣dx≤(b−a)∥f−fn∥∞ We thus automatically obtain convergence of the integral approximations.