Está en la página 1de 19

TRABAJO SEMESTRAL DE ECUACIONES

DIFERENCIALES
Presentadopor : CARLOS RUBIANO
Nota: Para ejecutar los Manipulate es necesario
presionar Shift+ Enter .

1) Para cada una de las siguientes ecuaciones diferenciales


grafique el campo de direcciones de cada una junto con dos
soluciones particulares en un mismo
plano cartesiano.

dy
dx

+ 3 x2 y = x2
DSolveAy '@xD + 3 * x2 * y@xD x2 , y@xD, xE
::y@xD

1
3

+ -x C@1D>>

Trabajo Final Ecuaciones Diferenciales.nb

f@x_, y_ D := - 3 * x2 * y + x2
plot1 = VectorPlot@81, f@x, yD<, 8x, - 2, 2<, 8y, - 2, 2<, Axes True,
Frame False, VectorScale 8Tiny, Tiny, None<, ImageSize 250D;
1
3
plot2 = PlotB + -x , 8x, - 2, 2<, PlotRange 8- 10, 10<,
3
ImageSize 250, ColorFunction RedF;
plot3 = PlotB

1
3

+ -x * 2 , 8x, - 2, 2<, PlotRange 8- 10, 10<,


3

ImageSize 250, ColorFunction RedF;


Show@plot1, plot2, plot3, ImageSize 250D
2

-2

-1

-1

-2

Trabajo Final Ecuaciones Diferenciales.nb

x2

dy
dx

+ xy = 1

solucion encontrada con www.wolframalpha.com


"\"yHxL=\!\H\n\*FractionBox@\Hc1 + Log@xD\L, \Hx\LD\L""
f@x_, y_ D :=

- Hx * yL + 1

x2
plot1 = VectorPlot@81, f@x, yD<, 8x, - 5, 5<, 8y, - 5, 5<, Axes True,
Frame False, VectorScale 8Tiny, Tiny, None<, ImageSize 250D;
Log@xD
plot2 = PlotB
, 8x, - 2, 2<, PlotRange 8- 10, 10<, ImageSize 250F;
x
1 + Log@xD
plot3 = PlotB
, 8x, - 2, 2<, PlotRange 8- 10, 10<, ImageSize 250F;
x
Show@plot1, plot2, plot3, ImageSize 250D

-4

-2

-2

-4

Ix 3 + y 3 M dx + 3 xy2 dy = 0
DSolveBy '@xD
::y@xD

I- x3 +

:y@xD -

x3 + y@xD3

- I3 * x * y@xD2 M
4 C@1D 13
M
x

223

H- 1L13 I- x3 +
223

, y@xD, xF

>,
4 C@1D 13
M
x

>, :y@xD

H- 1L23 I- x3 +
223

4 C@1D 13
M
x

>>

Trabajo Final Ecuaciones Diferenciales.nb

f@x_, y_ D :=

x3 + y3

- I3 x * y2 M

plot1 = VectorPlot@81, f@x, yD<, 8x, - 10, 10<, 8y, - 10, 10<, Axes True,
Frame False, VectorScale 8Tiny, Tiny, None<, ImageSize 250D;
I- x3 +

plot2 = PlotB

4
x

13

223
plot3 =

H- 1L13 I- x3 +

PlotB-

4
x

, 8x, - 10, 10<, PlotRange 8- 10, 10<, ImageSize 250F;

13

223

H- 1L23 I- x3 +
plot4 = PlotB

4
x

223

, 8x, - 10, 10<, PlotRange 8- 10, 10<, ImageSize 250F;


M

13

, 8x, - 10, 10<,

PlotRange 8- 10, 10<, ImageSize 250F;


Show@plot1, plot2, plot3, plot4, ImageSize 250D
10

-10

-5

10

-5

-10

dy
dx

= Cos@x + yD
DSolve@y '@xD Cos@x + y@xDD, y@xD, xD
Solve::ifun :
Inverse functions are being used by Solve, so some solutions may not be found; use Reduce for complete solution
information.

