HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Space Science and Astronomy
  • Earth and Environmental Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Problems
  2. /Prove that Simpson's rule with 2 strips is exact for every cubic f(x) = A + Bx + Cx² + Dx³ on [-h…
AdvancedMathematicsHigh School (11–12)Numerical MethodsproofNumericalOlympiad
+1 more exams
A-Level
OlympiadA-Level

Prove that Simpson's rule with 2 strips is exact for every cubic f(x) = A + Bx + Cx² + Dx³ on [-h…

StemPy LabContributed by StemPy Lab

Try it on paper first. A hint, the key idea and the worked solution are here when you need them.

  1. Prove that Simpson's rule with 222 strips is exact for every cubic f(x)=A+Bx+Cx2+Dx3f(x) = A + Bx + Cx^2 + Dx^3f(x)=A+Bx+Cx2+Dx3 on [−h,h][-h, h][−h,h]. Then explain why it is exact on any interval.
  1. Check this for ∫02(x3−2x+1) dx\int_0^2 (x^3 - 2x + 1)\,dx∫02​(x3−2x+1)dx with 222 strips: give the estimate and the error.
  1. Apply the same rule to ∫02x4 dx\int_0^2 x^4\,dx∫02​x4dx. Give the estimate and its error to three decimal places. Show that the error formula (b−a)h4180f′′′′\dfrac{(b - a)h^4}{180}f''''180(b−a)h4​f′′′′ gives the same error exactly. Why is it exact here?

Check your answer

Work it out on paper, then type your number. The answer itself stays hidden.

Need a reminder? The key ideaShowHide

The worked solution

Check an answer or open a hint to unlock the worked solution.

Have you tried it?

Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.

Step 1. Part (a). The integral of A+Cx2A + Cx^2A+Cx2 is 2Ah+23Ch32Ah + \tfrac{2}{3}Ch^32Ah+32​Ch3, and the rule gives h3[6A+2Ch2]\tfrac{h}{3}\big[6A + 2Ch^2\big]3h​[6A+2Ch2], the same. The odd terms give 000 in the integral, and f(−h)+f(h)f(-h) + f(h)f(−h)+f(h) cancels them in the rule. A shift x→x−cx \to x - cx→x−c turns any interval into [−h,h][-h, h][−h,h] and keeps a cubic a cubic.

Step 2. Part (b). f(0)=1f(0) = 1f(0)=1, f(1)=0f(1) = 0f(1)=0 and f(2)=5f(2) = 5f(2)=5. So S=13(1+0+5)=2S = \tfrac{1}{3}(1 + 0 + 5) = 2S=31​(1+0+5)=2. The exact value is [x44−x2+x]02=4−4+2=2\left[\tfrac{x^4}{4} - x^2 + x\right]_0^2 = 4 - 4 + 2 = 2[4x4​−x2+x]02​=4−4+2=2. The error is 000.

Step 3. Part (c). S=13(0+4+16)=203≈6.667S = \tfrac{1}{3}(0 + 4 + 16) = \tfrac{20}{3} \approx 6.667S=31​(0+4+16)=320​≈6.667. The exact value is 325=6.4\tfrac{32}{5} = 6.4532​=6.4. So SSS is too big by 415≈0.267\tfrac{4}{15} \approx 0.267154​≈0.267.

Step 4. The formula. (b−a)h4180f′′′′=2×1×24180=415\dfrac{(b - a)h^4}{180}f'''' = \dfrac{2 \times 1 \times 24}{180} = \dfrac{4}{15}180(b−a)h4​f′′′′=1802×1×24​=154​. It is exact because f′′′′f''''f′′′′ is the constant 242424, so the unknown point ξ\xiξ does not matter.

Answer: (b) 222, with error 000; (c) ≈6.667\approx 6.667≈6.667, too big by ≈0.267\approx 0.267≈0.267. Proof complete.

Log in to save this for later
← All Problems
← A hydrologist measures the depth of a river at points 2 m apart across a channel 12 m wide: Use…The integral ∫₀¹ 4/(1 + x²) dx is exactly π, because d/dx tan⁻¹ x = 1/(1 + x²)… →
More onNumerical Methods

Discussion (0)

Log in to join the discussion.

Loading…

Learn it in

  1. Simpson's rule and error estimatesNumerical Integration and Hyperbolic Substitutions

More on this topic

  1. The integral ∫₀¹ 4/(1 + x²) dx is exactly π, because d/dx tan⁻¹ x = 1/(1 + x²)…Advanced
  2. A hydrologist measures the depth of a river at points 2 m apart across a channel 12 m wide: Use…Hard
  3. An engineer must find ∫₁³ ln x dx with an error of less than 0.0005, and wants to know how much…Hard

Simpson's rule, nnn even:

Sn=h3[ends+4(odd)+2(even)].\displaystyle S_n = \tfrac{h}{3}\big[\text{ends} + 4(\text{odd}) + 2(\text{even})\big].Sn​=3h​[ends+4(odd)+2(even)].

It is exact for cubics, and its error is −(b−a)h4180f′′′′(ξ)-\dfrac{(b - a)h^4}{180}f''''(\xi)−180(b−a)h4​f′′′′(ξ). Also S2n=4T2n−Tn3=2Mn+Tn3S_{2n} = \dfrac{4T_{2n} - T_n}{3} = \dfrac{2M_n + T_n}{3}S2n​=34T2n​−Tn​​=32Mn​+Tn​​.

Let f'' > 0 on [a, b]. Prove that on one strip, M₁ < ∫aᵇ f dx < T₁…Advanced
  • A test driver starts from rest and records the speed of a car every 10 s for one minute: Use the…Hard
  • All problems on this topic →