Numerical Integrals
A somewhat interesting topic is removed from the CAIE syllabus of 9709: Numerical Integration. Well, we still have the oldie but goodie trapezium rules:
but this is hardly inspiring at all.
Interpolation with Equal Division
In Edexcel iAL syllabus, a more accurate Newton-Cotez formula is introduced, the 1/3 Simpson's rule:
That is, by evaluating an additional point in the interval (the midpoint), we can interpolate the function with a Quadratic, which gives a better guess of the original integration.
To extend this though, we can of course add more evenly distributed points to the interval and obtain polynomials of higher degree to achieve better approximation. That is how we have the 3/8 Simpson's rule:
and other Newton-Cotez formulae.
Interpolation of Random Points
The above only interests us to a certain degree, as adding points polynomially adds complexity. We would like improve our result by fine-tuning the points.
To make things easier, let's say we integrate on interval . This can be done by a simple change of variable. We are looking for 's that best approximates:
Since we have 's to choose from, the degree of freedom of this system is , we can expect that the approximation is accurate for polynomials with degree less than .
Actually, we can achieve that by saying "we want the model be accurate for as long as ".
or in matrix format
,
where the coefficient is the well-known Vendermonde matrix. But, can we still improve it?
Roots of Legendre Polynomial
We know that Legendre Polynomial is orthogonal to every polynomial that is of degree less than (because .)
Now if we divide a polynomial of degree by this :
By synthetic division, has a degree less than and less than .
The first term on the right is , so we can evaluate , the integration of -degree polynomial accurately by evaluating a -degree polynomial.
The only thing left here is to calculate . By remainder theorem, we notice that if , then .
Gaussian Quadrature
The above results summary as following: The integration of any function on can be approximated to a polynomial of degree of by calculating the weighted function values , where 's are the roots of Legendre polynomial and 's are obtained by interpolation.
This method is known as Gaussian Quadrature rule, and can be applied to other orthogonal polynomials.