Logarithm of a Matrix — Definition, Formula & Example
The logarithm of a matrix is a matrix that undoes matrix exponentiation: raising to the matrix power gives back the original matrix . It is not found by taking the logarithm of each entry.
Let be an complex matrix. A matrix is a logarithm of if , where . A logarithm exists if and only if is invertible, and it is generally not unique. If has no eigenvalues on the closed negative real axis , there is a unique principal logarithm whose eigenvalues all have imaginary parts strictly between and .
Key Formula
Where:
- = The identity matrix
- = An matrix with spectral radius less than 1 (every eigenvalue has absolute value below 1), so the series converges to the principal logarithm of
- = The summation index, a positive integer
Worked Example
Problem: Find the principal logarithm of .
Step 1: Write as the identity plus a matrix . Both eigenvalues of equal 1, so the principal logarithm exists.
Step 2: Compute . It is the zero matrix, so every term of the series after the first vanishes.
Step 3: Check by exponentiating. Because , the exponential series also stops after two terms.
Answer: . An entry-by-entry logarithm would fail here, since is undefined.
Why It Matters
In differential equations, the solution of after one time unit is , so the matrix logarithm recovers the rate matrix from observed data. Robotics and computer animation use logarithms of rotation matrices (the logarithm of a rotation is an antisymmetric matrix) to interpolate smoothly between orientations. It also appears in upper-level linear algebra and Lie group theory.
Common Mistakes
Mistake: Taking the natural logarithm of each entry, or assuming always holds.
Correction: The matrix logarithm is defined by , not entrywise. The sum rule works when and commute and have no eigenvalues on , provided the eigenvalues of stay in the principal strip. In general it fails because for non-commuting matrices.
