Está en la página 1de 3

# RESOLUCION DE ECUACIONES DIFERENCIALES LINEALES DE

## ORDEN SUPERIOR CON MATLAB

RAICES REALES DIFERENTES
>> y=dsolve('D2y-Dy-6*y=0','x')

y=

C15*exp(3*x) + C16*exp(-2*x)

>> y=dsolve('D2y-Dy-6*y=0','y(0)=2','Dy(0)=1','x')

y=

exp(-2*x) + exp(3*x)

>> ezplot(y)

## RAICES REALES IGUALES

>> y=dsolve('D2y+4*Dy+4*y=0','x')

y=

C7*exp(-2*x) + C8*x*exp(-2*x)

>>
y=dsolve('D2y+4*Dy+4*y=0','y(0)=1','Dy(0)=4','x')

y=

exp(-2*x) + 6*x*exp(-2*x)

>> ezplot(y)

1
Est. Maria Martha Valero Yahuita 3ro Geografica
RAICES COMPLEJAS
>> y=dsolve('D2y+2*Dy+17*y=0','x')

y=

C11*cos(4*x)*exp(-x) + C12*sin(4*x)*exp(-x)

>> y=dsolve('D2y+2*Dy+17*y=0','y(0)=1,Dy(0)=2','x')

y=

cos(4*x)*exp(-x) + (3*sin(4*x)*exp(-x))/4

>> ezplot(y)

RAICES IMAGINARIAS
>> y=dsolve('D2y+y=0','x')

y=

C15*cos(x) + C16*sin(x)

>> y=dsolve('D2y+y=0','y(0)=1,Dy(0)=2','x')

y=

cos(x) + 2*sin(x)

>> ezplot(y)

EJERCICIO
>> R=roots([1 6 9 24 20])
R=
-5.0000 + 0.0000i
-0.0000 + 2.0000i
-0.0000 - 2.0000i
-1.0000 + 0.0000i

2
Est. Maria Martha Valero Yahuita 3ro Geografica
VARIACION DE PARAMETROS
>> y=dsolve('D2y+4*Dy+4*y=x*exp(2*x)','x')

y=

## ECUACION DIFERENCIAL NO HOMOGENEA

>> y=dsolve('D2y+4*Dy+4*y=x*exp(2*x)','x')

y=
C19*exp(-2*x) - (exp(2*x)*(16*x^2 - 8*x + 2))/64 + (x*exp(2*x)*(4*x - 1))/16 + C20*x*exp(-2*x)

3
Est. Maria Martha Valero Yahuita 3ro Geografica