Products
  • Wolfram|One

    The definitive Wolfram Language and notebook experience

  • Mathematica

    The original technical computing environment

  • Notebook Assistant + LLM Kit

    All-in-one AI assistance for your Wolfram experience

  • Compute Services
  • System Modeler
  • Finance Platform
  • Wolfram|Alpha Notebook Edition
  • Application Server
  • Enterprise Private Cloud
  • Wolfram Engine
  • Wolfram Player
  • Wolfram Cloud App
  • Wolfram Player App

More mobile apps

Core Technologies of Wolfram Products

  • Wolfram Language
  • Computable Data
  • Wolfram Notebooks
  • AI & Linguistic Understanding

Deployment Options

  • Wolfram Cloud
  • wolframscript
  • Wolfram Engine Community Edition
  • Wolfram LLM API
  • WSTPServer
  • Wolfram|Alpha APIs

From the Community

  • Function Repository
  • Community Paclet Repository
  • Example Repository
  • Neural Net Repository
  • Prompt Repository
  • Wolfram Demonstrations
  • Data Repository
  • Group & Organizational Licensing
  • All Products
Consulting & Solutions

We deliver solutions for the AI era—combining symbolic computation, data-driven insights and deep technical expertise

  • Data & Computational Intelligence
  • Model-Based Design
  • Algorithm Development
  • Wolfram|Alpha for Business
  • Blockchain Technology
  • Education Technology
  • Quantum Computation

Wolfram Consulting

Wolfram Solutions

  • Data Science
  • Artificial Intelligence
  • Biosciences
  • Healthcare Intelligence
  • Sustainable Energy
  • Control Systems
  • Enterprise Wolfram|Alpha
  • Blockchain Labs

More Wolfram Solutions

Wolfram Solutions For Education

  • Research Universities
  • Colleges & Teaching Universities
  • Junior & Community Colleges
  • High Schools
  • Educational Technology
  • Computer-Based Math

More Solutions for Education

  • Contact Us
Learning & Support

Get Started

  • Wolfram Language Introduction
  • Fast Intro for Programmers
  • Fast Intro for Math Students
  • Wolfram Language Documentation

More Learning

  • Highlighted Core Areas
  • Demonstrations
  • YouTube
  • Daily Study Groups
  • Wolfram Schools and Programs
  • Books

Grow Your Skills

  • Wolfram U

    Courses in computing, science, life and more

  • Community

    Learn, solve problems and share ideas.

  • Blog

    News, views and insights from Wolfram

  • Resources for

    Software Developers

Tech Support

  • Contact Us
  • Support FAQs
  • Support FAQs
  • Contact Us
Company
  • About Wolfram
  • Career Center
  • All Sites & Resources
  • Connect & Follow
  • Contact Us

Work with Us

  • Student Ambassador Initiative
  • Wolfram for Startups
  • Student Opportunities
  • Jobs Using Wolfram Language

Educational Programs for Adults

  • Summer School
  • Winter School

Educational Programs for Youth

  • Middle School Camp
  • High School Research Program
  • Computational Adventures

Read

  • Stephen Wolfram's Writings
  • Wolfram Blog
  • Wolfram Tech | Books
  • Wolfram Media
  • Complex Systems

Educational Resources

  • Wolfram MathWorld
  • Wolfram in STEM/STEAM
  • Wolfram Challenges
  • Wolfram Problem Generator

Wolfram Initiatives

  • Wolfram Science
  • Wolfram Foundation
  • History of Mathematics Project

Events

  • Stephen Wolfram Livestreams
  • Online & In-Person Events
  • Contact Us
  • Connect & Follow
