Matrix Exponential Calculator

Enter a 2 × 2 or 3 × 3 matrix to find its exponential.

Matrix A
Rows
2
Columns
2

Write rows separated by semicolons, like 1, 2; 3, 4.

Try

Result

You enterede(2102)e^{\begin{pmatrix} 2 & 1 \\ 0 & 2 \end{pmatrix}}

eA=(e2e20e2)\displaystyle e^{A} = \begin{pmatrix} e^{2} & e^{2} \\ 0 & e^{2} \end{pmatrix}

Eigenvalues

2, 2\displaystyle 2,\ 2

Decimal

(7.3890567.38905607.389056)\displaystyle \begin{pmatrix} 7.389056 & 7.389056 \\ 0 & 7.389056 \end{pmatrix}
Show the work
  1. The matrix exponential

    The exponential of a matrix is the same power series as for a number. It always converges; to sum it exactly, use the eigenvalues.

    Using eA=I+A+A22!+A33!+⋯e^{A} = I + A + \frac{A^2}{2!} + \frac{A^3}{3!} + \cdots

    A=(2102)A = \begin{pmatrix} 2 & 1 \\ 0 & 2 \end{pmatrix}
  2. Characteristic polynomial

    The eigenvalues are the roots of det(λI − A).

    det⁡(λI−A)=λ2−4λ+4\det(\lambda I - A) = \lambda^{2} - 4\lambda + 4
  3. Eigenvalues

    All rational, with a repeated one: the formula below still works, the repeated eigenvalue bringing in derivatives of e^λ.

    λ=2, 2\lambda = 2,\ 2
  4. Interpolate e^λ at the eigenvalues

    By the Cayley–Hamilton theorem every power of A is a combination of the first n, so e^A equals the polynomial that matches e^λ at the eigenvalues (and its derivatives at a repeated one). Its coefficients are the divided differences of e^λ.

    Using eA=c0I+c1(A−λ1I)+c2(A−λ1I)(A−λ2I)+⋯e^{A} = c_0 I + c_1 (A - \lambda_1 I) + c_2 (A - \lambda_1 I)(A - \lambda_2 I) + \cdots

    c0=e2c1=e2\begin{gathered} c_{0} = e^{2} \\ c_{1} = e^{2} \end{gathered}
  5. Result

    The matrix exponential, exactly.

    eA=(e2e20e2)e^{A} = \begin{pmatrix} e^{2} & e^{2} \\ 0 & e^{2} \end{pmatrix}

Worked examples