Anda di halaman 1dari 9

8.

Hallar la solución aproximada que proporciona el Método de Adams – Bashforth


de segundo, tercer y cuarto orden para la ecuación.

𝟒 − 𝟐𝒙
𝒚′ =
𝒚𝟐

𝒚(𝟏) = 𝟏

𝒉 = 𝟎. 𝟏

𝒙[𝟏, 𝟐]

Resolviendo la ecuación diferencial de la forma tradicional:

𝑑𝑦 4 − 2𝑥 Ecuación a trabajar.
=
𝑑𝑥 𝑦2

𝑑𝑦 2 Factorizando.
= (𝑥 − 2) ∙ (− 2 )
𝑑𝑥 𝑦

1 Aplicando inversos multiplicativos.


(− 𝑦 2 ) 𝑑𝑦 = (𝑥 − 2)𝑑𝑥 ∙
2

1 Aplicando anti-derivada a ambos lados de la


∫ − 𝑦 2 𝑑𝑦 = ∫(𝑥 − 2)𝑑𝑥
2 igualdad.

1 1 Solución implícita.
− 𝑦 3 = 𝑥 2 − 2𝑥 + 𝐶
6 2

3
𝑦 = √−3𝑥 2 + 12𝑥 − 6𝐶 Solución explicita.

1 1 Despejando C de la solución implícita, usando


− (1)3 = (1)2 − 2(1) + 𝐶
6 2 𝑦(1) = 1
4 Valor de C
𝐶=
3

3
𝑦 = √−3𝑥 2 + 12𝑥 − 8 Solución particular

Solución, usando el método de Adams–Bashforth:

Método de segundo orden:

Para este caso será:

ℎ 12 − 6𝑥𝑛 4 − 2𝑥𝑛−1
𝑦𝑛+1 = 𝑦𝑛 + ( − 2 )
2 𝑦𝑛2 𝑦𝑛−1

El primer iterado será 𝑦2 y se necesitan los valores de 𝑦1 y 𝑦0 . 𝑦0 es la condición inicial, por


lo cual solo se debe calcular 𝑦1 mediante el método de Runge – Kutta de cuarto orden:

Para este ejercicio se define ℎ = 0.1

Obteniendo 𝑦1 :

Valores iniciales:

𝑖 = 1, 𝑥0 = 1, 𝑦0 = 1

Obteniendo valores de k:

4 − 2(1)
𝑘1 = 𝑓(𝑥, 𝑦) = =2
12

1 1 4 − 2[1 + 0.5(0.1)] 4 − 2(1.05) 1.9


𝑘2 = 𝑓 (𝑥 + ℎ, 𝑦 + ℎ𝑘1 ) = 2
= 2
= ≈ 1.570248
2 2 [1 + (0.5)(0.1)(2)] (1.1) 1.21

1 1 4 − 2[1 + 0.5(0.1)] 4 − 2(1.05) 1.9


𝑘3 = 𝑓 (𝑥 + ℎ, 𝑦 + ℎ𝑘2 ) = 2
= 2

2 2 [1 + (0.5)(0.1)(1.570248)] (1.078512) 1.163189
≈ 1.633440

4 − 2[1 + 0.1] 1.8 1.8


𝑘4 = 𝑓(𝑥 + ℎ, 𝑦 + ℎ𝑘3 ) = 2
= 2
= ≈ 1.330014
[1 + (0.1)(1.633440)] [1.163344] 1.353369

Sustituyendo en la ecuación para determinar 𝑦1 :


1 1
𝑦1 = 1 + (0.1)[2 + 2(1.570248) + 2(1.633440) + 1.330014] = 1 + (9.73739)
6 60
≈ 1.162289

Así las cosas ya es posible calcular 𝑦2 :

ℎ 12 − 6𝑥1 4 − 2𝑥0
𝑦2 = 𝑦1 + ( − )
2 𝑦12 𝑦02

Sustituyendo en la formula se tiene:

0.1 12 − 6(1.1) 4 − 2(1) 12 − 6.6


𝑦2 = 1.162289 + ( 2
− 2 ) = 1.162289 + 0.05 ( − 2)
2 (1.162289) (1) 1.350916
= 1.162289 + 0.05(3.997288 − 2) = 1.162289 + 0.05(1.997288)
= 1.162289 + 0.099864 ≈ 1.262153

Calculando 𝑦3 :

