← 2024 Paper 2

UPSC 2024 Maths Optional Paper 2 Q7b-i — Step-by-Step Solution

7.5 marks · Section B

Simpson's 1/3 and 3/8 rules · Numerical Analysis · asked 5× 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 Simpson’s 38\tfrac{3}{8} rule with h=1h=1.

Technique

Seven points give 6 intervals = 2 groups of 3; apply the 3h/8[1,3,3,1]3h/8\,[1,3,3,1] weights to each group.

Solution

Function values at x=2,1,0,1,2,3,4x=-2,-1,0,1,2,3,4:

xx2-21-10011223344
ff55-559-911553333115115281281

Group 1 (x=2x=-2 to x=1x=1):

38[f(2)+3f(1)+3f(0)+f(1)]=38[5527+3+5]=38(74)=27.75.\frac{3}{8}[f(-2)+3f(-1)+3f(0)+f(1)]=\frac{3}{8}[-55-27+3+5]=\frac{3}{8}(-74)=-27.75.

Group 2 (x=1x=1 to x=4x=4):

38[f(1)+3f(2)+3f(3)+f(4)]=38[5+99+345+281]=38(730)=273.75.\frac{3}{8}[f(1)+3f(2)+3f(3)+f(4)]=\frac{3}{8}[5+99+345+281]=\frac{3}{8}(730)=273.75.

Total: 27.75+273.75=246-27.75+273.75=246.

Note: Simpson’s 3/83/8 rule is exact for cubics, so this equals the exact value.

Answer

  24f(x)dx246    (Simpson’s 38 rule, exact for this cubic).  \boxed{\;\int_{-2}^4 f(x)\,dx\approx 246\;\;(\text{Simpson's }\tfrac{3}{8}\text{ rule, exact for this cubic}).\;}
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.