Anda di halaman 1dari 6

SISTEMAS NO LINEALES

2 x1 x 2 e x1 2 x1 x 2 e x1 0
x1 2 x 2 e x2 x2
x1 2 x 2 e 0

Graficando en Matlab:
x=-2:0.01:2;
y=x;
[X,Y]=meshgrid(x,y);
Z1=2*X-Y-exp(-X);
Z2=-X+2*Y-exp(-Y);
mesh(x,y,Z1);
hold on
mesh(x,y,Z2);

2
figure (2)
contour(x,y,Z1,[0 0],'r'); 1.5

hold on 1

contour(x,y,Z2,[0 0],'b'); 0.5

grid 0

-0.5

-1

-1.5

-2
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2

2 x 2 - x 1 - 1/exp(x 2) = 0

figure (3) 6

syms x1 x2
4
ezplot(2*x1-x2-exp(-x1));
hold on; 2

ezplot(-x1+2*x2-exp(-x2));
grid
x2

-2

-4

-6
-6 -4 -2 0 2 4 6
x1
Resolviendo un sistema no lineal en Matlab

function F = myfun(x)
F = [2*x(1) - x(2) - exp(-x(1));
-x(1) + 2*x(2) - exp(-x(2))];

x0 = [0.5 ; 1 ]; % Make a starting guess at the solution


options=optimset('Display','iter'); % Option to display output
[x,fval] = fsolve(@myfun,x0,options) % Call optimizer

Corriendo:
Norm of First-order Trust-region
Iteration Func-count f(x) step optimality radius
0 3 1.64958 3.29 1
1 6 0.00195601 0.457084 0.113 1
2 9 1.46225e-008 0.0220054 0.000287 1.14
3 12 9.98646e-019 6.5767e-005 2.21e-009 1.14

Equation solved.

fsolve completed because the vector of function values is near zero


as measured by the default value of the function tolerance, and
the problem appears regular as measured by the gradient.

<stopping criteria details>

x=

0.5671
0.5671

fval =

1.0e-009 *

-0.2621
-0.9643

[x,fval] = fsolve(@myfun,x0)
Algoritmo del Punto Fio

e x1 x 2
x1 g1 ( x1 , x 2 )
2
e x2 x1
x2 g 2 ( x1 , x 2 )
2

g (x , x )
G ( x1 , x 2 ) 1 1 2
g 2 ( x1 , x 2 )

g1 g1
x x2 0.5e 1
x
0.5 0.3033 0.5
1
g 2 0.5 0.1839
J G( x1 , x2 )
g 2 0.5e x2 [0.5,1] 0.5
x1 x2

J G ( x1 , x 2 ) 0.8033 1 Converge
1

Algoritmo:

x1( i )
x2
(i )
(i1) e
x1
2
x ( i )
x1
(i)
(i1) e 2

x 2
2
Realizar 03 iteraciones: