GATE / CS ARCHIVE

SIMILAR QUESTIONS / ENGINEERING MATHEMATICS & OTHER TOPICS

Use polynomial exactness of trapezoidal and Simpson rules

3 questions solved the same way, newest first. Back to Engineering Mathematics & Other Topics

How these are solved

Mention 2014 additionally tests trapezoidal overestimation for convex x^2, unlike pure exactness-degree selection in 1993/2002. Preserve as extended pattern variant.

2 marks · MCQ
Not in GATE 2027 syllabusReport issue

Numerical Methods

Question 46, GATE 2014: For K=∫ₐᵇ x² dx, evaluate statements I: trapezoidal-rule K is always at least the exact integral; II: Simpson-rule K is always exact. A I only; B II only; C both; D neither.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

Our answer: C under the usual a≤b interval convention

Step 1: On an ordinary forward interval a≤b, x² is convex because its second derivative is 2. Every trapezoidal chord lies on or above the curve, so summing trapezoid areas overestimates the integral; I holds. Step 2: Simpson’s rule integrates every polynomial of degree at most three exactly when its partition meets the rule's requirements. Since x² has degree two, II holds as well. Step 3: The intended answer is C. Preserve the implicit ordering qualification: reversing integration limits reverses signed errors, so I's inequality is not valid for arbitrary a>b. The source says only that a and b are given.

Original paper, page 64 · Answer key

1 mark · MCQ
Not in GATE 2027 syllabusReport issue

Exactness of the trapezoidal rule

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

Not in GATE 2027 syllabusReport issue

Polynomial exactness of Simpson integration

Numerical Methods

Question 1.3, GATE 1993: For which polynomial degrees 1,2,3,4 is Simpson’s rule exact?
Tap to enlarge
Select all that apply
Answer & solution

Answer: A,B,C (no official key was published)

Simpson’s rule integrates every polynomial of degree at most three exactly. One way to see the extra cubic exactness is to center the interval: the odd cubic term integrates to zero and is canceled by the symmetric sample weights, while the rule integrates constants, linear and quadratic terms exactly. Its error involves the fourth derivative, which vanishes for degrees one through three. A general quartic has nonzero error, so degree four is not guaranteed. As a multiple-select question, all of A,B,C are required.

Original paper, page 1