Question

Function ff is known at the following points:

x00.30.60.91.21.51.82.12.42.73.0f(x)00.090.360.811.442.253.244.415.767.299.00\begin{array}{c|ccccccccccc} x & 0 & 0.3 & 0.6 & 0.9 & 1.2 & 1.5 & 1.8 & 2.1 & 2.4 & 2.7 & 3.0 \\ \hline f(x) & 0 & 0.09 & 0.36 & 0.81 & 1.44 & 2.25 & 3.24 & 4.41 & 5.76 & 7.29 & 9.00 \end{array}

The value of ∫03f(x)dx\int_0^3 f(x) dx computed using the trapezoidal rule is

Choose one option
Official answer and solution
Official answer
D
From
Official GATE 2013 answer key

Solution

Apply the composite Trapezoidal rule formula with uniform step size h = 0.3.

The composite Trapezoidal rule for numerical integration with step size h=0.3h = 0.3 is:

I=∫x0xnf(x)dx≈h2[(y0+yn)+2∑i=1n−1yi]I = \int_{x_0}^{x_n} f(x) dx \approx \frac{h}{2} \left[ (y_0 + y_n) + 2 \sum_{i=1}^{n-1} y_i \right]

Here x0=0,x10=3.0x_0 = 0, x_{10} = 3.0, and n=10n = 10.

  • y0=0.00y_0 = 0.00
  • y10=9.00y_{10} = 9.00
  • Sum of endpoints: y0+y10=0+9.00=9.00y_0 + y_{10} = 0 + 9.00 = 9.00

Intermediate function values:

  • y1=0.09y_1 = 0.09
  • y2=0.36y_2 = 0.36
  • y3=0.81y_3 = 0.81
  • y4=1.44y_4 = 1.44
  • y5=2.25y_5 = 2.25
  • y6=3.24y_6 = 3.24
  • y7=4.41y_7 = 4.41
  • y8=5.76y_8 = 5.76
  • y9=7.29y_9 = 7.29

Sum of intermediate values:

∑i=19yi=0.09+0.36+0.81+1.44+2.25+3.24+4.41+5.76+7.29=25.65\sum_{i=1}^9 y_i = 0.09 + 0.36 + 0.81 + 1.44 + 2.25 + 3.24 + 4.41 + 5.76 + 7.29 = 25.65
2∑i=19yi=2×25.65=51.302 \sum_{i=1}^9 y_i = 2 \times 25.65 = 51.30

Substituting into the formula:

I=0.32[9.00+51.30]=0.15×60.30=9.045I = \frac{0.3}{2} [9.00 + 51.30] = 0.15 \times 60.30 = 9.045

This matches option D.

Final answer

Option (D)

Common trap

Multiplying the endpoints by 2 as well, rather than weighting only the interior points by 2.

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

Source

Paper
GATE 2013 Computer Science and Information Technology (CS)
Question
23 of 65, printed as CS Q.23
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.