This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

MatrixExp

MatrixExp[m]
gives the matrix exponential of m.
MatrixExp
gives the matrix exponential of m applied to the vector v.
  • MatrixExp[m] effectively evaluates the power series for the exponential function, with ordinary powers replaced by matrix powers.
Exponential of a 2×2 matrix:
Exponential applied to a vector:
Exponential of a 2×2 matrix:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
 
Exponential applied to a vector:
In[1]:=
Click for copyable input
Out[1]=
Use exact arithmetic to compute the matrix exponential:
Use machine arithmetic:
Use 24-digit precision arithmetic:
Find the matrix exponential of a complex matrix:
The exponential of a symbolic matrix:
Exponential of a sparse 100×100 matrix:
A system of first-order linear differential equations:
Write the system in the form with :
The matrix exponential gives the basis for the general solution:
The matrix exponential applied to a vector gives a particular solution:
The matrix s approximates the second derivative periodic on on the grid x:
A vector representing a soliton on the grid x:
Propagate the solution of using a splitting :
Plot the solution and 10 times the error from the solution of the cubic Schrödinger equation:
The matrix exponential of a diagonal matrix is diagonal:
The matrix exponential of a nilpotent matrix is a polynomial matrix:
MatrixExp[m] is always invertible, and the inverse is given by MatrixExp:
If m is diagonalizable with then :
For a large sparse matrix, computing the matrix exponential may take a long time:
Computing the application of it to a vector uses less memory and is much faster:
The results are essentially the same:
New in 2 | Last modified in 6