← 2024 Paper 2
UPSC 2024 Maths Optional Paper 2 Q7b-ii — Step-by-Step Solution
7.5 marks · Section B
Trapezoidal rule (composite; error) · Numerical Analysis · asked 3× in 13 yrs · Read the full method →
Question
Integrate f(x)=5x3−3x2+2x+1 from x=−2 to x=4 using the Trapezoidal rule with h=1.
Technique
Composite Trapezoidal rule: endpoints weight 1, interior points weight 2, multiply by h/2.
Solution
Function values (from part (i)): f(−2)=−55, f(−1)=−9, f(0)=1, f(1)=5, f(2)=33, f(3)=115, f(4)=281.
Composite Trapezoidal rule with h=1, n=6:
2h[f(x0)+2i=1∑5f(xi)+f(x6)]=21[−55+2(−9+1+5+33+115)+281].
Interior sum: −9+1+5+33+115=145.
=21[−55+290+281]=2516=258.
Comparison: Exact value =246 (computed in part (i)). The Trapezoidal rule overestimates by 12, as expected for a cubic with O(h2) error.
Answer
∫−24f(x)dx≈258(Trapezoidal rule; exact value is 246).