GATE EC, AE, ME, CE, EE + 11 more · Differential Equations
Higher-Order Linear ODEs (Complementary Function and Particular Integral)
Auxiliary equations for constant-coefficient linear ODEs (distinct, repeated, complex roots), complementary function and particular integral (D-operator, undetermined coefficients, resonance) and reduction of order.
A linear ODE with constant coefficients is written with the operator :
Its general solution is
The complementary function (CF) is the general solution of the homogeneous equation . It has arbitrary constants for an th-order equation.
The particular integral (PI) is any one solution of . It has no arbitrary constants.
Why it works: if and , then by linearity. Two different PIs differ by a solution of the homogeneous equation, so the final answer is the same.
Order of work in every problem.
Write the auxiliary equation and find the CF.
Find the PI from the form of .
Add them; only then apply initial conditions to fix the constants.
In a circuit or control problem, the CF is the natural (transient) response and the PI is the forced (steady-state) response. When all roots have negative real parts, the CF dies out and .
Solution of y'' + 3y' + 2y = 4 with y(0) = 0, y'(0) = 0: the CF decays and the total settles to the PI.
2. Finding the CF from the auxiliary equation
Put in to get the auxiliary (characteristic) equation . Each root gives part of the CF:
Roots of
Part of CF
Real, distinct
Real, repeated ( times)
Complex
Complex pair repeated twice
For the roots are :
: two real roots, overdamped.
: repeated root, critically damped.
: complex roots, underdamped, oscillating at .
The CF of an th-order equation always has exactly independent terms. Count them as a check.
3. PI by the inverse operator: the standard shortcuts
Formally . For the common right-hand sides:
Rule
If the rule fails
,
: ; if also :
,
put in
,
(polynomial)
expand as a power series in up to
take out the lowest power of first
shift:
Useful expansions: and
When putting leaves an odd power of , multiply above and below to move to the numerator, then differentiate. For example .
The rule "fails" exactly when the forcing term already appears in the CF. That is resonance, and it always brings in an extra factor of .
4. Undetermined Coefficients, Annihilators, and Resonance
When has constant coefficients and is a finite sum of products of polynomials, exponentials , and (i.e., itself solves a constant-coefficient homogeneous ODE ), the annihilator method guarantees .
Forcing term
Minimal annihilator
Standard trial (no root overlap)
Multiplicity- resonance factor
(degree )
Multiply by if
Multiply by if
Multiply by if has mult.
In undamped resonance (), characteristic roots are (), forcing . Physically, energy pumps into the oscillator every cycle, creating linearly growing amplitude bounded by .
When driving frequency matches natural frequency ω₀ = 2, the trial gains a factor of t, producing linearly growing amplitude ±t/4.
5. Reduction of Order for Variable-Coefficient Nonhomogeneous ODEs
Undetermined coefficients fails when coefficients vary with . If one nontrivial homogeneous solution of is known (often spotted by inspection, e.g., or ), substitute :
Since , the term vanishes identically. Defining collapses the second-order ODE into a first-order linear ODE for :
Solving this via an integrating factor yields both the second homogeneous basis (from ) and the particular integral in one stroke.
Formulas to remember
General solutionCF solves ; PI is any one solution of
Complex roots
Repeated root
Exponential input
Sine or cosine inputSame for ; valid when
Resonant sine and cosine
Shift theorem
General solution structureInitial conditions determine only after adding .
Non-resonant exponential inverse-D rule
Resonant root multiplicity-m rule
Common mistakes
Fitting the initial conditions to the CF alone and adding the PI afterwards; the constants must be found from y = CF + PI.
Using e^(ax)/f(a) when f(a) = 0; when the forcing term is already in the CF, an extra factor of x (or x squared for a double root) is needed.
Writing only A sin(wx) as the trial for a sine input; the trial needs both A cos(wx) and B sin(wx).
For a repeated root, writing c1 e^(mx) + c2 e^(mx), which is really one constant; the second term must be c2 x e^(mx).
Putting D squared = -a squared and then forgetting to clear the leftover odd power of D before differentiating.
Applying initial conditions to before adding : Finding from ignores and and produces the wrong transient.
Worked examples
Try each step yourself, then reveal the working.
Example 1: Exponential input, no resonance
numerical
Find the general solution of .
Step 1: Solve the auxiliary equation.
Try it on paper first.
Example 2: Sinusoidal input with and without resonance
numerical
For , find the particular integral.
Step 1: Find the CF.
Try it on paper first.
Example 3: Enforcing Initial Conditions After Finding y_p
numerical
Solve with , , and compute .
Step 1: Find y_h and particular integral y_p
Try it on paper first.
Example 4: Euler–Cauchy equation with logarithmic repeated solution
numerical
Solve () with .
Step 1: Form indicial equation from y = x^m.
Try it on paper first.
Previous year questions
1 official GATE Engineering Mathematics question mapped to this topic across published papers, newest first.
9 questions: up to 1 official PYQs and original practice questions, with GATE marking (MCQ wrong answers lose marks). Score 60% or more to pass. A new set is drawn each time.
Mark as mastered
Loading your progress…
My revision notes
Notes written by the GATEiit team against the official GATE Engineering Mathematics (EC, AE, ME, CE, EE + 11 more) syllabus; being checked by a reviewer. Updated 2026-12-01. Spotted a mistake? Use Report an issue on any question, or contact us.