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:

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

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.