Skip to content
GATEiit

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.

Before you start

  • First-order linear ODEs and Wronskian →

    Higher-order general solutions extend homogeneous linear superposition and Wronskian independence.

  • Complex numbers and Euler's formula

    Complex roots α±jβ turn into eαx(c1cos⁡βx+c2sin⁡βx).

  • Eigen values and eigen vectors →

    System matrix eigenvalues govern the homogeneous modes eAt in forced first-order vector ODEs x˙=Ax+u(t).

  • Integration →

    Variation of parameters integrates particular forcing terms divided by the Wronskian.

This topic comes before: Column buckling, System stability concepts, Transient and Steady-state analysis of linear time invariant systems, Euler–Cauchy Equations and Variation of Parameters, Laplace Transforms and Differential Equation Solutions, Partial Differential Equations and Classification, Separation of Variables (Wave, Heat and Laplace Equations) and BVPs, Power series solutions for ordinary points

Concept notes

1. Structure of the solution: y = CF + PI

A linear ODE with constant coefficients is written with the operator D=ddx:

f(D) y=(a0Dn+a1Dn−1+⋯+an) y=r(x)

Its general solution is

y=yc+yp

  • The complementary function (CF) yc is the general solution of the homogeneous equation f(D)y=0. It has n arbitrary constants for an nth-order equation.
  • The particular integral (PI) yp is any one solution of f(D)y=r(x). It has no arbitrary constants.

Why it works: if f(D)yp=r and f(D)yc=0, then f(D)(yc+yp)=r 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.

  1. Write the auxiliary equation f(m)=0 and find the CF.
  2. Find the PI from the form of r(x).
  3. 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 y→yp.

xy21-1-21234560solid: y = yc + yp = 2 − 4e^(−x) + 2e^(−2x)dashed: yp = 2 (steady state)dotted: yc = −4e^(−x) + 2e^(−2x) (dies out)
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 y=emx in f(D)y=0 to get the auxiliary (characteristic) equation f(m)=0. Each root gives part of the CF:

Roots of f(m)=0 Part of CF
Real, distinct m1,m2 c1em1x+c2em2x
Real, repeated m (k times) (c1+c2x+⋯+ckxk−1)emx
Complex α±jβ eαx(c1cos⁡βx+c2sin⁡βx)
Complex pair repeated twice eαx[(c1+c2x)cos⁡βx+(c3+c4x)sin⁡βx]

For y′′+2ζωny′+ωn2y=0 the roots are −ζωn±ωnζ2−1:

  • ζ>1: two real roots, overdamped.
  • ζ=1: repeated root, critically damped.
  • ζ<1: complex roots, underdamped, oscillating at ωd=ωn1−ζ2.

The CF of an nth-order equation always has exactly n independent terms. Count them as a check.

3. PI by the inverse operator: the standard shortcuts

Formally yp=1f(D) r(x). For the common right-hand sides:

r(x) Rule If the rule fails
eax eaxf(a), f(a)≠0 f(a)=0: x eaxf′(a); if also f′(a)=0: x2eaxf′′(a)
sin⁡ax, cos⁡ax put D2=−a2 in f(D) 1D2+a2sin⁡ax=−xcos⁡ax2a, 1D2+a2cos⁡ax=xsin⁡ax2a
xk (polynomial) expand [f(D)]−1 as a power series in D up to Dk take out the lowest power of D first
eaxV(x) shift: eax1f(D+a)V(x)

Useful expansions: (1−D)−1=1+D+D2+… and (1+D)−1=1−D+D2−…

When putting D2=−a2 leaves an odd power of D, multiply above and below to move D to the numerator, then differentiate. For example 1D+1sin⁡x=D−1D2−1sin⁡x=D−1−2sin⁡x=sin⁡x−cos⁡x2.

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 x.

4. Undetermined Coefficients, Annihilators, and Resonance

When L=P(D) has constant coefficients and g(x) is a finite sum of products of polynomials, exponentials eαx, and cos⁡(βx)/sin⁡(βx) (i.e., g itself solves a constant-coefficient homogeneous ODE A(D)g=0), the annihilator method guarantees A(D)P(D)y=0.

