Similar questions 2 more →
Numerical Methods

Answer & solution
Answer: C (no official key was published)
Step 1: Check what the trapezoidal formula integrates.
Step 2: On [a,b], the approximation is (b−a)(f(a)+f(b))/2. Substituting f(x)=c gives c(b−a), and substituting f(x)=mx+c gives m(b²−a²)/2+c(b−a), both exact integrals. For f(x)=x² on [0,1], it gives 1/2 instead of 1/3, ruling out degree two.
Conclusion: The trapezoidal rule integrates the straight line joining the endpoint values. It is exact for every polynomial of degree 0 or 1, C. A quadratic such as x² already has a nonzero error on a nondegenerate interval.