Department of Mathematics
Department of Mathematics
Department of Mathematics
DEPARTMENT OF MATHEMATICS
SCHOOL OF ADVANCED SCIENCES
Properties of Eigen values and Eigen vectors, Cayley Hamilton theorem.
Properties of Eigenvalues
1) Any square matrix A and its transpose AT have the same eigen values.
2) The eigenvalues of triangular matrix are just the diagonal elements of the matrix.
4) The sum of the eigen values of a matrix is the sum of the elements of the principal diagonal.
Cayley-Hamilton Theorem
MATLAB CODE
clc
clear
%Characteristic Equation
cf=poly(A);
disp(’Characteristic Equations’)
disp(cf)
%Eigenvalues
EV=eig(A);
disp(’Eigenvalues’)
disp(EV)
%Eigenvectors
[P D]=eig(A);
disp(’Eigenvectors’)
disp(P)
INPUT
Enter the Matrix: [3 4;4 -3]
OUTPUT
Eigenvalues
-5
5
Eigenvectors
0.4472 -0.8944
-0.8944 -0.4472
INPUT
Enter the Matrix: [7 -2 2;-2 1 4;-2 4 1]
OUTPUT
Characteristic Equations
1.0000 -9.0000 -1.0000 105.0000
Eigenvalues
7.0000
5.0000
-3.0000
Eigenvectors
0.5774 0.0000 -0.2709
-0.5774 -0.7071 -0.7450
-0.5774 -0.7071 0.6096
%Determinant
detA=det(A);
disp(’Determinant of A:’)
disp(detA)
%Eigenvalues
EV=eig(A);
disp(’Eigenvalues:’)
disp(EV)
%Product of eigenvalues
prev=prod(EV);
disp(’Product of Eigenvalues:’)
disp(prev)
INPUT
Enter the Matrix: [7 -2 2;-2 1 4;-2 4 1]
OUTPUT
Determinant of A:
-105
Eigenvalues:
7.0000
5.0000
-3.0000
Product of Eigenvalues:
-105.0000
1 4
3. Verify Cayley-Hamilton theorem for the matrtix A = and find its inverse.
2 3
MATLAB CODE
clc
clear
INPUT
OUTPUT
Exercise
————————————–