Level 0: Foundation
★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.From “how fast it changes” to “where it ends up”
If your savings grow by a fixed percentage, the money follows an exponential curve. Knowing the growth rate tells you the amount at any future time.
Now imagine many things changing together. A spinning satellite’s orientation changes depending on how it’s already turned, and a robot arm’s position and speed affect each other. The matrix exponential does the same job for all of them at once: it turns a table of rates into a map that says where everything will be after time .
Every flight computer that predicts where a spacecraft will be a second from now, and every robot that turns a spin rate into a new orientation, is using a matrix exponential, or an approximation of one.
- 1. Money doubles every year. After 3 years it has grown by…
- 2. Something halves every second. After 2 seconds, what fraction is left?
- 3. In the demo, the 'stable spiral' paths…
Level 1: Beginner
★★☆☆☆ Basic⏱ 15 minSecondary-school mathematics: arithmetic and elementary algebra.The exponential series
For numbers, . Since we can multiply and add matrices, the same recipe works for them:
- Diagonal matrices are easy: .
- Why we care: the solution of is . The solution of is
The matrix square root
A square root of is any with . For a positive semidefinite , there’s exactly one PSD root. For a diagonal matrix, take the square root of each entry: .
- 1. e^(diag(0, ln 2)) has bottom-right entry…
- 2. e^O (the zero matrix) = ?
- 3. √diag(9, 4) = ?
Level 2: Intermediate
★★★☆☆ Intermediate⏱ 45 minUndergraduate students and practising engineers.Functions of a diagonalizable matrix
If , then . Every power series therefore passes through:
For symmetric , this gives , (when ), , and so on. The eigenvalues of are .
Properties of the exponential
| Property | Why it matters |
|---|---|
| solves | |
| volume growth rate = trace (divergence) | |
| is always invertible | |
| only if | the order of rotations matters |
| stability of linear systems and controllers | |
| orthogonal | rotation rates → rotations |
Rotation example. For , . The series splits into cos and sin: .
The square root in data science
- Whitening: has identity covariance. Whitening is used in ICA, Mahalanobis distance and preconditioning.
- Sampling: if , then . The Cholesky factor (A2.3-4) is another valid “square root” ().
- Optimal transport between Gaussians: the Wasserstein distance and the Fréchet Inception Distance (FID) use .
- 1. det(e^A) when tr A = 2?
- 2. ẋ = [[−1, 5], [0, −2]]x is…
- 3. e^(A+B) = e^A e^B is guaranteed when…
Level 3: Advanced
★★★★☆ Advanced⏱ 45 minGraduate level, with full derivations and proofs.Convergence and the derivative
The series always converges: , so it is dominated by . Differentiating term by term gives
Since , the function solves with . By uniqueness of ODE solutions, it is the solution.
Non-diagonalizable matrices
For the Jordan block with , we have . Also and commute, so
The factor creates the transient growth of defective (critically damped) systems. In general, by Cayley–Hamilton every equals a polynomial in of degree . That is the basis of Sylvester’s formula and of the Cauchy-integral definition .
The principal square root
Every symmetric PSD has a unique symmetric PSD square root .
Proof sketch of uniqueness. If is PSD with , then commutes with , so it preserves each eigenspace of . On the eigenspace for , is PSD with , which forces there. ∎ General matrices may have many square roots, or none at all ( above has none). For large matrices, use the Newton or Denman–Beavers iteration.
Exercise 3.1: Why is det e^A = e^(tr A)?
The eigenvalues of are (this holds for triangularizable, i.e. all, complex matrices). So .
- 1. e^(tN) with N = [[0, 1], [0, 0]] and t = 3 has top-right entry…
- 2. For 3×3 A, f(A) equals a polynomial in A of degree at most…
- 3. ‖A‖ = 2. A bound on ‖e^A‖?
Level 4: Expert
★★★★★ Expert⏱ 40 minResearchers: original papers and open problems.Computing the exponential: “nineteen dubious ways”
Moler and Van Loan (1978, revisited 2003) catalogued many methods and showed that most fail somewhere. The naive Taylor series can be ruined by cancellation. The stable 2×2 matrix with eigenvalues −2 and −34 below produces terms near , which cancel down to an answer of order 1. The standard algorithm (Higham, 2005; used by scipy.linalg.expm and MATLAB) is scaling and squaring with a Padé approximant:
The exponential in robotics, control and ML
- Lie groups. Rotations form the group SO(3), and rigid motions form SE(3). Their “rates” are skew matrices and twists, and maps rates to motions. Rodrigues’ formula is the closed form. Robot kinematics in the product-of-exponentials form, (Brockett, 1984; Lynch and Park, 2017), is standard in modern robotics. On-manifold IMU preintegration for visual-inertial odometry also relies on these maps (Forster et al., 2017).
- Exact discretization. Continuous dynamics sampled every with a zero-order hold become . This is how digital controllers and Kalman filters handle physical models.
- State-space sequence models. S4 and Mamba discretize a continuous linear system with (Gu et al., 2022; Gu and Dao, 2023). Neural ODEs integrate learned dynamics (Chen et al., 2018).
- Quantum and Markov dynamics. evolves quantum states. gives the transition probabilities of continuous-time Markov chains.
References
- C. Moler, C. Van Loan (2003). “Nineteen dubious ways to compute the exponential of a matrix, twenty-five years later.” SIAM Review, 45(1).
- N. Higham (2005). “The scaling and squaring method for the matrix exponential revisited.” SIAM J. Matrix Anal. Appl., 26(4).
- N. Higham (2008). Functions of Matrices: Theory and Computation. SIAM.
- R. Brockett (1984). “Robotic manipulators and the product of exponentials formula.” Mathematical Theory of Networks and Systems.
- K. Lynch, F. Park (2017). Modern Robotics: Mechanics, Planning, and Control. Cambridge University Press. Chapters 3–4.
- C. Forster, L. Carlone, F. Dellaert, D. Scaramuzza (2017). “On-manifold preintegration for real-time visual-inertial odometry.” IEEE Transactions on Robotics, 33(1).
- R. T. Q. Chen, Y. Rubanova, J. Bettencourt, D. Duvenaud (2018). “Neural ordinary differential equations.” NeurIPS.
- A. Gu, K. Goel, C. Ré (2022). “Efficiently modeling long sequences with structured state spaces.” ICLR.