0.1 12 − 6(1.2) 4 − 2(1.1)


𝑦3 = 1.262153 + ( 2
− ) ≈ 1.346188
2 (1.262153) (1.162289)2

Calculando 𝑦4 :

0.1 12 − 6(1.3) 4 − 2(1.2)


𝑦4 = 1.346188 + ( 2
− ) ≈ 1.411849
2 (1.346188) (1.262153)2

Calculando 𝑦5 :
0.1 12 − 6(1.4) 4 − 2(1.3)
𝑦5 = 1.411849 + ( 2
− ) ≈ 1.463524
2 (1.411849) (1.346188)2

Calculando 𝑦6 :

0.1 12 − 6(1.5) 4 − 2(1.4)


𝑦6 = 1.463524 + ( 2
− 2)
≈ 1.503455
2 (1.463524) (1.411849)

Calculando 𝑦7 :

0.1 12 − 6(1.6) 4 − 2(1.5)


𝑦7 = 1.503455 + ( 2
− 2)
≈ 1.533199
2 (1.503455) (1.463524)

Calculando 𝑦8 :
0.1 12 − 6(1.7) 4 − 2(1.6)
𝑦8 = 1.533199 + ( 2
− ) ≈ 1.553789
2 (1.533199) (1.503455)2

Calculando 𝑦9 :

0.1 12 − 6(1.8) 4 − 2(1.7)


𝑦9 = 1.553789 + ( 2
− 2)
≈ 1.565879
2 (1.553789) (1.533199)

Calculando 𝑦10 :

0.1 12 − 6(1.9) 4 − 2(1.8)


𝑦10 = 1.565879 + ( 2
− 2)
≈ 1.569829
2 (1.565879) (1.553789)

Método de Tercer orden:

Para este caso será:


𝑦𝑛+1 = 𝑦𝑛 + (23𝑓𝑛 − 16𝑓𝑛−1 + 𝑓𝑛−2 )
12

El primer iterado será 𝑦3 y se necesitan los valores de 𝑦2 , 𝑦1 y 𝑦0 . 𝑦0 es la condición inicial,


por lo cual solo se deben calcular 𝑦1 y 𝑦2 mediante el método de Runge – Kutta de cuarto
orden:

𝑦1 ≈ 1.162289

Obteniendo 𝑦2 :

Valores iniciales:

𝑖 = 2, 𝑥1 = 1.1, 𝑦1 = 1.162289

Obteniendo valores de k:

4 − 2(1.1)
𝑘1 = 𝑓(𝑥, 𝑦) = = 1.332430
1.1622892

1 1 4 − 2[1.1 + 0.5(0.1)] 4 − 2(1.15)


𝑘2 = 𝑓 (𝑥 + ℎ, 𝑦 + ℎ𝑘1 ) = =
2 2 [1.162289 + (0.5)(0.1)(1.332430)]2 (1.228911)2
1.7
= ≈ 1.125663
1.510221
1 1 4 − 2[1.1 + 0.5(0.1)] 4 − 2(1.15)
𝑘3 = 𝑓 (𝑥 + ℎ, 𝑦 + ℎ𝑘2 ) = 2
=
2 2 [1.162289 + (0.5)(0.1)(1.125663)] (1.218572)2
1.7
≈ ≈ 1.144844
1.484918

4 − 2[1.1 + 0.1] 1.6 1.6


𝑘4 = 𝑓(𝑥 + ℎ, 𝑦 + ℎ𝑘3 ) = 2
= 2
=
[1.162289 + (0.1)(1.144844)] [1.276773] 1.630150
≈ 0.981505

Sustituyendo en la ecuación para determinar 𝑦2 :

1
𝑦2 = 1.162289 + (0.1)[1.332430 + 2(1.125663) + 2(1.144844) + 0.981505]
6
1
= 1.162289 + (6.854949) ≈ 1.276538
60

Así las cosas ya es posible calcular 𝑦3 :

ℎ 4 − 2𝑥2 4 − 2𝑥1 4 − 2𝑥0


𝑦3 = 𝑦2 + (23 ∙ 2 − 16 ∙ 2 +5∙ )
12 𝑦2 𝑦1 𝑦02

Sustituyendo en la formula se tiene:

0.1 4 − 2(1.2) 4 − 2(1.1) 4 − 2(1)


