From first principles
Identify what goes wrong when two exact substeps are composed
Suppose two linear processes act simultaneously, \(y'=(A+B)y\), with constant matrices and readily computed separate flows. The exact joint step is \(e^{h(A+B)}\). Advancing first with \(A\) and then with \(B\) gives \(e^{hB}e^{hA}\). Multiply their Taylor expansions through second order:
In the true joint exponential the mixed term is \((AB+BA)/2\). Subtract it, keeping the order of matrix multiplication:
Each separate step can be exact and the composition can still have an error. If \(AB=BA\) the linear flows commute and the composition is exact for all \(h\). In the general case a symmetric schedule places half of the first process on either side of a full step of the second:
Both mixed products now acquire the exact coefficient \(1/2\). Under smooth, stable propagation the resulting global error over a fixed interval is second order. Boundary conditions or an approximate internal subsolver can add other defects.
Derivation and applications
Measure the error created by splitting a source from a decay
Two individually exact updates need not produce the exact combined dynamics. Examine \(y'=s-\lambda y\) with constant source \(s\) and \(\lambda>0\). Both subproblems have explicit flows: source alone translates by \(sh\), and decay alone multiplies by \(e^{-\lambda h}\). The full equation instead admits a stationary state \(y_*=s/\lambda\). Subtracting this state and integrating homogeneous decay gives the exact update
If the source is applied first, its entire increment is damped for duration \(h\). If decay is applied first, its entire increment escapes damping. A symmetric source-half, decay-full, source-half sequence averages these placements:
The exact source increment is the integral of decay over all arrival times. The two one-sided approximations are rectangles and the symmetric one is a trapezoid. Expanding the source increments around \(h=0\) gives their local errors:
The opposite one-sided order has leading error of the opposite sign. With a fixed final time, repeated errors usually reduce the respective global orders by one. If \(\lambda=0\) or \(s=0\), all orders coincide exactly. A stationary state in each individual subproblem would be preserved by composition, whereas this full-system equilibrium arises from cancellation of two nonzero rates.
Worked example
Compare a single step at the exact equilibrium
Let \(s=2.00\) units/s, \(\lambda=2.00\) s⁻¹, \(h=0.500\) s and \(y_n=y_*=1.00\). Exact evolution remains at one. The two split orders give
The symmetric sequence gives
Symmetry reduces the drift markedly without eliminating it.
Second application
Predict the long-time state of the discrete map
Iterating the symmetric step eventually reaches its own fixed point \(y_h=(sh/2)(1+e^{-z})/(1-e^{-z})\). With the preceding data this is \(1.08198\), not the true value \(1.00\). Halving \(h\) gives
The excess falls by a factor close to four, consistent with a second-order bias in a long-running equilibrium calculation.
Two solvable subproblems
Suppose an evolution has the form \(u'=(A+B)u\), where the subproblems involving just \(A\) or just \(B\) have inexpensive exact flows. First applying \(A\) for one nominal step and then \(B\) gives \(e^{hB}e^{hA}u_n\). Each operator is advanced over the same physical interval. When \(A\) and \(B\) commute, their exponential product equals the exponential of the sum. For general matrices the missing interaction between simultaneous changes controls the error.
Expand the factors through \(h^2\). The mixed term of their product is \(h^2BA\); that of the exact exponential is \(h^2(AB+BA)/2\). The difference is \(h^2(BA-AB)/2\), the signed commutator term. Reversing the order reverses its sign. Composing a half step of \(A\), a full step of \(B\) and another half step of \(A\) instead balances both mixed terms. The local discrepancy is then order \(h^3\) for fixed bounded matrices, giving global second order over a fixed interval under stable propagation.
Work out two shears
Let \(u=(q,p)^T\), \(A(q,p)=(p,0)\) and \(B(q,p)=(0,-q)\), so the exact motion is a unit-frequency oscillator. Each separate flow is a shear. From \((1,0)\), a drift of length 0.2 followed by a kick produces \((1,-0.2)\). A kick followed by a drift produces \((0.96,-0.2)\). The exact result is \((\cos0.2,-\sin0.2)\approx(0.980067,-0.198669)\). The positions from the two first-order compositions bracket the exact one in this example. Their leading positional deviations are almost equal and opposite.
The symmetric drift–kick–drift composition first leaves the position at 1, changes the momentum to \(-0.2\), then drifts by \(-0.02\). Its final state is \((0.98,-0.2)\). The position error is about \(6.66\times10^{-5}\) while the momentum error is about \(1.33\times10^{-3}\). Halving the step in a one-step test scales the leading momentum discrepancy roughly by eight. When measuring at a fixed final time instead, the number of steps doubles and the expected asymptotic error reduction is approximately four.
What the substeps must share
Both subflows need compatible state variables and boundary data. If each independently applies an external source intended to appear once in \(A+B\), the combined model advances a different equation and cannot converge to the desired solution even with arbitrarily small steps. Conversely a source assigned to neither flow disappears. Check the combined first derivative of the composition at \(h=0\); it must reproduce the complete original right-hand side. This low-cost test catches modelling errors before comparing convergence slopes.
An exact limiting case for a code
Take two diagonal decay matrices with first-coordinate rates −1 and −3 and second-coordinate rates −2 and zero. Each separate flow rescales the coordinates. Their products commute, so starting from \((1,1)\) and integrating to \(t=0.5\) must give \((e^{-2},e^{-1})\) in either order. The equality holds for a single full step as well as any subdivision. This commuting case tests time scaling and state transfer without any expected splitting error. The shear example then tests the distinct question of whether the implementation achieves its intended order when a commutator is present.
Resolve the direction of a nonlinear splitting error
Consider logistic growth \(u'=au-bu^2\) with \(a,b>0\). The separate linear growth flow is \(G_h(u)=e^{ah}u\). The saturation flow solves \(u'=-bu^2\) and is \(D_h(u)=u/(1+bhu)\) for positive initial states. Each flow is exact, positivity preserving and inexpensive. But the saturation strength depends on the current population, which growth changes during a step. Therefore applying growth before saturation generally produces a different result from applying saturation before growth.
Write the two full-step maps explicitly. Growth then saturation yields \(e^{ah}u/[1+bh e^{ah}u]\); saturation then growth gives \(e^{ah}u/(1+bhu)\). For positive \(u,h\) and \(a\) the first denominator is larger and the final value smaller. The exact nonlinear flow has denominator \(1+(b/a)(e^{ah}-1)u\), obtained by solving the linear equation for \(1/u\). Since \(h<(e^{ah}-1)/a<h e^{ah}\), the two orderings bound the exact positive answer on opposite sides. This ordering result uses the particular signs and monotonicity of logistic growth; it is not a generic enclosure theorem for split systems.
Test a physical equilibrium that neither subflow preserves
Set \(a=b=1,\ u_0=1\). The complete model is exactly stationary because growth and saturation cancel. Choose \(h=\log2\), so an isolated growth step doubles the state. Growth followed by saturation gives \(2/(1+2\log2)\approx0.8381\). Saturation followed by growth gives \(2/(1+\log2)\approx1.1812\). Neither result is the stationary true value. Powering either map through many long intervals would move the solution toward a numerical equilibrium different from the physical one, although each individual substep is solved without approximation.
A symmetric growth–saturation–growth step gives
Symmetry has cancelled the leading ordering discrepancy without enforcing exact preservation of the steady state. To predict the long-run drift of the first ordering, solve its nonzero fixed-point equation \(u=2u/(1+2hu)\), giving \(u=1/(2h)\approx0.7213\). For the opposite ordering the numerical equilibrium is \(1/h\approx1.4427\). These values expose a persistent bias that a one-step comparison can understate.
A steady physical reference is particularly informative when a splitting method is used to integrate dynamics near a balance of large opposing processes. Compare the numerical equilibrium and the relaxation rate toward it. An implementation can improve its order by a symmetric composition while still requiring much finer steps, or a different assignment of source terms, to maintain the equilibrium accuracy a physical application demands.
A refinement study can use the exact nonzero fixed point formulas to separate local error from accumulated drift. For arbitrary positive \(h\), the growth-first numerical fixed point is \((1-e^{-h})/h=1-h/2+O(h^2)\), while the saturation-first fixed point is
Thus their steady-state biases have opposite signs and are first order even though the individual one-step defects from the physical equilibrium start at second order. An empirical comparison based on the first step and another measured after equilibration should not be expected to return the same power of the step size.
The two steady-state formulas also converge toward the same physical value as the step tends to zero.
Measure order lost by composing two exact subflows
For the unit harmonic oscillator split the velocity and acceleration updates into exact shears. Start from position one and momentum zero. Compose a full shear in each coordinate, or sandwich the momentum update between two half position updates.

Read values from the plot
| Substeps per time unit | Lie splitting | Symmetric Strang splitting |
|---|---|---|
| 2 | 0.21236 | 0.03473 |
| 8 | 0.052206 | 0.0020751 |
| 16 | 0.026179 | 0.00051765 |
| 32 | 0.013116 | 0.00012934 |
| 128 | 0.0032849 | 8.0825e−6 |
Change parameters · Measure order lost by composing two exact subflows
Change one input at a time and compare the recalculated curves with the argument above. The browser evaluates this small model locally; the accompanying numerical values state its assumptions and reference checks. Reset restores the reference inputs, and the data can be downloaded as CSV.