0% found this document useful (0 votes)
67 views31 pages

Numerical Integration by Ms Iqra Yaqoot

The document discusses the trapezoidal rule for numerical integration and its associated error. It provides the formula for evaluating integrals using the trapezoidal rule, which approximates the area under a curve between intervals as a trapezoid. It then shows an example calculation. Finally, it derives the expression for the error in the trapezoidal rule based on the Taylor series expansion of the integrand, showing that the error is on the order of h3, where h is the interval width.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
67 views31 pages

Numerical Integration by Ms Iqra Yaqoot

The document discusses the trapezoidal rule for numerical integration and its associated error. It provides the formula for evaluating integrals using the trapezoidal rule, which approximates the area under a curve between intervals as a trapezoid. It then shows an example calculation. Finally, it derives the expression for the error in the trapezoidal rule based on the Taylor series expansion of the integrand, showing that the error is on the order of h3, where h is the interval width.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 31

ACEP

uce

201
CAMPUS

15th IEEE INTERNATIONAL CONFERENCE


ON EMERGING TECHNOLOGIES 2019
National University Of Computer & Emerging Sciences
Peshawar 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
=

a=0, b = 1, let n=6

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

15th IEEE INTERNATIONAL CONFERENCE


ON EMERGING TECHNOLOGIES 2019 National
University Of Computer & Emerging Sciences
3 Peshawar Campus

By using trapezoidal rule, we


+ x2 dx = h | y2+
have 1
y1 + 2(9, +92+ + 4
m)])
11
8n=6

}
[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

15th IEEE INTERNATIONAL CONFERENCE


ON EMERGING TECHNOLOGIES 2019
National University Of Computer & Emerging Sciences

(4)
Peshawar Campus

ERROR IN TRAPEZODIAL RULE

Consider,
xoth

[
Y(x) dx
D

20th

Гу
с
where
‫مال‬

y(x) is the taylor series ie Y(x) =


Y +(x-xo) y + (x-xo) 2 y " +
(x-xo)
21

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

ходо

=hy + (xo2 +ǝhxoth2= x0


= (xo+h-xo) 20))"
+
2
=hy + (2x
h+h2-hxo) y +-

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

As we know that taylor series


9s:

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

15th IEEE INTERNATIONAL CONFERENCE


ON EMERGING TECHNOLOGIES 2019 National
University Of Computer & Emerging Sciences

(6)
У,
Peshawar Campus
'+
Y1 = 46+(X+h-xo) y ' +
(Xoth-Xo) 2
Y1 = yo+hy+
b2y".

十一

26

put &q in, we get

A1 = h [y + Yothy +
h = y' the yo
=
+
"

Yo+

b[ay thy the y "


+ hey"]
thy
อเ
A1 = hy + b2y + h3
y "th"

2.216

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

Error between [x0,21] is


-1 h3y! Error b/w [x1, x2]
== // h3y" Error b/w [x2, x3]
= =//= 234 2
h3

Error b/w [xm-15km ] =


= = = h3n-
20
2

T. Error = = 1 h3y = +
h3y" - / h3y=-
‫بالقا‬
ORAL

CET

15th IEEE INTERNATIONAL CONFERENCE


ON EMERGING TECHNOLOGIES 2019

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)
--,

You might also like