




























































































Prepara tus exámenes y mejora tus resultados gracias a la gran cantidad de recursos disponibles en Docsity
Gana puntos ayudando a otros estudiantes o consíguelos activando un Plan Premium
Esta página no es visible en la vista previa
¡No te pierdas las partes importantes!





























































































H´ector Andr´es Torres Apablaza
Versi´on 2016, Semestre I
ii
EJEMPLO 1.0.1. Considerar la funci´on f (x) = αx + e−x^ − α(1 − ln(α)) − 2. Se desea aproximar la primera derivada en el punto x 0 = −ln(α), y con h = 0. 1. Entonces, la aproximaci´on de f ′(x 0 ), Usando la f´ormula progresiva es (^) .................... Soluci´on:
f (x 0 + h) − f (x 0 ) h =^
α(x 0 + h) + e−(x^0 +h)^ − α(1 − ln(α)) − 2 − αx 0 − e−x^0 + α(1 − ln(α)) + 2 h = αh^ +^ e
−(x 0 +h) (^) − e−x 0 h =
α
e^0.^1 − 0. 9
Usando la f´ormula regresiva es (^) .................... Soluci´on:
f (x 0 ) − f (x 0 − h) h =^
α(x 0 ) + e−(x^0 )^ − α(1 − ln(α)) − 2 − α(x 0 − h) − e−(x^0 −h)^ + α(1 − ln(α)) + 2 h = αh^ +^ e
−(x 0 ) (^) − e−(x 0 −h) h =^
α 0 .1 + α − αe^0.^1
α
Usando la f´ormula centrada es (^) .................... Soluci´on:
3
4.- Usando las aproximaciones anteriores de ejercicio 3, la de orden O(h) y la primera de orden O(h^4 ), aproximar la primera derivada de cotg(x) en el punto x = 2, usando h = 0. 1 , h = 0. 05 , h = 0. 01 , h = 0. 005. Comparar los resultados. 5.- Usando las aproximaciones anteriores de ejercicio 3, la de orden O(h) y la primera de orden O(h^4 ), aproximar la primera derivada de ex^ en el punto x = 1, usando h =
donde fk = f (xk), adem´as xk = x 0 + kh y k ∈ Z. 7.- Usando desarrollo en series de Taylor determinar las siguientes aproximaciones de las terceras y cuartas derivadas:
donde fk = f (xk), adem´as xk = x 0 + kh y k ∈ Z. 8.- Deducir una f´ormula de cinco puntos que utilice los valores de la funci´on en los puntos x, x + h, x + 2h, x + 3h y x − h para calcular f ′(x). 9.- Usando desarrollo de Taylor, determinar la aproximaci´on de la primera derivada de una funci´on f (x) en el punto x 0 , utilizando diferencias centradas con los puntos x 0 − h/ 2 y x 0 + h/ 2. Determinar adem´as el orden de aproximaci´on. 10.- Aproximar la segunda derivada de f (x), a.- Usando los puntos x + h 2 y x + h. Obtener el orden de aproximaci´on. b.- Usando los puntos x − h 2 y x + h 2. Obtener el orden de aproximaci´on. c.- Usar a) y b) para aproximar el valor de f ′′(1) con f (x) = ex^ y h = 0. 1. Que se concluye de las aproximaciones con respecto al valor exacto. 11.- Aproximar la tercera derivada de f (x) usando los puntos x − 2 h, x − h, x + h y x + 2h. Obtener el orden de aproximaci´on. Usar este resultado para aproximar el valor de f ′′(2) con f (x) = (^1) x y h = 0. 1. Calcular error cometido. 12.- Hacer tareas de la teoria.
k 3 =
ui+1 = ui + , i = 0, 1 , 2 ......
Ahora, considerar en el PVI anterior f (t, u(t)) = eu(t)et^ − 1 y u(0) = 0, determinar los valores en la tabla usando el m´etodo anterior
ti 0. 0 0. 1 0. 2 ui
Soluci´on: Integrando la ecuaci´on diferencial entre ti y ti+1, se tiene que
u(ti+1) − u(ti) =
∫ (^) ti+ ti
f (t, u(t)) dt
usando la regla de Simpson
ui+1 = ui +^16
hf (ti, ui) + 4hf (ti+1/ 2 , ui+1/ 2 ) + hf (ti+1, ut+i)
Reemplazando los valores de ui+1/ 2 y ui+1, dados en las f´ormulas anteriores en la integral, se tiene que 1 6
hf (ti, ui) + 4hf (ti+1/ 2 , ui + h 2 f (ti, ui))
+hf (ti+1, ui + (hα 5 f (ti, ui) + h(5^ − 5 α)f (ti+1/ 2 , ui+1/ 2 )))
llamando k 1 = hf (ti, ui)
se tiene 1 6
k 1 + 4hf (ti+1/ 2 , un + k 2 1 )
+hf (ti+1, ui + (k^15 α + h(5^5 − α)f (ti+1/ 2 , ui+1/ 2 )))
llamando k 2 = hf (ti+1/ 2 , un + k 2 1 )
se tiene 1 6
k 1 + 4k 2
+hf (ti+1, ui + (k^15 α + k^2 (5 5 − α)))
finalmente k 3 = hf (ti+1, ui + (k^15 α + k^2 (5^5 − α)))
se tiene 1 6
k 1 + 4k 2 + k 3
Entonces Entonces, de manera compacta la formula de RK3 esta dada por
k 1 = (^) hf (ti, ui)
k 2 = (^) hf (ti+1/ 2 , ui + k 21 ) k 3 = (^) hf (ti+1, ui + (k^15 α + k^2 (5 5 − α)))
ui+1 = ui + (^16)
k 1 + 4k 2 + k 3
, i = 0, 1 , 2 ......
Considerando en el PVI anterior f (t, u(t)) = eu(t)et^ − 1 y u(0) = 0, se tiene que
u′(t) = eu(t)+t^ − 1 , t ∈ [0, 0 .5]
u(0) = 0
Nos queda que k 1 = 0 .1(eui+ti^ − 1) k 2 = (^0) .1(eui+k^1 /2+ti+1/^2 − 1) k 3 = (^0) .1(eui+(^ k^15 α +^ k^2 (5 5 − α))+ti+1^ − 1)
ui+1 = ui + (^16)
k 1 + 4k 2 + k 3
, i = 0, 1 , 2 , 3 , 4
Usando M´etodo de Runge-Kutta de cuarto orden deducir y escribir los va-lores num´ericos
ui
EJEMPLO 2.0.5. Considerar el siguiente PVI
y′sen(x) + ycos(x) = 1
y(π/6) = 2(π^ + 6 3 α).
a-) Usando M´etodo de Runge-Kutta de tercer orden (problema anterior) deducir y escribir los valores num´ericos de la siguiente tabla.
xi π/ 6 π/ 3 π/ 2 2 π/ 3 5 π/ 6 yi
b-) Usando RK de orden 4 determinar los valores en la tabla.
xi π/ 6 π/ 3 π/ 2 2 π/ 3 5 π/ 6 yi
Soluci´on: Tenemos que y′^ =^1 − sen^ ycos(x)(x)
El m´etodo de RK3, se desarrolla como:
k 1 = hf (xi, yi)
k 2 = hf (xi + h/ 2 , yi + k 1 /2) k 3 = hf (xi + h, yi − k 1 + 2k 2 ) yi+1 = yi +^16 (k 1 + 4k 2 + k 3 ), i = 0, 1 , 2 , 3
es decir, k 1 = π 6 (^1 − sen^ yicos(x(xi) i)^
k 2 = π 6 (^1 −^ (yi^ +^ k^1 /2)cos(xi^ +^ 12 π ) sen(xi + 12 π ) )
k 3 = π 6 (^1 −^ (yi^ −^ k^1 + 2k^2 )cos(xi^ +^
π 6 ) sen(xi + π 6 ) ) yi+1 = yi +^16 (k 1 + 4k 2 + k 3 ), i = 0, 1 , 2 , 3
i = 0 ti = 1. 04719755119660 k 1 , 2 , 3 , 4 = − 1. 71630493933163 , − 0. 405700834725935 , − 0. 748816186958758 , − 9. 020065479232210 E− 002 ui = 2. 36127427828104 EXACTA= 2. 36390011453540
i = 1 ti = 1. 57079632679490 k 1 , 2 , 3 , 4 = − 0. 109213176043388 , 0. 218448778850910 , 0. 195463641825865 , 0. 523598775598299 ui = 2. 56830935176579 EXACTA= 2. 57079632679490
i = 2 ti = 2. 09439510239320 k 1 , 2 , 3 , 4 = 0. 523598775598299 , 0. 939127565893001 , 0. 968276467802763 , 1. 67370930659360 ui = 3. 57032871002969 EXACTA= 3. 57309969069154
i = 3 ti = 2. 61799387799149 k 1 , 2 , 3 , 4 = 1. 68390977880458 , 3. 05074677994810 , 3. 40858387006870 , 7. 37637115161091 ui = 7. 23348574843787 EXACTA= 7. 23598775598298
PARA α = 2. 00000000000000 METODO RK3——————————————————————— ————— i = 0 ti = 1. 04719755119660 k 1 , 2 , 3 = − 3. 53010430356585 , − 0. 978046822775528 , − 1. 39699075197693 ui = 3. 57398382675578 EXACTA= 3. 51860065291465
i = 1 ti = 1. 57079632679490 k 1 , 2 , 3 = − 0. 475815144047430 , 7. 402495084321166 E − 002 , 0. 523598775598299 ui = 3. 63129773257640 EXACTA= 3. 57079632679490
i = 2 ti = 2. 09439510239320 k 1 , 2 , 3 = 0. 523598775598299 , 1. 08826257057699 , 2. 20202017302192 ui = 4. 81107593773110 EXACTA= 4. 72780022907079
i = 3 ti = 2. 61799387799149 k 1 , 2 , 3 = 2. 05898753426794 , 3. 79859563595693 , 10. 4329559989371 ui = 9. 42546361723655 EXACTA= 9. 23598775598298
METODO RK4——————————————————————— ————– i = 0
i = 1 ti = 1. 57079632679490 k 1 , 2 , 3 , 4 = − 0. 805859711896836 , − 5. 599699137787367 E− 002 , − 0. 108599062273353 , 0. 523598775598299 ui = 4. 56385362834987 EXACTA= 4. 57079632679490
i = 2 ti = 2. 09439510239320 k 1 , 2 , 3 , 4 = 0. 523598775598299 , 1. 21909817555152 , 1. 26788671743127 , 2. 36753427667088 ui = 5. 87470410138900 EXACTA= 5. 88250076745004
i = 3 ti = 2. 61799387799149 k 1 , 2 , 3 , 4 = 2. 38052221543866 , 4. 43968762282676 , 4. 97877586585815 , 10. 8902150833574 ui = 11. 2259814807500 EXACTA= 11. 2359877559830
PARA α = 4. 00000000000000 METODO RK3——————————————————————— ————— i = 0 ti = 1. 04719755119660 k 1 , 2 , 3 = − 7. 15770303203428 , − 2. 12273879887471 , − 3. 01073251320099 ui = 5. 93729909440758 EXACTA= 5. 82800172967315