Vous êtes sur la page 1sur 9

1

Tarea 1 - Error y Ecuaciones no Lineales

Actividad colaborativa

Por

Valentina Navarro Garavito

Código 1´096.251.288

Métodos numéricos

Grupo 100401_4

Tutor: Jorge Armando Amador

Universidad Nacional Abierta y a Distancia UNAD

UDR Barrancabermeja

Mayo del 2019


2

Tarea 1 - Error y Ecuaciones no Lineales

Para estudiantes cuyo documento de identidad termine en los dígitos,


k: 2, 5 o 8

Dada la siguiente función: 𝒇(𝒙) = 𝒙(𝒆𝒙 − 𝟓) − 𝒙𝟐 𝐜𝐨𝐬(𝒙 − 𝟏) − 𝟑 = 𝟎

Ejercicio 1. Realice una tabla en el intervalo [-7.0, 3.0] y grafique la función


en ese intervalo (use un tamaño de paso de 0.5 o menor, que le permita
observar adecuadamente los cambios de signo). Determine los subintervalos
en donde posiblemente se encuentran las raíces.

x f(x)
-7.0 39.12
-6.5 14.844
-6.0 -0.155
-5.5 -5.064
-5.0 -2.037
-4.5 5.099
-4.0 12.388
-3.5 16.976
-3.0 17.733
-2.5 15.147
-2.0 10.689
-1.5 5.967
-1.0 2.048
-0.5 -0.820
0 -3
0.5 -4.895
1.0 -6.281
1.5 -5.752
3

2.0 -0.383
2.5 14.514
3.0 46.001

Ejercicio 2. Seleccione un intervalo de los encontrados (especifique


claramente cuál) y para cada uno de los siguientes métodos realice (k+5)
iteraciones:

• Bisección
4

Encontrar la raíz de 𝑓(𝑥) = 𝑥(𝑒 𝑥 − 5) − 𝑥 2 cos(𝑥 − 1) − 3

1. Observamos que la función es continúa en (0, ∝) buscamos a y b en ese


intervalo que cumplan 𝑓(𝑎) ∗ 𝑓(𝑏) < 0
𝑎=1 𝑏 = 3 → 𝑓(1) = −6,281 𝑓(3) = 46,001 → 𝑓(1) ∗ 𝑓(3)
= (−6,281) ∗ (46,001) = −288,932281 < 0
→ 𝑓(1) < 0 𝑦 𝑓(3) > 0 𝑙𝑢𝑒𝑔𝑜 𝑡𝑜𝑚𝑎𝑚𝑜𝑠 𝑎 = 1 𝑏 = 3

2. Tomamos para un error de una décima, es decir, 𝜀 = 0,1


𝑏−𝑎 3−1 2
𝑙𝑜𝑔 𝑙𝑜𝑔 𝑙𝑜𝑔 𝑙𝑜𝑔20
La fórmula 𝑛 ≥ log 2
𝜀
−1= log 2
0.1
−1= log 2
0.1
−1= 𝑙𝑜𝑔2
− 1

1,30103
𝑛≥ = 4,32192 → 𝑛 = 5
0,30103

3. 𝑎0 =1 𝑏0=3 𝑓(𝑎0 ) < 0, 𝑓(𝑏0 ) > 0, 𝑒𝑠 𝑑𝑒𝑐𝑖𝑟, 𝑓(1) = −6,281 𝑓(3) = 46,001
𝑎0 + 𝑏0 1 + 3
𝑚0 = = =2 𝑓(𝑚0 ) = 𝑓(2) = −0,383
2 2
Como 𝑓(2) < 0 → 𝑓(1) 𝑓(2) < 0 𝑐𝑜𝑛𝑠𝑖𝑑𝑒𝑟𝑜 𝑎1 = 𝑎0 = 1 𝑏1 = 𝑚0 = 2

4. 𝑎1 = 1 𝑏1 = 2 𝑓(𝑎1 ) = 𝑓(1) = −6,281 < 0 𝑦 𝑓(𝑏1 ) = 𝑓(2) = −0,383 < 0


