Question

With respect to the numerical evaluation of the definite integral, K=∫abx2 dxK = \int_a^b x^2 \, dx, where aa and bb are given, which of the following statements is/are TRUE?

I) The value of KK obtained using the trapezoidal rule is always greater than or equal to the exact value of the definite integral.
II) The value of KK obtained using the Simpson's rule is always equal to the exact value of the definite integral.

Choose one option
Official answer and solution
Official answer
C
From
Official GATE 2014 answer key

Solution

Apply the error formulas for Trapezoidal and Simpson's rules to evaluate the approximations for a quadratic integrand.

Given integrand f(x)=x2f(x) = x^2.

  1. Statement I (Trapezoidal Rule):

    • The global error of the composite Trapezoidal rule is given by:
      ET=−(b−a)312n2f′′(ξ),ξ∈(a,b).E_T = -\frac{(b - a)^3}{12n^2} f''(\xi), \quad \xi \in (a, b).
    • Here f(x)=x2  ⟹  f′(x)=2x  ⟹  f′′(x)=2>0f(x) = x^2 \implies f'(x) = 2x \implies f''(x) = 2 > 0.
    • Because the second derivative is strictly positive, f(x)=x2f(x) = x^2 is strictly convex.
    • Geometrically, the straight secant lines of trapezoids lie entirely above the convex curve y=x2y = x^2.
    • Consequently, the trapezoidal sum always overestimates the true area under the curve:
      Ktrap≥Kexact.K_{\text{trap}} \ge K_{\text{exact}}.
    • Therefore, Statement I is TRUE.
  2. Statement II (Simpson's Rule):

    • The global error of Simpson's 1/31/3 rule is given by:
      ES=−(b−a)5180n4f(4)(η),η∈(a,b).E_S = -\frac{(b - a)^5}{180n^4} f^{(4)}(\eta), \quad \eta \in (a, b).
    • For f(x)=x2f(x) = x^2, the fourth derivative is identically zero (f(4)(x)=0f^{(4)}(x) = 0).
    • Hence, the error is exactly zero: ES=0E_S = 0.
    • The value obtained using Simpson's rule is always strictly equal to the exact value of the definite integral.
    • Therefore, Statement II is TRUE.

Hence, Both I and II are TRUE (option C).

Final answer

C

Common trap

Assuming Simpson's rule is only an approximation for quadratic polynomials, whereas it is exact for all polynomials up to degree 3.

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2014 Computer Science and Information Technology (CS) Session 3
Question
56 of 65, printed as CS Q.46
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.