Inmathematics, alogarithm of a matrix is anothermatrix such that thematrix exponential of the latter matrix equals the original matrix. It is thus a generalization of the scalarlogarithm and in some sense aninverse function of thematrix exponential. Not all matrices have a logarithm and those matrices that do have a logarithm may have more than one logarithm. The study of logarithms of matrices leads toLie theory since when a matrix has a logarithm then it is in an element of aLie group and the logarithm is the corresponding element of the vector space of theLie algebra.
Theexponential of a matrixA is defined by
Given a matrixB, another matrixA is said to be amatrix logarithm ofB ifeA =B.
Because the exponential function is notbijective forcomplex numbers (e.g.), numbers can have multiple complex logarithms, and as a consequence of this, some matrices may have more than one logarithm, as explained below. If the matrix logarithm of exists and is unique, then it is written as in which case
IfB is sufficiently close to the identity matrix, then a logarithm ofB may be computed by means of thepower series
which can be rewritten as
Specifically, if, then the preceding series converges and.[1]
The rotations in the plane give a simple example. A rotation of angleα around the origin is represented by the 2×2-matrix
For any integern, the matrix
is a logarithm ofA.
Proof |
|---|
⇔ where ... qed. |
Thus, the matrixA has infinitely many logarithms. This corresponds to the fact that the rotation angle is only determined up to multiples of 2π.
In the language of Lie theory, the rotation matricesA are elements of the Lie groupSO(2). The corresponding logarithmsB are elements of the Lie algebra so(2), which consists of allskew-symmetric matrices. The matrix
is a generator of theLie algebra so(2).
The question of whether a matrix has a logarithm has the easiest answer when considered in the complex setting. A complex matrix has a logarithmif and only if it isinvertible.[2] The logarithm is not unique, but if a matrix has no negative realeigenvalues, then there is a unique logarithm that has eigenvalues all lying in the strip. This logarithm is known as theprincipal logarithm.[3]
The answer is more involved in the real setting. A real matrix has a real logarithm if and only if it is invertible and eachJordan block belonging to a negative eigenvalue occurs an even number of times.[4] If an invertible real matrix does not satisfy the condition with the Jordan blocks, then it has only non-real logarithms. This can already be seen in the scalar case: no branch of the logarithm can be real at -1. The existence of real matrix logarithms of real 2×2 matrices is considered in a later section.
IfA andB are bothpositive-definite matrices, then
Suppose thatA andB commute, meaning thatAB =BA. Then
if and only if, where is aneigenvalue of and is the correspondingeigenvalue of.[5] In particular, whenA andB commute and are bothpositive-definite. SettingB =A−1 in this equation yields
Similarly, for non-commuting and, one can show that[6]
More generally, a series expansion of in powers of can be obtained using the integral definition of the logarithm
applied to both and in the limit.
A rotationR ∈ SO(3) in3 is given by a 3×3orthogonal matrix.
The logarithm of such a rotation matrixR can be readily computed from the antisymmetric part ofRodrigues' rotation formula, explicitly inAxis angle. It yields the logarithm of minimalFrobenius norm, but fails whenR has eigenvalues equal to −1 where this is not unique.
Further note that, given rotation matricesA andB,
is the geodesic distance on the 3D manifold of rotation matrices.
A method for finding logA for adiagonalizable matrixA is the following:
That the logarithm ofA might be a complex matrix even ifA is real then follows from the fact that a matrix with real and positive entries might nevertheless have negative or even complex eigenvalues (this is true for example forrotation matrices). The non-uniqueness of the logarithm of a matrix follows from the non-uniqueness of the logarithm of a complex number.
The algorithm illustrated above does not work for non-diagonalizable matrices, such as
For such matrices one needs to find itsJordan decomposition and, rather than computing the logarithm of diagonal entries as above, one would calculate the logarithm of theJordan blocks.
The latter is accomplished by noticing that one can write a Jordan block as
whereK is a matrix with zeros on and under themain diagonal. (The number λ is nonzero by the assumption that the matrix whose logarithm one attempts to take is invertible.)
Then, by theMercator series
one gets
Thisseries has a finite number of terms (Km is zero ifm is equal to or greater than the dimension ofK), and so its sum is well-defined.
Example. Using this approach, one finds
which can be verified by plugging the right-hand side into the matrix exponential:
Another, more standard, method by theHermite interpolation with the use ofconfluent Vandermonde matrix is presented by Higham.[7]
A square matrix represents alinear operator on theEuclidean spaceRn wheren is the dimension of the matrix. Since such a space is finite-dimensional, this operator is actuallybounded.
Using the tools ofholomorphic functional calculus, given aholomorphic functionf defined on anopen set in thecomplex plane and a bounded linear operatorT, one can calculatef(T) as long asf is defined on thespectrum ofT.
The functionf(z) = logz can be defined on anysimply connected open set in the complex plane not containing the origin, and it is holomorphic on such a domain. This implies that one can define lnT as long as the spectrum ofT does not contain the origin and there is a path going from the origin to infinity not crossing the spectrum ofT (e.g., if the spectrum ofT is a circle with the origin inside of it, it is impossible to define lnT).
The spectrum of a linear operator onRn is the set of eigenvalues of its matrix, and so is a finite set. As long as the origin is not in the spectrum (the matrix is invertible), the path condition from the previous paragraph is satisfied, and lnT is well-defined. The non-uniqueness of the matrix logarithm follows from the fact that one can choose more than one branch of the logarithm which is defined on the set of eigenvalues of a matrix.
In the theory ofLie groups, there is anexponential map from aLie algebra to the corresponding Lie groupG
For matrix Lie groups, the elements of andG are square matrices and the exponential map is given by thematrix exponential. The inverse map is multivalued and coincides with the matrix logarithm discussed here. The logarithm maps from the Lie groupG into the Lie algebra. Note that the exponential map is alocal diffeomorphism between a neighborhoodU of the zero matrix and a neighborhoodV of the identity matrix.[8]Thus the (matrix) logarithm is well-defined as a map,
An important corollary ofJacobi's formula then is
If a 2 × 2 real matrix has a negativedeterminant, it has no real logarithm. Note first that any 2 × 2 real matrix can be considered one of the three types of the complex numberz =x +yε, where ε2 ∈ { −1, 0, +1 }. Thisz is a point on a complex subplane of thering of matrices.[9]
The case where the determinant is negative only arises in a plane with ε2 =+1, that is asplit-complex number plane. Only one quarter of this plane is the image of the exponential map, so the logarithm is only defined on that quarter (quadrant). The other three quadrants are images of this one under theKlein four-group generated by ε and −1.
For example, leta = log 2 ; then cosha = 5/4 and sinha = 3/4.For matrices, this means that
So this last matrix has logarithm
These matrices, however, do not have a logarithm:
They represent the three other conjugates by the four-group of the matrix above that does have a logarithm.
A non-singular 2 × 2 matrix does not necessarily have a logarithm, but it is conjugate by the four-group to a matrix that does have a logarithm.
It also follows, that, e.g., asquare root of this matrixA is obtainable directly from exponentiating (logA)/2,
For a richer example, start with aPythagorean triple (p,q,r)and leta = log(p +r) − logq. Then
Now
Thus
has the logarithm matrix
wherea = log(p +r) − logq.