𝑎1 + 𝑏1 1 + 2
→ 𝑓(𝑎1 ) < 0 𝑓(𝑏1 ) < 0 𝑚1 = = = 1,5
2 2
𝑓(𝑚1 ) = 𝑓(1,5) = −5,752 → 𝑓(𝑚1 ) = 𝑓(1,5) < 0 𝑙𝑢𝑒𝑔𝑜, 𝑓(𝑚1 ) ∗ 𝑓(𝑏1 ) > 0
Tomamos 𝑎2 = 𝑚1 = 1,5 𝑏2 = 𝑏1 = 2 𝑓(𝑎2 ) = 𝑓(1,5) = −5,752
𝑓(𝑏2 ) = 𝑓(2) = −0,383 → 𝑓(1,5) < 0 𝑓(2) < 0
𝑎2 + 𝑏2 1,5 + 2
→ 𝑚2 = = = 1,75 → 𝑓(𝑚2 ) = 𝑓(1,75) = −3,92024
2 2
𝑓(𝑚2 ) = 𝑓(1,75) < 0 → 𝑓(𝑎2 ) ∗ 𝑓(𝑚2 ) = (−5,752)(−3,92024) > 0
→ 𝑎3 = 𝑎2 = 1,5 𝑏3 = 𝑚2 = 1,75

5. 𝑎3 = 1,5 𝑏3 = 1,75 𝑓(𝑎3 ) = 𝑓(1,5) = −5,725 𝑓(𝑏3 ) = 𝑓(1,75)


𝑎3 + 𝑏3 1,5 + 1,75
𝑚3 = = = 1,625 𝑓(𝑚3 ) = 𝑓(1,625) = −5,01402
2 2
5

6. 𝑎4 = 𝑎3 = 1,5 𝑏4 = 𝑚3 = 1,625 → 𝑓(𝑎4 ) = 𝑓(1,5) = −5,725 𝑓(𝑏4 ) = 𝑓(1,625) =


−5,01402

𝑎4 + 𝑏4 1,5 + 1,625
𝑚4 = = = 1,5625 → 𝑓(𝑚4 ) = 𝑓(1,5625) = −5,42347
2 2

7. 𝑎5 = 𝑎4 = 1,5 𝑏5 = 𝑚4 = 1,5625
𝑎5 + 𝑏5 1,5 + 1,5625
𝑚5 = = = 1,53125 → 𝑓(𝑚5 ) = 𝑓(1,53125) = −5,59739
2 2

𝒇(𝒎𝟎 ) = −𝟎, 𝟑𝟖𝟑

𝒇(𝒎𝟏 ) = −𝟓, 𝟕𝟓𝟐

𝒇(𝒎𝟐 ) = −𝟑, 𝟗𝟐𝟎𝟐𝟒

𝒇(𝒎𝟑 ) = −𝟓, 𝟎𝟏𝟒𝟎𝟐

𝒇(𝒎𝟒 ) = −𝟓, 𝟒𝟐𝟑𝟒𝟕

𝒇(𝒎𝟓 ) = −𝟓, 𝟓𝟗𝟕𝟑𝟗

• Regula Falsi (En algunos textos se encuentra también como


Falsa Posición o Regla Falsa)

1. Se pretende calcular la solución de una ecuación de la forma 𝑓(𝑥) = 0


Donde F es confinda entre [1,3] con 𝑓(1) ⋅ 𝑓(3) < 0

f(1) = −6,281 𝑓(3) = 46,001 𝑓(1) . 𝑓(3) < 0

2. Hallemos la recta que pasa por los puntos (𝑎, 𝑓(𝑎)) y (𝑏, 𝑓 (𝑏)) → 𝑓(1) =
−6,281 < 0 𝑓(3) = 46, 001 > 0 → 𝑓(1) . 𝑓(3) < 0

3. 𝑎0= 1 𝑏0= 3 → 𝑓(𝑎0 ) = 𝑓(1) = −6,281 𝑓(𝑏0 ) = 𝑓(3) = 46.001


6

