Logarithm of a matrix
Encyclopedia
In mathematics
, a logarithm of a matrix is another matrix
such that the matrix exponential
of the latter matrix equals the original matrix. It is thus a generalization of the scalar logarithm
and in some sense an inverse function
of the matrix 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 to Lie theory
since when a matrix has a logarithm then it is in a Lie group
and the logarithm is the corresponding element of the Lie algebra
.
of B is A:
. The matrix is a generator of the Lie algebra
so(2).
it is invertible. The logarithm is not unique, but if a matrix has no negative real eigenvalues, then it has a unique logarithm whose eigenvalues lie all in the strip {z ∈ C | −π < Im z < π}. This logarithm is known as the principal logarithm. The answer is more involved in the real setting. A real matrix has a real logarithm if and only if it is invertible and each Jordan block belonging to a negative eigenvalue occurs an even number of times. If an invertible real matrix does not satisfy the condition with the Jordan blocks, then it has only complex logarithms. This can already be seen in the scalar case: the logarithm of −1 is a complex number. The existence of real matrix logarithms of real 2 x 2 matrices is considered in a later section.
(see also Axis angle
): Except when R has eigenvalues equal to −1 where the log is not unique. However, even in the case where the Frobenius norm of the log is: Note that, given rotation matrices A and B: is the geodesic distance on the 3D manifold of rotation matrices.
A is the following:NEWLINE
and, rather than computing the logarithm of diagonal entries as above, one would calculate the logarithm of the Jordan block
s. The latter is accomplished by noticing that one can write a Jordan block as where K is a matrix with zeros on and under the main diagonal. (The number λ is nonzero by the assumption that the matrix whose logarithm one attempts to take is invertible.) Then, by the formula one gets This series
in general does not converge for every matrix K, as it would not for any real number with absolute value greater than unity, however, this particular K is a nilpotent
matrix, so the series actually has a finite number of terms (Km is zero if m is the dimension of K). Using this approach one finds
Mathematics
Mathematics is the study of quantity, space, structure, and change. Mathematicians seek out patterns and formulate new conjectures. Mathematicians resolve the truth or falsity of conjectures by mathematical proofs, which are arguments sufficient to convince other mathematicians of their validity...
, a logarithm of a matrix is another matrix
Matrix (mathematics)
In mathematics, a matrix is a rectangular array of numbers, symbols, or expressions. The individual items in a matrix are called its elements or entries. An example of a matrix with six elements isMatrices of the same size can be added or subtracted element by element...
such that the matrix exponential
Matrix exponential
In mathematics, the matrix exponential is a matrix function on square matrices analogous to the ordinary exponential function. Abstractly, the matrix exponential gives the connection between a matrix Lie algebra and the corresponding Lie group....
of the latter matrix equals the original matrix. It is thus a generalization of the scalar logarithm
Logarithm
The logarithm of a number is the exponent by which another fixed value, the base, has to be raised to produce that number. For example, the logarithm of 1000 to base 10 is 3, because 1000 is 10 to the power 3: More generally, if x = by, then y is the logarithm of x to base b, and is written...
and in some sense an inverse function
Inverse function
In mathematics, an inverse function is a function that undoes another function: If an input x into the function ƒ produces an output y, then putting y into the inverse function g produces the output x, and vice versa. i.e., ƒ=y, and g=x...
of the matrix exponential
Matrix exponential
In mathematics, the matrix exponential is a matrix function on square matrices analogous to the ordinary exponential function. Abstractly, the matrix exponential gives the connection between a matrix Lie algebra and the corresponding Lie group....
. 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 to Lie theory
Lie theory
Lie theory is an area of mathematics, developed initially by Sophus Lie.Early expressions of Lie theory are found in books composed by Lie with Friedrich Engel and Georg Scheffers from 1888 to 1896....
since when a matrix has a logarithm then it is in a Lie group
Lie group
In mathematics, a Lie group is a group which is also a differentiable manifold, with the property that the group operations are compatible with the smooth structure...
and the logarithm is the corresponding element of the Lie algebra
Lie algebra
In mathematics, a Lie algebra is an algebraic structure whose main use is in studying geometric objects such as Lie groups and differentiable manifolds. Lie algebras were introduced to study the concept of infinitesimal transformations. The term "Lie algebra" was introduced by Hermann Weyl in the...
.
Definition
A matrix B is a logarithm of a given matrix A if the matrix exponentialMatrix exponential
In mathematics, the matrix exponential is a matrix function on square matrices analogous to the ordinary exponential function. Abstractly, the matrix exponential gives the connection between a matrix Lie algebra and the corresponding Lie group....
of B is A:
Example: Logarithm of rotations in the plane
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 integer n, the matrix is a logarithm of A. Thus, the matrix A 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 matrices A are elements of the Lie group SO(2). The corresponding logarithms B are elements of the Lie algebra so(2), which consists of all skew-symmetric matricesSkew-symmetric matrix
In mathematics, and in particular linear algebra, a skew-symmetric matrix is a square matrix A whose transpose is also its negative; that is, it satisfies the equation If the entry in the and is aij, i.e...
. The matrix is a generator of the Lie algebra
Lie algebra
In mathematics, a Lie algebra is an algebraic structure whose main use is in studying geometric objects such as Lie groups and differentiable manifolds. Lie algebras were introduced to study the concept of infinitesimal transformations. The term "Lie algebra" was introduced by Hermann Weyl in the...
so(2).
Existence
The question of whether a matrix has a logarithm has the easiest answer when considered in the complex setting. A matrix has a logarithm if and only ifIf and only if
In logic and related fields such as mathematics and philosophy, if and only if is a biconditional logical connective between statements....
it is invertible. The logarithm is not unique, but if a matrix has no negative real eigenvalues, then it has a unique logarithm whose eigenvalues lie all in the strip {z ∈ C | −π < Im z < π}. This logarithm is known as the principal logarithm. The answer is more involved in the real setting. A real matrix has a real logarithm if and only if it is invertible and each Jordan block belonging to a negative eigenvalue occurs an even number of times. If an invertible real matrix does not satisfy the condition with the Jordan blocks, then it has only complex logarithms. This can already be seen in the scalar case: the logarithm of −1 is a complex number. The existence of real matrix logarithms of real 2 x 2 matrices is considered in a later section.
Properties
If A and B are both positive-definite matrices and A and B commute, i.e., AB = BA, then For any invertible matrix,Further example: Logarithm of rotations in 3D space
A rotation in the 3D is given by a 3x3 orthogonal matrix The logarithm of the rotation matrix R can be computed with Rodrigues' rotation formulaRodrigues' rotation formula
In the theory of three-dimensional rotation, Rodrigues' rotation formula is an efficient algorithm for rotating a vector in space, given an axis and angle of rotation. By extension, this can be used to transform all three basis vectors to compute a rotation matrix from an axis-angle representation...
(see also Axis angle
Axis angle
The axis-angle representation of a rotation, also known as the exponential coordinates of a rotation, parameterizes a rotation by two values: a unit vector indicating the direction of a directed axis , and an angle describing the magnitude of the rotation about the axis...
): Except when R has eigenvalues equal to −1 where the log is not unique. However, even in the case where the Frobenius norm of the log is: Note that, given rotation matrices A and B: is the geodesic distance on the 3D manifold of rotation matrices.
Calculating the logarithm of a diagonalizable matrix
A method for finding ln A for a diagonalizable matrixDiagonalizable matrix
In linear algebra, a square matrix A is called diagonalizable if it is similar to a diagonal matrix, i.e., if there exists an invertible matrix P such that P −1AP is a diagonal matrix...
A is the following:NEWLINE
- NEWLINE
- Find the matrix V of eigenvectors of A (each column of V is an eigenvector of A). NEWLINE
- Find the inverse V−1 of V. NEWLINE
- LetNEWLINE
- NEWLINE
NEWLINE - Then A′ will be a diagonal matrix whose diagonal elements are eigenvalues of A. NEWLINE
- Replace each diagonal element of A′ by its (natural) logarithm in order to obtain . NEWLINE
- ThenNEWLINE
- NEWLINE
The logarithm of a non-diagonalizable matrix
The algorithm illustrated above does not work for non-diagonalizable matrices, such as For such matrices one needs to find its Jordan decompositionJordan normal form
In linear algebra, a Jordan normal form of a linear operator on a finite-dimensional vector space is an upper triangular matrix of a particular form called Jordan matrix, representing the operator on some basis...
and, rather than computing the logarithm of diagonal entries as above, one would calculate the logarithm of the Jordan block
Jordan matrix
In the mathematical discipline of matrix theory, a Jordan block over a ring R is a matrix composed of 0 elements everywhere except for the diagonal, which is filled with a fixed element \lambda\in R, and for the superdiagonal, which is composed of ones...
s. The latter is accomplished by noticing that one can write a Jordan block as where K is a matrix with zeros on and under the main diagonal. (The number λ is nonzero by the assumption that the matrix whose logarithm one attempts to take is invertible.) Then, by the formula one gets This series
Series (mathematics)
A series is the sum of the terms of a sequence. Finite sequences and series have defined first and last terms, whereas infinite sequences and series continue indefinitely....
in general does not converge for every matrix K, as it would not for any real number with absolute value greater than unity, however, this particular K is a nilpotent
Nilpotent
In mathematics, an element x of a ring R is called nilpotent if there exists some positive integer n such that xn = 0....
matrix, so the series actually has a finite number of terms (Km is zero if m is the dimension of K). Using this approach one finds