Maths
Maths
Maths
130070119047-Mistry Tushar
130070119049-Modi Parth
130070119050-Motisariya Ravin
130070119051-Panchal Ketul
130070119052-Parikh Manir
130070119053-Parmar Dinesh
130070119054 -Patel Akash
Guided By:-
Prof. Nilesh Sonara
BIRLA VISHVAKARMA MAHAVIDHYALYA
MECHANICAL ENGINEERING
V.V.NAGAR
Batch C-6
Composite Trapezoidal Rule:
Divide the interval into n subintervals and apply
Trapezoidal Rule in each subinterval.
b
h n 1
f ( x )dx f a 2 f ( x k ) f (b)
a
2 k 1
where
ba
h and x k a kh for k 0, 1, 2, ... , n
n
π
n 20
ba π
h
n 20
kπ
x k a kh , k 0, 1, 2, ....., 20
20
π
h n 1
0 sin( x )dx 2 f a 2
k 1
f ( x k ) f ( b )
π 19
kπ
sin0 2 sin sinπ
40 k 1 20
1.995886
Composite Simpson’s Rule:
Divide the interval into n subintervals and apply
Simpson’s Rule on each consecutive pair of subinterval.
Note that n must be even.
b
h ( n / 2 ) 1
f ( x )dx f a 2 f (x 2k )
a
3 k 1
n/ 2
4 f ( x 2 k 1 ) f (b )
k 1
where
ba
h and x k a kh for k 0, 1, 2, ... , n
n
π
ba π
n 20 h
n 20
kπ
x k a kh , k 0, 1, 2, ....., 20
20
π
π 9
2kπ
0 sin( x )dx 60 sin0 2
k 1
sin
20
10
( 2k 1)π
4 sin sin( π)
k 1 20
2.000006
In Newton-Cote Methods, the function is
approximated by a polynomial of order n.
Computing the integral of a polynomial is
easy.
a
b
f ( x)dx
a
b
a
0 a1 x ... a n xn
dx
b (b 2 a 2 ) (b n 1 a n 1 )
a
f ( x)dx a0 (b a ) a1
2
... an
n 1
CISE301_Topic7 8
Trapezoid Method (First Order Polynomials are used)
b b
a
f ( x)dx
a
a0 a1 x dx
a
b
f ( x)dx
a
b
a 0 a1 x a 2 x
2
dx
CISE301_Topic7 9