𝑦3 = 1.276538 + (23 ∙ 2
− 16 ∙ 2
+5∙ ) ≈ 1.370405
12 (1.276538) (1.162289) (1)2
Calculando 𝑦4 :

0.1 4 − 2(1.3) 4 − 2(1.2) 4 − 2(1.1)


𝑦4 = 1.370405 + (23 ∙ 2
− 16 ∙ 2
+5∙ ) ≈ 1.437889
12 (1.370405) (1.276538) (1.162289)2

Calculando 𝑦5 :

0.1 4 − 2(1.4) 4 − 2(1.3) 4 − 2(1.2)


𝑦5 = 1.437889 + (23 ∙ 2
− 16 ∙ 2
+5∙ ) ≈ 1.490648
12 (1.437889) (1.370405) (1.276538)2

Calculando 𝑦6 :
0.1 4 − 2(1.5) 4 − 2(1.4) 4 − 2(1.3)
𝑦6 = 1.490648 + (23 ∙ 2
− 16 ∙ 2
+5∙ ) ≈ 1.530579
12 (1.490648) (1.437889) (1.370405)2

Calculando 𝑦7 :

0.1 4 − 2(1.6) 4 − 2(1.5) 4 − 2(1.4)


𝑦7 = 1.530579 + (23 ∙ 2
− 16 ∙ 2
+5∙ 2)
≈ 1.560210
12 (1.530579) (1.490648) (1.437889)

Calculando 𝑦8 :

0.1 4 − 2(1.7) 4 − 2(1.6) 4 − 2(1.5)


𝑦8 = 1.560210 + (23 ∙ 2
− 16 ∙ 2
+5∙ ) ≈ 1.580672
12 (1.560210) (1.530579) (1.490648)2

Calculando 𝑦9 :

0.1 4 − 2(1.8) 4 − 2(1.7) 4 − 2(1.6)


𝑦9 = 1.580672 + (23 ∙ 2
− 16 ∙ 2
+5∙ ) ≈ 1.592721
12 (1.580672) (1.560210) (1.530579)2
Calculando 𝑦10 :

0.1 4 − 2(1.9) 4 − 2(1.8) 4 − 2(1.7)


𝑦10 = 1.592721 + (23 ∙ 2
− 16 ∙ 2
+5∙ ) ≈ 1. .596756
12 (1.592721) (1.580672) (1.560210)2

Método de Cuarto orden:

Para este caso será:


𝑦𝑛+1 = 𝑦𝑛 + (55𝑓𝑛 − 59𝑓𝑛−1 + 37𝑓𝑛−2 − 9𝑓𝑛−3 )
24

El primer iterado será 𝑦4 y se necesitan los valores de 𝑦3 , 𝑦2 , 𝑦1 y 𝑦0 . 𝑦0 es la condición


inicial, por lo cual solo se deben calcular 𝑦1 , 𝑦2 y 𝑦3 mediante el método de Runge – Kutta
de cuarto orden:
𝑦1 ≈ 1.162289

𝑦2 ≈ 1.276538

Obteniendo 𝑦3 :

Valores iniciales:
𝑖 = 3, 𝑥2 = 1.2, 𝑦2 = 1.276538

Obteniendo valores de k:

4 − 2(1.2)
𝑘1 = 𝑓(𝑥, 𝑦) = = 0.981867
1.2765382

1 1 4 − 2[1.2 + 0.5(0.1)] 4 − 2(1.25)


𝑘2 = 𝑓 (𝑥 + ℎ, 𝑦 + ℎ𝑘1 ) = 2
=
2 2 [1.276538 + (0.5)(0.1)(0.981867)] (1.325631)2
1.5
= ≈ 0.853583
1.757298

1 1 4 − 2[1.2 + 0.5(0.1)] 4 − 2(1.25)


𝑘3 = 𝑓 (𝑥 + ℎ, 𝑦 + ℎ𝑘2 ) = 2
=
2 2 [1.276538 + (0.5)(0.1)(0.853583)] (1.319217)2
1.5
≈ ≈ 0.861904
1.740334

4 − 2[1.2 + 0.1] 1.4 1.4


𝑘4 = 𝑓(𝑥 + ℎ, 𝑦 + ℎ𝑘3 ) = 2
= 2
=
[1.276538 + (0.1)(0.861904)] [1.362728] 1.857029
≈ 0.753893

Sustituyendo en la ecuación para determinar 𝑦3 :

