# Question: construct a quadrature rule of the form which is exactly...

###### Question details

Construct a quadrature rule of the form which is exactly for polynomials <= 2. (a) derive the 3-point (legendre) Gaussian quadrature to approximate f(x) (b) versify its degree of precision (c) compare the accuracy of this 3-point gaussian quadrature with that of the simple simpson rule for approximating e^x (d) show that the 3-point gaussian quadrature can be used for approximating f(x) by doing a simple change of variables and apply this to approximate sin(x)/x