Solving linear constant-coefficient ODEs as y = CF + PI: the auxiliary equation and its root cases, the inverse-operator shortcuts and undetermined coefficients for the particular integral, the resonance cases, and fitting initial conditions.
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. PI by undetermined coefficients and the modification rule
Instead of operators, guess a trial of the same form as with unknown constants, substitute, and match coefficients.
Trial
polynomial of degree
(full polynomial)
or
(both terms)
polynomial
full polynomial of the same degree
Modification rule. If any term of the trial is already in the CF, multiply the whole trial by , where is the smallest power that removes the overlap. This equals the multiplicity of (or ) as a root of the auxiliary equation.
Example: . The root is double, so the trial is , not .
Sum rule. For , find a PI for each part and add them.
Undetermined coefficients works only for these forms. For , , or , use variation of parameters.
5. Initial conditions and reading the answer
The arbitrary constants are fixed after adding the PI. Fitting them to the CF alone is the most common error.
Procedure for an initial value problem.
Write with constants .
Differentiate to get .
Put (or the given point) in and and solve the linear equations for .
Quick facts GATE uses.
Steady state. If every root has a negative real part, . For a constant input , the PI is (the constant term of ), provided .
Bounded or not. With purely imaginary roots and forcing at the same , the PI has the factor and grows without bound (undamped resonance).
Forming the equation. If the CF is given, say , the roots are , so the left side is .
Order from constants. A general solution with independent constants comes from an th-order equation.
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
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.
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: Resonance with a repeated root
numerical
Find a particular integral of .
Step 1: Find the CF and compare with the forcing term.
Try it on paper first.
Example 3: Sinusoidal input with and without resonance
numerical
For , find the particular integral.
Step 1: Find the CF.
Try it on paper first.
Example 4: Initial value problem
numerical
Solve with , , and find .
Step 1: Find the CF and the PI.
Try it on paper first.
Previous year questions
1 official GATE EC question on this topic, 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 EC syllabus; being checked by a reviewer. Updated 2026-11-28. Spotted a mistake? Use Report an issue on any question, or contact us.