Deber

Descargar como docx, pdf o txt
Descargar como docx, pdf o txt
Está en la página 1de 3

6.

2 Determine la raíz real más grande de


f(x) = 2x3 – 11.7x2 + 17.7x – 5
a) En forma gráfica.

clc
clear
x = -2:0.5:6;
y = 2*x.^3-11.7*x.^2+17.7*x-5;
plot( x, y )
grid on
title('Gráfica de la función')

Raíz= 3.5

b) Con el método de iteración simple de punto fijo (tres iteraciones,


x0 = 3). Nota: Asegúrese de haber desarrollado una solución que
converja a la raíz.
0=2 x 3−11.7 x 2+17.7 x−5
−2 x 3 +11.7 x 2 +5
x=
17.7
−2 x 3 +11.7 x 2 +5
x=g(x) g( x )=
17.7
x0 = 3 3.18−3
x1=3.18 −2 ( 3 )3 +11.7 ( 3 )2 +5 ea= ∗100 %=5.66 %
g ( 3 )= =3.18 3.18
x2=3.33 17.7
x3= 3.33−3.18
−2 ( 3.18 )3+ 11.7 ( 3.18 )2 +5 ea= ∗100 %=4.50 %
g ( 3.18 )= =3.33 3.33
17.7
3.44−3.33
ea= ∗100 %=3.19 %
−2 ( 3.33 )3+ 11.7 ( 3.33 )2 +5 3.44
g ( 3.33 )= =3.44
17.7
c) Con el método de Newton-Raphson (tres iteraciones, x0 = 3).

x0= 3 f ' ( x )=6 x 2−23.4 x +17.7

x1=x0 3.2 f ' ( 3 )=6(3)2−23.4 ( 3 )+17.7=¿1.5


x 1=3+ =5.133 f ( 3 )=2(3)3−11.7 (3 )2+17.7 ( 3 )−5=−3,2
1.5

x 2=5.133−
59.795
=4.2 f ' ( 5.33 )=6(5.33)2−23.4 ( 5.33 ) +17.7=¿63.43
63.43 f ( 5.33 ) =2(5.33)3−11.7 ( 5.33 )2 +17.7 ( 5.33 )−5=59.795
11.128
x 3=4.2− =3.76 f ' ( 4.2 ) =6(4.2)2−23.4 ( 4.2 ) +17.7=¿25.26
25.26
f ( 4.2 )=2(4.2)3−11.7 ( 4.2 )2 +17.7 ( 4.2 ) −5=11.128

5.133−3
ea= ∗100 %=41.55 %
5.133
4.2−5.133
ea= ∗100 %=22.21%
4.2
3.76−4.2
d) Con el método de la secante (tres iteraciones x–1 = 3, x0 = 4).

( 6.6 ) ( 3−4 )
x 1=4− =3.3265 f ( 3 )=2(3)3−11.7 (3 )2+17.7 ( 3 )−5=−3,2
(−3.2 )− ( 6.6 )
f ( 4 ) =2(4 )3 −11.7 ( 4 )2 +17.7 ( 4 )−5=6.6
(−1.969 ) ( 4−3.3265 )
x 2=3.3265− =3.4812 f ( 3.3265 ) =2(3.3265)3−11.7 ( 3.3265 )2 +17.7 ( 3.3265 )−5
( 6.6 )−(−1.969 )
(−0.796 )( 3.3265−3.4812 ) f ( 3.481 ) =2(3.481)3−11.7 ( 3.481 )2+17.7 ( 3.481 ) −5=−0
x 2=3.4812− =3.5861
(−1.969 )−(−0.796 )
3.3265−4
ea= ∗100 %=20.24 %
3.3265
3.4812−3.3265
ea= ∗100 %=4.44 %
3.4812
3.5861−3.4812
ea= ∗100 %=2.92%
6.3 Utilice los métodos de a) iteración de punto fijo y b) Newton-Raphson, para
3. 5861
determinar una raíz de f(x) = – 0.9x2 + 1.7x + 2.5 con el uso de x0 = 5. Haga el cálculo
hasta que ea sea menor que es = 0.01%. Asimismo, realice una comprobación del error
de su respuesta final.
a)
0=−0.9 x 2+1.7 x +2.5
1.7 x +2.5
x0=5
x1=3.496
g( x )=
√ 0.9
1.7 (5 )+ 2.5 ea=
3.496−5
3.496−5 ∗100 %=−43 %%
ea= %=−43
x2=2.9263
g ( 5 )=
√ 0.9
=3.496

