Escolar Documentos
Profissional Documentos
Cultura Documentos
7.1 Introduo
A partir do clculo diferencial e integral sabe-se que, dada uma funo f(x)
contnua em um intervalo [a,b], tem-se:
b
(7.1)
f(x)
f ( x) dx Pn ( x) dx A0 f ( x 0 ) A1 f ( x1 ) A2 f ( x 2 ) ...... An f ( x n )
onde
x i [ a, b],
i 1,..., n.
f ( x) dx
P1 ( x)dx
a
( x x0 )
f ( x 0 )
h
Resultando em:
b
A f ( x) dx P1 ( x)dx
a
x1
f ( x0 )
x0
( x x0 )
f ( x 0 ) dx
h
( x x0 )
h
y 0 f ( x 0 ) f ( x1 ) f ( x 0 )
(7.3)
(7.4)
Resultando em:
b
A [ y 0 zy 0 ]dx
a
Como z
( x x0 )
e derivando em relao a x, tem:
h
dz 1
dx hdz .
dx h
A [ y 0 zy 0 ] h dz
0
(7.5)
z2
A [ y 0 zy 0 ] h dz h zy 0
y 0
2
0
1
y 0
h y0
2
(7.6)
f ( x1 ) f ( x 0 )
h
A f ( x) dx h f ( x 0 )
f ( x 0 ) f ( x1 )
2
2
(7.7)
x1 b
x0 a
Base Menor =
h
f ( x 0 ) f ( x1 )
2
Base Maior = f ( x1 )
f ( x0 )
Altura =
( x1 x 0 ) h
O erro cometido pela integrao pela Regra do Trapzio dado pela expresso
(7.8). Este erro pode ser chamado de erro de truncamento, pois se truncou o a ordem do
polinmio interpolador em 1:
ET
h3 ''
f (c )
12
(7.8)
c [ x 0 , x1 ]
h3
max f ' ' ( x )
12
3, 6
(7.9)
x [ x 0 , x1 ]
dx
.
x
a)
b)
dx
3. 6
ln x 3 ln 3,6 ln 3 0,18232
x
x 0 3 , x1 3,6 e h x1 x 0 0,6
3, 6
dx h
0,6 1
1
[ f ( x 0 ) f ( x1 )]
0,18333
x
2
2 3,0 3,6
1
2
1
'
''
, f ( x) 2 e f ( x) 3
x
x
x
''
Para x [3, 3,6] o valor max f ( x)
Et
2
3
h3
max f ' ' ( x )
12
x [ x 0 , x1 ] .
2
, portanto:
27
0,6 3 2
0,00133
12 27
0,8
0,2 25 x 200 x
x2
x3
x4
x5
x6
0,2 x 25
200
675
900
400
2
3
4
5
6
0,8
0,2 25 x 200 x
0 ,8
1,64053334
0
0,8
0,8
[ f (0) f (0,8)]
[0,2 0,232] 0,1728
2
2
4
f(x)
3
ERRO
0 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
-1
-2
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
Regra do Trapzio
Frmula Composta
5
f(x)
4
Como
visto no exemplo 7.2 a aproximao da integral pela Regra do Trapzio
pode ser pobre. Para melhorar o resultado, pode-se subdividir o intervalo [a,b] de
integrao em 3 n subintervalos de amplitude h e aplicar a Regra do Trapzio em cada
subintervalos, como pode ser visto na figura abaixo:
2
a=xo
x1
................
x(n-1)
x3
x2
h
b=xn x
5
-1
0.1
0.2
0.3
0.4
0.5
0.6
0.7
A f ( x) dx
a
h
f ( x 0 ) f ( x1 ) h f ( x1 ) f ( x 2 ) .......... h f ( x n 1 ) f ( x n )
2
2
2
Resultando em:
b
A f ( x) dx
a
h
f ( x 0 ) 2 f ( x1 ) 2 f ( x 2 ) ..........2 f ( x n 1 ) f ( x n )
2
n
12
ET E 0 E1 E 2 ..... E n 1 E n
n
f ' ' (c )
(b a) 3
12n
f ' ' (c ) a c b
3, 6
(b a ) 3
12n 2
a xb
dx
, utilizando a Regra do Trapzio Composta por 6
x
subintervalos.
i
0
xi
f ( xi ) 1 / xi
0,333333
6
1
2
3
4
5
6
3, 6
3,1
3,2
3,3
3,4
3,5
3,6
0,322581
0,312500
0,303030
0,294118
0,285714
0,277778
x dx 2 f ( x0 ) 2 f ( x1 ) 2 f ( x 2 ) 2 f ( x3 ) 2 f ( x 4 ) 2 f ( x5 )
f ( x 6 )
3, 0
A 0,182350
ET
(b a ) 3
12n
como visto,
(3,6 3)
12 6
2
3
f ( x)
1
2
1
'
''
, f ( x ) 2 e f ( x) 3 . Para
x
x
x
2
, portanto:
27
2
3,704 10 5
27
x2
x2
x0
x0
f ( x)dx P2 ( x)dx
( x x0 )
2 f ( x 0 )
f ( x 0 ) ( x x 0 )( x x1 )
h
2h 2
Resultando em:
A
x2
x0
f ( x )dx
x2
P2 ( x)dx
x0
x2
f ( x0 )
x0
( x x0 )
2 f ( x 0 )
f ( x 0 ) ( x x 0 )( x x1 )
dx
h
2h 2
( x x0 )
h
( x x1 ) ( x x 0 h) x x 0
1 z 1
h
h
h
y 0 f ( x 0 ) f ( x1 ) f ( x 0 ) y1 y 0
(7.11)
(7.12)
(7.13)
2 y 0 2 f ( x 0 ) f ( x1 ) f ( x 0 ) [ f ( x 2 ) f ( x1 )] [ f ( x1 ) f ( x 0 )]
[ f ( x 2 ) 2 f ( x1 ) f ( x 0 )] [ y 2 2 y1 y 0 ]
(7.14)
Resultando em:
x2
A [ y 0 zy 0
x0
Como z
z ( z 1) 2
y 0 ]dx
2
( x x0 )
e derivando em relao a x, tem:
h
dz 1
dx hdz .
dx h
A [ y 0 zy 0 ] h dz
(7.15)
z3 z2 2
z ( z 1) 2
z2
y0
A [ y 0 zy 0
y 0 ] h dz h zy 0
y 0
2
2
4
6
0
h 2 y 0 2y 0 2 y 0
3
(7.16)
1
2
1
h
A f ( x) dx h 2 y 0 2 y1 2 y 0 y 2 y1 y 0 y 0 4 y1 y 2
3
3
3
3
a
h
f ( x 0 ) 4 f ( x1 ) f ( x 2 )
3
(7.17)
h5
f
90
( IV )
c [ x 0 , x1 ]
(c )
(7.18)
Et
h5
max f
90
3, 6
Exemplo 7.4:
Calcular A
i
0
1
2
3, 6
( IV )
x [ x 0 , x1 ]
( x)
(7.19)
dx
, utilizando a Primeira Regra de Simpson.
x
xi
f ( xi ) 1 / xi
3
3,3
3,6
0,333333
0,303030
0,277778
x dx 3 f ( x 0 ) 4 f ( x1 ) f ( x 2 )
3, 0
0,3
0,333333 4 0,303030 0,277778
3
A 0,182323
6
24
24
24
'''
( IV )
( x) 5 . Para x [3, 3,6] o valor max f ( IV ) ( x) 5
, f ( x) 4 e f
,
243
x
x
3
Et
h5
max f
90
( IV )
( x)
x [ x 0 , x1 ] , como
visto,
f ( x)
portanto:
Et
0,3 5 24
0,2666 10 5
90 243
A f ( x )dx
a
h
f ( x 0 ) 4 f ( x1 ) f ( x 2 ) h f ( x 2 ) 4 f ( x3 ) f ( x 4 ) ........
3
3
h
f ( x n 2 ) 4 f ( x n 1 ) f ( x n )
3
Resultando em:
(7.20)
A f ( x) dx
a
h
[ f ( x 0 ) 4 f ( x1 ) 2 f ( x 2 ) 4 f ( x 3 ) 2 f ( x 4 ) ..............
3
(7.21)
2 f ( x n 2 ) 4 f ( x n 1 ) f ( x n )]
(b a ) 5
180n 4
( IV )
(c )
c [ a, b]
(7.22)
(b a ) 5
180n 4
( IV )
max f
( x)
x [ a , b]
(7.23)
x3
f ( x)dx
x0
x3
P3 ( x)dx
x0
A f ( x )dx
a
3h
y 0 3 y1 3 y 2 y 3 3h f ( x 0 ) 3 f ( x1 ) 3 f ( x 2 ) f ( x3 )
8
8
(7.24)
3h 5
f
80
( IV )
(c )
c [ x0 , x3 ]
(7.25)
3h 5
max f
80
( IV )
10
( x)
x [ x0 , x3 ]
(7.26)
A f ( x )dx
a
......
3h
f ( x 0 ) 3 f ( x1 ) 3 f ( x 2 ) f ( x3 ) 3h f ( x3 ) 3 f ( x 4 ) 3 f ( x5 ) f ( x 6 ) ...
8
8
3h
f ( x n 3 ) 3 f ( x n 2 ) 3 f ( x n 1 ) f ( x n )
8
(7.27)
Resultando em:
b
A f ( x)dx
a
3h
[ f ( x 0 ) 3 f ( x1 ) 3 f ( x 2 ) 2 f ( x 3 ) 3 f ( x 4 ) 3 f ( x 5 ) 2 f ( x 6 ) ....
8
...... 3 f ( x n 2 ) 3 f ( x n 1 ) f ( x n )]
(7.28)
O nmero de subintervalos n dever ser mltiplo de trs, pois a regra utiliza um
polinmio interpolador de grau trs.
O Erro de truncamento resultante da integrao pela Segunda Regra de
Simpson Frmula Composta dado por:
ET
(b a ) 5
80n 4
( IV )
(c ) c [ a, b]
(7.29)
(b a ) 5
80n 4
max f
( IV )
11
( x)
x [ a , b]
(7.30)