TOPICS
Search

Matrix Exponential


The matrix exponential of a square matrix A is defined by the power series

exp(A)=e^(A)
(1)
=sum_(n=0)^(infty)(A^n)/(n!)
(2)
=I+A+(AA)/(2!)+(AAA)/(3!)+...,
(3)

which converges for every square matrix A, where I is the identity matrix. The matrix exponential is implemented in the Wolfram Language as MatrixExp[m].

The Kronecker sum satisfies the nice property

 exp(A) tensor exp(B)=exp(A direct sum B)
(4)

(Horn and Johnson 1994, p. 208).

Matrix exponentials are important in the solution of systems of ordinary differential equations (e.g., Bellman 1970).

For a constant matrix A, termwise differentiation of the power series gives

 d/(dt)e^(tA)=Ae^(tA).
(5)

Since e^(0A)=I, the solution of x^'(t)=Ax(t) with initial value x(0) is x(t)=e^(tA)x(0) (Bellman 1970, 3Blue1Brown 2021).

For a constant matrix H, the system ic^'(t)=Hc(t) has solution

 c(t)=e^(-itH)c(0).
(6)

If H is a Hermitian matrix and t is real, the propagator is a unitary matrix and preserves the usual inner product. This construction is used for a finite vector basis approximation to the quartic oscillator (Trott 2006). Polynomial approximations to this exponential have been developed using Hermite polynomials and Gegenbauer polynomials (Vijay et al. 1999, Vijay and Metiu 2002). Parity-time symmetry alone does not give this unitarity property in the usual inner product.

In some cases, it is a simple matter to express the matrix exponential. For example, when A is a diagonal matrix, exponentiation can be performed simply by exponentiating each of the diagonal elements. For example, given a diagonal matrix

 A=[a_1 0 ... 0; 0 a_2 ... 0; | | ... |; 0 0 ... a_k],
(7)

the matrix exponential is given by

 exp(A)=[e^(a_1) 0 ... 0; 0 e^(a_2) ... 0; | | ... |; 0 0 ... e^(a_k)].
(8)

When a matrix is diagonalizable, its exponential can be computed by first diagonalizing it.

When A is a nilpotent matrix, the exponential is given by a matrix polynomial because some power of A vanishes. For example, when

 A=[0 x z; 0 0 y; 0 0 0],
(9)

then

 exp(A)=[1 x z+1/2xy; 0 1 y; 0 0 1]
(10)

and A^3=0.

For the zero matrix A=0,

 e^(0)=I,
(11)

i.e., the identity matrix. In general,

 e^(A)e^(-A)=e^(0)=I,
(12)

so the exponential of a matrix is always invertible, with inverse the exponential of the negative of the matrix. However, in general, the formula

 e^(A)e^(B)=e^(A+B)
(13)

holds whenever A and B commute, i.e.,

 [A,B]=AB-BA=0.
(14)

The identity need not hold when A and B do not commute. For example,

 exp([0 -x; 0 0]+[0 0; x 0])=[cosx -sinx; sinx cosx],
(15)

while

 exp([0 -x; 0 0])exp([0 0; x 0])=[1 -x; 0 1][1 0; x 1]
 =[1-x^2 -x; x 1].
(16)

Interpreting x in the rotation matrix above as time t, that matrix gives the flow of the planar system u^'=-v, v^'=u. Its solutions rotate the initial vector counterclockwise at unit angular speed (3Blue1Brown 2021).

Even for a general 2×2 real matrix, however, the matrix exponential can be quite complicated:

 exp([a b; c d])=1/Delta[m_(11) m_(12); m_(21) m_(22)],
(17)

where

m_(11)=e^((a+d)/2)[Deltacosh(1/2Delta)+(a-d)sinh(1/2Delta)]
(18)
m_(12)=2be^((a+d)/2)sinh(1/2Delta)
(19)
m_(21)=2ce^((a+d)/2)sinh(1/2Delta)
(20)
m_(22)=e^((a+d)/2)[Deltacosh(1/2Delta)+(d-a)sinh(1/2Delta)],
(21)

and Delta=sqrt((a-d)^2+4bc). As Delta->0, this becomes

 exp([a b; c d])=e^((a+d)/2)[1+1/2(a-d) b; c 1-1/2(a-d)].
(22)

A positivity question arising in the scaling and squaring method is the Fasi-Higham positivity conjecture for reciprocal Padé approximant denominators. Scardino (2026) gave counterexamples to its unrestricted form, while leaving the diagonal case open. These counterexamples do not establish failure of the matrix exponential algorithm.

The contour integral definition of a matrix function, applied to f(z)=e^z, gives another representation of the matrix exponential.

When only the action e^(A)b on a vector is needed, Al-Mohy and Higham (2011) use scaling and a truncated Taylor series to compute it without forming the full matrix exponential.


See also

Exponential Function, Exponential Map, Kronecker Sum, Matrix, Matrix Differential Equation, Matrix Function, Matrix Power

Portions of this entry contributed by Todd Rowland

Explore with Wolfram|Alpha

References

3Blue1Brown. "How (and Why) to Raise e to the Power of a Matrix." Apr. 1, 2021. https://www.3blue1brown.com/lessons/matrix-exponents/.Al-Mohy, A. H. and Higham, N. J. "Computing the Action of the Matrix Exponential, with an Application to Exponential Integrators." SIAM J. Sci. Comput. 33, 488-511, 2011. https://doi.org/10.1137/100788860.Bellman, R. E. Introduction to Matrix Analysis, 2nd ed. New York: McGraw-Hill, 1970.Horn, R. A. and Johnson, C. R. Topics in Matrix Analysis. Cambridge, England: Cambridge University Press, p. 208, 1994.Moler, C. and van Loan, C. "Nineteen Dubious Ways to Compute the Exponential of a Matrix." SIAM Rev. 20, 801-836, 1978. https://doi.org/10.1137/1020098.Moler, C. and van Loan, C. "Nineteen Dubious Ways to Compute the Exponential of a Matrix, Twenty-Five Years Later." SIAM Rev. 45, 3-49, 2003. https://doi.org/10.1137/s00361445024180.Numberphile. "A Number to the Power of a Matrix." Dec. 12, 2024. https://www.youtube.com/watch?v=CHozRTwHInE.Scardino, F. "On a Positivity Conjecture of Fasi and Higham for Padé Approximants to the Matrix Exponential." 28 Oct 2026. https://arxiv.org/abs/2610.39051.Trott, M. "Ground-State of the Quartic Oscillator." §2.10 in The Mathematica GuideBook for Symbolics. New York: Springer-Verlag, 2006. https://doi.org/10.1007/0-387-28815-5. https://www.mathematicaguidebooks.org/.Vijay, A. and Metiu, H. "A Polynomial Expansion of the Quantum Propagator, the Green's Function, and the Spectral Density Operator." J. Chem. Phys. 116, 60-68, 2002. https://doi.org/10.1063/1.1425824.Vijay, A.; Wyatt, R. E.; and Billing, G. D. "Time Propagation and Spectral Filters in Quantum Dynamics: A Hermite Polynomial Perspective." J. Chem. Phys. 111, 10794-10805, 1999. https://doi.org/10.1063/1.480483.

Referenced on Wolfram|Alpha

Matrix Exponential

Cite this as:

Weisstein, Eric W., with contributions by Todd Rowland. "Matrix Exponential." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/MatrixExponential.html

Subject classifications