1
$\begingroup$

I have problems entering a system of differential equations to Maple 13. Equations are:

x' = -4x + 2y
y' = 5x - 4y

Solve for $x = 0, y = 0$

Thank you in advance

  • 0
    @Kukmedis: Did you see my answer below? :)2012-06-26

1 Answers 1

5

I have two ways for solving this system of equations using the dsolve command:

1)

sys := diff(x(t), t) = -4*x(t)+2*y(t), diff(y(t), t) = 5*x(t)-4*y(t): f := {x(t), y(t)}: dsolve({sys, x(0) = 0, y(0) = 0}, f); 

2)

sys := [diff(x(t), t) = -4*x(t)+2*y(t), diff(y(t), t) = 5*x(t)-4*y(t)]: p := dsolve(sys): a1 := subs(x(t) = 0, t = 0, p[1]): a2 := subs(y(t) = 0, t = 0, p[2]): solve({a1, a2}, {_C1, _C2});