Forced ODEs variation of constants and resonance
A homogeneous model describes what a system does without continuing input. Rainfall, emissions or periodic driving supply forcing terms. Variation of constants separates the initial-state response from the accumulated response to forcing. Resonance shows why a seemingly harmless periodic input can produce a qualitatively different solution when natural and forcing frequencies coincide.
1 Variation of constants for a system
For a constant matrix and continuous forcing , consider , . Differentiate :
because commutes with its exponential. Integration gives
This proves the formula and, by direct differentiation, verifies it. Subtracting two candidate solutions leaves a homogeneous equation with zero initial value, proving uniqueness. A matrix integral means integrating entries or components. No inverse of is required, so the formula also handles singular matrices and conserved modes.
For constant forcing and invertible , the equilibrium is and . This rewriting is unavailable when is singular. More importantly, an algebraic equilibrium need not attract trajectories; the behavior is determined by . For a real eigenbasis, every direction decays precisely when all eigenvalues are negative. A zero eigenvalue keeps a nondecaying eigenmode, and defective blocks can also produce polynomial factors; signs alone at zero do not classify boundedness.
2 Forced exchange and conserved modes
Take two equal-volume compartments with exchange rate , no removal, and constant input into the first compartment:
Then satisfies , while satisfies . Thus
The concentration difference approaches a constant, but the total keeps growing. There is no equilibrium for : summing equilibrium equations would demand . Claiming every stable-looking exchange system settles to a fixed level would ignore the zero eigenvalue of the conserved total mode.
If both compartments also remove at rate , the total equation becomes , so the steady total is . Deriving the aggregate equation before solving the full system is an efficient consistency check.
3 A forced second-order equation
For , write . Then
The system formula applies and accounts for both initial conditions. For simple forcing, undetermined coefficients gives a shorter calculation, provided overlap with homogeneous solutions is handled correctly.
Example. Solve with zero position and velocity. Put . Differentiation gives , so . Initial conditions become , hence and
A trial alone would not satisfy both initial conditions; the homogeneous terms must be retained as needed.
4 Resonance and damping
For the undamped oscillator , with , , and , a particular solution is
Substitution proves it. At the denominator vanishes because the proposed forcing shape is itself homogeneous. A new trial gives
Differentiating twice verifies the equation; its envelope grows linearly. This is resonance in the ideal undamped linear model, not a prediction that every real system grows without limit.
With positive damping,
use . Comparing coefficients gives
The denominator is , giving and . The amplitude is
It stays finite at when damping is positive. For nonzero forcing , the frequency maximizing this response is not generally exactly : differentiation of gives a positive-frequency peak at only when . Otherwise the largest amplitude over nonnegative frequencies occurs at zero. If , every forcing frequency has zero response amplitude and the peak-location discussion does not single out a frequency. Natural frequency, damped free frequency and driven response-peak frequency are distinct notions.
5 An integral response formula
For with , continuous on an interval containing zero, and zero initial conditions,
Proof. Differentiate using the endpoint term and differentiation under the integral for continuous . The first derivative is . Differentiating again gives . Both initial values vanish. Uniqueness establishes the formula.
This is a convolution with the impulse-response kernel. It also recovers the resonant solution by inserting a resonant cosine, without guessing a trial form.
6 Graded practice
E1 Foundation. Solve with .
E2 Resonance. Solve with zero initial position and velocity.
E3 Defective forced system. Solve , with .
E4 Conserved mode. In the forced exchange model, set , , and initial concentrations zero. Find and verify their sum.
E5 Damped response. For , , , find the positive response-peak frequency and the amplitude at forcing frequency 3.
7 Full solutions
S1. The integrating factor gives . Differentiation verifies the ODE and the initial value.
S2. The resonant particular solution is . Both it and its first derivative vanish at zero, so no extra homogeneous term is needed. Substitution gives .
S3. . Multiplying the first-coordinate equation by gives , so . The factor records the coupling through the repeated eigenvalue.
S4. and . Thus and . Their sum is and their difference satisfies . Although the difference tends to 1, neither concentration tends to a finite steady value.
S5. Since , the peak is at . At , , giving amplitude . The two frequencies are unequal, illustrating the damping shift.
Summary
Variation of constants separates initial and forced responses without assuming an invertible system matrix. Conserved modes can grow under sustained input even when differences decay. Resonance requires a modified particular solution, while positive damping regularizes the response and separates natural, free-damped and driven-peak frequencies.