Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Mathematics and Algorithms > Matrices and Linear Algebra > Matrix Operations > MatrixExp >
Mathematica > Mathematics and Algorithms > Graphs & Networks > Graph Programming > Matrices and Linear Algebra > Matrix Operations > MatrixExp >
Mathematica > Visualization and Graphics > Graphs & Networks > Graph Programming > Matrices and Linear Algebra > Matrix Operations > MatrixExp >

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
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF