For the constant-coefficient model with and , the zero equilibrium point is asymptotically stable if and only if . For positive , perturbations are measured by the supremum norm of the initial history of delayed feedback; in the stable regime, every continuous history produces a solution tending to zero. At equality, nondecaying sinusoids prevent asymptotic stability. For , growing oscillatory solutions exist. These statements concern this ideal linear time-invariant system, rather than an arbitrary controlled plant. The corresponding linear equation and its threshold are developed in Cain and Reynolds, section 6.4, pages 174–177.
Substitute the exponential function , allowing a complex number . The characteristic equation is
For positive feedback delay this is not a characteristic polynomial: it has infinitely many roots. A root's real part determines growth or decay of its exponential mode, and its imaginary part determines the angular frequency. To find the first boundary, set with and use Euler's formula:
The smallest positive crossing is and . Thus at the complex conjugate roots are . In fact, with the matching initial history of delayed feedback,
solves the delay differential equation exactly: a quarter-cycle feedback delay turns the past displacement into precisely the current derivative. Its cycle lasts . The amplitude is arbitrary; this linear model does not select a finite-amplitude oscillation.
The roots cross toward growth as feedback delay increases. Differentiating the characteristic equation at fixed gives
This calculation identifies the direction of the first destabilization. The full threshold also requires ruling out earlier unstable roots: if with and , the characteristic equation implies and , hence . A real nonnegative root is impossible because there. This supplies the geometric reason the threshold is a quarter-cycle rather than an arbitrary fitting constant.
Figure 1.
Feedback delay separates decay, persistent oscillation, and growth
. Left: numerical solutions with the same constant initial history of delayed feedback on , plotted against for , , and . The middle trajectory includes a transient because this history is not a pure sinusoid; the dashed curve is a separate exact solution with history . Each row has its own vertical scale. Right: the exact boundary for positive feedback gain and feedback delay. Toy responses are not measured data. The generator uses the classical fourth-order Runge-Kutta method with linear interpolation of delayed values and , checked against a separately evaluated exact finite sum and two coarser steps. Details.
The tradeoff is concrete. Without feedback delay, increasing shortens the exponential decay time constant . With known , the same proportional control must satisfy . For , the threshold is : is stable and is unstable. A design close to the boundary leaves little room for additional feedback delay; reducing or reducing measurement latency increases that room. The zero-delay time constant is only a comparison scale, not the decay time of the delayed response. Frank discusses the gain–delay compromise in Control Theory Tutorial, section 13.4 and figure 13.3.
An -stage Runge-Kutta method for is defined by
The Butcher tableau records , and ; internal consistency usually sets , and first-order consistency requires . A strictly lower triangular gives an explicit method, while other stage dependencies generally require an implicit Runge-Kutta method. The stage solvability of an implicit Runge-Kutta method must be checked separately: if is globally Lipschitz continuous in with constant , the stage fixed-point map is a contraction in the maximum stage norm whenever . This is a sufficient small-step condition, not a restriction intrinsic to the definitions of A-stability or B-stability.
Linear stability begins with the Dahlquist test equation . Solving the stages gives
The linear stability domain consists of test values for which the stage system is well defined and . A-stability means this includes the closed left half-plane. For , this gives stability with no scalar decay-mode step restriction. For a normal matrix in , unitary diagonalization of a normal matrix reduces the norm estimate to these scalar factors. For a non-normal matrix, eigenvalues alone do not establish a uniform norm bound: eigenvector conditioning and transient amplification matter. Mesh-uniform estimates for discretized PDEs must control operator powers, not only their spectra.
Every consistent explicit Runge-Kutta method has a nonconstant polynomial stability function and therefore cannot be A-stable, since that polynomial is unbounded on the negative real axis. For example, forward Euler method has , stability disk , and restriction for . For a pure imaginary mode , , so it is unstable for every positive step. The classical fourth-order Runge-Kutta method instead has
It is stable on the imaginary axis exactly for , an illustrative conditional stability range for oscillatory evolution.
Backward Euler method has and is A-stable. L-stability adds as in the left half-plane; backward Euler satisfies this and strongly damps unresolved rapidly decaying modes in a stiff differential equation. The implicit midpoint rule and the trapezoidal rule both have , so they are A-stable but not L-stable. They preserve the modulus of a pure imaginary test mode, but their stiff-decay limit is , leaving oscillatory numerical remnants. The three-stage Lobatto IIIA method has the fourth-order rational function found in Question 2 and likewise lacks L-stability. Thus high order and A-stability do not themselves imply efficient stiff damping.
Nonlinear stability measures differences between solutions of the same equation. A one-sided Lipschitz condition is
Differentiating the squared difference and applying the Gronwall inequality gives . A dissipative vector field has and is contractive. A B-stable method preserves this property for every positive step size for which the stages are well defined:
This includes time-dependent vector fields when dissipativity holds at each common time argument. Applying it to scalar linear dissipative fields shows that B-stability implies A-stability when the linear stages are well defined; the converse fails.
The standard sufficient theorem is algebraic stability implies B-stability, subject to stage solvability. Define and . Algebraic stability of a Runge-Kutta method means and is a positive semidefinite matrix. To prove the theorem, set , and . Expanding the output difference and using yields the Runge-Kutta contractivity identity
Dissipativity makes the first sum nonpositive, while positive semidefiniteness makes the last quadratic form nonnegative. The latter follows by factoring and writing it as a sum of squared norms of linear combinations of the . This proves the claimed contraction. It is a sufficient theorem; absence of algebraic stability is not, by itself, a proof of failure of B-stability for every representation.
Several examples make the distinctions concrete. For backward Euler, , , so : it is both L-stable and B-stable. For implicit midpoint, , , so : it is B-stable and preserves squared norms for a skew-Hermitian linear equation, but lacks stiff damping. For the two-stage Gauss--Legendre Runge-Kutta method,
the matrix vanishes as well. The collocation theorem gives order four, and its stability function is exactly the same as the three-stage Lobatto IIIA function. Yet the Gauss method is algebraically stable, whereas that Lobatto method is not. Identical scalar linear stability functions need not imply identical nonlinear stability properties.
An example combining stiff damping and nonlinear contraction is the two-stage Radau IIA method, with
Its positive weights and positive semidefinite prove B-stability; its rational function has denominator roots and, for , satisfies
Thus it is A-stable; the limit then proves L-stability. The standard Radau IIA collocation theorem gives order , here three. These properties explain its usefulness for stiff nonlinear equations.
Finally, A-stability alone does not imply B-stability. The trapezoidal rule fails B-stability even for the scalar dissipative equation . With , its step map is uniquely defined by
At , . Implicit differentiation gives
Thus nearby starting values are separated by approximately twice their original distance after one step, although the exact flow is contractive. This example and the contractivity theorem show why scalar linear analysis, stiff damping and genuinely nonlinear norm estimates answer different stability questions.
At a fixed input the production terms are constant, so both linear ordinary differential equations can also be solved exactly:
Each displacement from its equilibrium concentration decays with time constant one. The Jacobian matrix is , with two eigenvalues equal to , so the fixed point is globally asymptotically stable for the nonnegative state space.
Here is a numerical solver using the classical fourth-order Runge-Kutta method; it uses only the repository's existing NumPy and matplotlib dependencies. Continue the definitions from part (b):
def integrate(rhs, initial, times):
    out = np.empty((len(times), len(initial)))
    out[0] = initial
    for j, dt in enumerate(np.diff(times)):
        state = out[j]
        k1 = rhs(state)
        k2 = rhs(state + dt*k1/2)
        k3 = rhs(state + dt*k2/2)
        k4 = rhs(state + dt*k3)
        out[j+1] = state + dt*(k1 + 2*k2 + 2*k3 + k4)/6
    return out

