← 2025 Paper 2
UPSC Maths 2025 Paper 2 Q8b — Solution
15 marks · Section B
Question
Find the constant p and error term for the quadrature formula ∫x0x1f(x)dx=2h(f0+f1)+ph2(f0′−f1′) where x0+h=x1, f0=f(x0), f1=f(x1) and prime (′) represents derivative with respect to x. Hence deduce the composite rule for integrating ∫abf(x)dx, a=x0<x1<⋯<xN=b.
Technique
Use the method of undetermined coefficients: expand both sides in powers of h about x0 and choose p to maximise the order of accuracy; the first non-vanishing residual gives the error term. This is the corrected trapezoidal (Euler–Maclaurin) rule.
Solution
Taylor expansion of both sides
Expand f about x0. Write f(k)≡f(k)(x0). With x1=x0+h:
∫x0x0+hfdx=fh+2f′h2+6f′′h3+24f′′′h4+120f(4)h5+⋯
Right-hand side pieces:
f0=f,f1=f+f′h+2f′′h2+6f′′′h3+24f(4)h4+⋯,
f0′=f′,f1′=f′+f′′h+2f′′′h2+6f(4)h3+⋯
Then
2h(f0+f1)=fh+2f′h2+4f′′h3+12f′′′h4+48f(4)h5+⋯,
ph2(f0′−f1′)=ph2(−f′′h−2f′′′h2−6f(4)h3−⋯)=−pf′′h3−2pf′′′h4−6pf(4)h5−⋯
Subtract to get the error
E=∫x0x1fdx−RHS.
Term-by-term (the h and h2 terms cancel exactly):
E=(61−41+p)f′′h3+(241−121+2p)f′′′h4+(1201−481+6p)f(4)h5+⋯
Choose p to kill the h3 term:
61−41+p=0⟹p=41−61=121.
p=121.
With p=121, the h4 coefficient becomes 241−121+241=0 — it also vanishes. The first surviving term is the h5 term:
1201−481+721=7206−15+10=7201.
So the leading error is
E=720h5f(4)(ξ),ξ∈(x0,x1),
via the mean-value form of the remainder.
∫x0x1fdx=2h(f0+f1)+12h2(f0′−f1′)+720h5f(4)(ξ).
Composite rule on [a,b]
Partition [a,b] into N equal subintervals of width h=(b−a)/N, nodes xi=a+ih. Sum the single-interval rule:
∫abfdx=∑i=0N−1[2h(fi+fi+1)+12h2(fi′−fi+1′)]+∑i=0N−1720h5f(4)(ξi).
The trapezoidal sum telescopes, and the derivative correction telescopes (fi′−fi+1′ sums to f0′−fN′):
∫abfdx=h[21f0+f1+f2+⋯+fN−1+21fN]+12h2(f′(a)−f′(b))+EN,
with total error
EN=∑i=0N−1720h5f(4)(ξi)=720(b−a)h4f(4)(η),η∈(a,b)
(using Nh=b−a and the intermediate-value theorem).
This is the corrected (end-corrected) trapezoidal rule — the leading Euler–Maclaurin term; it raises the trapezoidal accuracy from O(h2) to O(h4) globally.
Answer
p=121. Single-panel error 720h5f(4)(ξ). Composite rule:
∫abfdx=h[21f0+∑i=1N−1fi+21fN]+12h2(f′(a)−f′(b))+720(b−a)h4f(4)(η).