Numerical Integration: Gaussian Quadrature

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
3 replies · 4K views
Somefantastik
Messages
226
Reaction score
0
[tex]\int^{1}_{-1}f(x)dx = \sum^{n}_{j=-n}a_{j}f(x_{j})[/tex]

Why does [tex]\sum_{j}a_{j} = 2[/tex] ?

I know that the aj's are weights, and in the case of [-1,1], they are calculated using the roots of the Legendre polynomial, but I don't understand why they all add up to 2.
 
Physics news on Phys.org
I believe that they add up to 2 because they are symmetric about the midpoint of the integration range of [-1,1]. For instance if you used a sampling of 10 points (on the same interval of integration) 5 would be positive and 5 would be negative. If you summed up the 5 positive points you would you arrive at 2.0

Thanks
Matt
 
Last edited:
yeah when graphed out weights vs. abscissa, it looks like the attached photo, which is symmetric.
 

Attachments

  • Gaussian Weights 300.jpg
    Gaussian Weights 300.jpg
    15.3 KB · Views: 546
For more information on Gaussian Quadrature see,

"Gaussian Quadrature Formulas" by Stroud and Secrest.

This was printed in 1966 but it is still accurate for today.

Thanks
Matt