::y@xD - x - 2 ArcTanB

1
2

H- 2 x - C@1DLF>, :y@xD - x + 2 ArcTanB

1
2

H2 x + C@1DLF>>

Trabajo Final Ecuaciones Diferenciales.nb

f@x_, y_ D := Cos@x + yD
plot1 = VectorPlot@81, f@x, yD<, 8x, - 2, 2<, 8y, - 2, 2<, Axes True,
Frame False, VectorScale 8Tiny, Tiny, None<, ImageSize 250D;
1
plot2 = PlotB- x - 2 ArcTanB H- 2 xLF , 8x, - 2, 2<,
2
PlotRange 8- 10, 10<, ImageSize 250F;

plot3 = PlotB- x + 2 ArcTanB

1
2

H2 xL + 2F, 8x, - 2, 2<,

PlotRange 8- 10, 10<, ImageSize 250F;


Show@plot1, plot2, plot3, ImageSize 250D
2

-2

-1

-1

-2

Trabajo Final Ecuaciones Diferenciales.nb

2)Para alguna de las ecuaciones diferenciales del punto anterior


construya, con la ayuda del comando Manipulate[ ], un aplicativo
graficando sobre el campo de direcciones ( comandos
VectorPlot[ ] o StreamPlot[ ] )una solucion particular donde se
considere un parametro para la solucion y(0) = c con c tomando
valores dentro de un intervalo.

dy
dx

In[19]:=

= Cos@x + yD
g@x_, y_ D := Cos@x + yD
plot1 = VectorPlot@81, g@x, yD<, 8x, - 2, 2<, 8y, - 2, 2<, Axes True,
Frame False, VectorScale 8Tiny, Tiny, None<, ImageSize 250D;
1
ManipulateBShowBplot1, PlotB- x - 2 ArcTanB H- 2 x - cLF, 8x, - 2, 2<,
2

PlotRange 8- 2, 2<, ImageSize 250F, ImageSize 250F, 8c, - 2, 2<F

10

Out[21]=

-10

-5

-5

-10

10

Trabajo Final Ecuaciones Diferenciales.nb

Ix 3 + y 3 M dx + 3 xy2 dy = 0
In[28]:=

m@x_, y_ D :=

x3 + y3

- I3 x * y2 M

plot1 = VectorPlot@81, m@x, yD<, 8x, - 10, 10<, 8y, - 10, 10<, Axes True,
Frame False, VectorScale 8Tiny, Tiny, None<, ImageSize 250D;
I- x3 +
ManipulateBShowBplot1, PlotB

4 *c 13
M
x

223

, 8x, - 10, 10<,

PlotRange 8- 10, 10<, ImageSize 250F, ImageSize 250F, 8c, - 10, 10<F

10

Out[30]=

-10

-5

-5

-10

10

Trabajo Final Ecuaciones Diferenciales.nb

3)mediante el comando NDSolve[ ] que nos muestra una solucion


por metodos numericos. Asi, resolver la ecuacion y graficarla
para el intervalo (-1; 5) y calcular y(10)

dy
dx

- 2 xy = 1, con yH0L =

Clear@x, yD
>, y, 8x, - 1, 5<F
2
Plot@Evaluate@y@xD . sD, 8x, - 1, 5<, PlotRange AllD

s = NDSolveB:y '@xD - 2 * x * y@xD 1, y@0D

88y InterpolatingFunction@88- 1., 5.<<, <>D<<


1.2 1011

1.0 1011

8.0 1010

6.0 1010

4.0 1010

2.0 1010

-1

y@10D . s

InterpolatingFunction::dmval :

Input value 810< lies outside the range of data in the interpolating function. Extrapolation will be used.

92.7829 1015 =

Trabajo Final Ecuaciones Diferenciales.nb

4)Ecuacion de Clairaut

y = xp + p2 donde p =

dy
dx

sol = DSolve@y@xD x * y '@xD + y '@xD ^ 2 , y@xD, xD


