Академический Документы
Профессиональный Документы
Культура Документы
\
|
+ + + + =
+ n n n n n n n n
y x f
w
h
y
w
h
x f w h y x f w h y y
w
b b w a w a
2
1
, 1
2 1 1 2
= = = =
8. EDOs
8.2.3 Runge-Kutta de 3 ordem
De forma anloga podemos construir a frmula
de mtodos de Runge-Kutta de 3 ordem. Sejam
PVIs do tipo
ento uma frmula de Runge-Kutta de 3 ordem
escreve-se como:
( )
4
3
,
4
3
2
,
2
) , ( onde
4 3 2
9
2
3
1
2 1
3 2 1 1
|
|
.
|
\
|
+ + =
|
|
.
|
\
|
+ + = =
+ + + =
+
K
y
h
x f K
K
y
h
x f K y x f K
K K K
h
y y
n n
n n n n
n n
( ) ( )
0 0
com , y x y y x f y = =
'
8. EDOs
8.2.3 Runge-Kutta de 4 ordem
De forma anloga podemos construir a frmula
de mtodos de Runge-Kutta de 4 ordem. Sejam
PVIs do tipo
ento uma frmula de Runge-Kutta de 4 ordem
escreve-se como:
( )
( )
3 4
2
3
1
2 1
4 3 2 1 1
, ,
2
,
2
2
,
2
, ) , ( onde
2 2
6
K y h x f K
K
y
h
x f K
K
y
h
x f K y x f K
K K K K
h
y y
n n n n
n n n n
n n
+ + =
|
|
.
|
\
|
+ + =
|
|
.
|
\
|
+ + = =
+ + + + =
+
( ) ( )
0 0
com , y x y y x f y = =
'
8. EDOs
8.2.3 Comentrios sobre Runge-Kutta
FRMULAS DE RUNGE-KUTTA
1 ordem:
2 ordem: particular
3 ordem:
( )
1
h ,y x f y y
n n n n
+ =
+
( ) ( ) ( ) , ,
2
1 1 1 + + +
+ + =
n n n n n n
y x f y x f
h
y y
( ) ) , (
2
,
2
) , ( 1
1
|
.
|
\
|
+ + + + =
+ n n n n n n n n
y x f
w
h
y
w
h
x f w h y x f w h y y
( )
4
3
,
4
3
,
2
,
2
, ) , (
4 3 2
9
2
3
1
2 1
3 2 1 1
|
|
.
|
\
|
+ + =
|
|
.
|
\
|
+ + = =
+ + + =
+
K
y
h
x f K
K
y
h
x f K y x f K
K K K
h
y y
n n n n n n
n n
8. EDOs
8.2.3 Comentrios sobre Runge-Kutta
FRMULAS DE RUNGE-KUTTA
4 ordem:
Com1: As frmulas de Runge-Kutta so mdias
ponderadas de valores de f(x,y) em pontos no
intervalo .
( )
( )
3 4
2
3
1
2 1
4 3 2 1 1
, ,
2
,
2
2
,
2
, ) , ( onde
2 2
6
K y h x f K
K
y
h
x f K
K
y
h
x f K y x f K
K K K K
h
y y
n n n n
n n n n
n n
+ + =
|
|
.
|
\
|
+ + =
|
|
.
|
\
|
+ + = =
+ + + + =
+
1 +
< <
n n
x x x
8. EDOs
8.2.3 Comentrios sobre Runge-Kutta
FRMULAS DE RUNGE-KUTTA
Com2: As somas
;
podem ser interpretadas como um coeficiente angular
mdio.
Com3: Problema do passo fixo pode ser resolvido com o
desenvolvimento de Mtodos de Runge-Kutta adaptativos,
os quais ajustam o passo de modo a manter o erro de trun-
camento local num nvel de tolerncia fixado.
( )
4 3 2 1
2 2
6
K K K K
h
+ + +
( )
3 2 1
4 3 2
9
K K K
h
+ +
8. EDOs
8.2.3 Exemplos de Runge-Kutta
Exemplo 1: Para o PVI dado, estime .
PVI:
a) Runge-Kutta de primeira ordem.
Assim
1000 ) 0 ( com 04 . 0 = =
'
y y y
) 1 ( y
( ) ( )
( )
n n n n
n n n n
y h h y y y
y x,y f h ,y x f y y
04 . 0 1 04 . 0
04 . 0 onde
1
1
+ = + =
= + =
+
+
( )
( ) ( )
( ) .. 3 , 2 , 1 para 1000 04 . 0 1
.......... .......... .......... .......... .......... ..........
1000 04 . 0 1 04 . 0 1
1000 04 . 0 1
2
1 2
1
= + =
+ = + =
+ =
k h y
h y h y
h y
k
k
8. EDOs
8.2.3 Exemplos de Runge-Kutta
Definindo a partio do intervalo (0,1)
( )
( )
( )
( )
8108 . 1040 ) 1 ( : exato Valor
7277 . 1040 1000 1 . 0 04 . 0 1 1 . 0
604 . 1040 1000 25 . 0 04 . 0 1 25 . 0
4 . 1040 1000 5 . 0 04 . 0 1 5 . 0
1040 1000 04 . 0 1 1
10
10
4
4
2
2
1
=
= + = =
= + = =
= + = =
= + = =
y
y h
y h
y h
y h
8. EDOs
8.2.3 Exemplos de Runge-Kutta
b) Runge-Kutta de 2 ordem. Euler aprimorado.
Analogamente ao Runge-Kutta de 1 ordem
( ) ( ) ( ) | |
( ) | |
|
.
|
\
|
+ + =
+ + + =
+ + + + =
+
+
+
2
1
1
1
04 . 0
2
04 . 0 1
04 . 0 04 . 0 04 . 0
2
, , ,
2
h
h y y
y h y y
h
y y
y x f h y h x f y x f
h
y y
n n
n n n n n
n n n n n n n n
1000 04 . 0
2
04 . 0 1
2
|
.
|
\
|
+ + =
k
k
h
h y
8. EDOs
8.2.3 Exemplos de Runge-Kutta
Definindo a partio do intervalo (0,1)
8108 . 1040 ) 1 ( : exato Valor
8107 . 1040 1000 04 . 0
2
1 . 0
1 . 0 04 . 0 1 1 . 0
8101 . 1040 1000 04 . 0
2
25 . 0
25 . 0 04 . 0 1 25 . 0
808 . 1040 1000 04 . 0
2
5 . 0
5 . 0 04 . 0 1 5 . 0
8 . 1040 1000 04 . 0
2
1
04 . 0 1 1
10
2
2
10
4
2
2
4
2
2
2
2
2
1
=
=
|
|
.
|
\
|
+ + = =
=
|
|
.
|
\
|
+ + = =
=
|
|
.
|
\
|
+ + = =
=
|
.
|
\
|
+ + = =
y
y h
y h
y h
y h
8. EDOs
8.2.3 Exemplos de Runge-Kutta
c) Runge-Kutta de 3 ordem.
( )
|
|
.
|
\
|
+ =
|
|
.
|
\
|
+ = =
|
|
.
|
\
|
+ + =
|
|
.
|
\
|
+ + = =
+ + + =
+
4
3
04 . 0 ,
2
04 . 0 , 04 . 0
4
3
,
4
3
,
2
,
2
, ) , (
4 3 2
9
1
3
1
2 1
2
3
1
2 1
3 2 1 1
K
y K
K
y K y K
K
y
h
x f K
K
y
h
x f K y x f K
K K K
h
y y
n n n
n n n n n n
n n
8. EDOs
8.2.3 Exemplos de Runge-Kutta
c) Runge-Kutta de 3 ordem.
( )
( ) 1 para 8107 . 1040 224 . 41 4 8 . 40 3 40 2
9
1
1000 : Logo
224 . 41 8 . 40
4
3
1000 04 . 0
8 . 40
2
40
1000 04 . 0 , 40 1000 04 . 0
4 3 2
9
Sendo
1
3
2 1
3 2 1 0 1
= = + + + =
=
|
.
|
\
|
+ =
=
|
.
|
\
|
+ = = =
+ + + =
h y
K
K K
K K K
h
y y
8.2.3. Mtodos de Runge-Kutta
Exerccios
Exerccio: Utilize o Mtodo de Runge-Kutta de 1,
2, 3 e 4 ordens, para calcular valores
aproximados da soluo y(x) do problema de
valor inicial no intervalo [0,2].
Utilize parties h=0.5 , h=0.25 e h=0.1
1 ) 0 ( com 4 1 = + =
'
y y x y