1.7 ( 3.496 ) +2.5


3.496
3.496
3.063−3.496
∗100

3.063−3.496
x3=2.881 g ( 3.496 )=

x4=2.866
√ 0.9
1.7 ( 3. 063 ) +2.5
=3.063 ea=
ea= 3.063
3.063
2.9263−3.063
∗100
∗100%=−14.13 %%
%=−1 4.13

x5=2.862
g ( 3.063 )=
√ 0.9
1.7 (2.9263 )+ 2.5
=2.9263 ea= 2.9263−3.063
ea= 2.9263
2.9263
∗100 %=−4.67
∗100 %%
%=−4.67

x6=2.8607 g ( 2.9263 )=

x7=2.86 03
√ 0.9
1.7 ( 2.881 ) +2.5
=2. 881 ea=
2.881−2.9263
2.881−2.9263
ea= 2.881
2.881
∗100 %=−1.57
∗100 %%
%=−1.57
g ( 2.881 )=
√ 0.9
1.7 ( 2.8 66 ) +2.5
=2. 866
ea=
2.866−2.881
2.866−2. 881
ea= 2.866
2.866
∗100 %=−0.52%
∗100 %=−0.52 %
g ( 2.8 66 )=
√ 0.9
1.7 ( 2.86 2 ) +2.5
=2.86 2
ea=
2.862−2.866
ea=
2.86 2−2. 8 ∗100
2.862
66 %=−0.139%
∗100 %=−0. 139 %
g 2.86 2 =
( )
√ 0.9
=2.86 07

1.7 ( 2.86 07 ) +2.5 ea=


2.86
2.8607−2.862
2
2.86 07−2. 86∗100
ea= 2.8607
2 %=−0.069 %
∗100 %=−0. 069 %
g ( 2.86 07 )=
√ 0.9
=2.86 03 2.86 07
b)

f ( x )=−0.9 x 2 +1.7 x+ 2.5


3.424−5
f ' ( x )=−1.8 x +1.7 ea= ∗100 %=−4 6.02%
3.424
[ −0.9 ( 5 )2 +1.7 ( 5 ) +2.5 ] 2.924−3.424
x =5−
1 =3.424 ea= ∗100 %=−1 7.099 %
−1.8 ( 5 ) +1. 7 2.924

[ −0.9 ( 3.424 )2 +1.7 ( 3.424 ) +2.5 ] 2.861−2.924


ea= ∗100 %=−2.202%
x =3.424−
2 =2.924 2.861
−1.8 ( 3.424 ) +1. 7
2.8601−2.861
[−0.9 ( 2.924 )2 +1.7 ( 2.924 ) +2.5 ] =2.861 ea= ∗100 %=−0.031 %
x =2.924− 2.8601
3
−1.8 ( 2.924 ) +1. 7
2.860104−2.8601
2
ea= ∗100 %=0.0001 %
[−0.9 ( 2.861 ) +1.7 ( 2.861 )+ 2.5 ] =2.86 01 2.860104
x 3=2.861−
−1.8 ( 2.861 ) +1.7

x 3=2.86 0 1−
[−0.9 ( 2.86 0 1 )2+ 1.7 ( 2.86 01 ) +2.5 ] =2.860104
−1.8 ( 2.86 0 1 )+ 1.7

También podría gustarte