99y@xD x C@1D + C@1D2 ==

Plot@Evaluate@Table@y@xD . sol . 8C@1D k<, 8k, - 2, 2, 0.5<DD, 8x, - 2, 2<D


8

-2

-1

10

Trabajo Final Ecuaciones Diferenciales.nb

p2 x + 1 = pH1 + yL donde p =

dy
dx

sol = DSolveAHy '@xDL2 * x + 1 y '@xD H1 + y@xDL, y@xD, xE


::y@xD 1 - TanhB
1
- 1 + TanhB
2

1
2

1
2

1
2

H2 C@1D - Log@xDLF + 2

H- 2 C@1D + Log@xDLF - 2

1
x - x TanhB
2

H2 C@1D - Log@xDLF

H2 C@1D - Log@xDLF

>,

H- 2 C@1D + Log@xDLF
1

x - x TanhB

>,

H2 C@1D - Log@xDLF

:y@xD 1 - TanhB

- 1 + TanhB

:y@xD 1 - TanhB

- 1 + TanhB

H2 C@1D - Log@xDLF - 2

H2 C@1D - Log@xDLF

:y@xD 1 - TanhB

- 1 + TanhB

x - x TanhB
2

H- 2 C@1D + Log@xDLF

>,

H- 2 C@1D + Log@xDLF + 2

H- 2 C@1D + Log@xDLF

H- 2 C@1D + Log@xDLF

x - x TanhB
2

>>

Plot@Evaluate@Table@y@xD . sol . 8C@1D k<, 8k, - 2, 2, 0.5<DD, 8x, - 10, 10<D


30

20

10

-10

-5

5
-10

-20

-30

10

Trabajo Final Ecuaciones Diferenciales.nb

5)Curvas Ortogonales

xy=c
In[14]:=

q@x_, y_D = x * y
solu = DSolveBy '@xD

-1
, y@xD, xF
q@x, y@xDD

Out[14]=

xy

Out[15]=

::y@xD -

In[16]:=

C@1D - Log@xD >, :y@xD

C@1D - Log@xD >>

plot1 = ContourPlotB
TableB-

C@1D - Log@xD . 8C@1D k<, 8k, 1, 5<F - y, 8x, 0, 2<, 8y, 0, 2<F

2.0

1.5

Out[16]= 1.0

0.5

0.0
0.0

0.5

1.0

1.5

2.0

11

12

Trabajo Final Ecuaciones Diferenciales.nb

In[17]:=

plot2 = ContourPlotB
TableB

C@1D - Log@xD . 8C@1D k<, 8k, 1, 5<F - y, 8x, 0, 5<, 8y, - 2, 0<F

0.0

-0.5

Out[17]=

-1.0

-1.5

-2.0
0

Trabajo Final Ecuaciones Diferenciales.nb

In[18]:=

Show@plot1, plot2, ImageSize 450D


2.0

1.5

Out[18]= 1.0

0.5

0.0
0.0

0.5

1.0

1.5

2.0

6) Crecimiento Poblacional
DSolve@p '@tD k * p@tD, p@tD, tD
99p@tD k t C@1D==

si p = p(t) satisface la condicion p(t0) = p0 para valores de t0 y p0 especi cados, entonces x0 = c-k to
Por lo tantoc = p0-k t0 y se tiene
,
p@t_D = p0 * k Ht-t0L

13

14

Trabajo Final Ecuaciones Diferenciales.nb

para colombia
p0 = 23 881 851
t0 = 1973
p = 31 593 587
t = 1985
23 881 851
1973
31 593 587
1985
NASolveAp == p0 * k Ht-t0L , kEE
Solve::ifun :
Inverse functions are being used by Solve, so some solutions may not be found; use Reduce for complete solution
information.

88k 0.0233196<<