1
𝑦3 = 1.276538 + (0.1)[0.981867 + 2(0.853583) + 2(0.861904) + 0.753893]
6
1
= 1.276538 + (5.166734) ≈ 1.362650
60

Así las cosas ya es posible calcular 𝑦4 :

ℎ 4 − 2𝑥3 4 − 2𝑥2 4 − 2𝑥1 4 − 2𝑥0


𝑦4 = 𝑦3 + (55 ∙ 2 − 59 ∙ 2 + 37 ∙ 2 −9∙ )
24 𝑦3 𝑦2 𝑦1 𝑦02

Sustituyendo en la formula se tiene:

0.1 4 − 2(1.3) 4 − 2(1.2) 4 − 2(1.1) 4 − 2(1)


𝑦4 = 1.362650 + (55 ∙ 2
− 59 ∙ 2
+ 37 ∙ 2
−9∙ )
24 (1.362650) (1.276538) (1.162289) (1)2
≈ 1.424478

Calculando 𝑦5 :
0.1 4 − 2(1.4) 4 − 2(1.3) 4 − 2(1.2)
𝑦5 = 1.424478 + (55 ∙ 2
− 59 ∙ 2
+ 37 ∙ −9
24 (1.424478) (1.362650) (1.276538)2
4 − 2(1.1)
∙ ) ≈ 1.476055
(1.162289)2

Calculando 𝑦6 :

0.1 4 − 2(1.5) 4 − 2(1.4) 4 − 2(1.3)


𝑦6 = 1.476055 + (55 ∙ − 59 ∙ + 37 ∙ −9
24 (1.476055)2 (1.424478)2 (1.362650)2
4 − 2(1.2)
∙ ) ≈ 1.515275
(1.276538)2
Calculando 𝑦7 :

0.1 4 − 2(1.6) 4 − 2(1.5) 4 − 2(1.4)


𝑦7 = 1.515275 + (55 ∙ 2
− 59 ∙ 2
+ 37 ∙ −9
24 (1.515275) (1.476055) (1.424478)2
4 − 2(1.3)
∙ ) ≈ 1.545187
(1.362650)2

Calculando 𝑦8 :

0.1 4 − 2(1.7) 4 − 2(1.6) 4 − 2(1.5)


𝑦8 = 1.545187 + (55 ∙ 2
− 59 ∙ 2
+ 37 ∙ −9
24 (1.545187) (1.515275) (1.476055)2
4 − 2(1.4)
∙ ) ≈ 1.565705
(1.424478)2

Calculando 𝑦9 :

0.1 4 − 2(1.8) 4 − 2(1.7) 4 − 2(1.6)


𝑦9 = 1.565705 + (55 ∙ 2
− 59 ∙ 2
+ 37 ∙ −9
24 (1.565705) (1.545187) (1.515275)2
4 − 2(1.5)
∙ ) ≈ 1.577824
(1.476055)2

Calculando 𝑦10 :

𝑦10 = 1.577824
0.1 4 − 2(1.9) 4 − 2(1.8) 4 − 2(1.7)
+ (55 ∙ 2
− 59 ∙ 2
+ 37 ∙ −9
24 (1.577824) (1.565705) (1.545187)2
4 − 2(1.6)
∙ ) ≈ 1.581798
(1.515275)2
La siguiente tabla compara los resultados de los tres métodos usados:

𝒙𝒊 Valor real 𝒚𝒊 Resultados AB Resultados AB de Resultados AB


de orden 2 orden 3 de orden 4

𝟏. 𝟎 1.000000 1.000000 1.000000 1.000000

𝟏. 𝟏 1.162251 1.162289 1.162289 1.162289

𝟏. 𝟐 1.276501 1.262153 1.276538 1.276538

𝟏. 𝟑 1.362616 1.346188 1.370405 1.362650

𝟏. 𝟒 1.429314 1.411849 1.437889 1.424478

𝟏. 𝟓 1.481248 1.463524 1.490648 1.476055

𝟏. 𝟔 1.521181 1.503455 1.530579 1.515275

𝟏. 𝟕 1.550849 1.533199 1.560210 1.545187

𝟏. 𝟖 1.571366 1.553789 1.580672 1.565705

𝟏. 𝟗 1.583423 1.565879 1.592721 1.577824

𝟐. 𝟎 1.587401 1.569829 1.596756 1.581798

Anda mungkin juga menyukai