Sei sulla pagina 1di 4

DOUBLE INTEGRATION

Apply the Simpson 1/3 rule to numerically integrate:

3 2𝑥 3
Analytical
Result (true
𝐼 = ∫ ∫ (𝑥 2 + 𝑦)𝑑𝑦𝑑𝑥
value) is
2 𝑥
790.5357

Let’s express the above equation as:


3

𝐼 = ∫ 𝑔(𝑥)𝑑𝑥
2

Where g(x) is the inner integral:


2𝑥 3 2𝑥 2

𝑔(𝑥) = ∫ (𝑥 2 + 𝑦)𝑑𝑦 = ∫ 𝑓(𝑥, 𝑦)𝑑𝑦


𝑥 𝑥

Show the computation mechanism, let’s work the outer integral first assume a small n=4:

Specifications:

a=2
b=3
n=4
hx=(b-a)/n=(3-2)/4=0.25
With Excel:

a= 2
b= 3
n= 4
hx=delta_x= 0.25

ii x g(x) c t
1 2 ? 1
2 2.25 ? 4
3 2.5 ? 2
4 2.75 ? 4
5 3 ? 1
sum=
I=
Now the problem is to calculate g(x) for each value of x, assume again a small n=4 for each computation

g(x=2):
a=x= 2
b=2x^3= 16
n= 4
hy= 3.5

jj y f(x,y) c t
1 2 6 1 6
2 5.5 9.5 4 38
3 9 13 2 26
4 12.5 16.5 4 66
5 16 20 1 20
Sum 156
f(x,y)=(x^2)+y=(2^2+y) I= 182

g(x=2.25):
a=x= 2.25
b=2x^3= 22.78125
n= 4
hy= 5.132813

jj y f(x,y) c t
1 2.25 6.25 1 6.25
2 7.382813 11.38281 4 45.53125
3 12.51563 16.51563 2 33.03125
4 17.64844 21.64844 4 86.59375
5 22.78125 26.78125 1 26.78125
Sum 198.1875
f(x,y)=(x^2)+y=(2.25^2+y) I= 339.0864
g(x=2.5):
a=x= 2.5
b=2x^3= 31.25
n= 4
hy= 7.1875

jj y f(x,y) c t
1 2.5 6.5 1 6.5
2 9.6875 13.6875 4 54.75
3 16.875 20.875 2 41.75
4 24.0625 28.0625 4 112.25
5 31.25 35.25 1 35.25
Sum 250.5
f(x,y)=(x^2)+y=(2.5^2+y) I= 600.1563

g(x=2.75):
a=x= 2.75
b=2x^3= 41.59375
n= 4
hy= 9.710938

jj y f(x,y) c t
1 2.75 6.75 1 6.75
2 12.46094 16.46094 4 65.84375
3 22.17188 26.17188 2 52.34375
4 31.88281 35.88281 4 143.5313
5 41.59375 45.59375 1 45.59375
Sum 314.0625
f(x,y)=(x^2)+y=(2.75^2+y) I= 1016.614
g(x=3):
a=x= 3
b=2x^3= 54
n= 4
hy= 12.75

jj y f(x,y) c t
1 3 7 1 7
2 15.75 19.75 4 79
3 28.5 32.5 2 65
4 41.25 45.25 4 181
5 54 58 1 58
Sum 390
f(x,y)=(x^2)+y=(3^2+y) I= 1657.5

Now the outer integral can be computed:

a= 2
b= 3
n= 4
hx=delta_x= 0.25

ii x g(x) c t
1 2 182.00 1 182
2 2.25 339.09 4 1356.346
3 2.5 600.1563 2 1200.313
4 2.75 1016.614 4 4066.455
5 3 1657.5 1 1657.5
sum= 8462.613
I= 705.2178

Potrebbero piacerti anche