Numerical Integration by Ms Iqra Yaqoot
Numerical Integration by Ms Iqra Yaqoot
uce
201
CAMPUS
O
Trapezodial Rule
Error
Yoly
,
I =
=
"Sfcx)
dx
a
h=b-a
Yo
'fix)
b=xn
Formula:
-52 + (n-1)]
f(x)dx = [ Yo+ Yn +
2(Y1+%27
Steps:
1 Divide the interval [a, b] into m
equal interval with length & (step
size) ;;¢ [a,b] = [a=x0,x1, x2,--.
where
a=x0
x = xoth
x2 = x0+2h
xn=x+hh
FFZIST
IEEEN
xn=b]
b-a
m=
or
h
=
b-a
3
IEEE IEEE
بالعلم
CET
UT MUCES
2019
PENAWAR
CAMPUR
15th IEEE INTERNATIONAL CONFERENCE
ON EMERGING TECHNOLOGIES 2019
National University Of Computer & Emerging Sciences
Peshawar Campus
It is applicable on
internal.
Exam ble
1+22
any
по-
0.
of
dx, using
trapezadial
Evaluate
rule.
sol
then
h = b-a
=
0-
1
6
=
16
36/37
Now,
a= x0 = 0
h =
1/2
x1 = 20th =
1/6
xq=x+2h xg =
x+2h =
x3
=
316
xu = 4/6
=
Уо
= 1 +6032
= 1
26
Y1 =
Уд
25=516
x6 =
6/6=1
1+ (8%) 2
1+(1) Yg =
18/19
4/5
13=
Yu
=
45=
9/10
9/13
36/61
96 = 1/2
FFZUS
T
Foundation For Advancement
Of Science & Technology
IEEEN
PESHAWAR SUB SECTION
IEEE
+
IEEE
ISLAMABAD SECTION
الذي
HAMLARITY
PETER
يعلم.
FAST NUCE
CET
2019
}
[Y2+96+2(Y+9
g+9g+94
+95)}] = 2 [1
+0:5+2 (36 +9+4
[1+0s+a(흙+%+1+
옴+ 중부)]
100
1100
1100
- // [ 32/34
+7-910889 ]
こ
12
[9.410889]
1+22 = 0.7842
13
61
IFZUST
Foundation For Advancame
Or Science & Technology
IEEEN
JEFF AIECE.
بالقلم
ICET
2019
CAMER
(4)
Peshawar Campus
Consider,
xoth
[
Y(x) dx
D
20th
Гу
с
where
مال
2
3
Yot
36
put Eq in Eq D, we have
=
20th
noth
20
[yo+
(x-xo)
Yo
+
36
Yo
+
= { [42+ (x-xo) y + ( 2
2=-2xxx + x2) y " + _dx
=
20
[xy +
( 222 -
= (xoth-xo) yo+
Əb
xx0)
4 =
+
+
2x2x0+xxx
(
2
913
(x0th)2x662
2
{(10th
)-
Noth
FAST IEEEN
IEEE
IEEE
15th IEEE INTERNATIONAL CONFERENCE ON
EMERGING TECHNOLOGIES 2019
National University Of Computer & Emerging Sciences
5
2
Peshawar Campus
ходо
Noth
[
y(x)dx
20
2
1
=hy +
(2x+h2-2bko) y
H
0
h2
2
yox dx = hy +
hy+ ht
20+h
+
+
Trapezadial rule to to x, is
[f(x)dx =
b[42+y]
5
y = y + (x-xo) y +
(x-xo) + y +
put you,
y=4
2
R=xoth
in the above equation, we get
FRIST IEEEM
IEEE IEEE
CET
201
(6)
У,
Peshawar Campus
'+
Y1 = 46+(X+h-xo) y ' +
(Xoth-Xo) 2
Y1 = yo+hy+
b2y".
ว
十一
26
A1 = h [y + Yothy +
h = y' the yo
=
+
"
Yo+
E1 = "J" f(x)"
-A
E1 = by
they' -h3
22 Y".
FZUST
Foundation For Advancement
Science & Technology
Ф
IEEEN
PESHAWAR SUB SECTION
заха
IEEE IEEE
<&
ISLAMABAD SECTION
Y+
6
-by-h//
y
.الحلو
809
༡
CEY
2019
Ę
15th IEEE INTERNATIONAL CONFERENCE
ON EMERGING TECHNOLOGIES 2019
National University Of Computer & Emerging Sciences Peshawar
Campus
(
ᄒ
(7)
зу -
E1 == // by
"
12
3
2.26
3y
12
T. Error = = 1 h3y = +
h3y" - / h3y=-
بالقا
ORAL
CET
E ==||
National University Of Computer & Emerging Sciences
Peshawar Campus
"
"
====h2 (4 +4 +4 + +
Y1-1)
11
12
12
nk3 (mr), x < r
< xr+l
====h-h2
(2x)
11
12
เว
2
r = 0, 1, 2, ..... M-| m-1
(-a). (M)
E = = 1/4
(b-a)
19
Order:
0(h2)
h
2
(M
1)
--,