Question
Function is known at the following points:
The value of computed using the trapezoidal rule is
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 is:
Here , and .
- Sum of endpoints:
Intermediate function values:
Sum of intermediate values:
Substituting into the formula:
This matches option D.
Option (D)
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.