In many applications, one needs to learn a dynamical system from its solutions sampled at a finite number of time points. The learning problem is often formulated as an optimization problem over a chosen function class. However, in the optimization procedure, prediction data from generic dynamics requires a numerical integrator to assess the mismatch with the observed data. This paper reveals potentially serious effects of a chosen numerical scheme on the learning outcome. Specifically, the analysis demonstrates that a damped oscillatory system may be incorrectly identified as having "anti-damping" and exhibiting a reversed oscillation direction, even though it adequately fits the given data points. This paper shows that the stability region of the selected integrator will distort the nature of the learned dynamics. Crucially, reducing the step size or raising the order of an explicit integrator does not, in general, remedy this artifact, because higher-order explicit methods have stability regions that extend further into the right half complex plane. Furthermore, it is shown that the implicit midpoint method can preserve either conservative or dissipative properties from discrete data, offering a principled integrator choice even when the only prior knowledge is that the system is autonomous.
Figures & tables
Figure 1: The gray curve shows the angle profile of the underlying damped pendulum dynamics. The red dots along the curve represent the sampled data, while the black dots depict the fitted data obtained using the fourth-order Runge–Kutta method with a time step size of h . The green line shows the high-resolution solution for the learned dynamics’ trajectory. RK4 is chosen here deliberately: its stability region extends into the right half complex plane, which is precisely what permits the learned dynamics to acquire a positive real part and appear expansive even though the sampled data are fitted well. This mechanism is analyzed in Section 2 .
Explicit Runge–Kutta ( k=1,2,3,4 )
Implicit Euler
Implicit Midpoint
p(ξ)=j=0∑kj!ξj
p(ξ)=1−ξ1
p(ξ)=1−21ξ1+21ξ
Table 1: Stability functions p(ξ) for representative one-step schemes: a polynomial for the explicit Runge–Kutta family and a rational function for the implicit schemes shown here. The common symbol p is retained throughout for consistency with later sections.
Figure 2: Profiles of the learned quantity λ^h using the Explicit Euler, Implicit Euler, RK4, and implicit midpoint rules as h varying from 0 to 0.2. The true λ=−1+4πi is set. Red curves show how λ^h moves within each method’s stability region; arrows point toward the limit as h→0 .
Figure 3: Convergence of the learned dynamic λ^(h) to the ground truth λ=−1+4πi (solid triangle) as the step size h decreases from 0.2 to 0 for four time-integration schemes: (a) Explicit Euler, (b) RK4, (c) Implicit Euler, and (d) implicit midpoint. The red curve traces the trajectory of λ^(h) in the complex plane, and the arrows indicate the direction of decreasing h .
y′=λy
Re(λ)=0
Re(λ)<0
Explicit Euler
Re(λ^)<0
Re(λ^)<0
RK2
Re(λ^)<0
Re(λ^)<0
RK3
Re(λ^)>0 (for 0<h≪1 )
Cond. Dissipative
Implicit Euler
Re(λ^)>0
Cond. Dissipative
Implicit Midpoint
Re(λ^)=0
Re(λ^)<0
Table 2: The difference between dynamics λ^ learned from different numerical methods, while the true dynamics λ are either conservative Re(λ)=0 or dissipative Re(λ)<0 . The implicit midpoint rule effectively preserves the structural trends of the true dynamics across different methods.
Method/Data type
Data with damping ( a<0 )
Purely oscillatory data ( a=0 )
Explicit Euler
Im(λ^h)=easinθ lagging phase
Im(λ^h)=sinθ small ∣θ∣⇒ small phase error
Implicit Euler
Im(λ^h)=e−asinθ leading phase
Im(λ^h)=sinθ small ∣θ∣⇒ small phase error
Impl. Midpoint
Im(λ^h)=∣eλh+1∣24easinθ lagging phase
Im(λ^h)=∣eλh+1∣24sinθ≈θ small ∣θ∣⇒ small phase error
Table 3: Sign of Im(λ^h) for one-step methods, inferred from data eλh=ea+iθ .
M
Learned eigenvalue λ^
∣p(λ^h)∣
Reference (no noise)
λ^=−0.0000+1.0008i
∣z∣=1.00000
M=1
λ^=−0.0009+1.0018i
∣z∣=0.99990
M=5
λ^=−0.0001+1.0010i
∣z∣=1.00001
M=100
λ^=−0.0000+1.0009i
∣z∣=1.00000
Table 4: Effect of M on eigenvalue estimation for x˙=ix , identified via the implicit midpoint rule ( h=0.1 , σ=0.1 ).
Figure 4: Learning quality under additive noise ( σ=0.1 , h=0.1 ). The horizontal and vertical axes are the real and imaginary parts of the state; the true solution is the unit circle (dashed). Dots are noise-corrupted observations. The right two panels correspond to M=100 initial points used for identification; for visual clarity, 5 trajectories are randomly selected from the pool and displayed in distinct colors. With M=1 the predicted trajectory drifts away from the unit circle; with M=100 it remains on it.
AB2
AM2
BDF2
Leap-Frog
3ζ−12ζ2−2ζ
5ζ2+8ζ−112ζ2−12ζ
2ζ23ζ2−4ζ+1
2ζζ2−1
Table 5: Explicit formula of the learned parameter λ^h for two-step methods.
Method
Stable/unstable roots coexist
Repeated roots
( ∣ζ1∣≥1 and ∣ζ2∣≤1 )
( ζ1=ζ2 )
AB2
Dark Gray region in Figure 5(a)
if λh=9−2±42i , ∣ζ1,2∣<1
AM2
Dark Gray region in Figure 5(b)
if λh=7−6±43i , ∣ζ1,2∣>1
BDF2
Dark Gray region in Figure 5(c)
if λh=−21 , ∣ζ1,2∣<1
Leap-Frog
always, since ζ1ζ2=−1
if λh=±i , ∣ζ1,2∣=1
Table 6: Stable and unstable roots of the characteristic polynomials of two-step methods.
Method
Data with damping ( a<0 )
Pure oscillatory data ( a=0 )
AB2
Gray region in Figure 6(a)
Re(λ^h)<0 for all ζ∈S1
AM2
Gray region in Figure 6(b)
Re(λ^h)<0 for all ζ∈S1
BDF2
Gray region in Figure 6(c)
Re(λ^h)>0 for all ζ∈S1
Leap-Frog
Re(λ^h)>0 if cos(θ)<0
Re(λ^h)=0 for all ζ∈S1
Im(λ^h)=cosh(a)sinθ
small ∣θ∣⟹ small phase error
Table 7: Sign of Re(λ^h) for two-step methods, inferred from root ζ=ea+iθ .
Figure 5: The dark gray region in each panel marks the region RP . The regions in light gray are the region of absolute stability RA of each integrator, which is enclosed by the red curve.
Figure 6: The dark gray region in each panel marks the set of complex numbers z=a+iθ where Re(λ^h)=Re(ρ(ez)/κ(ez))>0 .
Figure 7: λ^h versus the region of absolute stability. The gray region in each plot indicates the stability region of the selected method, while the red curve depicts the learning result, λ^h=ρ(eλh)/κ(eλh) for h∈(0,π/4) , where λ=−4+2i .
Figure 8: λ^≡λ^(h)=h−1ρ(eλh)/κ(eλh) for h∈(0,π/4) . The actual value, λ=−4+2i , is indicated by a triangle in each plot. The arrows on selected curves show the trend of λ^ as h→0 for the respective methods. The blue curves represent the ABk or AMk methods for k=2 , the green curves for k=3 , and the red curves for k=4 . The right plot corresponds to the Leap-Frog scheme.
N
c1
c2
∣ζ1∣
∣ζ2∣
10
−6.0912×10−3
1.0007
1.1602
0.8619
20
−1.6658×10−3
0.9962
1.1602
0.8732
50
−7.8910×10−6
0.9946
1.1602
0.8732
Table 8: Estimated coefficients c1 and c2 for different sample sizes N .
Figure 9: The x -axis represents the physical time. The blue curves represent the observed data. On the left, the red curves depict the numerical solution of the differential equation z′=λ^z(t) obtained using the Leap-Frog scheme with step size h=0.1 up to time t=10 . On the right, the plots display the evolution of ζ1n .
Method
h
k=1
k=10
a^
ϵ^
a^
ϵ^
Explicit Euler
10−2
1.9869
0.0299
1.0281
0.0199
10−3
1.9992
0.0120
1.9181
0.0117
Implicit Euler
10−2
2.0026
-0.0100
2.2552
-0.0133
10−3
2.0007
0.0080
2.0748
0.0081
Implicit Midpoint
10−2
2.0026
0.0100
2.1765
0.0146
Table 9: Learned coefficients a^ and ϵ^ for ( 36 ), true values a=2 , ϵ=0.01 .
Figure 10: Profiles of the learned convection–diffusion solution at T=1 . The blue dashed line denotes the initial condition cos(2πx) , the solid blue line is the true solution, and the red line represents the learned solution.
Figure 11: Three Lotka–Volterra orbits are displayed. Filled circles mark samples from the blue orbit. In the time-series panels, the horizontal axis is time; the upper panel plots the x -information and the lower panel plots the y -information of the sampled points.
Figure 13: Learning results with timestep h=0.1 using the Implicit Euler, implicit trapezoidal, and implicit midpoint methods. The top row presents trajectories generated by the learned dynamics from initial conditions within the given data set. In contrast, the bottom row shows trajectories from initial conditions outside the data set. The purple orbits in (c), (d), (g), and (f) seem to become limiting cycles.
Figure 15: Learning results with timestep h=0.01 using the Implicit Euler, implicit trapezoidal, and implicit midpoint methods. The top row presents trajectories generated by the learned dynamics from an initial condition within the given data set. In contrast, the bottom row shows trajectories from initial conditions outside the given data set.
Figure 16: The left panel shows the trajectory where data is sampled, which also encompasses a limit cycle. The right panel highlights the segment chosen for detailed analysis.
Figure 17: Profiles of ∣1+λ(x)h∣ and ∣1+λ^(x)h∣ along the upper branch of the limit cycle.
Figure 18: Real and imaginary components of the Jacobian eigenvalues for both the learned and true dynamics along the sampled branch; the x-axis ticks match the labels in Figure 16 .
Figure 19: Comparison of the eigenvalues λ and λ^ of Jf and Jgh at points p and q . The eigenvalues are scaled by the step size used by the numerical integrator and plotted on the complex plane, with the gray regions indicating the integrator’s stability region.
Figure 20: Vector fields using only one trajectory with different sampling timesteps.
Figure 21: Amplitude errors of the learned solution component ϑ (green curves) inferred from applying four different numerical integrators to fit the data (red dots): (a) Explicit Euler, (b) Implicit Euler, (c) Implicit Midpoint, and (d) AB2. For reference, the true solutions are shown by the gray curves.
Symbol
Description
f:Rd→Rd
True (unknown) vector field of the autonomous system y′=f(y)
f^∈F
Candidate vector field drawn from function class F
g
Global minimizer of the discrete learning problem; in general g=f
φt[f]y0
Flow map of y′=f(y) : solution at time t starting from y0
y(t;y0)
Solution trajectory, i.e. y(t;y0)≡φt[f]y0
λ∈C
Eigenvalue of f ; governs the scalar model z′=λz
Table 10: Notation: dynamical systems and solutions.
Symbol
Description
H
Sampling step size (time gap between consecutive observations)
tn=nH
n -th observation time
DN={(tn,y(tn))}n=1N
Dataset of N trajectory snapshots
UM
Set of M sampled initial conditions
Zn=eλnhZ0
Exact solution of the scalar model at step n
zn
Numerical solution at step n produced by the chosen integrator
Table 11: Notation: data and sampling.
Symbol
Description
h
Step size used by the numerical integrator
m
Number of integrator steps per observation interval ( mh=H )
Sh[f^]
One-step propagator of the integrator applied to f^ with step size h
Shmn[f^]
mn -fold composition of Sh[f^] , approximating φmnh[f^]
p(ξ)
Stability function of a one-step method (written R(ξ) in Section 4 )
ξ=λh
Scaled eigenvalue; the fundamental argument of p(ξ)
Table 12: Notation: numerical integrators.
Symbol
Description
RA
Region of absolute stability: all ξ for which every root of πξ lies in the unit disc
RP
Region of partial stability: ξ for which roots lie both inside and outside the unit disc
F
Function class from which the candidate vector field f^ is drawn
ξ^=λ^h
Global minimizer of the scalar least-squares problem
c1,…,ck
Coefficients of the general solution of the linear multistep recurrence
Table 13: Notation: stability regions and optimization.