44T7.mws

Solution to T7 in 4.4.

> with(linalg):

Warning, the protected names norm and trace have been redefined and unprotected

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

A := matrix([[1, 1, 2, 1, 1], [1, 2, 3, 2, 1], [2, ...

> I5:=Matrix(5,5,shape=identity);

I5 := _rtable[135680988]

> det(A-x*I5);

-31+121*x-59*x^2-39*x^3+14*x^4-x^5

> plot(-31+121*x-59*x^2-39*x^3+14*x^4-x^5,x=-2..10,y=-200..200);

[Maple Plot]

After using several graphing windows, I can now see all five roots. They are, approximately: -1.9, 0.35, 1.06, 5.26, and 9.25.

We could use Newton's Method to improve the accuracy if needed.

> eigenvalues(A);

RootOf(31-121*_Z+59*_Z^2+39*_Z^3-14*_Z^4+_Z^5,index...
RootOf(31-121*_Z+59*_Z^2+39*_Z^3-14*_Z^4+_Z^5,index...
RootOf(31-121*_Z+59*_Z^2+39*_Z^3-14*_Z^4+_Z^5,index...
RootOf(31-121*_Z+59*_Z^2+39*_Z^3-14*_Z^4+_Z^5,index...
RootOf(31-121*_Z+59*_Z^2+39*_Z^3-14*_Z^4+_Z^5,index...

Conclusion: Maple was unable to factor the characteristic polynomial. However, we apply the evalf command to convert this to floating point numbers. (See HELP evalf for details.)

> evalf(%);

.3126193022, 1.071200946, 5.280735608, 9.233881374,...

>