Matrix Logarithm Calculator
Enter all four entries.

From Exponentials to Logarithms

The matrix logarithm is the inverse operation to the matrix exponential. For a nonsingular matrix A, L such that eL=A is called logA. One way to compute it for 2x2 matrices with distinct positive eigenvalues is via eigendecomposition. Write A=VΛV-1 where Λ is diagonal. Then logA=VlogΛV-1, applying the ordinary logarithm to the eigenvalues.

This calculator performs exactly that. Given entries of A, it finds the eigenvalues using the quadratic formula applied to the characteristic equation λ2-tλ+d where t is the trace a11+a22 and d is the determinant a11a22-a12a21. Provided the eigenvalues are positive and real, it constructs V from the eigenvectors, computes logΛ, and rebuilds the result.

Because the eigenvectors may be badly scaled, we normalize them before inversion to avoid numerical instability. If the matrix has repeated eigenvalues or complex eigenvalues, the logarithm may not be unique. This simple implementation handles only distinct positive eigenvalues, which covers many symmetric or positive-definite cases encountered in practice.

Matrix logarithms appear in differential geometry and control theory. They map a transformation back to a generator so that exponentiating the generator reproduces the original action. In computer graphics, this idea enables interpolation of rotations through the Lie algebra of the rotation group. By studying the logarithm of a matrix, we uncover how repeated infinitesimal actions combine to form the overall transformation.

After entering a 2x2 matrix, press the button to compute logA. The output displays the resulting matrix with each entry rounded to six decimal places. If the eigenvalues are not positive real numbers, the calculator warns that the method is inapplicable.

Related Calculators

Cubic Spline Interpolation Calculator - Smooth Curve Fitting

Build a natural cubic spline through a set of data points and evaluate it.

cubic spline calculator interpolation

Cauchy-Schwarz Inequality Calculator - Verify Vector Bounds

Test the Cauchy-Schwarz inequality for two vectors and explore its geometric interpretation with an in-depth explanation.

Cauchy-Schwarz inequality calculator inner product vector norm

Lagrange Multipliers Calculator - Constrained Optimization

Use Lagrange multipliers to locate extrema of a function subject to an equality constraint.

lagrange multipliers calculator constrained optimization