𝑎.𝑓(𝑏0 )−𝑏0 𝑓 (𝑎0 ) 1(46,001)−3 (−6,281) 46,001+18,843 64,844


𝑚0 = = 46,001−(−6,281) = 46.001+6,281 = 52,282
𝑓(𝑏0 )−𝑓(𝑎0 )

𝑚0 = 1,24027389 → 𝑓(𝑚0)> 0 → 𝑓(𝑚0) . 𝑓(𝑏0 ) > 0

𝑎 = 𝑚0 = 1,24027389 𝑏 = 𝑏0=3

4. 𝑎 = 1,24027389 𝑏 =3 → 𝑓(1,24027389) = −6,40838 𝑓(3) = 46,001

𝑎,𝑓(𝑏1 )−𝑏1 𝑓 (𝑎1 )


(𝑚1 ) 𝑚1 = =
𝑓(𝑏1 )−𝑓(𝑏1 )

1,240273389(46,001)−3 (−6.40838) 57,04463910+19,22514


𝑚1= =
46,001−(−6,40838) 46,001+6,40838

76,2697791
𝑚1 = = 1,45526963
52,40938

𝑎2 = 𝑚1 = 1,455269 𝑏2 = 3 𝑓(𝑎2 ) = 𝑓(1,45526963) = 𝑓(3) = 46,001

• Punto Fijo (Determine un esquema que cumpla con el Teorema


de Punto Fijo. Debe demostrarlo, no solo copiarlo)

3 + 12 cos(1 − 1)
𝑥1 = 𝑔(𝑥0 ) = = −1,75306
𝑒1 − 5

3 + (−1,75306)2 cos(−1, 75306 − 1)


𝑥2 = 𝑔(𝑥1 ) = = −0,03229
𝑒 −1,75306 − 5

3 + (−0,03229)2 cos(−0,03229 − 1)
𝑥3 = 𝑔(𝑥2 ) = = −0,74422
𝑒 −0,03229 − 5

3 + (−0,74422)2 cos(−0,74422 − 1)
𝑥4 = 𝑔(𝑥3 ) = = −0,64188
𝑒 −0,74422 − 5

3 + (−0,64188)2 cos(−0,64188 − 1)
𝑥5 = 𝑔(𝑥4 ) = = −0,66405
𝑒 −0,64188 − 5

3 + (−0,66405)2 cos(−0,66405 − 1)
𝑥6 = 𝑔(𝑥5 ) = = −0,65971
𝑒 −0,66405 − 5
7

3 + (−0,65971)2 cos(−0,65971 − 1)
𝑥7 = 𝑔(𝑥6 ) = = −0,66057
𝑒 −0,65971 − 5

𝐿𝑎 𝑟𝑎í𝑧 𝑎𝑝𝑟𝑜𝑥𝑖𝑚𝑎𝑑𝑎 𝑐𝑜𝑛 𝑑𝑜𝑠 𝑑𝑒𝑐𝑖𝑚𝑎𝑙𝑒𝑠 𝑒𝑠: − 𝟎, 𝟔𝟔

𝑥2 − 𝑥1 −0,03229 − (−1,75306)
𝐸1 = | |=| | = 53,2%
𝑥2 −0,03229

𝑥3 − 𝑥2 −0,74422 − (−0,03229)
𝐸2 = | |=| | = 95,66%
𝑥3 −0,74422

𝑥4 − 𝑥3 −0,64188 − (−0,74422)
𝐸3 = | |=| | = 15,94%
𝑥4 −0,64188

𝑥5 − 𝑥4 −0,66405 − (−0,64188)
𝐸4 = | |=| | = 3,33%
𝑥5 −0,66405

𝑥6 − 𝑥5 −0,65971 − (−0,66405)
𝐸5 = | |=| | = 0,65%
𝑥6 −0,65971

𝑥7 − 𝑥6 −0,66057 − (−0,65971)
𝐸6 = | |=| | = 0,13%
𝑥7 −0,66057

• Newton – Raphson

