GATE / CS ARCHIVE

GATE CSE 2002 / QUESTION 1.2

Exactness of the trapezoidal rule

Engineering Mathematics & Other Topics · Numerical Methods · Full GATE CSE 2002 paper

GATE 2002, Q1.2 1 mark · MCQ
Not in GATE 2027 syllabusReport issue

Numerical Methods

Question 1.2, GATE 2002: For which polynomial degrees does the trapezoidal integration rule give an exact result?
(A) 0 but not 1; (B) 1 but not 0; (C) 0 or 1; (D) 2.
Tap to enlarge
Your answer
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.

Original paper, page 1