How do we solve a non-homogeneous second-order linear differential equation using a complementary function and a particular integral?
Solve non-homogeneous second-order linear differential equations by finding the complementary function and a particular integral for standard forcing terms
A focused answer to the H2 Further Mathematics outcome on non-homogeneous second-order ODEs. The complementary function plus particular integral structure, trial forms for polynomial, exponential and trigonometric forcing, the breakdown case, and fitting initial conditions last.
Reviewed by: AI editorial process; not yet individually human-reviewed
Have a quick question? Jump to the Q&A page
Jump to a section
What this dot point is asking
SEAB wants you to solve a non-homogeneous second-order linear equation
by combining the complementary function (the general solution of the homogeneous equation) with a particular integral (any one solution of the full equation). You choose the particular integral by a trial form matched to the forcing term , and apply initial conditions only at the very end.
The answer
The structure of the general solution
The general solution is
where is the complementary function (containing the two arbitrary constants) and is any particular integral. This works because the equation is linear: adding a solution of the homogeneous equation to a particular solution still satisfies the full equation.
Step one: the complementary function
Solve via the auxiliary equation, using the three cases (distinct real, repeated, complex). This supplies and the constants and .
Step two: the particular integral by trial
Choose a trial matching the form of , then substitute and match coefficients:
- polynomial of degree : try a general polynomial of degree ;
- : try ;
- or : try (include both even if only one appears).
The breakdown (resonance) case
If the trial form already appears in the complementary function, substituting it gives , which is impossible. Fix this by multiplying the trial by (or if it still clashes with a repeated root). Physically this is resonance: the forcing matches a natural mode, and the response grows like .
Step three: apply initial conditions last
Combine first, then differentiate and substitute the initial conditions to fix and . Fitting the constants to alone, before adding , is wrong.
Examples in context
Example 1. Driven oscillator. A forced spring-mass system has a sinusoidal particular integral giving the steady-state response, while resonance (when ) forces the growth, the mathematical signature of a system driven at its natural frequency.
Example 2. Circuit with a source. An RLC circuit driven by a constant or sinusoidal voltage source is modelled by a non-homogeneous equation; the complementary function is the transient that decays away and the particular integral is the steady-state current that persists, the standard transient-plus-steady-state decomposition.
Try this
Q1. State the structure of the general solution of a non-homogeneous linear ODE. [1 mark]
- Cue. : complementary function plus a particular integral.
Q2. What trial particular integral suits forcing (not in the complementary function)? [1 mark]
- Cue. .
Q3. Why must the trial be multiplied by when it matches the complementary function? [2 marks]
- Cue. Otherwise it solves the homogeneous equation and substitution gives ; the extra produces an independent form (resonance).
Exam-style practice questions
Practice questions written in the style of SEAB exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.
Original7 marksFind the general solution of .Show worked answer →
Complementary function: solve the homogeneous equation. Auxiliary equation gives , so and .
Particular integral: the forcing is a polynomial of degree , so try . Then , . Substitute:
Match coefficients: ; . So .
General solution: .
Markers reward the complementary function, the polynomial trial form, matching coefficients to find , , and combining into the general solution.
Original7 marksFind the general solution of , noting the resonance between the forcing and the complementary function.Show worked answer →
Complementary function: gives , so .
The forcing already appears in the complementary function (resonance), so the usual trial would be absorbed and fail. Multiply the trial by : try .
Differentiate twice. , and
Then (the terms cancel). Set equal to : and . So .
General solution: .
Markers reward identifying the resonance, multiplying the trial by , differentiating and substituting, and the solution .
Related dot points
- Solve homogeneous second-order linear differential equations with constant coefficients using the auxiliary equation, covering real, repeated and complex roots
A focused answer to the H2 Further Mathematics outcome on homogeneous second-order linear ODEs. The auxiliary equation, the three cases of distinct real, repeated and complex roots, and applying two initial conditions to fix the constants.
- Solve first-order differential equations by separation of variables and by the integrating factor method, applying initial conditions
A focused answer to the H2 Further Mathematics outcome on first-order differential equations. Separation of variables, the integrating factor method for linear equations, general and particular solutions, and applying initial conditions.
- Formulate differential equations from descriptions of rates of change and interpret the solutions in context, including long-term behaviour
A focused answer to the H2 Further Mathematics outcome on modelling with differential equations. Translating a rate description into an equation, solving the resulting first- or second-order model, interpreting constants, and analysing long-term behaviour and limiting values.
- Solve coupled systems of first-order linear differential equations by reduction to a single second-order equation
A focused answer to the H2 Further Mathematics outcome on coupled linear systems. Eliminating one variable to obtain a single second-order equation, solving it, recovering the second variable, and applying initial conditions to both.