Difference between revisions of "Simpson's rule"
m (template added) |
(→Simpson's Rule: added examples showing how to use the Simpson's rule approximation. Will add more examples later) |
||
| Line 5: | Line 5: | ||
==Simpson's Rule== | ==Simpson's Rule== | ||
<br />Specifically, Simpson's Rule states: | <br />Specifically, Simpson's Rule states: | ||
| − | :<math>\int_a^b f(x)dx \approx {{b - a} \over 6}\left [ f(a) + 4f({{a+b} \over 2}) + f(b) \right ]</math> | + | :<math>\int_a^b f(x)dx \approx {{b - a} \over 6}\left [ f(a) + 4f \left ({{a+b} \over 2} \right ) + f(b) \right ]</math> |
| + | |||
| + | === Example 1 === | ||
| + | Given: | ||
| + | :<math>\int_1^4 -x^3 + 4x^2-x+1 dx</math> | ||
| + | We can use Simpson's Rule to get a quick ''approximation'' of the actual value of the definite integral. | ||
| + | :<math>a = 1</math> | ||
| + | :<math>b = 4</math> | ||
| + | :<math>f(x)=-x^3 + 4x^2-x+1</math> | ||
| + | :<math>f(1)=-1^3 + 4(1)^2 - 1 + 1 = 3</math> | ||
| + | :<math>f(4)=-4^3 + 4(4)^2 - 4 + 1 = -3</math> | ||
| + | :<math>f \left ({4+1 \over 2} \right ) = f(2.5) = -2.5^3 + 4(2.5)^2 - 2.5 + 1 = 7.875</math> | ||
| + | <br />Now we can evaluate the integral: | ||
| + | :<math>{{4-1} \over 6} \left [ 3 + 4(7.875) - 3 \right ] = \left ({1 \over 2} \right)(31.5) = 15.75</math> | ||
| + | If we solve this using [[integration]], we find that Simpson's Rule gave the '''exact''' value for the definite integral. ''However, this is rarely the case.'' | ||
==Composite Simpson's Rule== | ==Composite Simpson's Rule== | ||
Revision as of 01:36, December 31, 2008
| This article/section deals with mathematical concepts appropriate for late high school or early college. |
In Calculus, Simpson's Rule is a method of approximating integrals by using parabolas or other higher order polynomial expressions. It is named after its discoverer, Thomas Simpson[1].
Simpson's Rule
Specifically, Simpson's Rule states:
Example 1
Given:
We can use Simpson's Rule to get a quick approximation of the actual value of the definite integral.
Now we can evaluate the integral:
If we solve this using integration, we find that Simpson's Rule gave the exact value for the definite integral. However, this is rarely the case.
Composite Simpson's Rule
Simpson's Rule can be applied to segments of an integral, effectively making it a Riemann Integral.
If the interval is split into segments, with as an even number, there is a formula that can be used to solve for the integral.
Note that:
As an extension of Simpson's Rule, we can find that:
The above formula can be rewritten as:
- The formulas above do not work unless is even.
Other Versions of Simpson's Rule
There are a few other rules that Simpson proved. For example, Simpson's 3/8 Rule[2] shows that cubic functions can be used to approximate integrals.