p@2010D = p * 0.023319613239657908` Ht0-2010L


Set::write : Tag Integer in 31593587@2010D is Protected.

1.33315 107

para mexico
p0 = 48 200 000
t0 = 1970
p = 66 800 000
t = 1980
48 200 000
1970
66 800 000
1980
NASolveAp == p0 * k Ht-t0L , kEE
Solve::ifun :
Inverse functions are being used by Solve, so some solutions may not be found; use Reduce for complete solution
information.

88k 0.0326344<<

Trabajo Final Ecuaciones Diferenciales.nb

p@2010D = p * 0.03263440594860454` H2010-tL


Set::write : Tag Integer in 66800000@2010D is Protected.

1.77814 108

para argentina
p0 = 23 364 431
t0 = 1970
p = 27 949 480
t = 1980
23 364 431
1970
27 949 480
1980
NASolveAp == p0 * k Ht-t0L , kEE
Solve::ifun :
Inverse functions are being used by Solve, so some solutions may not be found; use Reduce for complete solution
information.

88k 0.0179184<<

p@2010D = p * 0.017918377158525952` H2010-tL


Set::write : Tag Integer in 27949480@2010D is Protected.

4.78442 107

15

16

Trabajo Final Ecuaciones Diferenciales.nb

7) Ley de enfriamiento de Newton

cafe
t = 880, 80<, 80.25, 79<, 80.5, 78<, 80.75, 77<, 81, 76<, 82, 74<,
83, 71<, 84, 68<, 85, 65<, 86, 64<, 87, 62<, 88, 59<, 89, 57<, 810, 55<,
815, 48<, 820, 42<, 825, 38<, 830, 34<, 860, 26<, 890, 25<, 8120, 24<<
DateListLogPlot@t, Joined TrueD
880, 80<, 80.25, 79<, 80.5, 78<, 80.75, 77<, 81, 76<, 82, 74<,
83, 71<, 84, 68<, 85, 65<, 86, 64<, 87, 62<, 88, 59<, 89, 57<, 810, 55<,
815, 48<, 820, 42<, 825, 38<, 830, 34<, 860, 26<, 890, 25<, 8120, 24<<

70

50

30

00:00

DSolve@T '@cD k * HT@cD - 24L, T@cD, cD

00:01

99T@cD 24 + c k C@1D==

SolveA80 A * 0*k + 24, AE


88A 56<<

NASolveA38 56 * 25*K + 24, KEE


88K - 0.0554518<<

Por lo tanto la ecuacion que describe el proceso de enfriamiento del cafe es

Trabajo Final Ecuaciones Diferenciales.nb

T(t)=56*-0.0554518*t + 24

8)Crecimiento poblacional con capacidad de sustento.cafe


Clear@p, p@tD, k, t, t0D

DSolveBp '@tD == r * p@tD * 1 -

p@tD
, p@tD, tF
k

::p@tD

r t+k C@1D k
- 1 + r t+k C@1D

>>

p@t_D =
1+

a
po

-HtL

1 + -r Ht-t0L
a = 100 000
100 000
a
PlotB
1+

a
1000

-HtL

, 8t, 1, 7<F

80 000

60 000

40 000

20 000

a = 200 000
200 000

17

18

Trabajo Final Ecuaciones Diferenciales.nb

a
PlotB
1+

a
1000

-HtL

, 8t, 1, 7<F

150 000

100 000

50 000

a = 500 000
500 000
a
PlotB
1+

a
1000

-HtL

, 8t, 1, 7<F

350 000
300 000
250 000
200 000
150 000
100 000
50 000

Trabajo Final Ecuaciones Diferenciales.nb

b
In[11]:=

ManipulateBPlotB
1+

b
c

-HtL

, 8t, 1, 7<F, 8b, 1, 100 000<, 8c, 1, 1 000 000<F

b
c

1.00

0.95
Out[11]=

0.90

0.85

0.80

b
ManipulateB
1+

t
b
c

67 250.5

b
c

-HtL

, 8t, 1, 7<, 8b, 1, 100 000<, 8c, 1, 1 000 000<F

19

También podría gustarte