Mada za sehemu hiiNumerical MethodMada 4
- Errors
- Roots By Iterative Methods
- Numerical Integration
- Simpson's Rule
Simpson's rule approximates the value of a definite integral using quadratic functions. It's also called the 3-ordinate rule because it uses at least three ordinates and divides the curve into an even number of strips of equal width.
Simpson's rule is given by:
∫abf(x)dx≈3h[f(x0)+4f(x1)+2f(x2)+4f(x3)+2f(x4)+…+4f(xn−1)+f(xn)]
Or:
∫abf(x)dx≈3h[y0+4(y1+y3+y5+…)+2(y2+y4+y6+…)+yn]
Where:
- h=nb−a
- n is an even number of strips.
- yi=f(xi) are the ordinates.
In words:
∫abf(x)dx≈3h[(first ordinate+last ordinate)+4(sum of odd ordinates)+2(sum of even ordinates)]
Use Simpson's rule to estimate the value of ∫01f(x)dx given the following table:
| x | 0 | 0.25 | 0.5 | 0.75 | 1 |
|---|---|---|---|---|---|
| f(x) | 1 | 0.8 | 1.3 | 1.1 | 1.6 |
Solution:
a=0, b=1, n=4, h=41−0=0.25
∫01f(x)dx≈30.25[1+4(0.8+1.1)+2(1.3)+1.6]
≈30.25[1+4(1.9)+2.6+1.6]
≈30.25[1+7.6+2.6+1.6]
≈30.25[12.8]
≈1.0667
Use Simpson's rule to approximate the value of ∫02x2+1dx given that n=4 subintervals.
Solution:
f(x)=x2+1, a=0, b=2, n=4, h=42−0=0.5
| x | f(x) |
|---|---|
| 0 | 1 |
| 0.5 | 1.1180 |
| 1 | 1.4142 |
| 1.5 | 1.8028 |
| 2 | 2.2361 |
∫02x2+1dx≈30.5[1+4(1.1180+1.8028)+2(1.4142)+2.2361]
≈30.5[1+4(2.9208)+2.8284+2.2361]
≈30.5[1+11.6832+2.8284+2.2361]
≈30.5[17.7477]
≈2.95795 or 2.9580
Evaluate ∫12x1dx using Simpson's rule with n=10 subintervals.
Solution:
Given ∫12x1dx, then y=x1. Using Simpson's rule:
∫abydx≈3h[(y0+yn)+4(y1+y3+…+yn−1)+2(y2+y4+…+yn−2)]
a=1, b=2, n=10, so h=102−1=0.1
Table of values:
| i | xi | yi |
|---|---|---|
| 0 | 1.0 | 1.0000 |
| 1 | 1.1 | 0.9091 |
| 2 | 1.2 | 0.8333 |
| 3 | 1.3 | 0.7692 |
| 4 | 1.4 | 0.7143 |
| 5 | 1.5 | 0.6667 |
| 6 | 1.6 | 0.6250 |
| 7 | 1.7 | 0.5882 |
| 8 | 1.8 | 0.5556 |
| 9 | 1.9 | 0.5263 |
| 10 | 2.0 | 0.5000 |
Let:
S0=y0+y10=1.0000+0.5000=1.5000
S1=y1+y3+y5+y7+y9=0.9091+0.7692+0.6667+0.5882+0.5263=3.4595
S2=y2+y4+y6+y8=0.8333+0.7143+0.6250+0.5556=2.7282
∫12x1dx≈30.1[1.5000+4(3.4595)+2(2.7282)]
≈30.1[1.5+13.838+5.4564]
≈30.1[20.7944]
≈0.6931
The coordinates of a curve y=f(x) are given in the following table:
| x | 0 | 1 | 2 | 3 | 4 | 5 | 6 |
|---|---|---|---|---|---|---|---|
| y | 0 | 3.2 | 3.7 | 3.5 | 3 | 2.4 | 2.1 |
Use Simpson's rule to estimate the volume generated by revolving the area bounded by the curve between x=0 and x=6 about the x-axis.
Solution:
Volume, V=π∫aby2dx
a=0, b=6, n=6, h=66−0=1
Table of y2 values:
| x | y | y2 |
|---|---|---|
| 0 | 0 | 0 |
| 1 | 3.2 | 10.24 |
| 2 | 3.7 | 13.69 |
| 3 | 3.5 | 12.25 |
| 4 | 3 | 9 |
| 5 | 2.4 | 5.76 |
| 6 | 2.1 | 4.41 |
V≈π⋅31[0+4(10.24+12.25+5.76)+2(13.69+9)+4.41]
≈3π[0+4(28.25)+2(22.69)+4.41]
≈3π[113+45.38+4.41]
≈3π[162.79]
≈170.47 cubic units
Mwalimu
Unasoma somo hili? Niulize nikuelezee chochote kilichomo.
Ingia ili kumuuliza Mwalimu wa AI wa Sonza kuhusu mada hii.
Ingia ili kuulizaMajadiliano
Hakuna maswali bado