Escolar Documentos
Profissional Documentos
Cultura Documentos
y0
y[ x0 , x1 ] =
x1
y1
y[ x1 , x2 ] =
x2
y1 y0
x1 x0
y2
y2 y1
x2 x1
y2 y1 y1 y0
x2 x1 x1 x0
y[ x0 , x1 , x2 ] =
x2 x 0
p(x)
x0
x1
x2
p(x) = y0 + y[ x0 , x1 ] (x x0 ) + y[ x0 , x1 , x2 ] (x x0 ) (x x1 )
p '(x) = y[ x0 , x1 ] + y[ x0 , x1 , x2 ] ( (x x1 ) + (x x0 ))
p ''(x) = 2 y[ x0 , x1 , x2 ]
Matemtica Computacional, MEMec, LEAN, MEAer
y1 y0 x2 x1 x1 x0
+
( (x x1 ) + (x x0 ) )
p '(x) =
x1 x0
x2 x 0
y1 y0
h
h ((x x ) + (x x ))
+
p '(x) =
1
0
h
2h
p '(x) =
h
x0
h
x1
x2
y1 y0 y2 2y1 + y0
+
( (x x1 ) + (x x0 ) )
2
2h
h
y2 y1 y1 y0
y2 y1 y1 y0
x2 x1 x1 x0
h
h = y2 2y1 + y0
= 2
p ''(x) = 2 y[ x0 , x1 , x2 ] = 2
x2 x 0
2h
h2
Matemtica Computacional, MEMec, LEAN, MEAer
y1 y0 y2 2y1 + y0
+
(x2 x1 ) + (x2 x0 )
p '(x2 ) =
2
2h
h
h
2h
p '(x2 ) =
y1 y0 y2 2y1 + y0
+
( h + 2h )
2
2h
h
p '(x2 ) =
y1 y0
y 2y1 + y0
+3 2
h
2h
p '(x2 ) =
3y2 4 y1 + y0
2h
p ''(x2 ) =
y2 2y1 + y0
h2
p(x)
x0
x1
x2
x
f ''(x)
f '''(1 )
(h)2 +
(h)3
2
6
f (x h) = f (x) f '(x) h +
f ''(x) 2 f '''(1 ) 3
h
h
2
6
(*)
f ''(x)
f '''(2 )
(2h)2 +
(2h)3
2
6
f ''(x) 2
f '''(2 ) 3
h 8
h
2
6
(**)
f ''(x) 2
f '''(2 ) 3
h 8
h
2
6
f ''(x) 2
f '''(1 ) 3
4 f (x h) = 4 f (x) 4 f '(x) h + 4
h 4
h
2
6
f (x 2h) =
f (x) 2 f '(x) h + 4
f '''(1 ) 3
f '''(2 ) 3
h +4
h
6
6
f '''(1 ) 3
f '''(2 ) 3
h +4
h
6
6
f '''( ) 3
h
6
[ x 2h, x ]
Dh f ( x )
Erro
Dh f (x) =
f (x 2h) 4 f (x h) + 3 f (x)
2h
E2 '(x) =
f '''( ) 2
h
3
Primeira ordem
Segunda ordem
Segunda ordem
Segunda derivada
Primeira derivada
Dh f (x) =
f (x + h) f (x)
h
1
E1 '(x) = h f ''( )
2
Regressiva
Dh f (x) =
f (x) f (x h)
h
1
E1 '(x) = h f ''( )
2
f (x + h) f (x h)
2h
1
E1 '(x) = h2 f '''( )
6
Dh f (x) =
Central
Progressiva
Dh f (x) =
f (x + 2h) + 4 f (x + h) 3 f (x)
2h
1
E2 '(x) = h2 f '''( )
3
Regressiva
Dh f (x) =
3 f (x) 4 f (x h) + f (x 2h)
2h
1
E2 '(x) = h2 f '''( )
3
Progressiva
Dh2 f (x) =
f (x + 2h) 2 f (x + h) + f (x)
h2
E2 ''(x) = h f '''( )
Regressiva
Dh2 f (x) =
f (x) 2 f (x h) + f (x 2h)
h2
E2 ''(x) = h f '''( )
Central
f (x + h) 2 f (x) + f (x h)
D f (x) =
h2
2
h
E2 ''(x) =
1 2
h f ''''( )
12
Formula de Aitken-Neville
x0
x1
xn
xn+1
p0,n
x0
x1
x2
xn-1 xn xn+1
p1,n
p0,n+1
Formula de Aitken-Neville
p0 ,n+1 (x) = p0 ,n (x) +
xn+1 x0
Formula de Aitken-Neville
Exemplo: n=2
p0,3(x)
p1,2(x)
p0,2(x)
x0
x1
x3
x2
Formula de Aitken-Neville
x3 x 0
Formula de Aitken-Neville
Generalizando
pm,k
x0
xm
x1
xm+1
xm+k
xm+k+1
pm+1,k
pm,k+1
Formula de Aitken-Neville
pm ,k +1 (x) = pm ,k (x) +
xm+k +1 xm
Formula de Aitken-Neville
pm ,k +1 (x) = pm ,k (x) +
xm+k +1 xm
pm ,k +1 (0) = pm ,k
pm ,k +1 (0) =
xm+k +1 xm
x
(
(0) +
xm+k +1 xm
Extrapolao de Richardson
Expanso em srie
f (x + h) = f (x) + f '(x) h +
f ''(x) 2 f '''(x) 3
h +
h + ...
2!
3!
f (x + h) f (x) f ''(x)
f '''(x) 2
f (x + h) f (x)
f '(x) =
h
h ... f '(x) =
+
h
2!
3!
h
C i hi
i =1
f '(x)
f (x + h) f (x)
+
C i hi = p(h)
h
i =1
polinmio na varivel h
Extrapolao de Richardson:
Sucesso de valores de h: hm, hm+1, , hm+k
Calcular diferenas finitas para cada valor de h > termos de ordem zero dos polinmios
Usar Aitken-Neville para calcular os valores do polinmio em h=0 (extrapolao)
pm ,k +1 (0) =
Dm ,k +1 =
hm+k +1 Dm ,k hm Dm+1,k
hm+k+1 hm
Extrapolao de Richardson
Exemplo: f(x)=exp(x), calcular f (1) utilizando extrapolao de Richardson
D0,0 = 3.342295
h0
f (x + h) f (x) f (1.2) f (1)
= 0.2 Diferena finita, D1,0 =
=
2
h
0.2
Dm ,k +1 =
hm+k+1 Dm ,k hm Dm+1,k
hm+k +1 hm
Tabela
Grfico
h0
h1 D0,0 h0 D1,0
h1 h0
D0,0
D0,0
D0,1
h1
D0,1 =
D1,0 = 3.009175
D1,0
D1,0
D0,1
h1
h0
Extrapolao de Richardson
Novo ponto, h2=h0/22=0.1
Tabela
h0
Grfico
D0,0
D2,0
D1,0
D0,0
D0,1
h1
D1,0
D0,2
D0,2
D1,1
D1,1
h2
h2 =
D0,1
h2
D2,0
h1
h0
h0
f (x + h) f (x) f (1.1) f (1)
=
0.1
Diferena
finita,
D
=
=
= 2.858842
2 ,0
2
2
h
0.1
Dm ,k +1 =
hm+k+1 Dm ,k hm Dm+1,k
hm+k +1 hm
D1,1 =
h2 D1,0 h1 D2,0
h2 h1
Valor exacto,
f (1) =2.718282
D0,2 =
h2 D0,1 h0 D1,1
h2 h0
Extrapolao de Richardson
Tabela
Valor exacto,
f (1) =2.718282
D0,1 = 2.676055
D0,2 = 2.719327
Grfico
D0,0
diferenas
finitas
D2,0
D1,0
D0,2
D1,1
D0,1
h2
h1
h0
Extrapolao de Richardson
Se usarmos diferenas finitas centrais a srie de potencias de h s tem potncias pares
f ''(x) 2 f '''(x) 3
h +
h + ...
2!
3!
f ''(x) 2 f '''(x) 3
f (x h) = f (x) f '(x) h +
h
h + ...
2!
3!
f '''(x) 3
f (x + h) f (x h) = 2 f '(x) h + 2
h + ...
3!
f (x + h) = f (x) + f '(x) h +
f '(x) =
f (x + h) f (x h) f '''(x) 2 f '''''(x) 4
f (x + h) f (x h)
h
h ... f '(x) =
+
2h
3!
5!
2h
f '(x)
C i h2 i
i =1
f (x + h) f (x h)
+
C i h2i = p(h2 )
2h
i =1
polinmio na varivel h2
Dm ,k +1 =