Your basic quadrature rule should not depend on , you probably mean:

It would also help if you posted the complete question as worded in the original

You build the composite rule from:This works with h = 1 on f(x) = x for example, but I cannot figure out how to get it to work if you take h = 1/2 for example. Please help! I figured this out but it doesn't seem to work.

h/12[f0+8f1+4f2+8f3+....+4fn-2+8fn-1 -fn]

Thanks

for and

CB