Module for Gauss-Legendre Quadrature

Check out the new Numerical Analysis Projects page.

 

Background. Gauss-Legendre Quadrature.  To approximate the integral [Graphics:Images/GaussLegendreMod_gr_1.gif] by sampling  [Graphics:Images/GaussLegendreMod_gr_2.gif]  at the  n  unequally spaced abscissas  [Graphics:Images/GaussLegendreMod_gr_3.gif] , where the corresponding weights are  [Graphics:Images/GaussLegendreMod_gr_4.gif] .  The abscissas and weights are obtained from a table of values.  For convenience we will illustrate three cases and simplify the notation by using single subscripted values. The method is attributed to Johann Carl Friedrich Gauss (1777-1855) and Adrien-Marie Legendre (1752-1833).  

The Gauss-Legendre quadrature rule for n = 2 points.

The Gauss-Legendre quadrature rule for n = 3 points.

The Gauss-Legendre quadrature rule for n = 4 points.

 

Animations (Gauss-Legendre Quadrature  Gauss-Legendre Quadrature).  Internet hyperlinks to animations.

 

Example 1.  Use the  Gauss-Legendre quadrature rules for n = 2, 3, and 4 points to compute numerical approximations for [Graphics:Images/GaussLegendreMod_gr_11.gif] .  

Solution 1.

 

Example 2.  Compare the accuracy of the Gauss-Legendre quadrature rules for n = 2, 3, and 4 points
with the Trapezoidal rule, Simpson's Rule and Simpson's [Graphics:Images/GaussLegendreMod_gr_25.gif] rule for n = 2, 3, and 4 points respectively.
Illustrate the comparisons for the integral  [Graphics:Images/GaussLegendreMod_gr_26.gif] .  

Solution 2.

 

More Background. The shifted Gauss-Legendre rule for [a,b].   To approximate the integral [Graphics:Images/GaussLegendreMod_gr_62.gif] use the change of variable
[Graphics:Images/GaussLegendreMod_gr_63.gif] . Then use [Graphics:Images/GaussLegendreMod_gr_64.gif] and apply the Gauss-Legendre rules for [Graphics:Images/GaussLegendreMod_gr_65.gif].

 

Example 3.  Use the shifted Gauss-Legendre rules for n = 3 points to approximate the integrals
Illustrate the comparisons for the integral  [Graphics:Images/GaussLegendreMod_gr_66.gif] .  

Solution 3.

 

Example 4.  Investigate the truncation error bound formulas for the Gauss-Legendre quadrature rules of n = 2, 3, and 4 points.
Use the integral  [Graphics:Images/GaussLegendreMod_gr_93.gif] for the investigation.

Solution 4.

 

Old Lab Project (Gauss-Legendre Quadrature  Gauss-Legendre Quadrature).  Internet hyperlinks to an old lab project.  

 

Research Experience for Undergraduates

Gauss-Legendre Quadrature  Gauss-Legendre Quadrature  

Internet hyperlinks to web sites and a bibliography of articles.  
  

Downloads (Gauss-Legendre Quadrature Gauss-Legendre Quadrature).  

Download this Mathematica notebook.  

 

 

 

 

 

 

 

 

 

 

 

(c) John H. Mathews 2003