On this page
You cannot raise e to the power of a grid of numbers in the usual sense. You can, though, put a square matrix into the series for e^x, and that is the whole definition.
What is the exponential of a matrix?
For a square matrix A, the exponential is e^A = I + A + A²/2! + A³/3! + …, where I is the identity matrix and every term is a matrix of the same size. Wikipedia's article on the matrix exponential gives this definition and notes that the series always converges, so e^A exists for every square matrix.
Two things trip students up: you cannot exponentiate entry by entry, except for diagonal matrices, and e^(A+B) is not always e^A e^B.
How do you compute e^A for diagonal, nilpotent and rotation matrices?
Three families make the series short; the article covers each.
Diagonal: exponentiate the diagonal
Powers of a diagonal matrix raise each diagonal entry to that power, so the series works one entry at a time. If D has diagonal entries ln 2 and ln 5, then e^D has diagonal entries 2 and 5, with zeros elsewhere. If A = PDP⁻¹, then e^A = P e^D P⁻¹, the same trick used for finding large powers of a matrix by diagonalisation.
Nilpotent: the series stops
A matrix N is nilpotent if some power of it is the zero matrix. Take N with rows (0, 1) and (0, 0). Then N² = 0, every later term vanishes, and e^(tN) = I + tN, the matrix with rows (1, t) and (0, 1).
Rotation: cos and sin appear
Let J have rows (0, −1) and (1, 0). Then J² = −I, so the powers cycle I, J, −I, −J. Group the even and odd terms:
e^(θJ) = (1 − θ²/2! + θ⁴/4! − …) I + (θ − θ³/3! + …) J = cos θ · I + sin θ · J.
That is the matrix with rows (cos θ, −sin θ) and (sin θ, cos θ), a rotation by θ. It is the matrix twin of e^(iθ) = cos θ + i sin θ, with J playing the part of i.
Why does e^(tA) solve x′ = Ax?
A system such as x₁′ = 3x₁ + x₂, x₂′ = 3x₂ can be written x′ = Ax. For one equation, x′ = ax has solution x = e^(at)x(0).
Differentiate the series term by term: the derivative of t^k A^k / k! is t^(k−1) A^k / (k−1)!, so d/dt e^(tA) = A e^(tA). Multiply by a starting vector x(0): x(t) = e^(tA) x(0) satisfies x′ = Ax, and at t = 0 it gives back x(0). The matrix exponential article states this solution formula for linear systems.
Worked example. Take A with rows (3, 1) and (0, 3). Write A = 3I + N, with N the nilpotent matrix from earlier. The identity commutes with everything, so e^(tA) = e^(3t)(I + tN): e^(3t) times the matrix with rows (1, t) and (0, 1). Start from x(0) = (0, 1):
x(t) = e^(3t)(t, 1), so x₁ = t e^(3t) and x₂ = e^(3t).
Check x₂′ = 3e^(3t) = 3x₂.
Check x₁′ = e^(3t) + 3t e^(3t) = 3x₁ + x₂.
The extra t is the repeated-root term you meet when you solve second-order linear differential equations, and the 3 is A's repeated eigenvalue; the eigenvalues of a 2×2 matrix set the growth rates in general.
Is e^(A+B) equal to e^A e^B?
Not in general. The matrix exponential article states that the identity holds when AB = BA and typically fails when the matrices do not commute.
Let A have rows (0, 1), (0, 0) and B have rows (0, 0), (1, 0). Both are nilpotent, so e^A has rows (1, 1), (0, 1) and e^B has rows (1, 0), (1, 1). Their product e^A e^B has rows (2, 1), (1, 1).
But A + B has rows (0, 1), (1, 0), whose square is I, so the series splits into cosh and sinh: e^(A+B) has rows (cosh 1, sinh 1), (sinh 1, cosh 1), roughly (1.543, 1.175), (1.175, 1.543). A different matrix, because AB has rows (1, 0), (0, 0) but BA has rows (0, 0), (0, 1).
Computing e^A numerically is harder. Cleve Moler and Charles Van Loan's SIAM Review paper Nineteen dubious ways to compute the exponential of a matrix, twenty-five years later compares methods and concludes that some are preferable to others "but that none are completely satisfactory".
How should you practise it?
Compute e^(tA) by hand for one diagonal, one nilpotent and one rotation 2×2 matrix, then differentiate your answer and check that you get A e^(tA). If the series feels shaky, the Fermi Concept Library has a lesson for each concept in mathematics, including power series and eigenvalues. When a step goes wrong, the Fermi Problem Library has a step-by-step solver that explains the reasoning rather than printing an answer.



