Example 4: Solve the system [Maple Math] .

Solution: As before, we define the matrix [Maple Math] , the vector [Maple Math] and the identity matrix [Maple Math] .

> A:=matrix(2,2,[1,- 1,1, 3]);

[Maple Math]

> t:=matrix(2,1,[t1,t2]);

[Maple Math]

> E:=array(1..2,1..2,identity);

[Maple 57.gif

Next we find eigenvalues of [Maple Math] .

> eigenvalues(A);

[Maple Math]

Notice that the eigenvalue 2 is a repeated eigenvalue, which will yield only one independent solution. We find this eigenvector in the same way we did before.

> multiply(A-2*E,t);

[Maple Math]

> solve(-t1-t2=0,t2);

[Maple Math]

Hence one eigenvector is [Maple Math] which gives one independent solution [Maple Math] . We find a second solution as follows:

First solve the matrix equation [Maple Math] .

> multiply(A-2*E,t);

[Maple Math]

> solve({-t1-t2=1,t1+t2=-1},{t1,t2});

[Maple Math]

>

Set t1=-1 (It is the same value of t2 as in the eigenvector [Maple Math] .), and find t1. Thus one solution of the matrix equation is [Maple Math] . Now the second solution of the differential equation is

[Maple Math] .

> .