Forcing term gk(x) Minimal annihilator A(D) Standard trial yp (no root overlap) Multiplicity-m resonance factor
Pd(x) (degree d) Dd+1 Adxd+⋯+A0 Multiply by xm if P(0)=0
Ceαx D−α Aeαx Multiply by xm if (α)m∣P(D)
Pd(x)eαxcos⁡(βx) [(D−α)2+β2]d+1 eαx[Qd(x)cos⁡βx+Rd(x)sin⁡βx] Multiply by xm if α±jβ has mult. m

In undamped resonance (y′′+ω02y=F0cos⁡(ω0t)), characteristic roots are ±jω0 (m=1), forcing yp(t)=t(Acos⁡ω0t+Bsin⁡ω0t)=F0t2ω0sin⁡(ω0t). Physically, energy pumps into the oscillator every cycle, creating linearly growing amplitude bounded by ±F02ω0t.

Pure Resonance: Particular Solution y_p(t) = (t/4) sin(2t) for y'' + 4y = cos(2t) t y_p 0 +t / 4 envelope −t / 4 envelope Drive ω = ω₀ ⇒ trial multiplies by t
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 p(x),q(x) vary with x. If one nontrivial homogeneous solution y1(x) of y′′+p(x)y′+q(x)y=g(x) is known (often spotted by inspection, e.g., y1=x or ex), substitute y(x)=v(x)y1(x): y′=v′y1+vy1′,y′′=v′′y1+2v′y1′+vy1′′. Since y1′′+py1′+qy1=0, the v term vanishes identically. Defining w(x)=v′(x) collapses the second-order ODE into a first-order linear ODE for w: y1w′+(2y1′+p(x)y1)w=g(x),w′+(p(x)+2y1′y1)w=g(x)y1. Solving this via an integrating factor yields both the second homogeneous basis y2 (from g=0) and the particular integral yp in one stroke.

Formulas to remember

General solutionCF solves f(D)y=0; PI is any one solution of f(D)y=r(x)
y=yc+yp
Complex roots
m=α±jβ  ⇒  yc=eαx(c1cos⁡βx+c2sin⁡βx)
Repeated root
m repeated k times  ⇒  (c1+c2x+⋯+ckxk−1)emx
Exponential input
1f(D)eax=eaxf(a),f(a)=0:  x eaxf′(a)
Sine or cosine inputSame for cos⁡ax; valid when ϕ(−a2)≠0
1ϕ(D2)sin⁡ax=sin⁡axϕ(−a2)
Resonant sine and cosine
1D2+a2sin⁡ax=−xcos⁡ax2a,1D2+a2cos⁡ax=xsin⁡ax2a
Shift theorem
1f(D)[eaxV(x)]=eax1f(D+a)V(x)
General solution structureInitial conditions determine ck only after adding yp(x).
y(x)=yh(x)+yp(x)=∑k=1nckyk(x)+yp(x)
Non-resonant exponential inverse-D rule
1P(D) eαx=eαxP(α),P(α)≠0
Resonant root multiplicity-m rule
P(D)=(D−α)mQ(D),  Q(α)≠0  ⟹  1P(D) eαx=xmeαxm! Q(α)

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 yh before adding yp: Finding c1,c2 from yh(0)=y0 ignores yp(0) and yp′(0) 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 y′′−5y′+6y=e4x.

  1. Step 1: Solve the auxiliary equation.

    Try it on paper first.

Example 2: Sinusoidal input with and without resonance

numerical

For y′′+4y=10sin⁡3x+cos⁡2x, find the particular integral.

  1. Step 1: Find the CF.

    Try it on paper first.

Example 3: Enforcing Initial Conditions After Finding y_p

numerical

Solve y′′−3y′+2y=4e3x with y(0)=1, y′(0)=2, and compute y(1).

  1. 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 x2y′′−3xy′+4y=0 (x>0) with y(1)=1,y′(1)=3.

  1. 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.

Topic test

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.