Você está na página 1de 5

In[673]:= ClearAll[x1, x2]

Print["Ecuacin original"]
F = Powerx2 - x1, 4 + 8 * x1 * x2 - x1 + x2 + 3
Plot3DPowerx2 - x1, 4 + 8 * x1 * x2 - x1 + x2 + 3,
{x1, - 2, 2}, {x2, - 2, 2}, PlotRange 12;
p1 = MatrixForm[{- 0.41878, 0.41878}];
p2 = MatrixForm[{- 0.134797, 0.134797}];
p3 = MatrixForm[{0.55358, - 0.55358}];
Print["Primera derivada"]
MatrixFormDPowerx2 - x1, 4 + 8 * x1 * x2 - x1 + x2 + 3, x1,
DPowerx2 - x1, 4 + 8 * x1 * x2 - x1 + x2 + 3, x2
Print["Segunda derivada"]
MatrixFormD- 1 + 8 * x2 - 4 * Power[- x1 + x2, 3], x1,
D1 + 8 * x1 + 4 * Power[- x1 + x2, 3], x2,
D1 + 8 * x1 + 4 * Power[- x1 + x2, 3], x1,
D- 1 + 8 * x2 - 4 * Power[- x1 + x2, 3], x2
Print["Primera derivada evaluada en x0"]
x1 = - 0.5; x2 = 0.5;
MatrixForm
- 1 + 8 * x2 - 4 * Power[x2 - x1, 3], 1 + 8 * x1 + 4 * Power[x2 - x1, 3]
Print["Segunda derivada evaluada en x0"]
MatrixForm12 * Power[x2 - x1, 2], 12 * Power[x2 - x1, 2],
8 - 12 * Power[x2 - x1, 2], 8 - 12 * Power[x2 - x1, 2]

Ecuacin original
Out[675]= 3 - x1 + x2 + 8 x1 x2 + (- x1 + x2)4

Primera derivada
Out[681]//MatrixForm=
- 1 + 8 x2 - 4 (- x1 + x2)3
1 + 8 x1 + 4 (- x1 + x2)3

Segunda derivada
Out[683]//MatrixForm=
12 (- x1 + x2)2 12 (- x1 + x2)2
8 - 12 (- x1 + x2) 8 - 12 (- x1 + x2)2
2

Primera derivada evaluada en x0


Out[686]//MatrixForm=

- 1.
1.

Segunda derivada evaluada en x0


Out[688]//MatrixForm=

12. 12.
- 4. - 4.

Printed by Wolfram Mathematica Student Edition


2 tarearedes.nb

In[483]:= ClearAll[x1, x2]


Print["Ecuacin original"]
MatrixForm
4 * Power[x1, 4] - 16 * Power[x1, 3] * x2 + 24 * Power[x1, 2] * Power[x2, 2] -
16 * x1 * Power[x2, 3] + 4 * Power[x2, 4] + 8 * x1 * x2 - x1 + x2 + 3
Print["Primera derivada"]
MatrixForm
D4 * Power[x1, 4] - 16 * Power[x1, 3] * x2 + 24 * Power[x1, 2] * Power[x2, 2] -
16 * x1 * Power[x2, 3] + 4 * Power[x2, 4] + 8 * x1 * x2 - x1 + x2 + 3, x1,
D4 * Power[x1, 4] - 16 * Power[x1, 3] * x2 + 24 * Power[x1, 2] * Power[x2, 2] -
16 * x1 * Power[x2, 3] + 4 * Power[x2, 4] + 8 * x1 * x2 - x1 + x2 + 3, x2
Print["Segunda derivada"]
MatrixForm
D- 1 + 16 * Power[x1, 3] + 8 * x2 - 48 * x2 * Power[x1, 2] + 48 * x1 * Power[x2, 2] -
16 * Power[x2, 3], x1, D1 + 8 * x1 - 16 * Power[x1, 3] +
48 * Power[x1, 2] * x2 - 48 * x1 * Power[x2, 2] + 16 * Power[x2, 3], x2,
D- 1 + 16 * Power[x1, 3] + 8 * x2 - 48 * x2 * Power[x1, 2] + 48 * x1 * Power[x2, 2] -
16 * Power[x2, 3], x1, D1 + 8 * x1 - 16 * Power[x1, 3] +
48 * Power[x1, 2] * x2 - 48 * x1 * Power[x2, 2] + 16 * Power[x2, 3], x2
MatrixForm48 * Power[x1, 2] - 96 * x1 * x2 + 48 * Power[x2, 2],
48 * Power[x1, 2] - 96 * x1 * x2 + 48 * Power[x2, 2],
8 - 48 * Power[x1, 2] + 96 * x1 * x2 - 48 * Power[x2, 2],
8 - 48 * Power[x1, 2] + 96 * x1 * x2 - 48 * Power[x2, 2]

Ecuacin original
Out[485]//MatrixForm=

