Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Simpson's rule
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==== Averaging the midpoint and the trapezoidal rules ==== Another derivation constructs Simpson's rule from two simpler approximations: the [[rectangle rule|midpoint rule]] <math display="block">M = (b - a)f\left(\frac{a + b}{2}\right)</math> and the [[trapezoidal rule]] <math display="block">T = \frac{1}{2} (b - a)\big(f(a) + f(b)\big).</math> The errors in these approximations are <math display="block">\frac{1}{24} (b - a)^3 f''(a) + O\big((b - a)^4\big)</math> and <math display="block">-\frac{1}{12} (b - a)^3 f''(a) + O\big((b - a)^4\big)</math> respectively, where <math>O\big((b - a)^4\big)</math> denotes a term asymptotically proportional to <math>(b - a)^4</math>. The two <math>O\big((b - a)^4\big)</math> terms are not equal; see [[Big O notation]] for more details. It follows from the above formulas for the errors of the midpoint and trapezoidal rule that the leading error term vanishes if we take the [[weighted average]] <math>\frac{2M + T}{3}.</math> This weighted average is exactly Simpson's rule. Using another approximation (for example, the trapezoidal rule with twice as many points), it is possible to take a suitable weighted average and eliminate another error term. This is [[Romberg's method]].
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)