In
mathematics, a logarithm of a matrix is another
matrix
Matrix most commonly refers to:
* ''The Matrix'' (franchise), an American media franchise
** '' The Matrix'', a 1999 science-fiction action film
** "The Matrix", a fictional setting, a virtual reality environment, within ''The Matrix'' (franchi ...
such that the
matrix exponential
In mathematics, the matrix exponential is a matrix function on square matrices analogous to the ordinary exponential function. It is used to solve systems of linear differential equations. In the theory of Lie groups, the matrix exponential giv ...
of the latter matrix equals the original matrix. It is thus a generalization of the scalar
logarithm
In mathematics, the logarithm is the inverse function to exponentiation. That means the logarithm of a number to the base is the exponent to which must be raised, to produce . For example, since , the ''logarithm base'' 10 of ...
and in some sense an
inverse function
In mathematics, the inverse function of a function (also called the inverse of ) is a function that undoes the operation of . The inverse of exists if and only if is bijective, and if it exists, is denoted by f^ .
For a function f\colon ...
of the
matrix exponential
In mathematics, the matrix exponential is a matrix function on square matrices analogous to the ordinary exponential function. It is used to solve systems of linear differential equations. In the theory of Lie groups, the matrix exponential giv ...
. 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
In mathematics, the mathematician Sophus Lie ( ) initiated lines of study involving integration of differential equations, transformation groups, and contact of spheres that have come to be called Lie theory. For instance, the latter subject i ...
since when a matrix has a logarithm then it is in an element of a
Lie group
In mathematics, a Lie group (pronounced ) is a group that is also a differentiable manifold. A manifold is a space that locally resembles Euclidean space, whereas groups define the abstract concept of a binary operation along with the addit ...
and the logarithm is the corresponding element of the vector space of the
Lie algebra
In mathematics, a Lie algebra (pronounced ) is a vector space \mathfrak g together with an operation called the Lie bracket, an alternating bilinear map \mathfrak g \times \mathfrak g \rightarrow \mathfrak g, that satisfies the Jacobi iden ...
.
Definition
The
exponential of a matrix
In mathematics, the matrix exponential is a matrix function on square matrices analogous to the ordinary exponential function. It is used to solve systems of linear differential equations. In the theory of Lie groups, the matrix exponential giv ...
''A'' is defined by
:
.
Given a matrix ''B'', another matrix ''A'' is said to be a matrix logarithm of . Because the exponential function is not
bijective
In mathematics, a bijection, also known as a bijective function, one-to-one correspondence, or invertible function, is a function between the elements of two sets, where each element of one set is paired with exactly one element of the other ...
for complex 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.
Power series expression
If ''B'' is sufficiently close to the identity matrix, then a logarithm of ''B'' may be computed by means of the following power series:
:
.
Specifically, if
, then the preceding series converges and
.
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''.
⇔
where
…
qed.
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 matrices
In mathematics, particularly in linear algebra, a skew-symmetric (or antisymmetric or antimetric) matrix is a square matrix whose transpose equals its negative. That is, it satisfies the condition
In terms of the entries of the matrix, if a_ ...
. The matrix
:
is a generator of the
Lie algebra
In mathematics, a Lie algebra (pronounced ) is a vector space \mathfrak g together with an operation called the Lie bracket, an alternating bilinear map \mathfrak g \times \mathfrak g \rightarrow \mathfrak g, that satisfies the Jacobi iden ...
so(2).
Existence
The question of whether a matrix has a logarithm has the easiest answer when considered in the complex setting. A complex matrix has a logarithm
if and only if
In logic and related fields such as mathematics and philosophy, "if and only if" (shortened as "iff") is a biconditional logical connective between statements, where either both statements are true or both are false.
The connective is bi ...
it is
invertible
In mathematics, the concept of an inverse element generalises the concepts of opposite () and reciprocal () of numbers.
Given an operation denoted here , and an identity element denoted , if , one says that is a left inverse of , and that ...
. The logarithm is not unique, but if a matrix has no negative real
eigenvalue
In linear algebra, an eigenvector () or characteristic vector of a linear transformation is a nonzero vector that changes at most by a scalar factor when that linear transformation is applied to it. The corresponding eigenvalue, often denot ...
s, then there is a unique logarithm that has eigenvalues all lying in the strip . 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 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.
Properties
If ''A'' and ''B'' are both
positive-definite matrices, then
:
Suppose that ''A'' and ''B'' commute, meaning that ''AB'' = ''BA''. Then
:
if and only if
, where
is an
eigenvalue
In linear algebra, an eigenvector () or characteristic vector of a linear transformation is a nonzero vector that changes at most by a scalar factor when that linear transformation is applied to it. The corresponding eigenvalue, often denot ...
of
and
is the corresponding
eigenvalue
In linear algebra, an eigenvector () or characteristic vector of a linear transformation is a nonzero vector that changes at most by a scalar factor when that linear transformation is applied to it. The corresponding eigenvalue, often denot ...
of
. In particular,
when ''A'' and ''B'' commute and are both
Definite matrix, positive-definite. Setting ''B'' = ''A
−1'' in this equation yields
:
Similarly, for non-commuting
and
, one can show that
:
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
.
Further example: Logarithm of rotations in 3D space
A rotation ∈ SO(3) in ℝ³ is given by a 3×3
orthogonal matrix
In linear algebra, an orthogonal matrix, or orthonormal matrix, is a real square matrix whose columns and rows are orthonormal vectors.
One way to express this is
Q^\mathrm Q = Q Q^\mathrm = I,
where is the transpose of and is the identity ...
.
The logarithm of such a rotation matrix can be readily computed from the antisymmetric part of
Rodrigues' rotation formula
In the theory of three-dimensional rotation, Rodrigues' rotation formula, named after Olinde Rodrigues, 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 ...
, explicitly in
Axis angle
An axis (plural ''axes'') is an imaginary line around which an object rotates or is symmetrical. Axis may also refer to:
Mathematics
* Axis of rotation: see rotation around a fixed axis
* Axis (mathematics), a designator for a Cartesian-coordinat ...
. It yields the logarithm of minimal
Frobenius norm
In mathematics, a matrix norm is a vector norm in a vector space whose elements (vectors) are matrices (of given dimensions).
Preliminaries
Given a field K of either real or complex numbers, let K^ be the -vector space of matrices with m ...
, but fails when has eigenvalues equal to −1 where this is not unique.
Further 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 matrix
In linear algebra, a square matrix A is called diagonalizable or non-defective if it is similar to a diagonal matrix, i.e., if there exists an invertible matrix P and a diagonal matrix D such that or equivalently (Such D are not unique.) F ...
''A'' is the following:
:Find the matrix ''V'' of
eigenvector
In linear algebra, an eigenvector () or characteristic vector of a linear transformation is a nonzero vector that changes at most by a scalar factor when that linear transformation is applied to it. The corresponding eigenvalue, often denote ...
s of ''A'' (each column of ''V'' is an eigenvector of ''A'').
:Find the
inverse ''V''
−1 of ''V''.
:Let
::
:Then ''A′'' will be a diagonal matrix whose diagonal elements are eigenvalues of ''A''.
:Replace each diagonal element of ''A′'' by its (natural) logarithm in order to obtain
.
:Then
::
That the logarithm of ''A'' might be a complex matrix even if ''A'' 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 for
rotation matrices). The non-uniqueness of the logarithm of a matrix follows from the non-uniqueness of the logarithm of a complex number.
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 decomposition and, rather than computing the logarithm of diagonal entries as above, one would calculate the logarithm of the
Jordan blocks.
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
Mercator series
In mathematics, the Mercator series or Newton–Mercator series is the Taylor series for the natural logarithm:
:\ln(1+x)=x-\frac+\frac-\frac+\cdots
In summation notation,
:\ln(1+x)=\sum_^\infty \frac x^n.
The series converges to the natura ...
:
one gets
:
This
series has a finite number of terms (''K''
''m'' is zero if ''m'' is the dimension of ''K''), and so its sum is well-defined.
Using this approach one finds
:
A functional analysis perspective
A square matrix represents a
linear operator
In mathematics, and more specifically in linear algebra, a linear map (also called a linear mapping, linear transformation, vector space homomorphism, or in some contexts linear function) is a Map (mathematics), mapping V \to W between two vect ...
on the
Euclidean space
Euclidean space is the fundamental space of geometry, intended to represent physical space. Originally, that is, in Euclid's ''Elements'', it was the three-dimensional space of Euclidean geometry, but in modern mathematics there are Euclidean sp ...
R
''n'' where ''n'' is the dimension of the matrix. Since such a space is finite-dimensional, this operator is actually
bounded.
Using the tools of
holomorphic functional calculus
In mathematics, holomorphic functional calculus is functional calculus with holomorphic functions. That is to say, given a holomorphic function ''f'' of a complex argument ''z'' and an operator ''T'', the aim is to construct an operator, ''f''('' ...
, given a
holomorphic function
In mathematics, a holomorphic function is a complex-valued function of one or more complex variables that is complex differentiable in a neighbourhood of each point in a domain in complex coordinate space . The existence of a complex de ...
''f'' defined on an
open set
In mathematics, open sets are a generalization of open intervals in the real line.
In a metric space (a set along with a distance defined between any two points), open sets are the sets that, with every point , contain all points that a ...
in the
complex plane
In mathematics, the complex plane is the plane formed by the complex numbers, with a Cartesian coordinate system such that the -axis, called the real axis, is formed by the real numbers, and the -axis, called the imaginary axis, is formed by th ...
and a bounded linear operator ''T'', one can calculate ''f''(''T'') as long as ''f'' is defined on the
spectrum
A spectrum (plural ''spectra'' or ''spectrums'') is a condition that is not limited to a specific set of values but can vary, without gaps, across a continuum. The word was first used scientifically in optics to describe the rainbow of color ...
of ''T''.
The function ''f''(''z'')=log ''z'' can be defined on any
simply connected
In topology, a topological space is called simply connected (or 1-connected, or 1-simply connected) if it is path-connected and every path between two points can be continuously transformed (intuitively for embedded spaces, staying within the spa ...
open set in the complex plane not containing the origin, and it is holomorphic on such a domain. This implies that one can define ln ''T'' as long as the spectrum of ''T'' does not contain the origin and there is a path going from the origin to infinity not crossing the spectrum of ''T'' (e.g., if the spectrum of ''T'' is a circle with the origin inside of it, it is impossible to define ln ''T'').
The spectrum of a linear operator on R
''n'' 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 ln ''T'' 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.
A Lie group theory perspective
In the theory of
Lie group
In mathematics, a Lie group (pronounced ) is a group that is also a differentiable manifold. A manifold is a space that locally resembles Euclidean space, whereas groups define the abstract concept of a binary operation along with the addit ...
s, there is an
exponential map from a
Lie algebra
In mathematics, a Lie algebra (pronounced ) is a vector space \mathfrak g together with an operation called the Lie bracket, an alternating bilinear map \mathfrak g \times \mathfrak g \rightarrow \mathfrak g, that satisfies the Jacobi iden ...
to the corresponding Lie group ''G''
:
For matrix Lie groups, the elements of
and ''G'' are square matrices and the exponential map is given by the
matrix exponential
In mathematics, the matrix exponential is a matrix function on square matrices analogous to the ordinary exponential function. It is used to solve systems of linear differential equations. In the theory of Lie groups, the matrix exponential giv ...
. The inverse map
is multivalued and coincides with the matrix logarithm discussed here. The logarithm maps from the Lie group ''G'' into the Lie algebra
.
Note that the exponential map is a local diffeomorphism between a neighborhood ''U'' of the zero matrix
and a neighborhood ''V'' of the identity matrix
.
Thus the (matrix) logarithm is well-defined as a map,
:
An important corollary of
Jacobi's formula then is
:
Constraints in the 2 × 2 case
If a 2 × 2 real matrix has a negative
determinant
In mathematics, the determinant is a scalar value that is a function of the entries of a square matrix. It characterizes some properties of the matrix and the linear map represented by the matrix. In particular, the determinant is nonzero if ...
, it has no real logarithm. Note first that any 2 × 2 real matrix can be considered one of the three types of the complex number ''z'' = ''x'' + ''y'' ε, where ε² ∈ . This ''z'' is a point on a complex subplane of the
ring of matrices.
The case where the determinant is negative only arises in a plane with ε² =+1, that is a
split-complex number
In algebra, a split complex number (or hyperbolic number, also perplex number, double number) has two real number components and , and is written z=x+yj, where j^2=1. The ''conjugate'' of is z^*=x-yj. Since j^2=1, the product of a number wi ...
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 the
Klein four-group
In mathematics, the Klein four-group is a group with four elements, in which each element is self-inverse (composing it with itself produces the identity)
and in which composing any two of the three non-identity elements produces the third on ...
generated by ε and −1.
For example, let ''a'' = log 2 ; then cosh ''a'' = 5/4 and sinh ''a'' = 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 x 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., a
square root of this matrix ''A'' is obtainable directly from exponentiating (log''A'')/2,
:
For a richer example, start with a
Pythagorean triple
A Pythagorean triple consists of three positive integers , , and , such that . Such a triple is commonly written , and a well-known example is . If is a Pythagorean triple, then so is for any positive integer . A primitive Pythagorean triple is ...
(''p,q,r'')
and let . Then
:
.
Now
:
.
Thus
:
has the logarithm matrix
:
,
where .
See also
*
Matrix function
In mathematics, every analytic function can be used for defining a matrix function that maps square matrices with complex entries to square matrices of the same size.
This is used for defining the exponential of a matrix, which is involved in th ...
*
Square root of a matrix
In mathematics, the square root of a matrix extends the notion of square root from numbers to matrices. A matrix is said to be a square root of if the matrix product is equal to .
Some authors use the name ''square root'' or the notation ...
*
Matrix exponential
In mathematics, the matrix exponential is a matrix function on square matrices analogous to the ordinary exponential function. It is used to solve systems of linear differential equations. In the theory of Lie groups, the matrix exponential giv ...
*
Baker–Campbell–Hausdorff formula
*
Derivative of the exponential map
In the theory of Lie groups, the exponential map is a map from the Lie algebra of a Lie group into . In case is a matrix Lie group, the exponential map reduces to the matrix exponential. The exponential map, denoted , is analytic and has as ...
Notes
References
* .
*
* .
* .
*
{{DEFAULTSORT:Logarithm Of A Matrix
Matrix theory
Inverse functions
Logarithms