The exact integral is 1/3. For h = 1/4, ordinates are 1, 9/16, 1/4, 1/16 and 0. The trapezoidal value is $(1/8)[1+2(9/16+1/4+1/16)]=11/32=0.34375$. Difference is $11/32-1/3=1/96=0.0104167$, approximately 0.010. Convexity explains the positive trapezoidal error.
More Numerical Methods: Bisection and Newton-Raphson, numerical differentiation, trapezoidal and Simpson's rules questions
GATE 2024 AE Q31– Using Trapezoidal rule with one interval, the approximate value of the definite integral:…
GATE 2025 AE Q44– An approximate solution of the equation x3 - 17 = 0 is to be obtained using the…
GATE 2023 AE Q12– A monotonic continuous function y=f(x) has only one root in x 1<x<x 2. Then
GATE 2021 AE Q48– Approximate 15x2\,dx using four equal intervals. The difference between trapezoidal and…