Matrix Exponential Calculator

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

Matrix A
Rows
3
Columns
3

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

Try

Result

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

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

Eigenvalues

1, 1, 1\displaystyle 1,\ 1,\ 1

Decimal

(2.7182822.7182821.35914102.7182822.718282002.718282)\displaystyle \begin{pmatrix} 2.718282 & 2.718282 & 1.359141 \\ 0 & 2.718282 & 2.718282 \\ 0 & 0 & 2.718282 \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=(110011001)A = \begin{pmatrix} 1 & 1 & 0 \\ 0 & 1 & 1 \\ 0 & 0 & 1 \end{pmatrix}
  2. Characteristic polynomial

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

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

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

    λ=1, 1, 1\lambda = 1,\ 1,\ 1
  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=ec1=ec2=12e\begin{gathered} c_{0} = e \\ c_{1} = e \\ c_{2} = \frac{1}{2}e \end{gathered}
  5. Result

    The matrix exponential, exactly.

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

Worked examples