Undergrad How do you Calculate the Points in Gaussian Quadrature?

Click For Summary
To calculate points for Gaussian Quadrature, specifically for two-point integration, the necessary values are derived from the zeros of Legendre polynomials. The points are located at ##\pm \sqrt{\frac{1}{3}}##, which are the roots of the second-order Legendre polynomial ##P_2(x)##. The iterative method used to find these points is based on Newton's method, which refines estimates using the ratio of the polynomial and its derivative. This process continues until the result converges to zero, confirming the accuracy of the points. Understanding the relationship between Legendre polynomials and their roots is crucial for effective numerical integration using Gaussian Quadrature.
ecastro
Messages
249
Reaction score
8
How do you calculate the necessary points in a function to numerically integrate it using the Gaussian Quadrature?

If I were to evaluate a function using two points, the Gaussian Quadrature needs the value of the function at ##\displaystyle{\pm \sqrt{\frac{1}{3}}}## with weights of unity. How did they calculate the ##\displaystyle{\pm \sqrt{\frac{1}{3}}}##?

I have looked through an example of how the points are located, and in this example, the point is estimated by dividing the length of the function into the number of required points (if the function is to be integrated with two points, the whole function is divided into three parts), and somehow narrow down the location of the point by using this relation:
\begin{equation*}
x - \frac{P_n\left(x\right)}{P_n'\left(x\right)}
\end{equation*}
where ##x## is the estimated point and the functions on the second term are the Legendre Polynomials. The result of this difference will be the new location of the point. This process is repeated until the result is almost zero.

If the above equation is acceptable, what is the concept behind the second term (the ratio between the Legendre Polynomials)?
 
Mathematics news on Phys.org
The abscissas (or points) used in a Gauss-Legendre quadrature of order ##n## are the zeros of the Legendre polynomial of the same order, i.e. ##P_n(x)##. So, for order 2 they are the two roots of ##P_2(x)##. As you noted they are ##\pm \sqrt{1/3}##. The formula you are giving is the Newton method. That is, you can find the root of a function f(x) by using the recursive relation
##x_{i+1}=x_i-\frac{f(x_i)}{f'(x_i)}##,
starting from a guess ##x_0##. The method is derived by doing a Taylor expansion of ##f(x)## around ##x=x_i##.
 
I see. Now it makes sense. Thank you for your help!
 

Similar threads

  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 18 ·
Replies
18
Views
3K
Replies
2
Views
2K
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 19 ·
Replies
19
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K