Approximate the following integral using Gaussian quadrature with n=3. Compare your result with
the exact one

Solution:
Consider the integral

Here,

Transform the given integral into an integral over
by using the following transformation:
![2x-a-b b-a ⇒x=¹[(b-a)t+a+b]= 0.251 +3.25](https://media.cheggcdn.com/study/139/1391983d-6456-4a1b-acce-6b03f9113bce/6506-4.7-2E-i106.png)
This permits Gaussian quadrature to be applied in any interval
, because,

Therefore given integral transforms to,

Gaussian quadrature formula with
is,
…… (1)
Here
, and

Substituting these values in (1) gives,


Therefore,


= 0.6362131959