The trapezoidal rule applied on $ \int_0^{2} [f(x)] dx$ gives the value 5 and the Midpoint rule gives the value 4. What value does Simpson's rule give?
So we have that T=f(0)+f(2).
The Simpson's value is S=(1/3)*(f(0) + 4f(1)+ f(2))
f(1) here is equal to 4 since its the midpoint value.. I dont how how to combine these together to find the simpson's value