On the computation of the nth power of a matrix
Nikolaos Halidias

TL;DR
This paper explores methods for computing the nth power of a matrix, emphasizing the Cayley-Hamilton theorem and Gauss elimination to find the minimum polynomial, relevant to Markov chains and other areas.
Contribution
It highlights the importance of the Cayley-Hamilton theorem and demonstrates Gauss elimination as a practical tool for matrix power computation.
Findings
Cayley-Hamilton theorem is crucial for matrix power calculation.
Gauss elimination can determine the minimum polynomial without the characteristic polynomial.
The approach is applicable to Markov chains and related mathematical topics.
Abstract
In this note we discuss the problem of finding the nth power of a matrix which is strongly connected to the study of Markov chains and others mathematical topics. We observe the known fact (but maybe not well known) that the Cayley-Hamilton theorem is of key importance to this goal. We also demonstrate the classical Gauss elimination technique as a tool to compute the minimum polynomial of a matrix without necessarily know the characteristic polynomial.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsMatrix Theory and Algorithms · Graph theory and applications · Advanced Topics in Algebra
On the computation of the nth power of a matrix
Nikolaos Halidias
Department of Mathematics
University of the Aegean
Karlovassi 83200 Samos, Greece
email: [email protected]
Abstract
In this note we discuss the problem of finding the nth power of a matrix which is strongly connected to the study of Markov chains and others mathematical topics. We observe the known fact (but maybe not well known) that the Cayley-Hamilton theorem is of key importance to this goal. We also demonstrate the classical Gauss elimination technique as a tool to compute the minimum polynomial of a matrix without necessarily know the characteristic polynomial.
Keywords matrix, nth power, Cayley-Hamilton theorem, minimum polynomial
2010 Mathematics Subject Classification
1 Using Cayley-Hamilton theorem to find the nth power of a matrix
Let be a real matrix and suppose that we want to compute the nth power. Let us denote by the characteristic polynomial of . Then it holds that
[TABLE]
where is a polynomial of degree less or equal to . Using the Cayley-Hamilton theorem we see that since . Therefore, in order to find the form of we have to find the coefficients of which are at most . In this direction we will use the eigenvalues (not necessarily distinct) of the matrix since . Setting we produce some equations involving the unknown coefficients of . Of course if some of the eigenvalues are of multiplicity two or more then we have to produce some more equations. This can be done by differentiating equation 1 and setting . We differentiate this equation times (where is the multiplicity of eigenvalue) and each time we set in order to produce one more equation. We do this for any eigenvalue with multiplicity . In this fashion we produce different equations in order to determine the unknown coefficients of . One can easily observe that the computation of the coefficients of is in fact an interpolation problem which has a unique solution (see [2], Thm. 2.2.2). Therefore, we can always find the nth power of matrix by using the Cayley-Hamilton theorem even if the matrix is not diagonizable. Below, we give some examples.
Example 1
We will compute the nth power of the matrix
[TABLE]
The eigenvalues are with multiplicity two and that is the characteristic polynomial is .
Therefore, it holds that where . We have to produce three equations in order to determine the unknown coefficients. Setting we obtain the first equation and setting we produce another one which is . In order to have one more equation we differentiate the equality and then we set again because this eigenvalue has multiplicity two. Therefore, we obtain the third equation which is . Next we solve for and thus
[TABLE]
Finally, one can verify the result by induction.
Example 2
We will compute the nth power of the following matrix
[TABLE]
This matrix has the following eigenvalues, , and . We have the following equation where . Next, we will produce three equations in order to evaluate the unknown coefficients. We transform every complex number in the polar form, that is where and . Therefore we have that
[TABLE]
We obtain the following equations by setting in the equation
[TABLE]
Adding the second equation to the third we produce the equality
[TABLE]
while subtracting the third equation from the second we produce the following
[TABLE]
Finally, we have the following system of equations
[TABLE]
Solving for we obatin
[TABLE]
and therefore . One can verify the result by induction.
2 Minimum polynomial
Recall that the minimum polynomial of is the polynomial of less degree such that . Therefore one can use the minimum polynomial rather than the characteristic one in order to compute the nth power of the matrix .
We will demonstrate the classical Gauss elimination procedure in order to find the minimum polynomial.
Let the minimum polynomial has the form
[TABLE]
.
Obviously the relation
[TABLE]
drive us to the conclusion that otherwise there will be a polynomial such that with less degree than the minimum polynomial which is a contradiction. That means that the matrices are linearly independent while the matrices are linearly dependent. Obviously the matrices
[TABLE]
are also linearly dependent.
Let the matrix that has in its first column the identity matrix , that is at the first places of the first column of we put the first column of , next at the next places of the first column of we put the second column of and so on. We do the same for the matrices . This matrix is the matrix of the system 5. Since the matrices are linearly dependent then the reduced row echelon form of will have the following form
[TABLE]
where the number of leading 1 equals to .
Let now the matrix that has in its columns the matrices with the same fashion as with . We construct next the matrix (which is in fact the matrix of system 7 below) and we compute the reduced row echelon form. Obviously, the number of the leading 1 equals again and these are located at the first columns of .
That means that the system
[TABLE]
has infinite many solutions with free parameters. Setting , and solving for the others we obtain the minimum polynomial
[TABLE]
One can easily verify that the minimum polynomial is as follows
[TABLE]
Example 3
Let the matrix
[TABLE]
We will compute the minimum polynomial.
We construct the matrix by using the matrices . Then
[TABLE]
end the reduced row echelon matrix is the following
[TABLE]
The number of the leading 1 is 3 and that means that the minimum polynomial if of third degree. Thus,
[TABLE]
and in this case coincides with the characteristic polynomial.
Example 4
Let the matrix
[TABLE]
We construct the matrix as before and therefore we have
[TABLE]
The reduced row echelon matrix of is
[TABLE]
The number of the leading 1 is 2 therefore the degree of the minimum polynomial is 2. Setting , and solving for the other we get
[TABLE]
That means that the matrix has the and as eigenvalues.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] S. Bialas - M. Bialas, An algorithm for the calculation of the minimal polynomial , Bulletin Polish Academy Sciences, vol. 56, 2008.
- 2[2] P. Davis, Interpolation and Approximation , Dover, 1975.
- 3[3] S. Lang, Introduction to Linear Algebra , Springer, 1986.