Wolfram|Alpha
  • Your Account
  • User Portal
  • Wolfram Cloud
  • Products
    • Wolfram|One
    • Mathematica
    • Notebook Assistant + LLM Kit
    • Compute Services
    • System Modeler
    • Finance Platform
    • Wolfram|Alpha Notebook Edition
    • Application Server
    • Enterprise Private Cloud
    • Wolfram Engine
    • Wolfram Player
    • Wolfram Cloud App
    • Wolfram Player App

    More mobile apps

    • Core Technologies
      • Wolfram Language
      • Computable Data
      • Wolfram Notebooks
      • AI & Linguistic Understanding
    • Deployment Options
      • Wolfram Cloud
      • wolframscript
      • Wolfram Engine Community Edition
      • Wolfram LLM API
      • WSTPServer
      • Wolfram|Alpha APIs
    • From the Community
      • Function Repository
      • Community Paclet Repository
      • Example Repository
      • Neural Net Repository
      • Prompt Repository
      • Wolfram Demonstrations
      • Data Repository
    • Group & Organizational Licensing
    • All Products
  • Consulting & Solutions

    We deliver solutions for the AI era—combining symbolic computation, data-driven insights and deep technical expertise

    WolframConsulting.com

    Wolfram Solutions

    • Data Science
    • Artificial Intelligence
    • Biosciences
    • Healthcare Intelligence
    • Sustainable Energy
    • Control Systems
    • Enterprise Wolfram|Alpha
    • Blockchain Labs

    More Wolfram Solutions

    Wolfram Solutions For Education

    • Research Universities
    • Colleges & Teaching Universities
    • Junior & Community Colleges
    • High Schools
    • Educational Technology
    • Computer-Based Math

    More Solutions for Education

    • Contact Us
  • Learning & Support

    Get Started

    • Wolfram Language Introduction
    • Fast Intro for Programmers
    • Fast Intro for Math Students
    • Wolfram Language Documentation

    Grow Your Skills

    • Wolfram U

      Courses in computing, science, life and more

    • Community

      Learn, solve problems and share ideas.

    • Blog

      News, views and insights from Wolfram

    • Resources for

      Software Developers
    • Tech Support
      • Contact Us
      • Support FAQs
    • More Learning
      • Highlighted Core Areas
      • Demonstrations
      • YouTube
      • Daily Study Groups
      • Wolfram Schools and Programs
      • Books
    • Support FAQs
    • Contact Us
  • Company
    • About Wolfram
    • Career Center
    • All Sites & Resources
    • Connect & Follow
    • Contact Us

    Work with Us

    • Student Ambassador Initiative
    • Wolfram for Startups
    • Student Opportunities
    • Jobs Using Wolfram Language

    Educational Programs for Adults

    • Summer School
    • Winter School

    Educational Programs for Youth

    • Middle School Camp
    • High School Research Program
    • Computational Adventures

    Read

    • Stephen Wolfram's Writings
    • Wolfram Blog
    • Wolfram Tech | Books
    • Wolfram Media
    • Complex Systems
    • Educational Resources
      • Wolfram MathWorld
      • Wolfram in STEM/STEAM
      • Wolfram Challenges
      • Wolfram Problem Generator
    • Wolfram Initiatives
      • Wolfram Science
      • Wolfram Foundation
      • History of Mathematics Project
    • Events
      • Stephen Wolfram Livestreams
      • Online & In-Person Events
    • Contact Us
    • Connect & Follow
  • Wolfram|Alpha
  • Wolfram Cloud
  • Your Account
  • User Portal
Wolfram Language & System Documentation Center
MatrixExp
  • See Also
    • MatrixPower
    • Dot
    • JordanDecomposition
    • QRDecomposition
    • MatrixLog
    • MatrixFunction
    • Exp
  • Related Guides
    • Matrix Operations
    • Matrix Decompositions
    • Matrices and Linear Algebra
    • Integer Functions
    • Symbolic Vectors, Matrices and Arrays
  • Tech Notes
    • Basic Matrix Operations
    • Implementation notes: Numerical and Related Functions
    • Implementation notes: Algebra and Calculus
    • See Also
      • MatrixPower
      • Dot
      • JordanDecomposition
      • QRDecomposition
      • MatrixLog
      • MatrixFunction
      • Exp
    • Related Guides
      • Matrix Operations
      • Matrix Decompositions
      • Matrices and Linear Algebra
      • Integer Functions
      • Symbolic Vectors, Matrices and Arrays
    • Tech Notes
      • Basic Matrix Operations
      • Implementation notes: Numerical and Related Functions
      • Implementation notes: Algebra and Calculus

MatrixExp[m]

gives the matrix exponential of m.

MatrixExp[m,v]

gives the matrix exponential of m applied to the vector v.

