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 A and continuous forcing f(t), consider x′=Ax+f(t), x(0)=x0. Differentiate e−tAx(t):
dtd(e−tAx)=e−tAf(t),
because A commutes with its exponential. Integration gives
x(t)=etAx0+∫0te(t−s)Af(s)ds.
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 A is required, so the formula also handles singular matrices and conserved modes.
For constant forcing b and invertible A, the equilibrium is x∗=−A−1b and x(t)=x∗+etA(x0−x∗). This rewriting is unavailable when A is singular. More importantly, an algebraic equilibrium need not attract trajectories; the behavior is determined by etA. 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 k>0, no removal, and constant input u into the first compartment:
c1′=−kc1+kc2+u,c2′=kc1−kc2.
Then s=c1+c2 satisfies s′=u, while d=c1−c2 satisfies d′=−2kd+u. Thus
The concentration difference approaches a constant, but the total keeps growing. There is no equilibrium for u=0: summing equilibrium equations would demand 0=u. 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 μ>0, the total equation becomes s′=−μs+u, so the steady total is u/μ. Deriving the aggregate equation before solving the full system is an efficient consistency check.
3 A forced second-order equation
For y′′+ay′+by=g(t), write x=(y,y′)T. Then
x′=(0−b1−a)x+(g(t)0).
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 y′′+2y′+2y=e−t with zero position and velocity. Put y=e−tz. Differentiation gives y′′+2y′+2y=e−t(z′′+z), so z′′+z=1. Initial conditions become z(0)=z′(0)=0, hence z=1−cost and
y=e−t(1−cost).
A trial Ce−t alone would not satisfy both initial conditions; the homogeneous terms must be retained as needed.
4 Resonance and damping
For the undamped oscillator y′′+ω02y=F0cosωt, with ω0>0, ω≥0, and ω=ω0, a particular solution is
yp=ω02−ω2F0cosωt.
Substitution proves it. At ω=ω0 the denominator vanishes because the proposed forcing shape is itself homogeneous. A new trial gives
yp=2ω0F0tsinω0t.
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,
y′′+2γy′+ω02y=F0cosωt,γ>0,
use yp=Acosωt+Bsinωt. Comparing coefficients gives
(ω02−ω2)A+2γωB=F0,(ω02−ω2)B−2γωA=0.
The denominator is D=(ω02−ω2)2+4γ2ω2, giving A=F0(ω02−ω2)/D and B=2γωF0/D. The amplitude is
A2+B2=D∣F0∣.
It stays finite at ω=ω0 when damping is positive. For nonzero forcing F0=0, the frequency maximizing this response is not generally exactly ω0: differentiation of D gives a positive-frequency peak at ω02−2γ2 only when γ<ω0/2. Otherwise the largest amplitude over nonnegative frequencies occurs at zero. If F0=0, 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.
The explorer below plots the response amplitude |F₀|/√D against the forcing frequency ω, so you can raise γ and watch the peak slide below ω₀, vanish into ω = 0 at γ = ω₀/√2, and stay finite at ω = ω₀ whenever γ > 0.
5 An integral response formula
For y′′+ω02y=g(t) with ω0>0, continuous g on an interval containing zero, and zero initial conditions,
y(t)=∫0tω0sin(ω0(t−s))g(s)ds.
Proof. Differentiate using the endpoint term and differentiation under the integral for continuous g. The first derivative is ∫0tcos(ω0(t−s))g(s)ds. Differentiating again gives g(t)−ω0∫0tsin(ω0(t−s))g(s)ds=g(t)−ω02y(t). 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.
Concept lensStructural
The response formula is variation of constants for a system
Write x=(y,y′), so the equation becomes x′=Ax+(0,g) with A=(0−ω0210). Since A2=−ω02I, the exponential series gives etA=cos(ω0t)I+ω0sin(ω0t)A. With x0=0, the first component of the Section 1 formula keeps only the upper-right entry of e(t−s)A, namely sin(ω0(t−s))/ω0, multiplying g(s): exactly the kernel above.
6 Graded practice
E1 Foundation. Solve y′+2y=4e−t with y(0)=1.
E2 Resonance. Solve y′′+y=cost with zero initial position and velocity.
E3 Defective forced system. Solve x2′=−x2+1, x1′=−x1+x2 with x1(0)=x2(0)=0.
E4 Conserved mode. In the forced exchange model, set k=1, u=2, and initial concentrations zero. Find c1,c2 and verify their sum.
E5 Damped response. For ω0=3, γ=1, F0=2, find the positive response-peak frequency and the amplitude at forcing frequency 3.
7 Full solutions
S1. The integrating factor gives y=e−2t[1+4(et−1)]=4e−t−3e−2t. Differentiation verifies the ODE and the initial value.
S2. The resonant particular solution is y=(t/2)sint. Both it and its first derivative vanish at zero, so no extra homogeneous term is needed. Substitution gives y′′+y=cost.
S3.x2=1−e−t. Multiplying the first-coordinate equation by et gives (etx1)′=et−1, so x1=1−(1+t)e−t. The factor t records the coupling through the repeated eigenvalue.
S4.s=2t and d=1−e−2t. Thus c1=t+(1−e−2t)/2 and c2=t−(1−e−2t)/2. Their sum is 2t and their difference satisfies d′=−2d+2. Although the difference tends to 1, neither concentration tends to a finite steady value.
S5. Since 1<3/2, the peak is at 9−2=7. At ω=3, D=4⋅1⋅9=36, giving amplitude 2/6=1/3. 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.
Further study
Worked example 7.1.1
(Forced exchange with removal: equilibrium from the matrix and from the modes)
In the forced exchange model of Section 2 add removal at rate μ=1 in both compartments, and take k=1, u=3 and zero initial concentrations:
c′=Ac+b,A=(−211−2),b=(03).
Here detA=3=0, so Section 1 gives the equilibrium x∗=−A−1b with A−1=31(−2−1−1−2):
x∗=−31(−3−6)=(12).
The modes give the full solution. The total satisfies s′=−μs+u=−s+3, so s=3(1−e−t), and the difference satisfies d′=−(2k+μ)d+u=−3d+3, so d=1−e−3t. Hence
Check: c2′=23e−t−23e−3t=c1−2c2, and c1′=23e−t+23e−3t=−2c1+c2+3; both vanish at t=0. Both eigenvalues −1 and −3 are negative, so the solution approaches x∗=(2,1), in agreement with x(t)=x∗+etA(x0−x∗). Removal turns the growing total of the case μ=0 into the steady total u/μ=3.
Worked example 7.1.2
(Forcing that coincides with a repeated root)
Solve y′′+4y′+4y=e−2t with y(0)=y′(0)=0. The characteristic root −2 is repeated, so both e−2t and te−2t are homogeneous and neither can serve as a trial solution. As in the example of Section 3, substitute y=e−2tz:
The equation becomes z′′=1 with z(0)=z′(0)=0, so z=t2/2 and
y=2t2e−2t.
Check: y′=(t−t2)e−2t and y′′=(1−4t+2t2)e−2t, so y′′+4y′+4y=(1−4t+2t2+4t−4t2+2t2)e−2t=e−2t. The overlap with a double root raises the power of t by two, not one.
Worked example 7.1.3
(The integral response formula for a ramp input)
Solve y′′+4y=t with zero initial position and velocity by the integral response formula of Section 5, with ω0=2:
y(t)=∫0t2sin(2(t−s))sds.
Substitute w=t−s. Then ∫0t(t−w)sin2wdw=t⋅21−cos2t−(−2tcos2t+4sin2t)=2t−4sin2t, so
y(t)=4t−8sin2t.
Check: y′′=21sin2t and 4y=t−21sin2t, whose sum is t; also y(0)=0 and y′(0)=41−82=0. The term t/4 is the particular solution that undetermined coefficients would find, and −81sin2t is the homogeneous correction that the formula supplies automatically to meet both initial conditions.
Quick check
(Find a particular solution of y′′+9y=5cos2t.)
The forcing frequency differs from ω0=3.
Solution · Answer
By the nonresonant formula of Section 4, yp=9−45cos2t=cos2t. Check: −4cos2t+9cos2t=5cos2t.
Quick check
(Find a particular solution of y′′+9y=cos3t.)
The forcing shape is now homogeneous.
Solution · Answer
The resonant formula with F0=1, ω0=3 gives yp=6tsin3t. Its envelope grows linearly in this undamped model.
Quick check
(In the forced exchange model of Section 2 with k=2, u=4 and no removal, does an equilibrium exist? What does c1−c2 approach?)
Look at the total and the difference separately.
Solution · Answer
No equilibrium exists, because s′=u=4=0 makes the total grow without bound. The difference satisfies d′=−4d+4, so d→u/(2k)=1.
ExploreMATH2550 · ω
Response amplitude against forcing frequency
Take y'' + 2γy' + ω₀²y = F₀ cos ωt and the steady response y_p = A cos ωt + B sin ωt. Choose ω₀, γ and F₀, then move the forcing frequency ω. The curve is the amplitude |F₀|/√D with D = (ω₀² − ω²)² + 4γ²ω²; the table gives A, B, the amplitude and the phase at the chosen ω.
Natural frequency ω₀
Damping γ
Forcing amplitude F₀
Solid vertical line: the chosen ω. Dashed vertical line: the peak. Dotted vertical line: ω₀. The vertical axis stops at the plotted maximum.
Amplitude at reference frequencies
Frequency ω
Amplitude
ω = 0 (0)
0.2500
ω at the peak (1.8708)
0.5164
ω = ω₀ (2)
0.5000
ω = 2ω₀ (4)
0.0791
D
5.3125
A
0.3294
B
0.2824
Amplitude |F₀|/√D
0.4339
Phase φ (y_p = R cos(ωt − φ))
0.7086 rad
Residual of (ω₀² − ω²)A + 2γωB = F₀
0 (exact)
Residual of (ω₀² − ω²)B − 2γωA = 0
0 (exact)
Peak frequency over ω ≥ 0
1.8708
Peak amplitude
0.5164
γ < ω₀/√2: the amplitude peaks at the positive frequency √(ω₀² − 2γ²), which lies below ω₀, with value |F₀|/(2γ√(ω₀² − γ²)). (peak at ω = 1.8708, peak amplitude = 0.5164) The response at this ω is finite and has amplitude 0.4339.
Why the peak sits where it does
Put s = ω². Then D(s) = (ω₀² − s)² + 4γ²s and D′(s) = 2s + 4γ² − 2ω₀². The amplitude |F₀|/√D is largest where D is smallest on s ≥ 0.
If ω₀² > 2γ², D′ vanishes at s = ω₀² − 2γ² > 0 and D has its minimum there, equal to 4γ²(ω₀² − γ²). If ω₀² ≤ 2γ², D′ ≥ 0 for s ≥ 0 and the minimum is at s = 0, equal to ω₀⁴.
For γ > 0 we have D > 0 for every ω, so the response stays finite at ω = ω₀. For γ = 0 and ω = ω₀ the denominator vanishes, which is why the trial must be changed to t sin ω₀t. The peak frequency, ω₀ and the damped free frequency are three different numbers.
Scope: ω₀ ∈ {1, 2, 3}, a fixed list of γ and F₀, ω in steps of 0.01 up to 3ω₀. D, A, B and the residuals are computed exactly from integers; displayed roots are rounded to four decimals.