GATE / CS ARCHIVE

SIMILAR QUESTIONS / ENGINEERING MATHEMATICS & OTHER TOPICS

Scale trapezoidal integration error with subdivision width

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

2 marks · MCQ
Not in GATE 2027 syllabusReport issue

Trapezoidal error bound versus actual minimum

Numerical Methods

Question 21, GATE 2008: What minimum number of equal subintervals is needed to approximate ∫₁² xe^x dx with error at most (1/3)×10^−6 using the trapezoidal rule?

(A) 1000e
(B) 1000
(C) 100e
(D) 100
Tap to enlarge
Your answer
Answer & solution

Answer: A is the conventional sufficient bound; literal minimum is not represented (no official key was published)

1. For f(x)=xex on[1,2], f″(x)=(x+2)ex is increasing, with maximum 4e². The composite trapezoidal bound is |En|≤4e²/(12n²)=e²/(3n²). Requiring this upper bound≤10−6/3 gives n≥1000e, corresponding to A; an integer subdivision count would be ceil(1000e)=2719.
2. This is a sufficient worst-derivative bound, not the exact minimum demanded by the wording. Direct high-precision evaluation gives error 3.33057431918×10−7 at n=2046, already within the tolerance and substantially below 2719. At n=2045 the error is 3.33383240096×10−7.
3. Thus A describes the standard error-bound calculation, not a literal minimal integer answer. No official key is asserted.

Original paper, page 5

2 marks · MCQ
Not in GATE 2027 syllabusReport issue

Trapezoids guaranteed by an error bound

Numerical Methods

Question 4.10, GATE 1997: Approximate ln7=integral from 1 to 7 of 1/x using uniform trapezoids. Given bound (b−a)h² max|f″|/12, find minimum count guaranteeing error≤10^−4.
Tap to enlarge
Your answer
Answer & solution

Answer: C: 600 by the supplied bound (no official key was published)

For f (x)=1/x, f″(x)=2/x³, whose maximum on[1, 7] is 2. With N trapezoids, h=6/N. The error bound becomes (6/12)·(36/N²)·2=36/N². Requiring 36/N²≤10−4 gives N²≥360000 and N≥600. Thus C is the smallest integer certified by this bound. The actual error can be smaller than the bound; the question asks a guarantee from the supplied estimate, not the smallest empirically sufficient count.

Original paper, page 4