## Numerical Integration problem

Hi,

Ok ill get straight to it...heres the question....

Derive an integration formula of the following form which is exact for as high a degree of polynomial as possible:

(3h)
S f(x)dx = af(0) + bf(h) + cf(2h) +df(3h)
(0)
(3)
Use this formula to estimate S (x^2)(e^-x)dx
(0)

Note: S is the symbol for integration.

I am starting my xmas exams next week and this is the only question on my numerical analysis exam paper which i cant answer. I would be very appreciative for any help whatsoever on this problem.

Thanks

Dan