Professional Documents
Culture Documents
CEROS DE
FUNCIONES
NO LINEALES
Departamento de Matemtica Aplicada
Facultad de Ingeniera
Universidad Central de Venezuela
Clculo Numrico Jos Luis Quintero 1
Puntos a tratar
1. Problema de inters
2. Mtodo de biseccin
3. Mtodo de falsa posicin
4. Mtodo de Newton
5. Mtodos Cuasi-Newton
6. Funcin contractiva
7. Punto Fijo
8. Resolucin de ecuaciones
9. Cota del error en punto fijo
10. Orden y factor de convergencia
Clculo Numrico Jos Luis Quintero 2
Problema de inters
Mtodo
de
Biseccin
Mtodo
de
Biseccin
Mtodo
de
Biseccin
Mtodo
de
Biseccin
inicio
leer (a,b,iteraciones,cotaerror,cotaimagen)
u f(a)
v f(b)
e b-a
escribir (a,b,u,v)
si signo(u) = signo(v) entonces stop
desde k = 1 hasta iteraciones hacer
e e2
c a + e
w f(c)
escribir (k,a,u,c,w,b,v,e)
si e < cot aerror o w < cot aimagen entonces stop
si signo(w) signo(u) entonces
b c
v w
sino
a c
u w
fin_si
fin_desde
fin
function y = biseccion(x)
y = (1-x.*cos(x)).*x;
Mtodo de biseccin
20
Solucion final
10
1 3 2
0
x=a x=c
f(x)
-10
-20
-30
-40
0 1 2 3 4 5 6 7
x
f(b) f(a)
g(x) = f(b) + (x b)
b a
ba
c = b f(b)
f(b) f(a)
inicio
leer (a,b,iteraciones,cotaimagen,cotalongitud)
u f(a)
v f(b)
escribir (u,v)
si signo(u) = signo(v) entonces stop
desde k = 1 hasta iteraciones hacer
c b v [(b a)(v u)]
w f(c)
escribir (k,a,u,c,w,b,v)
si w < cot aimagen o b a < cotalongitud entonces stop
si signo(w) signo(u) entonces
b c
v w
sino
a c
u w
fin_si
fin_desde
fin
falsi('falsa',0,5,0.001,100)
function y = falsa(x)
y = x.*x-9;
x0 dado,
f(xn )
xn+1 = xn ; n0
f '(xn )
-1
-2
-3
0
x0
-1
-2
-3
4 y = f (x 0 ) + f ' (x 0 )(x x 0 )
f (x 0 )
3
0 = f (x 0 ) +x1f = 1 x0 )
' (xx0 )(x
2
f ' (x 0 )
1
x1
0 x0
-1
-2
-3
f (x 0 )
x1 = x 0
3
2
f ' (x 0 )
1
x1
0 x0
-1
-2
-3
3
f (x 0 )
x1 = x 0
2 f ' (x 0 )
1
x1
0 x0 x2
-1
f (x1 )
-2
x2 = x1
f ' (x1 )
-3
inicio
leer (x0,iteraciones,cot alongitud,cot aimagen)
v f(x0)
escribir (0,x0, v)
si v < cot aimagen entonces stop
desde k = 1 hasta iteraciones hacer
x1 x0 v f '(x0)
v f(x1)
escribir(k,x1, v)
si x1 x0 < cot alongitud o v < cot aimagen entonces stop
x0 x1
fin_desde
fin
f(xn )
xn+1 = xn ;
f '(xn )
n0
f(xn )
xn+1 = xn ;
f '(xn )
n0
f(xn )
xn+1 = xn ;
f '(xn )
n0
f(xn )
xn+1 = xn ;
f '(xn )
n0
2.5
1.5
0.5
0
0 0.5 1 1.5 2 2.5 3 3.5
d = (x 2 x1 ) + (y2 y1 )
2 2
1
d(x) = (x 2) + ( 1)
2 2
1
g(x) = (x 2) + ( 1)
2 2
Como:
2 1
g' (x) = 2(x 2) 2 ( 1) = 2x 4 23 + 22
x x x x
1 1
f (x) = x 2 3 + 2
x x
f (x0 ) = 1
3 2
f ' (x) = 1+ 4 3
x x
1 1
f (x 0 ) 1 2 3 + 2
x1 = x 0 = 1 1 1 = 1.5
f ' (x 0 ) 3 2
1+ 4 3
1 1
f (x1 ) 0.351852
f (x0 ) 16.2495
1 1
f '(x) = 1 + (20 x + 20 x) (x + x) 1 +
2 x 2 20 x
f (x 0 )
x1 = x 0 16.6156 f (x1 ) 47.4544
f ' (x 0 )
f (x 4 )
x5 = x 4 13.4872 f (x5 ) 0.000498109
f ' (x 4 )
x6 = x 5
newtongraf('newton',2,-1,3,100)
function y = newton(x)
y = (1-x.*cos(x)).*x;
Mtodo de Newton
12
10
6
f(x)
Solucion final
2
56
8
7
0
-2
-1 -0.5 0 0.5 1 1.5 2 2.5 3
x
Sean a,b = 1, 4 y
f(x) = x2 9 ; f '(x) = 2x ; f ''(x) = 2
f(1).f(4) < 0
f '(x) 0, x 1, 4
f ''(x) 0, x 1, 4
El mtodo de Newton converge si se
toma x0 = 4 ya que f(4).f ''(4) > 0 .
Sean a,b = 1, 4 y
f(x) = x 9 ; f '(x) = 2x ; f ''(x) = 2
2
M = max 2 = 2 , m = min
x 1,4
2x = 2
x1,4
1 2 1 2
e2 x2 x1 = 3.0025 3.125
2 2
0.007503
xn xn1
xn+1 = xn f(xn ) ; n1
f(xn ) f(xn1 )
inicio
leer (a,b,iteraciones,cotalongitud,cotaimagen)
u f(a)
v f(b)
e b a
escribir (0,a,u)
escribir (1,b,v)
desde k = 2 hasta iteraciones hacer
si u < v entonces
a b
u v
fin_si
s (b a)(v u)
a b
u v
b b vs
v f(b)
escribir (k,b,v)
si b a < cot alongitud o v < cot aimagen entonces stop
fin_desde
fin
secante('secant',0,5,0.001,100)
function y = secant(x)
y = x.*x-9;
1. La funcin
1
f(x) =
1 + x2
es contractiva para cualquier intervalo, ya
que
2x
f '(x) = <1
(1 + x )
2 2
2. La funcin
1
f(x) =
2x
es contractiva para x 1, ) siempre que
se cumpla que x 1, y 1 . Se puede ver:
1 1 1 yx 1
= yx
2x 2y 2 xy 2
1+ x
Es decir, se ha escrito la ecuacin de la forma
x = (x)
con
3+x
(x) =
1+ x
Clculo Numrico Jos Luis Quintero 83
Aplicacin de punto fijo a la resolucin de ecuaciones
x1 = 2 x 2 = 1.666667 x 3 = 1.750000
x 4 = 1.72727273 x 5 = 1.733333 ...
x 26 = 1.7320508076
Al tomar
3+x
(x) =
1+ x
como iteracin funcional para calcular la raz
positiva de 3, ya se prob que satisface todas
las hiptesis del teorema 1 en [1,2]
Si se sabe que q = 21 , x 0 = 1 , x1 = 2 entonces
e3 ( 21 )3 max {1 1,2 1} = 1
8
( 21 )3
e3 2 1 = 1
1 21
4
lm = =
n
en !
entonces la sucesin x 0 , x1, x 2 ,... converge a r
con orden de convergencia y factor de
convergencia . El orden de convergencia es
el primer entero tal que ( ) (r) 0 .
( xn prximo a r)
en+1 k 1
k
en en ( kk1 )n e0
( xn prximo a r)
Clculo Numrico Jos Luis Quintero 96
Mtodo de Newton
Lofti Zadeh