( 3 - x1 + 4 x14 + x2 + 8 x1 x2 - 16 x13 x2 + 24 x12 x22 - 16 x1 x23 + 4 x24 )

Primera derivada
Out[487]//MatrixForm=
- 1 + 16 x13 + 8 x2 - 48 x12 x2 + 48 x1 x22 - 16 x23
1 + 8 x1 - 16 x13 + 48 x12 x2 - 48 x1 x22 + 16 x23

Segunda derivada
Out[489]//MatrixForm=
48 x12 - 96 x1 x2 + 48 x22 48 x12 - 96 x1 x2 + 48 x22
48 x12 - 96 x1 x2 + 48 x22 48 x12 - 96 x1 x2 + 48 x22
Out[490]//MatrixForm=
48 x12 - 96 x1 x2 + 48 x22 48 x12 - 96 x1 x2 + 48 x22
8 - 48 x1 + 96 x1 x2 - 48 x2 8 - 48 x12 + 96 x1 x2 - 48 x22
2 2

Printed by Wolfram Mathematica Student Edition


tarearedes.nb 3

In[459]:= ClearAll[x1, x2]


x1 = - 0.5
x2 = 0.5
Print["Primera derivada evaluada en x0"]
MatrixForm- 1 + 16 * Power[x1, 3] + 8 * x2 - 48 * x2 * Power[x1, 2] +
48 * x1 * Power[x2, 2] - 16 * Power[x2, 3], 1 + 8 * x1 - 16 * Power[x1, 3] +
48 * Power[x1, 2] * x2 - 48 * x1 * Power[x2, 2] + 16 * Power[x2, 3]
Print["Segunda derivada evaluada en x0"]
MatrixForm48 * Power[x1, 2] - 96 * x1 * x2 + 48 * Power[x2, 2],
48 * Power[x1, 2] - 96 * x1 * x2 + 48 * Power[x2, 2],
8 - 48 * Power[x1, 2] + 96 * x1 * x2 - 48 * Power[x2, 2],
8 - 48 * Power[x1, 2] + 96 * x1 * x2 - 48 * Power[x2, 2]
Print["Inversa de A"]
Inverse[{{48, 48}, {- 40, - 40}}]
Print["x1="]

Out[460]= - 0.5

Out[461]= 0.5

Primera derivada evaluada en x0


Out[463]//MatrixForm=

- 13.
13.

Segunda derivada evaluada en x0


Out[465]//MatrixForm=

48. 48.
- 40. - 40.

Inversa de A

Inverse::sing : Matrix {{48, 48}, {-40, -40}} is singular.

Out[467]= Inverse[{{48, 48}, {- 40, - 40}}]

x1=

Out[234]= 1.23

Printed by Wolfram Mathematica Student Edition


4 tarearedes.nb

ClearAll[x1, x2, g0]


x1 = 0.5
x2 = 0.5
MatrixForm- 1 + 8 * x2 - 4 * Power[- x1 + x2, 3], 1 + 8 * x1 + 4 * Power[- x1 + x2, 3]

Out[132]= 0.5

Out[133]= 0.5
Out[135]//MatrixForm=

3.
5.

Out[97]//MatrixForm=
- 1 + 8 x2 - 4 (- x1 + x2)3
1 + 8 x1 + 4 (- x1 + x2)3

General::ivar : 0.5` is not a valid variable.

General::ivar : 0.5` is not a valid variable.


Out[85]//MatrixForm=
0.5 5.

0.5 5.

Out[79]//MatrixForm=

0.5
0.5

Out[41]//MatrixForm=
12 (- x1 + x2)2
12 (- x1 + x2)2

Printed by Wolfram Mathematica Student Edition


tarearedes.nb 5

Solve[- 1 + 8 x2 - 4 * Power[- x1 + x2, 3] == 3 &&


1 + 8 x1 + 4 * Power[- x1 + x2, 3] - 3, {x1, x2}]

1/3
1 1/3
1 - 3 12 9 + 69
x1 - 1 + 3 864 - 96 69 - ,
48 4 32/3
1 1/3 1/3
x2 - 864 - 96 69 + 3 864 - 96 69 -
48
1/3 1/3
2 22/3 35/6 9 + 69 - 2 22/3 3 9 + 69 ,
1/3
1 1/3
1 + 3 12 9 + 69
x1 - 1 - 3 864 - 96 69 - ,
48 4 32/3
1 1/3 1/3
x2 - 864 - 96 69 + 3 864 - 96 69 -
48
1/3 1/3
2 22/3 35/6 9 + 69 + 2 22/3 3 9 + 69 ,
1 1/3 1/3
x1 864 - 96 69 + 2 22/3 3 9 + 69 ,
24
1 1/3 1/3
x2 - 22/3 3 9 - 69 - 22/3 3 9 + 69
12

Printed by Wolfram Mathematica Student Edition

Você também pode gostar