Stuck on a step? Text us Email us Request a lesson
A nonzero right-hand side changes the job. The characteristic equation describes the associated homogeneous equation; you still need a particular solution that produces the forcing term. This lesson shows how to choose that solution, notice an overlap and check the result.
We use real, dimensionless variables. The unknown function is ; a prime means differentiation with respect to . All worked examples are defined for every real . These are original teaching problems, not official assessment questions.
Start with the equation type
The method below applies to a linear equation with constant coefficients,
where and are real constants. If the coefficient of is a nonzero constant other than 1, divide every term by that constant first. The associated homogeneous equation has the same left-hand side and a zero right-hand side.
Write a solution as
Here is the general homogeneous solution, including its two arbitrary constants, and is one particular solution of the forced equation. Linearity makes the sum work: the left-hand side applied to gives zero, while the same operation applied to gives . Two different particular solutions can describe the same full solution family if their difference is homogeneous.
Initial conditions belong to the complete solution. A particular solution does not usually satisfy them by itself.
If your equation is first-order and linear, start with the integrating-factor lesson. If its coefficients depend on , or a term such as or makes it nonlinear, this constant-coefficient recipe does not apply unchanged.
Choose the whole trial family
Undetermined coefficients works when the forcing is a finite sum of polynomials, exponentials, sines and cosines, or products of those forms. Differentiating these functions stays within a finite family, so a finite set of unknown coefficients can be enough.
- For a polynomial of degree , include every power from down to a constant, even if the forcing omits a power.
- For times a polynomial, multiply the polynomial trial by .
- For a sine or cosine at frequency , include both sine and cosine. Differentiation can exchange them.
- For times a degree- polynomial times sine or cosine, use . Here and each contain all powers from down to a constant, with separate unknown coefficients; some can turn out to be zero. Apply the overlap check below to the whole expression.
- For sums, find a particular solution for each forcing term and add them. This step uses linearity.
Before calculating coefficients, compare the trial with the homogeneous solution. If the trial contains terms already in , the differential operator will cancel those terms. Multiplying by a new power of removes that overlap.
In this notation, is a real exponential rate, is a real trigonometric frequency, and is the imaginary unit with . For a polynomial or a sine/cosine without an exponential factor, take . The characteristic polynomial is ; is an auxiliary variable. A root has multiplicity when its factor occurs exactly times in that polynomial.
For an exponential-polynomial trial, multiply the entire trial by , where is the multiplicity of in the characteristic polynomial. For an exponential-sinusoidal trial with , use the multiplicity of the complex root . Use when there is no matching root. For a real second-order equation, an exponential root can have multiplicity 0, 1 or 2.
This is an overlap check, not a rule to multiply every guess by . Determine from the equation you actually have.
Worked example: one overlapping exponential
Solve
Find the homogeneous family
The characteristic equation factors as
Therefore
Test the tempting guess
A first guess fails for every . Substitution gives
No choice of can turn zero into . The problem is the trial family, not an algebra error.
The root occurs once, so try
Its derivatives are
Substitution gives
Hence , and one particular solution is .
Apply both conditions to the full solution
Now
At , the two conditions give
Thus and :
The particular term contributes 1 to the initial derivative. Omitting it while solving for the constants imposes the wrong condition.
Check the equation and the conditions separately
The derivatives are
In , the terms cancel and the coefficient of is
The left-hand side is exactly , as required. Equivalently, the residual is zero. Also and . Passing the differential-equation check alone would not establish the initial conditions.
Although the answer contains , it tends to zero as tends to positive infinity. An extra factor of does not automatically mean a growing physical oscillation.
When one factor of is still not enough
Consider
The associated homogeneous family is . Both and are already in it. The characteristic root occurs twice, so choose
A short substitution explains the power. Set . Differentiating and combining the terms gives
For , . Matching the forcing gives . The full family is therefore
This example has no stated initial conditions, so the two constants remain arbitrary. The homogeneous repeated-root reasoning is developed in the ENGR 213 worked example.
Sinusoidal forcing and an ideal resonance
For
the homogeneous family is . Both sinusoidal trial terms overlap, so use
Substitution gives
Match both coefficients: and . One particular solution is
For , the factor gives an increasing envelope . In the ideal undamped oscillator represented by this normalized equation, the driving frequency equals the natural frequency, producing resonance. This is a property of this model; damping or a different driving frequency changes the response. It is distinct from the decaying exponential-overlap example above.
Even when the forcing contains only cosine, start with both sine and cosine. After substitution, one coefficient may be zero. Deciding that in advance can discard the term that is actually needed.
Know when to choose another method
The finite trial recipe does not cover every forcing term. For example, and do not remain inside the polynomial-exponential-sinusoidal families above under repeated differentiation. Variation of parameters can be an alternative for a linear equation once a homogeneous basis is known. Work on an interval where the normalized coefficients and forcing are defined and continuous.
A variable-coefficient equation also needs a separate method choice. Do not form a constant-coefficient characteristic equation by treating as a fixed number.
For a course assessment, use the methods and topics assigned by your instructor. This lesson teaches a selected method, not a complete ENGR 213 review or a predicted exam.
Practise the decision before doing the algebra
Try the six guided questions on forced second-order equations. They change the forcing, overlap and initial conditions. Explain the trial before calculating, then check both the equation and the data.
If you want help applying this to your course, bring the equation, your proposed trial and the line where the calculation stopped. A tutor can check whether the obstacle is method choice, overlap, differentiation or the initial conditions. See ENGR 213 tutoring for coverage confirmation and booking.
Useful for
Work on the step you’re missing.
Tell us the subject and your preferred time. Nablio confirms the details by text or email.
Request a lesson