TL;DR
Dynamic mode decomposition, or DMD, watches a system through a list of snapshots, one measurement per time step, and asks for the simplest linear rule that carries each snapshot to the next. That rule is a matrix. Its eigenvectors give spatial patterns, called modes, and its eigenvalues give how each pattern grows or decays and how fast it oscillates.
It works even when the system is not linear, provided its behaviour is close to linear around the regime you measured. The method needs no equations of motion, only data.
Where you'll see it: in the wake behind a cylinder or an aircraft wing, where it isolates the shedding frequency and its decay, in power-grid monitoring from sensor logs, and in video analysis, where it separates a static background from a moving foreground.
Intuition
Watching a system through snapshots
Imagine a pond with ripples. You photograph the surface every hundredth of a second and store each photo as a long column of brightness values. You now have a sequence of columns, one per time step, and you want to know what the ripples are doing. Are they travelling, fading, or repeating?
If the ripples follow a simple rule (a linear dynamical system), each photo is a fixed matrix times the previous photo. The matrix is too big to write down for a real pond, since it has one row for every pixel. DMD gets around this. It finds the rule restricted to the few patterns that actually carry the motion, and those patterns, the modes, are what you want to see.
Why the rule has eigenvalues
The matrix that carries one snapshot to the next has eigenvectors and eigenvalues, as described in eigenvalues and eigenvectors. An eigenvector is a pattern the rule only scales. If the scale is , then after steps the pattern is multiplied by . A scale below 1 in size means the pattern dies out, a scale above 1 means it grows, and a complex scale means it rotates. So the eigenvalues carry the whole story of growth and oscillation, and DMD's job is to estimate them from data.
When the system is nonlinear, no single matrix is exact, but a matrix can still fit the snapshots well near the regime you measured. That best-fit matrix is what DMD estimates.
The math
Setup
Record snapshots in , where is the number of measured values, such as pixels or sensors. Stack the first snapshots and the last snapshots into two matrices:
Each column of is the next time step of the matching column of . If the system is linear, there is a single matrix , of size , with .
The best fit
The least-squares estimate of minimises the squared error , where is the Frobenius norm, the square root of the sum of squared entries. The solution is , where is the pseudoinverse, the generalisation of the matrix inverse to non-square matrices. Computing this directly is impossible when is in the millions, because would have trillions of entries.
Reduce with the SVD
DMD reduces the problem first. Take the singular value decomposition of and keep the largest singular values:
where holds the leading spatial patterns, is a diagonal matrix of singular values, and is the conjugate transpose of the right singular vectors. The superscript means conjugate transpose, and for real data it is just transpose. Now project the unknown onto the span of :
The right-hand side uses only data that we have. is only , so it is cheap to handle.
Eigen-decomposition
Solve the small eigenproblem . The diagonal entries of are the DMD eigenvalues. The exact DMD modes are
and the columns of are the modes. These are the eigenvectors of itself, recovered in the full space. The eigenvalues of are the eigenvalues of restricted to the captured subspace.
Reconstruction
Write the first snapshot in the mode basis, , and solve for the amplitudes . Then the whole sequence is
Each mode is a fixed pattern with amplitude , multiplied each step by its own . This is the main output: a few patterns, each with an interpretable rate.
Reading growth and frequency
If the snapshots are taken every seconds, convert each eigenvalue to a continuous-time pair. Write . Then is the growth rate per second (negative for decay), and is the angular frequency in radians per second. The frequency in hertz is . Here is the natural logarithm, and is the angle of a complex number.
- |λ| = 0.985 per step
- neutral
Worked examples
Let the true rule be , and start from . Generate three snapshots.
- .
- .
- Stack them: and .
- Here is square and invertible with determinant , so .
- Compute . The first row is . The second row is .
- So DMD recovers exactly, and its eigenvalues are and , with eigenvectors and .
Interpretation: one pattern shrinks by half each step and the other doubles. Because the data was noise-free and the system had two states, DMD recovered the rule with no error.
Take the rule , which rotates and shrinks each state.
- The eigenvalues satisfy . The trace is and the determinant is .
- So , a complex pair.
- The size of each eigenvalue is . The pattern loses about 1.5 percent of its size each step.
- The angle is radians per step.
- DMD on enough noise-free snapshots from this system returns the same complex pair, and the modes come out as a conjugate pair of complex patterns.
- After 10 steps the amplitude is of its start.
Interpretation: DMD does not just find that something decays. It finds a rotating pattern, its rate of decay and its angular speed per step, all from the data alone.
Suppose a sensor on a vibrating structure is sampled every seconds, and DMD returns one eigenvalue . These numbers are chosen for illustration, not taken from a real measurement.
- Growth rate: per second. The mode decays slowly.
- Angular frequency: radians per second.
- Frequency in hertz: Hz.
- Read the mode's spatial shape from its eigenvector . Its large entries show where on the structure the 10 Hz motion is strongest.
Interpretation: a single complex eigenvalue has told us the structure rings near 10 Hz, fading about 18 percent per second (since ), and where it rings most. This is the kind of summary engineers use to decide whether a vibration is a danger.
Tradeoffs and failure modes
| Situation | What goes wrong | Better choice |
|---|---|---|
| System is strongly nonlinear | One matrix cannot describe the motion across regimes | Use a nonlinear lift, or DMD on a shorter window |
| Snapshots are too few or too close | The fit is poorly conditioned and modes are unstable | Collect more snapshots spread over time |
| Noise is large | Eigenvalues are biased toward or away from the unit circle | Use optimised or total least-squares DMD (variants that account for noise in both and ) |
| Many modes, each with little energy | Truncation discards real dynamics | Keep more modes, or check the singular value spectrum |
| Transients dominate | The mode set describes the transient, not the steady state | Discard early snapshots, or add a forcing term |
The main failure is treating the output as more reliable than the data. DMD returns a rule for whatever you fed it, including noise and sampling artefacts. Always check the singular values, look at whether the eigenvalues cluster near the unit circle (which suggests sustained oscillation), and test the reconstruction on snapshots that were not used in the fit.
Alternatives include proper orthogonal decomposition (POD, essentially PCA applied to snapshots), which ranks modes by energy but does not model their time evolution, and regression-based identification of a full model. DMD sits between them: it gives the time behaviour of the patterns without requiring the full equations.
History
Peter Schmid introduced DMD for fluid dynamics in the late 2000s. His 2010 paper in the Journal of Fluid Mechanics showed that the modes of a flow, such as the shedding behind a cylinder, could be extracted from experimental and numerical snapshots. The method was linked to earlier ideas that Clarence Rowley and colleagues used for model reduction of flows.
The deeper roots lie in the 1931 work of Bernard Koopman, who showed that a nonlinear system can be studied through a linear operator acting on functions of its state. That idea, now called the Koopman operator, explains why a linear rule on measurements can describe a nonlinear system. DMD became popular because it was simple to compute from data, and it spread quickly to video analysis, neuroscience and power systems in the following decade.
Recap
DMD takes a sequence of snapshots, fits the best linear rule that moves each one to the next, and reduces that rule with the SVD. The eigen-decomposition of the reduced rule gives modes, each with an eigenvalue that encodes growth and frequency. The result is a short list of patterns and rates that summarise the system. From here, the natural extension is the Koopman operator, which gives the theory for why a linear fit can capture nonlinear motion.
Check yourself
QuestionFor the rule A equal to diag(0.5, 2) in Example 1, what is the DMD eigenvalue for the pattern that doubles each step, and what does it mean for the amplitude after three steps?Show answer
The eigenvalue is 2. After three steps that pattern's amplitude is multiplied by , so an initial amplitude of 1 becomes 8. The mode grows eightfold over three steps, which is why it would dominate any long-term reconstruction.
QuestionA DMD eigenvalue has modulus 0.95 and sampling interval 0.1 seconds. Is the mode growing or decaying, and by how much per second?Show answer
The modulus is below 1, so the mode decays. The growth rate is per second. Each second the amplitude is multiplied by about , so it loses roughly 40 percent per second.
QuestionWhy does DMD project the unknown matrix onto the SVD basis instead of solving for the full matrix directly?Show answer
The full matrix has entries, and can be in the millions for a flow or image, which makes it impossible to store or invert. Projecting onto the leading singular vectors gives an matrix that captures the dominant dynamics, and it can be computed from the data without ever forming the full matrix.
QuestionExplain why a complex eigenvalue appears as a conjugate pair in real data and what that pair represents.Show answer
A real rule has real entries, so its complex eigenvalues come in conjugate pairs. The pair describes one real oscillating pattern. The two eigenvalues are and its conjugate, and together they produce a real pattern that grows or decays at rate and oscillates at frequency . Reading only one of them gives the same information.
QuestionA sensor trace gives eigenvalue 1.0 exactly. What does this suggest about the mode?Show answer
An eigenvalue of exactly 1 has modulus 1 and angle 0, so the pattern keeps the same amplitude and does not oscillate: it is a steady, constant pattern. (A complex eigenvalue with modulus 1 and nonzero angle would be a sustained oscillation.) Eigenvalues on or near the unit circle therefore mark persistent behaviour in the data.
Sources
- Schmid, P. J., "Dynamic mode decomposition of numerical and experimental data," Journal of Fluid Mechanics, 2010. https://doi.org/10.1017/S0022112010001217
- Kutz, J. N., Brunton, S. L., Brunton, B. W., Proctor, J. L., Dynamic Mode Decomposition, SIAM, 2016. https://epubs.siam.org/doi/book/10.1137/1.9781611974508
- Singular value decomposition (Wikipedia): https://en.wikipedia.org/wiki/Singular_value_decomposition