Evaluate the integral ∫₀^0·8 f(x) dx,
where f(x) = 0·2 + 25x − 200x² + 675x³ − 900x⁴ + 400x⁵
by using single application of Simpson's 3/8 rule.
15 marks · directive: Evaluate
The core of a good answer
With h = 0.8/3, Simpson's 3/8 rule gives I ≈ (3h/8)[f(0) + 3f(h) + 3f(2h) + f(0.8)] = 0.1(0.2 + 4.298173 + 10.461531 + 0.232) = 1.519170, against the exact value 1.640533 (error 0.1214, about 7.4 per cent).
An outline written by upsc.help, not an official UPSC answer; every fact checked by a separate review. How we work
What the question asks
A direct application of the closed four point Newton-Cotes rule. Show h, the four ordinates, the formula, the result and, for full marks, a comparison with the exact integral and the truncation error estimate.
Answer outline
Introduction
Simpson's 3/8 rule on [a, b] with three equal strips: h = (b − a)/3 and I ≈ (3h/8)(f₀ + 3f₁ + 3f₂ + f₃). Here a = 0, b = 0.8, h = 0.266667.
Step 1: Ordinates
- x₀ = 0: f₀ = 0.2
- x₁ = 0.266667: f₁ = 1.432724
- x₂ = 0.533333: f₂ = 3.487177
- x₃ = 0.8: f₃ = 0.232
Step 2: Apply the rule
- 3h/8 = 3(0.266667)/8 = 0.1
- f₀ + 3f₁ + 3f₂ + f₃ = 0.2 + 4.298173 + 10.461531 + 0.232 = 15.191704
- I ≈ 0.1 × 15.191704 = 1.519170
Step 3: Compare with the exact value
- Exact: ∫₀^0.8 f dx = [0.2x + 12.5x² − 66.667x³ + 168.75x⁴ − 180x⁵ + 66.667x⁶] from 0 to 0.8 = 3076/1875 = 1.640533
- True error Eₜ = 1.640533 − 1.519170 = 0.121363, relative error about 7.4 per cent
Step 4: Error estimate
- Truncation error of the 3/8 rule: E = −(3/80) h⁵ f⁽⁴⁾(ξ) = −((b − a)⁵/6480) f⁽⁴⁾(ξ)
- f⁽⁴⁾(x) = −21600 + 48000x; its mean over [0, 0.8] is −2400
- Approximate error = −(0.8⁵/6480)(−2400) = 0.121363, which matches the true error because f is a quintic
Conclusion
Single application of Simpson's 3/8 rule gives ∫₀^0.8 f(x) dx ≈ 1.5192 (the exact value is 1.6405). All ordinates and the exact integral were recomputed in Python.
Examples and data to cite
- The 3/8 rule is used when the number of strips is a multiple of 3, often combined with the 1/3 rule when the number of strips is odd.
Facts to remember
- Simpson's 3/8 rule: ∫ f dx ≈ (3h/8)(f₀ + 3f₁ + 3f₂ + f₃), h = (b − a)/3.
- Its error is −(3/80)h⁵ f⁽⁴⁾(ξ); it is exact for polynomials of degree up to 3.
- It is the closed Newton-Cotes formula with four points.
- For a quintic, using the average fourth derivative gives the error essentially exactly.