# Numerical Analysis - Using Gaussian quadrature

• Nov 29th 2010, 07:57 AM
Mahonroy
Numerical Analysis - Using Gaussian quadrature
Hello, I'm needing to use the Gaussian quadrature rule on this function, but am confused as how to even start it, or what equation to use. All of the examples I could find are from -1 to 1 and my problem is from 0 to 2. Any help is greatly appreciated.
• Nov 29th 2010, 08:56 AM
TheEmptySet
Quote:

Originally Posted by Mahonroy
Hello, I'm needing to use the Gaussian quadrature rule on this function, but am confused as how to even start it, or what equation to use. All of the examples I could find are from -1 to 1 and my problem is from 0 to 2. Any help is greatly appreciated.

Gaussian quadrature - Wikipedia, the free encyclopedia
• Nov 29th 2010, 09:33 AM
chisigma
Quote:

Originally Posted by Mahonroy
Hello, I'm needing to use the Gaussian quadrature rule on this function, but am confused as how to even start it, or what equation to use. All of the examples I could find are from -1 to 1 and my problem is from 0 to 2. Any help is greatly appreciated.

The change of variable $x= 1+t$ tranform the integral as follows...

$\displaystyle \int_{0}^{2} e^{x^{2}}\ dx = \int_{-1}^{1} e^{(1+t)^{2}}\ dt$ (1)

Kind regards

$\chi$ $\sigma$
• Nov 30th 2010, 04:59 AM
Mahonroy
This makes sense now, just shifting the graph up to line it up with the new interval, thanks!