Question
Nonresonant sine and cosine forcing in a second order ODE
Original question: (b) If the force applied is oscillatory where , determine the particular solution . What is wrong with this analysis if ?
Expert Verified Solution
Expert intro: For oscillatory forcing, the correct particular solution usually mirrors the forcing frequency unless that frequency matches the homogeneous solution and causes resonance.
Detailed walkthrough
Set up the trial solution
For an oscillatory forcing term
a standard undetermined-coefficients guess for a second-order equation with natural frequency is
Substitute this into the differential equation and solve for and . In the common model
the derivatives are
so
Matching coefficients gives
Hence
What changes when n=3
If , then the denominator becomes zero. That is not a harmless algebraic accident; it means the trial solution duplicates a homogeneous solution. The forcing frequency is resonant with the system, so the guess must be multiplied by .
Why the naive analysis fails
The naive calculation assumes that the differential operator acts on and like a nonzero scalar multiple. That is true only when the forcing frequency is different from the natural frequency. At , the operator sends the trial functions into the homogeneous solution space, so coefficient matching cannot determine and in the usual way.
Practical takeaway
For every nonresonant oscillatory term, the particular solution stays at the same frequency. For the resonant frequency, use a modified trial of the form
💡 Pitfall guide
A frequent mistake is to plug in to the nonresonant formula and write down a division by zero without explaining the structural reason. The real issue is resonance: the forcing term lies in the same frequency space as the homogeneous solution. Another mistake is mixing up the roles of and after differentiation, which can happen if you do not keep the cosine and sine coefficients separate while matching terms.
🔄 Real-world variant
If the forcing term were , the same method would work with , giving a nonresonant response proportional to and . If instead the forcing were , the correct trial would be
because the ordinary guess collapses into the homogeneous solution. That resonance adjustment is the key difference between the two cases.
🔍 Related terms
resonant forcing, undetermined coefficients, harmonic oscillator
FAQ
How do you find the particular solution for a cosine and sine forcing term?
Try a particular solution with the same frequencies, y_p(t)=A cos(nt)+B sin(nt), then substitute into the differential equation and match coefficients to solve for A and B.
Why does the formula fail when the forcing frequency is n equals 3?
Because the forcing frequency matches a natural frequency of the homogeneous equation, the standard trial solution overlaps with the homogeneous solution and causes resonance. The trial must be multiplied by t.