A matrix is a logarithm of a given matrix if the matrix exponential of is:
properties
A matrix has a logarithm if and only if it can be inverted . This logarithm can be a non-real matrix even if all entries in the matrix are real numbers. In this case the logarithm is not unique.
Calculation of the logarithm of a diagonalizable matrix
Then is a diagonal matrix whose diagonal elements are eigenvalues of .
Replace each diagonal element of with its natural logarithm to get. Then applies .
The fact that the logarithm of can be complex, although it is real, results from the fact that a real matrix can have complex eigenvalues (this applies, for example, to rotation matrices ). The ambiguity of the logarithm follows from the ambiguity of the logarithm of a complex number.
Example: . How one now calculates is not clearly defined, since the natural logarithm has the branch intersection at −1. If one approaches the number with a positive imaginary part, then is ; if one approaches the number with the negative imaginary part, one obtains . Here you can see the ambiguity of the logarithm and also the not necessarily real-valued entries, although the matrix was real-valued.
The logarithm of a non-diagonalizable matrix
The above algorithm does not work for non-diagonalizable matrices such as
For such matrices one must first determine the Jordan normal form . Instead of the logarithm of the diagonal entries, you have to calculate the logarithm of the Jordan blocks.
The latter is achieved by writing the Jordan matrix as
where K is a matrix with zeros below and on the main diagonal . (The number λ is not equal to zero if one assumes that the matrix whose logarithm one wants to calculate is invertible.)
Through the formula
you get
This series does not converge for a general matrix as it would for real numbers with magnitude smaller . This particular matrix, however, is a nilpotent matrix , so the series has a finite number of terms ( zero when denoting the rank of ).
The function can be defined on any simply connected open set in the complex plane that does not contain zero and is holomorphic on this definition set . It follows that if the spectrum does not contain zero and there is a path from zero to infinity that does not intersect the spectrum of (for example, if the spectrum of forms a circular line whose center is zero, then it is not possible to define).
For the special case of Euclidean space, the spectrum of a linear operator is the set of eigenvalues of the matrix, i.e. finite. As long as zero is not contained in the spectrum (i.e. the matrix is invertible) and the above path condition is obviously fulfilled, it follows that it is well-defined. The ambiguity follows from the fact that one can choose more than one branch of the logarithm which is defined on the set of eigenvalues of the matrix.