



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!




Mg. Alfredo Torres Garay
A. Método de Newton Raphson La Jacobiana:
B. Método de Newton Raphson con Derivadas Parciales:
analíticamente.
f 1
(x, y, z) = 0
f 2
(x, y, z) = 0
f 3
(x, y, z) = 0
𝜕𝑓
1
𝜕𝑥
𝜕𝑓
1
𝜕𝑦
𝜕𝑓
1
𝜕𝑧
𝜕𝑓 2
𝜕𝑥
𝜕𝑓 2
𝜕𝑦
𝜕𝑓 2
𝜕𝑧
𝜕𝑓 3
𝜕𝑥
𝜕𝑓 3
𝜕𝑦
𝜕𝑓 3
𝜕𝑧
𝜕𝑓
1
𝜕𝑥
𝜕𝑓
1
𝜕𝑦
𝜕𝑓
1
𝜕𝑧
| - f 1
(x 0
, y 0,
z 0
𝜕𝑓
2
𝜕𝑥
𝜕𝑓
2
𝜕𝑦
𝜕𝑓
2
𝜕𝑧
| - f 2
(x 0
, y 0,
z 0
𝜕𝑓
3
𝜕𝑥
𝜕𝑓
3
𝜕𝑦
𝜕𝑓
3
𝜕𝑧
| - f 3 (x 0 , y0, z 0 )
, y 0,
z
Resolver por eliminación de Gauss.
∆x, ∆y, ∆z, ….
Mg. Alfredo Torres Garay
x i
= ∆x + x 0
y i
= ∆y + y 0
z i
= ∆z + z 0
2
2
2
Si: x i
, y i
, z i
. solución, fin.
No: x 0
= x i
y 0
= y i
z 0
= z i
continúa en ítem 6.
Donde, EPS = 10
− 4
− 12
NO, xo = x1, y0 = y1, zo = z1, retorna a 5.
Problema 1
TABLA DE CONTROL DEL MÉTODO DE LA DERIVADA
EPS = 0.
iter xo yo oz x1 y1 z1 DV EPS
0
1
Mg. Alfredo Torres Garay
Convergencia alcanzada.
Solución final: [X1 = 1.00416847, X2 = 1.72963745]
Problema 2
D. Solución en Python para el Método del Punto Fijo
import numpy as np
def F(x):
f1 = x[ 0 ]** 2 + x[ 1 ]** 2 - 4
f2 = np.exp(x[ 0 ]) + x[ 0 ]*x[ 1 ] - 1
return np.array([f1, f2])
def numerical_jacobian(F, x, h=1e- 6 ):
n = len(x)
J = np.zeros((n, n))
fx = F(x)
for j in range(n):
x_h = x.copy()
x_h[j] += h
J[:, j] = (F(x_h) - fx) / h
return J
def newton_raphson_numerical(x0, tol=1e- 6 , max_iter= 100 ):
x = x0.copy()
for i in range(max_iter):
fx = F(x)
jac = numerical_jacobian(F, x)
delta = np.linalg.solve(jac, - fx)
x = x + delta
2
2
𝑥
Mg. Alfredo Torres Garay
print(f"Iteración {i+ 1 }: x = {x}, ||delta|| =
{np.linalg.norm(delta)}")
if np.linalg.norm(delta, np.inf) < tol:
print("Convergencia alcanzada.")
break
return x
x0 = np.array([1.0, 1.0])
sol = newton_raphson_numerical(x0)
print("Solución final:", sol)
Resuelva con ambos métodos.
Resuelva con ambos métodos.