Differential Equations · Topic 4 of 5
4. Second-Order Non-Homogeneous
Theory
For , the general solution is the complementary function (CF) — the solution of the homogeneous equation — plus a particular integral (PI), a trial function shaped like :
Trial forms: a constant or polynomial for a polynomial , for an exponential, and for a trig term. If the trial clashes with the CF, multiply it by .
The Golden Rule: find the CF from the auxiliary equation, find a PI by substituting a suitable trial function, add them — and apply any conditions to the full solution, not just the CF.
⚠️ Common Examiner Traps
- Missing a part: the general solution is CF plus PI — both are required.
- Wrong trial: match the PI trial to the form of .
- Conditions applied too early: fix the constants using the full CF + PI, not the CF alone.
Worked examples
Example 1
Find the general solution of .
Step 1: The complementary function comes from , giving :
Step 2: The right side is a constant, so try (then ):
Step 3: The general solution is CF + PI:
Example 2
Find the general solution of .
Step 1: The auxiliary equation gives :
Step 2: Try , so and . Substitute:
Step 3: The general solution is: