DEPARTAMENTO DE
MATEMATICAS
Lic. Csar Garrido Jaeger ECUACIONES DIFERENCIALES
1
ECUACIONESDIFERENCIALESORDINARIASDEPRIMERORDENCONDERIVE
DeriveincorporalosmtodosderesolucindeEDO(ODEeningls)pormediodelfichero
de utilidad ODE1.MTH (EDO de primer orden) y ODE2.MTH (EDO de segundo orden).
Cargue estos a travs del men ARCHIVO>LEER>UTILIDAD y habilitara los
correspondientes mandatos, cargue tambin el fichero DIF APPS, y lea las ayudas
asociadasencasodeduda.
SiloquesenecesitaesporelcontrariolasolucinparticulardeunaEDOquepaseporun
punto determinado la misma utilidad incorpora el mandato DSOLVE1(p, q, x, y, x
0
, y
0
),
similar a DSOLVE1_GEN, pero nos devuelve la solucin particular para las condiciones
incialesy=y0enx=x0.InformacinsimilarencontrarparaelmandatoDSOLVE2.
UNIVERSIDAD NACIONAL DE CAJAMARCA
DEPARTAMENTO DE
MATEMATICAS
Lic. Csar Garrido Jaeger ECUACIONES DIFERENCIALES
2
Seescribeenlabarradeexpresiones:
DSOLVE1_GEN(2XY,(1+X^2),X,Y,K)
Paragraficarlasolucin:
VECTOR(x^2y+y=k,k,0,5,0.5)
DSOLVE1(p, q, x, y, x
0
, y
0
) son similares a DSOLVE1_GEN, pero, ellos dan una solucin
particular para la condicin inicial y=y
0
en x=x
0
. Estas condiciones inciales, pueden ser
nmeros,variableoexpresionesgenerales.
Ejemplo2:Obtenga la solucin particular de la EDO
2
2 (1 ) 0 xy x y + + = que pasa por (0, 1).
Enesteejemplo,sedancondicionesinciales:
0 0
0, 1 x y = = seutilizaelcomandoanterior:
UNIVERSIDAD NACIONAL DE CAJAMARCA
DEPARTAMENTO DE
MATEMATICAS
Lic. Csar Garrido Jaeger ECUACIONES DIFERENCIALES
3
UNIVERSIDAD NACIONAL DE CAJAMARCA
DEPARTAMENTO DE
MATEMATICAS
Lic. Csar Garrido Jaeger ECUACIONES DIFERENCIALES
4
ECUACIONESDIFERENCIALESDEVARIABLESSEPARABLES
Unaecuacindiferencialdeprimerordensedicequeesseparablesipuedeescribirseen
laforma ( ) ( ) 0
dy
M x N y
dx
+ = ,dondeM(x)esunafuncincontinuaqueslodependedex
yN(y)esunafuncincontinuaqueslodependedey.
( ) ( )
dy
g x h y
dx
= se dice que es
separableoquetienevariablesseparables.
x y y
y e e
+
= + y encontrar la solucin que pasa por el
punto(0,1).
Ejemplo6.Resolverlaecuacindiferencial
1
2
dy
y
dx
x
= =
+
conlacondicin (2) 0 y =
Grficadelasolucinen2D.
Muchosproblemasfsicosdependendealgunamaneradelageometra.Unodeellosesla
salidadelquidodeuntanqueatravsdeunorificiosituadoalfondodelmismo.Laforma
geomtricadelrecipientedeterminaelcomportamientofsicodelagua.
Considere un recipiente lleno de agua hasta una altura h. Suponga que el agua fluye a
travsdeunorificiodeseccintransversala,elcualestubicadoenlabasedeltanque.
UNIVERSIDAD NACIONAL DE CAJAMARCA
DEPARTAMENTO DE
MATEMATICAS
Lic. Csar Garrido Jaeger ECUACIONES DIFERENCIALES
6
Se desea establecer la altura de lquido en el tanque en cualquier instante t y el tiempo
queestedemoraenvaciarse.
Seah(t)laalturadelquidoeneltanqueencualquierinstantetyV(t)elvolumendeagua
del tanque en ese instante. La velocidad v del agua que sale a travs del orificio es:
2 v gh = dondegeslagravedad.Estaecuacinrepresenta lavelocidadqueunagotade
aguaadquiriraalcaerlibrementedesdelasuperficiedelaguahastaelagujero.
En condiciones reales, hay que tomar en cuenta la contraccin que sufre un chorro de
aguaenunorificio,porloquesetendr 2 v c gh = dondeceselcoeficientededescarga
comprendidoentre0y1(0<c<1).
OBSERVACIN
Cuandoelvalordelcoeficientededescargacnoseindica,seasumequec=1
Segn la Ley de Torricelli, la razn con la que el agua sale por el agujero (variacin del
volumendelquidoeneltanquerespectodeltiempo)sepuedeexpresarcomoelreaa
delorificiodesalidaporlavelocidadvdelaguadrenada,estoes:
2
dv dv
av ac gh
dt dt
= =
Si A(h) denota el rea de la seccin transversal horizontal del tanque a la altura h,
aplicandoelmtododelvolumenporseccionestransversalesseobtiene
0
( )
h
v A h dh =
Derivandorespectodetyaplicandoelteoremafundamentaldelclculo
( ) ( ) 2
dv
A h dh A h dh ac gh
dt
= =
Seanhlaalturadelquidoeneltanqueencualquierinstantet,aelreadelorificiode
salidaelcualestubicadoalfondodeltanque,glagravedad,Celcoeficientededescarga
y A(h) el rea de la seccin transversal del tanque. La ecuacin diferencial asociada al
problemadevaciadodeltanquees ( ) 2
dh
A h ac gh
dt
=
Esta es una ecuacin diferencial de variables separables, la cual al resolverse sujeta a la
condicin de conocer la altura inicial
0
h para el tiempo t = 0, permite obtener la ley de
variacin de la altura de lquido en el tanque en funcin del tiempo. Si, adems, hay
aportedelquidoaltanque,laecuacindiferenciales ( ) 2
dh
A h Q ac gh
dt
=
Ejemplo.7Uncilindrorectocircularde10piesderadioy20piesdealtura,estllenocon
agua. Tiene un pequeo orificio en el fondo de una pulgada de dimetro Cundo se
vaciartodoeltanque?
LaecuacindiferencialasociadaalosproblemasdeVaciadodetanqueses:
( ) 2
dh
A h ac gh
dt
=
UNIVERSIDAD NACIONAL DE CAJAMARCA
DEPARTAMENTO DE
MATEMATICAS
Lic. Csar Garrido Jaeger ECUACIONES DIFERENCIALES
7
Eldimetrodelorificiopordondefluyeelaguafueradeltanqueesde1pulgada,porlo
tantoelradioespulgada.Comolasdimensionesdeltanqueestndadasenpie,
utilizandolaequivalenciade1pulgada=1/12piesypuestoqueelreadelorificiode
salidaeselreadeunacircunferencia
2
( ) radio ,resultaqueelreaadelorificiode
salidaes
2
2
1
24 576
a pie
= =
Elcoeficientededescargacnoestdadoporlotanto
seasumec=1ylagravedades
2
32
pies
seg
g =
ParadeterminarA(h),queeselreadelaseccintransversaldeltanqueenfuncindela
altura h, obsrvese en la Fig. 1 que las secciones transversales del tanque son
circunferencias de radio constante r = 10 pies. Por lo tanto, el rea de la seccin
transversal es la misma, independientemente de la altura h a la cual se efecte el corte.
As,
2 2
( ) (10) 100 . ( ) 2
8 1
100 64 100 100
576 576 72
dh
A h pie sust en A h ac gh
dt
dh hdt dh hdt dh hdt
= = =
= = =
Ahoraaplicamosderive.
Paradeterminarelvalordelaconstantekdeintegracin,sedespejayluegoseusala
condicininicial,estoes,sesustituyeenlaecuacint=0seg.yh=20pies,resultando:
UNIVERSIDAD NACIONAL DE CAJAMARCA
DEPARTAMENTO DE
MATEMATICAS
Lic. Csar Garrido Jaeger ECUACIONES DIFERENCIALES
8
Paradeterminareltiempoquedemoraenvaciarseeltanque,esdecir,eltiempoparael
cualdejadehaberlquidoeneltanque,sedebesustituirh=0enlaecuacin#32
UNIVERSIDAD NACIONAL DE CAJAMARCA
DEPARTAMENTO DE
MATEMATICAS
Lic. Csar Garrido Jaeger ECUACIONES DIFERENCIALES
9
ECUACIONESDIFERENCIALESLINEALESCONDERIVE
DEFINICIN: Si una ecuacin ( , ) ( , ) 0 M x y dx N x y dy + =
Ahorasebuscalafamiliadecurvasdelassoluciones
UNIVERSIDAD NACIONAL DE CAJAMARCA
DEPARTAMENTO DE
MATEMATICAS
Lic. Csar Garrido Jaeger ECUACIONES DIFERENCIALES
10
Debidoaqueelcoeficientedeladerivadadebeseruno,entoncesdividimoslaexpresin
entrexydespejamosparaobtenerlaformarequerida.
UNIVERSIDAD NACIONAL DE CAJAMARCA
DEPARTAMENTO DE
MATEMATICAS
Lic. Csar Garrido Jaeger ECUACIONES DIFERENCIALES
11
Donde:
( ) ( )
2
4 2 4
;
x
P x Q x
x x
= =
EJEMPLO3.Resuelva
2
1 dy
dx x y
=
+
Donde:
( ) ( )
2
; P y x Q y y = =
UNIVERSIDAD NACIONAL DE CAJAMARCA
DEPARTAMENTO DE
MATEMATICAS
Lic. Csar Garrido Jaeger ECUACIONES DIFERENCIALES
12
EJEMPLO4.Resuelva cos 1
dy
x ysenx
dx
+ =
Debidoaqueelcoeficientedeladerivadadebeseruno,entoncesdividimoslaexpresin
entrecos(x)ydespejamosparaobtenerlaformarequerida
cos 1
+ tan( ) sec( )
cos cos cos
x dy senx dy
y y x x
x dx x x dx
+ = =
UNIVERSIDAD NACIONAL DE CAJAMARCA
DEPARTAMENTO DE
MATEMATICAS
Lic. Csar Garrido Jaeger ECUACIONES DIFERENCIALES
13
UNIVERSIDAD NACIONAL DE CAJAMARCA
DEPARTAMENTO DE
MATEMATICAS
Lic. Csar Garrido Jaeger ECUACIONES DIFERENCIALES
14
ECUACIONESDIFERENCIALESEXACTASCONDERIVE
CRITERIOPARAUNAECUACINDIFERENCIALEXACTA
Sean continuas ( ) ( ) , , , M x y y N x y con derivadas parciales continuas en una regin
rectangular, R, definida por , . a x b c y d < < < < Entonces, la condicin necesaria y
suficienteparaque ( ) ( ) , , M x y dx N x y dy + seaunadiferencialexactaesque
M N
y x
=
MTODODESOLUCINDadaunaecuacindelaforma ( ) ( ) , , 0, M x y dx N x y dy + = se
determinasiesvlidalaigualdad
M N
y x
=
Unavez,quecomprobamosqueesunaEDOexacta,activamoselsiguientecomando:
EXACT_GEN(M(x,y),N(x,y),x,y,k)
DaunasolucingeneralentrminosdeconstantesimblicaK.
EXACT(M,N,x,y,x
0
,y
0
)
Da una solucin implcita, tomando en cuenta las condiciones iniciales, si la ecuacin la
distinguecomoexacta,sino,daelmensajeinaplicable.
Ejemplo1.Resuelva
( )
( )
2
2
1
1
xy
y
x y
Solucin:
( ) ( )
2 2
1 1 0 xy dx x y dy + = tenemos:
2
( , ) 1, x y xy =
2
( , ) 1 x y x y =
UNIVERSIDAD NACIONAL DE CAJAMARCA
DEPARTAMENTO DE
MATEMATICAS
Lic. Csar Garrido Jaeger ECUACIONES DIFERENCIALES
15
Ejemplo2.Resuelva
( )
2
2 1 0 xy x y + + =
Solucin:
( )
2
2 1 0 xydx x dy + + = tenemos: ( , ) 2 x y xy =
2
( , ) 1 x y x = +
Sisuponemosquelacurvapasaelpunto(1.2)setiene:
UNIVERSIDAD NACIONAL DE CAJAMARCA
DEPARTAMENTO DE
MATEMATICAS
Lic. Csar Garrido Jaeger ECUACIONES DIFERENCIALES
16
Ejemplo3.Resolver
( ) ( )
2 2
cos 2 cos 2 0.
y y
e y x y dx xe x xy y dy + + =
Solucin:tenemos:
( )
2
( , ) cos
y
x y e y x y =
( )
2
( , ) 2 cos 2
y
x y xe x xy y = +
Ejemplo3.Resolver
cos dy x y x
dx senx y
=
+
UNIVERSIDAD NACIONAL DE CAJAMARCA
DEPARTAMENTO DE
MATEMATICAS
Lic. Csar Garrido Jaeger ECUACIONES DIFERENCIALES
17
PorlotantonoesunaEDOexacta
UNIVERSIDAD NACIONAL DE CAJAMARCA
DEPARTAMENTO DE
MATEMATICAS
Lic. Csar Garrido Jaeger ECUACIONES DIFERENCIALES
18
ECUACIONESDIFERENCIALESHOMOGENEASCONDERIVE
Unaecuacindiferencialdeprimerorden:
EnderivelaordenHOMOGENEOUS_GEN(r,x,y,c)daunasolucingeneralentrminosdela
constantesimblicacsireshomognea.
DeiguaformalaordenHOMOGENEOUS(r,x,y,x
0
,y
0
),daunasolucinparticulardadalas
condicionesinicialesdelaecuacindiferencial
Ejemplo1.Resolverlaecuacindiferencial
2 2
xy
y
x y
=
Paraverificarsieshomognea
2 2
2 2
( ) 0
xy
y xydx x y dy
x y
= =
Al examinar ( ) ( )
2 2
, y , M x y xy N x y x y = = vemos que los dos coeficientes son
funcioneshomogneasdegrado2.
AhorautilizamosDerive
( ) ( ) , , 0 M x y dx N x y dy + =
UNIVERSIDAD NACIONAL DE CAJAMARCA
DEPARTAMENTO DE
MATEMATICAS
Lic. Csar Garrido Jaeger ECUACIONES DIFERENCIALES
19
UNIVERSIDAD NACIONAL DE CAJAMARCA
DEPARTAMENTO DE
MATEMATICAS
Lic. Csar Garrido Jaeger ECUACIONES DIFERENCIALES
20
Pararesolverestetipodeecuaciones,DERIVEdisponedelaorden:
HOMOGENEOUS((x+y)/(xy),x,y,1,1)
Paracomprobarquelasolucinhalladaeslacorrecta,podemosutilizarlafuncin
IMP_DIF(RESULTADO OBTENIDO EDO HOMOGENEA DADA) cuyo resultado es cero,
garantizando que la solucin encontrada es buena. Para utilizar la funcin anterior es
necesario haber cargado la utilidad DIF APPS.MTH. (LEER UTILIDADAES
DIFFERENTIATIONAPPLICATIONS.MTH)
Ejemplo3.Resolverlaecuacindiferencial
( ) ( ) 0
y y
x x
x ye dx x e dy + =
,conlacondicin
inicialy(1)=0
UNIVERSIDAD NACIONAL DE CAJAMARCA
DEPARTAMENTO DE
MATEMATICAS
Lic. Csar Garrido Jaeger ECUACIONES DIFERENCIALES
21
Al examinar ( ) ( ) , ( ) y , ( )
y y
x x
M x y x ye N x y xe = + = vemos que los dos coeficientes son
funcioneshomogneasdegrado1.
Nota:sepuederesolverhaciendoalgunoscambiosdevariables.
UNIVERSIDAD NACIONAL DE CAJAMARCA
DEPARTAMENTO DE
MATEMATICAS
Lic. Csar Garrido Jaeger ECUACIONES DIFERENCIALES
22
ECUACIONES DIFERENCIALES CON COEFICIENTES LINEALES, TRANSFORMABLES A
HOMOGNEAS,VARIABLESSEPARABLESYAEXACTASCONDERIVE
ECUACIONESDIFERENCIALESTRANSFORMABLESAHOMOGNEAS.
Estasecuacionesdiferencialestienenlasiguienteestructura:
( )
( ) ( ) 0
( )
dy ax by c
ax by c dx x y dy f
dx x y
+ +
+ + + + + = =
+ +
Enformaprcticasilaecuacinesreducibleahomogneasecumpleque:
0
a b
Enderive,unavezquesecompruebaqueeldeterminanteesdiferentedecero,seutiliza
elcomandosiguiente:
LIN_FRAC_GEN(f,a,b,c,,,,x,y,k)
LIN_FRAC(f,a,b,c,,,,x,y,x
0
,y
0
)(cuandoestndadaslascondicionesiniciales)
EJEMPLO1:Resolverlasiguienteecuacindiferencial (6 4 8) ( 1) 0 x y dx x y dy + + + =
6 4 8
(6 4 8) ( 1) 0
1
dy x y
x y dx x y dy
dx x y
+
+ + + = =
+
UNIVERSIDAD NACIONAL DE CAJAMARCA
DEPARTAMENTO DE
MATEMATICAS
Lic. Csar Garrido Jaeger ECUACIONES DIFERENCIALES
23
UNIVERSIDAD NACIONAL DE CAJAMARCA
DEPARTAMENTO DE
MATEMATICAS
Lic. Csar Garrido Jaeger ECUACIONES DIFERENCIALES
24
EJEMPLO2:Resolverlasiguienteecuacindiferencial
3 9
1
dy x y
dx x y
=
+ +
UNIVERSIDAD NACIONAL DE CAJAMARCA
DEPARTAMENTO DE
MATEMATICAS
Lic. Csar Garrido Jaeger ECUACIONES DIFERENCIALES
25
ECUACIONESDIFERENCIALESTRANSFORMABLESAVARIABLESSEPARABLES.
En forma prctica si la ecuacin es reducible a variables separables se cumple que:
0
a b
=
En derive, una vez que se comprueba que el determinante es igual a cero, se utiliza el
comandosiguiente:
FUN_LIN_CCF_GEN(f,,,,x,y,k)
FUN_LIN_CCF(f,,,,x,y,x
0
,y
0
)(cuandoestndadaslascondicionesiniciales)
EJEMPLO3:Resolverlasiguienteecuacindiferencial ( 1) (2 2 1) 0 x y dx x y dy + + + + =
Sedespejay
1
2 2 1
dy x y
dx x y
+ +
=
+
UNIVERSIDAD NACIONAL DE CAJAMARCA
DEPARTAMENTO DE
MATEMATICAS
Lic. Csar Garrido Jaeger ECUACIONES DIFERENCIALES
26
UNIVERSIDAD NACIONAL DE CAJAMARCA
DEPARTAMENTO DE
MATEMATICAS
Lic. Csar Garrido Jaeger ECUACIONES DIFERENCIALES
27
Ejemplo4:Resolver
2 1
4 2 5
dy x y
dx x y
+
=
+ +
UNIVERSIDAD NACIONAL DE CAJAMARCA
DEPARTAMENTO DE
MATEMATICAS
Lic. Csar Garrido Jaeger ECUACIONES DIFERENCIALES
28
ECUACIONESDIFERECIALESTRANSFORMABLESAEXACTAS
( , ) ( , ) M x y N x y
y x
=
Enderive,dadalaecuacindiferencialsecompruebasicumpleconlacondicinanterior,
(siesonoexacta),encasodenocumplirconlacondicinaplicamoselsiguientecomando
pararesolverdichaecuacin.
INTEGRATING_FACTOR_GEN(M(x,y),N(x,y),x,y,k)
El resultado obtenido es la solucin general de la ecuacin diferencial dada, no es
necesario determinar el factor integrante, luego multiplicar la EDO por ese factor, y
despusaplicarelcomandodeecuacionesexactas.
EnelcasoquelaEDO,tengacondicionesiniciales,seaplicaelsiguientecomando:
INTEGRATING_FACTOR(M(x,y),N(x,y),x,y,x
0
,y
0
),paraobtenerlasolucinparticular,segn
lascondicionesdadas.
Tambin pueden utilizar este comando, pero vea bien el orden de las funciones, para no
tenerproblemasenlassoluciones.
INTEGRATING_FACTOR_GEN(N(x,y),M(x,y),y,x,k)
EJEMPLO5.Resolver
3
( ln ) 0
y
dx y x dy
x
+ =
UNIVERSIDAD NACIONAL DE CAJAMARCA
DEPARTAMENTO DE
MATEMATICAS
Lic. Csar Garrido Jaeger ECUACIONES DIFERENCIALES
29
UNIVERSIDAD NACIONAL DE CAJAMARCA
DEPARTAMENTO DE
MATEMATICAS
Lic. Csar Garrido Jaeger ECUACIONES DIFERENCIALES
30
Enelcasoquedenlascondicionesinicialesy(1)=1,alejemploanterior,elcomandoa
utilizareselsiguiente:
EJEMPLO6.Resolver
( ) ( 2 ) 0
y x y x
e e dx e y e dy
+ + + =
UNIVERSIDAD NACIONAL DE CAJAMARCA
DEPARTAMENTO DE
MATEMATICAS
Lic. Csar Garrido Jaeger ECUACIONES DIFERENCIALES
31
Nota:Observenelprocedimientoalcambiarelordendelasfunciones,noafectalafamilia
desoluciones.