Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Chapter 6.3 Problem 28 Part (A) >> A=[5 -2 2; 4 -3 4; 4 -6 7]; >> eig(A) ans = 5.0000 1.0000 3.

0000 Thus, the eigenvalues for this matrix A are 5,1 & 3. A is diagonalizable because of the fact that it is a 3 by 3 matrix with 3 distinct eigenvectors. Part (B) >> [V,D]=eig(A) V = -0.5774 -0.5774 -0.5774 D = 5.0000 0 0 0 1.0000 0 0 0 3.0000 0.0000 0.7071 0.7071 -0.7071 0.0000 0.7071

The eigenvectors calculated manually are different from the results shown by Matlab because the Matlab produced results are normalized, i.e., the vectors are scaled. Part (C) >> A A = 5 -2 4 -3 4 -6 >> det(A) ans = 15.0000 >> D D = 5.0000 0 0 >> det(D) ans = 15.0000 Therefore, we can see that the determinant of the original matrix is the same as the determinant of the matrix formed by putting the eigenvalues into a diagonal of a zero matrix. This is further shown in the following instance where the eigenvalues were switched around. The determinant of the new matrix was also calculated to be 15. >> M=[1 0 0; 0 5 0; 0 0 3] M = 1 0 0 >> det(M) ans = 15 0 5 0 0 0 3 0 1.0000 0 0 0 3.0000 2 4 7

You might also like