GATE 2024 XE — all source sections – Question 17
Approximate $\int_0^{1/2}e^{-x^2}dx$ using the trapezoidal rule with h = 1/8, to two decimals.
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: 0.42 to 0.55
Explanation
The nodes are0,1/8,1/4,3/8,1/2. Composite trapezoidal quadrature is $h[\tfrac12f(0)+f(1/8)+f(1/4)+f(3/8)+\tfrac12f(1/2)]$. Substituting $f=e^{-x^2}$ gives about0.4593, rounded0.46. There are four subintervals, not eight.