Details and Options
Details and Options Details and Options
Examples  
Basic Examples  
Scope  
Basic Uses  
Special Matrices  
Applications  
Properties & Relations  
Possible Issues  
Neat Examples  
See Also
Tech Notes
Related Guides
History
Cite this Page
BUILT-IN SYMBOL
  • See Also
    • MatrixPower
    • Dot
    • JordanDecomposition
    • QRDecomposition
    • MatrixLog
    • MatrixFunction
    • Exp
  • Related Guides
    • Matrix Operations
    • Matrix Decompositions
    • Matrices and Linear Algebra
    • Integer Functions
    • Symbolic Vectors, Matrices and Arrays
  • Tech Notes
    • Basic Matrix Operations
    • Implementation notes: Numerical and Related Functions
    • Implementation notes: Algebra and Calculus
    • See Also
      • MatrixPower
      • Dot
      • JordanDecomposition
      • QRDecomposition
      • MatrixLog
      • MatrixFunction
      • Exp
    • Related Guides
      • Matrix Operations
      • Matrix Decompositions
      • Matrices and Linear Algebra
      • Integer Functions
      • Symbolic Vectors, Matrices and Arrays
    • Tech Notes
      • Basic Matrix Operations
      • Implementation notes: Numerical and Related Functions
      • Implementation notes: Algebra and Calculus

MatrixExp

MatrixExp[m]

gives the matrix exponential of m.

MatrixExp[m,v]

gives the matrix exponential of m applied to the vector v.

Details and Options

  • MatrixExp[m] effectively evaluates the power series for the exponential function, with ordinary powers replaced by matrix powers. »
  • MatrixExp works only on square matrices.

Examples

open all close all

Basic Examples  (3)

Exponential of a 3×3 numerical matrix:

This is not simply the exponential of each entry in the matrix:

Exponential of a 2×2 symbolic matrix:

Exponential applied to a vector:

Scope  (12)

Basic Uses  (7)

Exponentiate a machine-precision matrix:

Exponentiate a complex matrix:

Compute the exponential of an exact matrix:

The exponential of an arbitrary-precision matrix:

Exponential of a symbolic matrix:

Computing the exponential of large machine-precision matrices is efficient:

Directly applying the exponential to a single vector is even more efficient:

The exponential of a CenteredInterval matrix:

Find a random representative mrep of m:

Verify that mexp contains the exponential of mrep:

Special Matrices  (5)

The exponential of an exact sparse matrix is typically returned as a normal matrix:

Format the result:

If the sparse matrix contains machine-precision elements, the result is typically sparse:

The two results are equal:

Directly apply the matrix exponential of a sparse matrix to a sparse vector:

Compute the exponential of a structured array:

Exponentiate IdentityMatrix:

More generally, the exponential of any diagonal matrix is the exponential of its diagonal elements:

Exponentiate HilbertMatrix:

Applications  (5)

Suppose a particle is moving in a planar force field and its position vector satisfies and , where and are as follows. Solve this initial problem for :

The solution to this differential equation is :

Verify the solution using DSolveValue:

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:

In quantum mechanics, the energy operator is called the Hamiltonian . Given the Hamiltonian for a spin-1 particle in constant magnetic field in the direction, find the state at time of a particle that is initially in the state representing :

The system evolves according to the Schrödinger equation :

Cross products with respect to fixed three-dimensional vectors can be represented by matrix multiplication, which is useful in studying rotational motion. Construct the antisymmetric matrix representing the linear operator , where is an angular velocity about the axis:

Verify that the action of is the same as doing a cross product with :

The rotation matrix at time is the matrix exponential of times the previous matrix:

Verify using RotationMatrix:

The point at time zero will be at time :

The velocity of will be given by :

And the vector from the axis of rotation to is (v(t)xomega)/(TemplateBox[{omega}, Norm]^2):

Visualize this motion and the associated vectors:

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:

Properties & Relations  (10)

MatrixExp effectively uses the power series for Exp, with Power replaced by MatrixPower:

Equivalently, MatrixExp is MatrixFunction applied to Exp:

The matrix exponential of a diagonal matrix is a diagonal matrix with the diagonal entries exponentiated:

If m is diagonalizable with , then exp(m)=TemplateBox[{v}, Inverse].exp(d).v:

MatrixExp[m] is always invertible, and the inverse is given by MatrixExp[-m]:

