 This exact rule is known as the Gauss-Legendre quadrature rule.The quadrature rule will only be an accurate approximation to the integral above if is well-approximated by a polynomial of degree or less on .The Gauss-Legendre quadrature rule is not typically used for integrable functions with endpoint singularities.