← 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)=5x33x2+2x+1f(x)=5x^3-3x^2+2x+1 from x=2x=-2 to x=4x=4 using the Trapezoidal rule with h=1h=1.

Technique

Composite Trapezoidal rule: endpoints weight 1, interior points weight 2, multiply by h/2h/2.

Solution

Function values (from part (i)): f(2)=55f(-2)=-55, f(1)=9f(-1)=-9, f(0)=1f(0)=1, f(1)=5f(1)=5, f(2)=33f(2)=33, f(3)=115f(3)=115, f(4)=281f(4)=281.

Composite Trapezoidal rule with h=1h=1, n=6n=6:

h2[f(x0)+2i=15f(xi)+f(x6)]=12[55+2(9+1+5+33+115)+281].\frac{h}{2}\bigl[f(x_0)+2\sum_{i=1}^{5}f(x_i)+f(x_6)\bigr]=\frac{1}{2}\bigl[-55+2(-9+1+5+33+115)+281\bigr].

Interior sum: 9+1+5+33+115=145-9+1+5+33+115=145.

=12[55+290+281]=5162=258.=\frac{1}{2}[-55+290+281]=\frac{516}{2}=258.

Comparison: Exact value =246=246 (computed in part (i)). The Trapezoidal rule overestimates by 1212, as expected for a cubic with O(h2)O(h^2) error.

Answer

  24f(x)dx258    (Trapezoidal rule; exact value is 246).  \boxed{\;\int_{-2}^4 f(x)\,dx\approx 258\;\;(\text{Trapezoidal rule; exact value is }246).\;}
We post more of this — worked solutions, CSAT trap breakdowns, guide chapters — a few times a week on Telegram. Free, no sign-in. Join

This solution is part of the Maths Coverage Map — 13 years, mapped. Get the take-away PDF free.