MatrixExp of a real, antisymmetric matrix is orthogonal:

MatrixExp of an antihermitian matrix is unitary:

MatrixExp of a Hermitian matrix is positive-definite:

MatrixExp satisfies :

The matrix exponential of a nilpotent matrix is a polynomial in the exponentiation parameter:

Confirm that is nilpotent ( for some ):

can be computed from the JordanDecomposition as s.exp(j).TemplateBox[{s}, Inverse]

Moreover, is zero except in upper triangular blocks delineated by s in the superdiagonal:

Possible Issues  (1)

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:

Neat Examples  (1)

See Also

MatrixPower  Dot  JordanDecomposition  QRDecomposition  MatrixLog  MatrixFunction  Exp

Tech Notes

    ▪
  • Basic Matrix Operations
  • ▪
  • Implementation notes: Numerical and Related Functions
  • ▪
  • Implementation notes: Algebra and Calculus

Related Guides

    ▪
  • Matrix Operations
  • ▪
  • Matrix Decompositions
  • ▪
  • Matrices and Linear Algebra
  • ▪
  • Integer Functions
  • ▪
  • Symbolic Vectors, Matrices and Arrays

History

Introduced in 1991 (2.0) | Updated in 2007 (6.0) ▪ 2014 (10.0) ▪ 2024 (14.0)

Wolfram Research (1991), MatrixExp, Wolfram Language function, https://reference.wolfram.com/language/ref/MatrixExp.html (updated 2024).

Text

Wolfram Research (1991), MatrixExp, Wolfram Language function, https://reference.wolfram.com/language/ref/MatrixExp.html (updated 2024).

CMS

Wolfram Language. 1991. "MatrixExp." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2024. https://reference.wolfram.com/language/ref/MatrixExp.html.

APA

Wolfram Language. (1991). MatrixExp. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/MatrixExp.html

BibTeX

@misc{reference.wolfram_2025_matrixexp, author="Wolfram Research", title="{MatrixExp}", year="2024", howpublished="\url{https://reference.wolfram.com/language/ref/MatrixExp.html}", note=[Accessed: 01-May-2026]}

BibLaTeX

@online{reference.wolfram_2025_matrixexp, organization={Wolfram Research}, title={MatrixExp}, year={2024}, url={https://reference.wolfram.com/language/ref/MatrixExp.html}, note=[Accessed: 01-May-2026]}

Top
Introduction for Programmers
Introductory Book
Wolfram Function Repository | Wolfram Data Repository | Wolfram Data Drop | Wolfram Language Products
Top
  • Products
  • Wolfram|One
  • Mathematica
  • Notebook Assistant + LLM Kit
  • Compute Services
  • System Modeler

  • Wolfram|Alpha Notebook Edition
  • Wolfram|Alpha Pro
  • Mobile Apps

  • Wolfram Engine
  • Wolfram Player

  • Volume & Site Licensing
  • Server Deployment Options
  • Consulting
  • Wolfram Consulting
  • Repositories
  • Data Repository
  • Function Repository
  • Community Paclet Repository
  • Neural Net Repository
  • Prompt Repository

  • Wolfram Language Example Repository
  • Notebook Archive
  • Wolfram GitHub
  • Learning
  • Wolfram U
  • Wolfram Language Documentation
  • Webinars & Training
  • Educational Programs

  • Wolfram Language Introduction
  • Fast Introduction for Programmers
  • Fast Introduction for Math Students
  • Books

  • Wolfram Community
  • Wolfram Blog
  • Public Resources
  • Wolfram|Alpha
  • Wolfram Problem Generator
  • Wolfram Challenges

  • Computer-Based Math
  • Computational Thinking
  • Computational Adventures

  • Demonstrations Project
  • Wolfram Data Drop
  • MathWorld
  • Wolfram Science
  • Wolfram Media Publishing
  • Customer Resources
  • Store
  • Product Downloads
  • User Portal
  • Your Account
  • Organization Access

  • Support FAQ
  • Contact Support
  • Company
  • About Wolfram
  • Careers
  • Contact
  • Events
Wolfram Community Wolfram Blog
Legal & Privacy Policy
WolframAlpha.com | WolframCloud.com
© 2026 Wolfram
© 2026 Wolfram | Legal & Privacy Policy |
English