𝑓(𝑥𝑛 )
𝐹ó𝑟𝑚𝑢𝑙𝑎 𝑋𝑛+1=𝑥𝑛 − [1,3]
𝑓̀ (𝑥𝑛 )

𝑓(𝑥) = 𝑥(𝑒 𝑥 − 5) − 𝑥 2 cos(𝑥 − 1) − 3

𝑓̀ (𝑥) = 𝑒 𝑥 − 5 + 𝑥𝑒 𝑥 − 2𝑥𝑐𝑜𝑠(𝑥 − 1) + 𝑥 2 𝑠𝑒𝑛(𝑥 − 1)

𝑝𝑟𝑜𝑐𝑒𝑠𝑜 𝑖𝑡𝑒𝑟𝑎𝑡𝑖𝑣𝑜

𝑥0 = 1

𝑓(𝑥0 ) 𝑓(1) −6,28172


𝑃𝑎𝑟𝑎 𝑛 = 0 → 𝑥1 = 𝑥0 − =1− =1− = −3,01788
̀ 𝑥0 )
𝑓( ̀ 1)
𝑓( −1,56344

𝑓(𝑥1 ) 17,77075
𝑃𝑎𝑟𝑎 𝑛 = 1 → 𝑥2 = 𝑥1 − = −3,01788 − = −6,10188
̀ 𝑥1 )
𝑓( 5,76224
8

𝑓(𝑥2 ) 𝑓(−6,10188) 2,05913


𝑃𝑎𝑟𝑎 𝑛 = 2 → 𝑥3 = 𝑥2 − = −6,10188 − = −6,10188 −
̀
𝑓(𝑥2 ) ̀
𝑓(− 6,10188) −40,53825
= −6,05108

𝑓(𝑥3 ) 𝑓(−6,05108) 0,90084


𝑃𝑎𝑟𝑎 𝑛 = 3 → 𝑥4 = 𝑥3 − = −6,05108 − = −6,05108 =
̀ 𝑥3 )
𝑓( ̀ − 6,05108)
𝑓( −40,53814
= −6,02885

𝑓(𝑥4 ) 𝑓(−6,02885) 0,42785


𝑃𝑎𝑟𝑎 𝑛 = 4 → 𝑥5 = 𝑥4 − = −6,02885 − = −6,02885 =
̀ 𝑥4 )
𝑓( ̀ − 6,02885)
𝑓( −20,81409
= −6,00829

𝑓(𝑥5 ) 𝑓(−6,00829) 0,00829


𝑃𝑎𝑟𝑎 𝑛 = 5 → 𝑥6 = 𝑥5 − = −6,00829 − = −6,00829 =
̀
𝑓(𝑥5 ) ̀
𝑓(− 6,02885) −19,96046
= −6,00785

𝑈𝑛𝑎 𝑏𝑢𝑒𝑛𝑎 𝑎𝑝𝑟𝑜𝑥𝑖𝑚𝑎𝑐𝑖𝑎 𝑑𝑒 𝑟𝑎í𝑧 𝑒𝑠: −𝟔, 𝟎𝟎

• Secante

𝑓(𝑥) = 𝑥(𝑒 𝑥 − 5) − 𝑥 2 cos(𝑥 − 1) − 3

𝐶𝑜𝑛𝑑𝑖𝑐𝑖𝑜𝑛𝑒𝑠 𝑖𝑛𝑖𝑐𝑖𝑎𝑙𝑒𝑠 𝑥0 = 1 𝑥1 = 3

𝑓(𝑥𝑛 )(𝑥𝑛−1− 𝑥𝑛 )
𝐹ó𝑟𝑚𝑢𝑙𝑎 𝑥𝑛 + 1 = 𝑥𝑛 − 𝑛 = 1,2,3 …
𝑓(𝑥𝑛 − 1) − 𝑓(𝑥𝑛 )

𝐸𝑛 𝑎𝑛á𝑙𝑖𝑠𝑖𝑠 𝑛𝑢𝑚é𝑟𝑖𝑐𝑜 𝑒𝑙 𝑚é𝑡𝑜𝑑𝑜 𝑑𝑒 𝑙𝑎 𝑠𝑒𝑐𝑎𝑛𝑡𝑒 𝑒𝑠 𝑢𝑛 𝑚é𝑡𝑜𝑑𝑜 𝑝𝑎𝑟𝑎 𝑒𝑛𝑐𝑜𝑛𝑡𝑟𝑎𝑟 𝑙𝑜𝑠 𝑐𝑒𝑟𝑜𝑠 𝑑𝑒 𝑢𝑛𝑎 𝑓𝑢𝑛𝑐𝑖ó𝑛

𝑒𝑛 𝑓𝑜𝑟𝑚𝑎 𝑖𝑡𝑒𝑟𝑎𝑑𝑎.

𝑓(𝑥1 )(𝑥0 − 𝑥1 ) 𝑓(3)(1 − 3)


𝑃𝑎𝑟𝑎 𝑛 = 1 → 𝑥2 = 𝑥1 − =3−
𝑓(𝑥0 ) − 𝑓(𝑥1 ) 𝑓(1) − 𝑓(3)

46,00193 −92,00386
𝑥2 = 3 − =3− = 1,24029
−6,28172 − 46,00193 −52,28365

𝑓(𝑥2 )(𝑥1 − 𝑥2 ) −6,40837(3 − 1,24029)


𝑃𝑎𝑟𝑎 𝑛 = 2 → 𝑥3 = 𝑥2 − = 1,24029 −
𝑓(𝑥1 ) − 𝑓(𝑥2 ) 46,00193 − (−6,40837)

−11,27687
𝑥3 = 1,24029 − = 1,24029 + 0,21516 = 1,45545
52,4103
9

𝑓(𝑥3 )(𝑥2 − 𝑥3 ) −5,94099(1,24029 − 1,45545)


𝑃𝑎𝑟𝑎 𝑛 = 3 → 𝑥4 = 𝑥3 − = 1,45545 −
𝑓(𝑥2 ) − 𝑓(𝑥3 ) −6,40837 − (−5,94099)

1,27826
𝑥4 = 1,45545 − = 1,45545 + 2,73494 = 4,19039
−0,46738

𝑓(𝑥4 )(𝑥3 − 𝑥4 ) 270,35568(1,45545 − 4,19039)


𝑃𝑎𝑟𝑎 𝑛 = 4 → 𝑥5 = 𝑥4 − = 4,19039 −
𝑓(𝑥5 ) − 𝑓(𝑥4 ) −5,94099 − 270,35568

−739,40656
𝑥5 = 4,19039 − = 1,51425
−276,29667

𝑓(𝑥5 )(𝑥4 − 𝑥5 ) −5,68384(4,19039)


𝑃𝑎𝑟𝑎 𝑛 = 5 → 𝑥6 = 𝑥5 − = 1,51425 −
𝑓(𝑥4 ) − 𝑓(𝑥5 ) 270,35568 − (−5,68384)

−23,81750
𝑥6 = 1,51425 − = 1,60053
276,03952

𝑥0 = 1

𝑥1 = 3

𝑥2 = 1,24029

𝑥3 = 1,45545

𝑥4 = 4,01939

𝑥5 = 1,51425

𝑥6 = 1,60053

𝑈𝑛𝑎 𝑏𝑢𝑒𝑛𝑎 𝑎𝑝𝑟𝑜𝑥𝑖𝑚𝑎𝑐𝑖𝑎 𝑒𝑠 𝑥 = 1,5

• Para cada método elabore una tabla con los resultados. Debe
contener al menos la siguiente información por columna: Número de iteración,
i, valor aproximado de la raíz en esa iteración, 𝑥𝑖, el valor de la función
evaluada en la raíz aproximada en esa iteración, 𝑓(𝑥𝑖), y el error relativo, 𝐸𝑟𝑒𝑙
(%). Note que, si el método converge, en cada iteración, i, el valor de 𝑓(𝑥𝑖) se
debe ir aproximando cada vez más a cero. Si esto no ocurre, revise
cuidadosamente sus cálculos.

Vous aimerez peut-être aussi