Professional Documents
Culture Documents
Tapos Na Yan Welcome
Tapos Na Yan Welcome
Tapos Na Yan Welcome
Where,
ℎ= (𝑏−𝑎)/𝑛
i xi
a 0
a+h 0.5
a+2h 1
a+3h 1.5
a+4h 2
a+5h 2.5
b 3
TRUE VALUE=
98.427685
SECOND DERIVATIVE OF THE FUNCTION
𝑓(𝑥)=𝑥^2 𝑒^𝑥
Applying Product Rule of Diff
(𝑑(𝑢𝑣))/𝑑𝑥=(𝑢(𝑑𝑣))/𝑑𝑥+
𝑓^′ (𝑥)=𝑥^2 𝑒^𝑥+2𝑥𝑒^𝑥
Then,
𝑓^′′ (𝑥)=𝑥^2 𝑒^𝑥+4𝑥𝑒^𝑥+
function:
∫_0^3▒ 〖
𝑥 ^2 𝑒^𝑥 𝑑𝑥 〗
a. Using Multiple Application Trapezoidal Rule with a total number of segments n = 6. Find the
numerical Integration value (I) and its true percent relative error.
FUNCTION :
𝑓(𝑥)=𝑥^2 𝑒^𝑥
𝑎)/𝑛
n= 6
h= 0.5
𝐸_𝑡=𝑇𝑉−𝐼
𝐼=(𝑏−𝑎) (𝑓(𝑥_0 )+2∑_(𝑖=1)^(𝑛−1)▒ 〖
𝑓 (𝑥_𝑖 )+𝑓(𝑥_𝑛 ) 〗 )/2𝑛
I= 104.647995179429
"ε" _𝑡=𝐸_𝑡
"ε" _𝑡=𝐸_𝑡
∫_𝑎^𝑏▒ 〖
𝑓 ^′′ (𝑥)𝑑𝑥 〗
=
THEREFORE,
𝐸_𝑎=−(𝑏−𝑎)^3/(12𝑛
SUMMARY
a 0
b 3
h 0.5
True Value 98.4276846159384
I 104.647995179429
Ea -6.27673028849615
Et -6.22031056349093
True Error (%)-6.31967579829027
n = 6. Find the
METHOD:
〗
𝑒^𝑥−2𝑥𝑒^𝑥+2𝑒^𝑥+𝑐
〖[(3) 〗 ^2 𝑒^3−2(3)𝑒^3+2𝑒^3]− 〖[(0) 〗 ^2
8.42768462
𝐸_𝑡=𝑇𝑉−𝐼
Et= -6.22031056
"ε" _𝑡=
"ε" _𝑡=𝐸_𝑡/𝑇𝑉×100
"ε" _𝑡=
-6.3196758
4𝑥𝑒^𝑥+2𝑒^𝑥
〖
𝑓 ^′′ (𝑥)𝑑𝑥 〗 301.283053847815
-6.27673029
𝐸_𝑎=
−𝑎) 𝑑𝑥
Given the function:
∫_0^3▒ 〖
𝑥 ^2 𝑒^𝑥 𝑑𝑥 〗
FUNCTION :
𝑓(𝑥)=𝑥^2 𝑒^𝑥
Where,
ℎ= (𝑏−𝑎)/𝑛
n= 5
h= 0.6
TRUE VALUE=
98.42768462
I 1.480964
THEREFORE,
〖
𝑥 ^2 𝑒^𝑥 𝑑𝑥 〗 =𝑥^2 𝑒^𝑥−2𝑥𝑒^𝑥+2𝑒^𝑥+𝑐
▒〖 𝑥 ^2 𝑒^𝑥 𝑑𝑥 〗 = 〖[(3) 〗 ^2 𝑒^3−2(3)𝑒^3+2𝑒^3]− 𝐸_𝑡=𝑇𝑉−𝐼
Et= -0.890898
〗 ^2 𝑒^0−2(0)𝑒^0+2𝑒^0]
▒〖 𝑥 ^2 𝑒^𝑥 𝑑𝑥 〗 =98.42768462
True Error (%)
"ε" _𝑡=𝐸_𝑡/𝑇𝑉×100
I 97.8376189250273
I TOTAL= 99.31858281329
tiation:
Integrate.....
))/𝑑𝑥
𝑓^((4)) (𝑥)=𝑥^2 𝑒^𝑥+8𝑥𝑒^𝑥+12𝑒^𝑥
∫1▒ 〖
𝑓 ^((4)) (𝑥)𝑑𝑥=∫1▒ 〖
𝑥 ^2 𝑒^𝑥+8𝑥𝑒^𝑥+12𝑒^𝑥 𝑑𝑥 〗〗
∫1▒ 〖
𝑓 ^((4)) (𝑥)𝑑𝑥=𝑥^2 𝑒^𝑥+6𝑥𝑒^𝑥+6𝑒^𝑥+𝑐 〗
tiation:
Integrate.....
))/𝑑𝑥
𝑓^((4)) (𝑥)=𝑥^2 𝑒^𝑥+8𝑥𝑒^𝑥+12𝑒^𝑥
∫1▒ 〖
𝑓 ^((4)) (𝑥)𝑑𝑥=∫1▒ 〖
𝑥 ^2 𝑒^𝑥+8𝑥𝑒^𝑥+12𝑒^𝑥 𝑑𝑥 〗〗
∫1▒ 〖𝑓 ^((4)) (𝑥)𝑑𝑥=𝑥^2 𝑒^𝑥+6𝑥𝑒^𝑥+6𝑒^𝑥+𝑐 〗
𝑥
∫_𝑎^𝑏▒ 〖𝑓 ^((4)) (𝑥)𝑑𝑥 〗 =∫_0^3▒ 〖
𝑓 ^((4)) (𝑥)𝑑𝑥=[(3)^2 𝑒^3+6(3) 𝑒^3+6𝑒^3 ]− 〗 [(0)^2 𝑒^0+6(0) 𝑒^0
2𝑒^𝑥
∫_0^3▒ 〖
𝑓 ^((4))
656.822718465193
(𝑥)𝑑𝑥 〗 =
Et -0.18916494292
AVERAGE
-0.1366191254408
SUMMARY
a 0
b 3
h 0.6
True Value 98.427684616
I 99.318582813
Ea -0.1366191254
Et -0.8908981973
True Error (%) -0.9051296907
𝑉−𝐼
=𝐸_𝑡/𝑇𝑉×100
Substitute.....
〖 ¯𝑓^((4)) 〗 ^
(𝑥)=(∫_𝑎^𝑏▒ 〖𝑓 ^((4))
]− 〗 [(0)^2 𝑒^0+6(0) 𝑒^0+6𝑒^0 ]
(𝑥) 〗 )/(𝑏−𝑎)
Mean 𝑑𝑥) 〗 ^ 218.940906155064
〖¯𝑓^((4)
(𝑥) =
Et -0.084073308
Given the Function:
Numerically Integrate the function with an interval from x=5 to 10 wherein y(5)
Equation:
Find the integral:
y= 0.5x4-3.9x3+8.85x2-5x-1.25
xi f(x,y)
5 41
6 112
7 231.6
8 411.8
9 664.6
10 1002
dy/dt=2x3-11.7x2+17.7x-5
dy/dt=2x3-11.7x2+17.7x-5 h 1
at x= 5 y=20
yi+1=yi+f(xi-yi)h
y(Euler) y(true) Et error%
20 20 0 0
61 92.95 31.95 34.373318989
173 260.2 87.2 33.512682552
404.6 576.35 171.75 29.799600937
816.4 1108 291.6 26.317689531
1481 1933.75 452.75 23.413057531
Given the Function:
Numerically Integrate the function with an interval from x=5 to 10 wherein y(5
Equation:
Find the integral:
y= 0.5x4-3.9x3+8.85x2-5x-1.25
Predictor:
〖
𝑌 ^0 〗 _(𝑖+1)=𝑦_𝑖+𝑓(𝑥_𝑖,𝑦_𝑖 )ℎ
Corrector:
𝑦_(𝑖+1)=𝑦_𝑖+(𝑓(𝑥_𝑖,𝑦_𝑖 )+𝑓(𝑥_𝑖+1,
〖𝑦 ^0 〗 _(𝑖+1)))/2 ℎ
xi
5
6
7
8
9
10
dy/dt=2x3-11.7x2+17.7x-5
dy/dt=2x3-11.7x2+17.7x-5
85x2-5x-1.25
+1)=𝑦_𝑖+𝑓(𝑥_𝑖,𝑦_𝑖 )ℎ
𝑖 )+𝑓(𝑥_𝑖+1,
Numerically Integrate the function with an interval from x=5 to 10 wherein y(5
Equation: dy/dt=2x3-11.7x2+17.7x-5
Find the integral:
y= 0.5x4-3.9x3+8.85x2-5x-1.25
𝑦_(𝑖+1/2)=𝑦_𝑖+𝑓(𝑥_𝑖,𝑦_𝑖)ℎ/2
〖𝑦 ^′ 〗 _(𝑖+1/2)=𝑓(𝑥_(𝑖+1/2),𝑦_(𝑖+1/2))
𝑦_(𝑖+1)=𝑦_𝑖+𝑓(𝑥_(𝑖+1/2),𝑦_(𝑖+1/2) )ℎ
xi xi new
5
6 5
7 6
8 7
9 8
10 9
dt=2x3-11.7x2+17.7x-5
dt=2x3-11.7x2+17.7x-5 h
at x= 5 y=20
2)=𝑦_𝑖+𝑓(𝑥_𝑖,𝑦_𝑖)ℎ/2
_(𝑖+1/2)=𝑓(𝑥_(𝑖+1/2),𝑦_(𝑖+1/2))
𝑦_𝑖+𝑓(𝑥_(𝑖+1/2),𝑦_(𝑖+1/2) )ℎ
Equation: dy/dt=2x3-11.7x2+17.7x-5
Find the integral:
y= 0.5x4-3.9x3+8.85x2-5x-1.25
𝑦_(𝑖+1)=𝑦_𝑖+(1/3 𝑘
𝑘_1=𝑓(𝑥_𝑖+𝑦_𝑖)
𝑘_2=𝑓(𝑥_𝑖+3/4 ℎ,𝑦_
xi xi new
5
6 5
7 6
8 7
9 8
10 9
/dt=2x3-11.7x2+17.7x-5
/dt=2x3-11.7x2+17.7x-5 h 1
at x= 5 y=20
8.85x2-5x-1.25
Numerically Integrate the function with an interval from x=5 to 10 wherein y(5)=20 and step size of h=1
Equation: dy/dt=2x3-11.7x2+17.7x-5
Find the integral:
y= 0.5x4-3.9x3+8.85x2-5x-1.25
xi xi yi
5
6 5 20
7 6 92.95
8 7 260.2
9 8 576.35
10 9 1108
nd step size of h=1
h 1
at x= 5 y=20
Equation: dy/dt=2x3-11.7x2+17.7x-5
Find the integral:
y= 0.5x4-3.9x3+8.85x2-5x-1.25
y(true) Et error %
20 0 0
92.95 6.804167 7.320244
260.2 17.90833 6.882526
576.35 34.3125 5.953414
1108 57.01667 5.145909
1933.75 87.02083 4.500108