def direct_rhs(state, X):
    Y, Z = state
    return np.array([2*hill(X, 1, 2) - Y,
                     3*hill(X, 2, 4) - Z])

times = np.linspace(0, 8, 801)
plt.figure(figsize=(7, 4))
for initial, style in [([0, 0], "-"), ([3, 4], "--")]:
    trajectory = integrate(lambda s: direct_rhs(s, 2), initial, times)
    exact = np.array([1.6, 1.5]) + (np.array(initial) - [1.6, 1.5]) \
            * np.exp(-times[:, None])
    assert np.max(np.abs(trajectory - exact)) < 1e-8
    plt.plot(times, trajectory[:, 0], style, label=f"Y, initial {initial}")
    plt.plot(times, trajectory[:, 1], style, label=f"Z, initial {initial}")
plt.xlabel("Time")
plt.ylabel("Concentration")
plt.legend()
plt.tight_layout()
plt.show()
For , . The initial state approaches those values from below, while approaches from above. Over eight time units the initial displacement is reduced by , explaining why both trajectories nearly coincide with the equilibria from part (b). The two-panel figure above displays these simulations.
Choose these dimensionless parameters for an original example, with no collisions or damping. They are teaching inputs, not measurements from either lecture. With and slow initial amplitude , the radial equation and its leading approximation are
Set and to match the approximate initial conditions. The leading secular angular frequency is . The velocity Verlet method integrates the full RF equation over 80 drive periods; a separate fourth-order Runge-Kutta method checks the computed trajectory. Halving the timestep tests numerical error independently of the averaging error.
Figure 1.
Full RF motion and the leading secular approximation
. Original chosen small-parameter calculation in units of . The lower panel resolves six drive cycles and includes the first micromotion correction. Agreement over this finite interval does not establish a stability diagram or an exact secular frequency. Details.
Using 400, 800, 1600 and 3200 steps per RF period gives successive maximum position differences of approximately , and in units of , consistent with second-order convergence. The finest trajectory differs from the independent classical fourth-order Runge-Kutta method result by at most , whereas differs by as much as . Over a sufficiently long time, the omitted correction to the secular angular frequency produces a growing phase discrepancy even if the numerical trajectory has converged. For the chosen point only, integration of a fundamental solution matrix over one RF period checks that both the radial and axial Floquet multipliers lie on the unit circle, away from its endpoints. This tests simultaneous ideal confinement without extrapolating to larger .
Proportional-integral control is the proportional and integral part of a PID controller, with the derivative term omitted. Proportional-integral control combines proportional control with integral action. For the ideal controlled plant, a constant reference signal, exact measurement and a constant control disturbance, the ordinary differential equations give
The characteristic polynomial is . Positive and imply asymptotic stability of the equilibrium point: real roots of a polynomial have negative sum and positive product, hence are both negative; a nonreal complex conjugate pair has real part . This is a short stability check for this ideal controlled plant, rather than a rule for every dynamical system.
At the equilibrium point, , , and . For and , the stored value supplies even though the tracking error is zero. This separates the eventual accuracy from the transient response: integral action cancels the lasting offset but can make the plant output pass beyond the goal. The authors discuss practical limits on integral action in Åström and Murray, Feedback Systems, Chapter 11.
For , , and , the characteristic polynomial is . The initial conditions are and , giving
The tracking error changes sign at . Since , the largest plant output occurs at and is , about above the reference signal.
For a separate comparison, start the control disturbance at . For , write . The exact responses are
The proportional control response tends to , while the proportional-integral control response returns to . At , the values are approximately and . The added term in the proportional-integral control response eventually vanishes, exposing how memory removes a constant control disturbance's lasting effect.
Figure 1.
Proportional control and integral action: arrival and disturbance rejection
. Left: the ideal controlled plant has reference signal and no control disturbance; proportional-integral control reaches a peak at . Right: a control disturbance begins at ; proportional control settles at , while proportional-integral control returns to . The generator uses the classical fourth-order Runge-Kutta method with step , splits the computation at , and checks both full responses and the stored memory against their exact formulas. All coordinates are dimensionless quantities. Details.
Runge-Kutta method Created 2026-09-24 Updated 2026-10-14
A Runge-Kutta method advances an initial value problem , , by sampling its vector field at several trial states within one time step. These samples are Runge-Kutta stages; a weighted combination of their slopes produces the next state. The construction improves on the single tangent line used by the Euler method while requiring evaluations of , rather than explicit higher derivatives of the solution. It applies to scalar equations and systems of ordinary differential equations alike. The coefficient choices distinguish methods such as Heun's method, the classical fourth-order Runge-Kutta method and implicit Runge-Kutta methods.
For stages, write for the stage matrix, for relative time nodes and for output weights. A time step of length computes
Here is a slope, with units of state per time; is a state increment. Another common convention writes , so its stage states are and its output is . These are equivalent conventions: including both inside and again in the output would count the time step twice. The textbook formulation uses the increment convention.[ref]
Usually the Butcher tableau obeys , called internal consistency. Stage then combines slopes over an effective time . The second-order conditions with independent Runge-Kutta abscissae explain what changes when time nodes are specified independently. A Runge-Kutta stage is generally an auxiliary approximation, not a separate accepted solution value at its node. Several stages can even have the same time node but different state arguments, as in the classical fourth-order Runge-Kutta method.
The useful idea is to approximate the integral without knowing the intermediate exact trajectory. Trial states provide places to sample , and Butcher order conditions make the resulting combination agree with the exact Taylor expansion. More stages alone do not guarantee a higher order of a numerical method: their coefficients must satisfy the appropriate conditions. Embedded Runge-Kutta pairs reuse these same samples for a second output and a practical local error estimator.