Skip to content
GATEiit

GATE EC · Engineering Mathematics

Nonhomogeneous equations

Solving forced linear ODEs and state systems via superposition of particular solutions, resonance scaling at repeated characteristic roots, reduction of order, and initial condition enforcement on the complete response.

Before you start

This topic comes before: Complementary function and particular integral, Initial and boundary value problems, Methods of solution using variation of parameters, Partial differential equations, Solution of network equations using Laplace transform

Concept notes

1. Linearity, Structure, and Superposition of Forcing Terms

A general n-th order linear nonhomogeneous ODE on an interval I has the form L[y]≡y(n)+an−1(x)y(n−1)+⋯+a0(x)y=g(x). Because L is a linear operator, two foundational properties govern all solutions:

  1. Difference property: if yp1 and yp2 both satisfy L[y]=g(x), then yp1−yp2 satisfies L[y]=0. Therefore every solution can be written uniquely as y(x)=yh(x)+yp(x), where yh=∑k=1nckyk(x) spans the homogeneous nullspace and yp is any particular integral.
  2. Superposition of RHS: if g(x)=g1(x)+g2(x) and L[ypi]=gi(x), then yp=yp1+yp2 solves L[y]=g(x). This splits mixed forcing terms (e.g., step + sinusoid) into simple, decoupled subproblems.

Crucial IVP rule: Arbitrary constants c1,…,cn enter through yh, so initial/boundary conditions MUST be enforced on y(x)=yh(x)+yp(x) together, never on yh first! Solving yh(0)=y0 and then adding yp(0) violates the initial condition whenever yp(0)≠0.

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

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

4. Forced First-Order Linear Systems (Zero-Input + Zero-State)

In EC circuits and control state-space models, an n-th order forced ODE is equivalently written as a coupled n-dimensional system x˙(t)=Ax(t)+u(t). Using the matrix integrating factor e−At: Note an important distinction: xZSR(t) is the particular solution matching zero initial state x(0)=0, whereas algebraic trial-based xp(t) (e.g., phasor steady state when Re(λi)<0) may have xp(0)≠0, shifting the constants in xh so their sum satisfies x(0)=x0.

Linear Superposition: Zero-Input Response (Initial Condition) + Zero-State Response (Forcing) Initial State x(0) Forcing u(t) = 0 Zero-Input Response x_ZIR(t) = exp(At) x(0) Input u(t) Initial State x(0) = 0 Zero-State Response ∫₀ᵗ exp(A(t−τ)) u(τ) dτ + Total x(t) = y_h + y_p
Decomposing total state response x(t) into Zero-Input Response (from initial energy) plus Zero-State Response (from input u).

Formulas to remember

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(α)
Exponential shift theorem
1P(D) ⁣[eαxV(x)]=eαx 1P(D+α)V(x)
Undamped sinusoidal resonance
y′′+ω02y=F0cos⁡(ω0t)  ⟹  yp(t)=F0t2ω0sin⁡(ω0t)
Reduction of order first-order reduction
y=vy1,  w=v′  ⟹  w′+(p(x)+2y1′y1)w=g(x)y1
Vector variation of constants
x(t)=eAtx(0)+∫0teA(t−τ)u(τ) dτ

Common mistakes

  • 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.
  • Stopping at x1 on repeated resonance: When P(D)=(D−α)2 and the forcing is eαx, both eαx and xeαx are homogeneous modes, so yp must start at Ax2eαx.
  • Applying P(D)−1 to a polynomial without retaining enough terms: Truncating the binomial series of 1P(D) prematurely misses lower-degree terms in yp.
  • Assuming nonhomogeneous solutions form a vector space: Two solutions of L[y]=g do not add to solve L[y]=g; their sum solves L[y]=2g.
  • Forgetting to check complex resonance P(α+jβ)=0: Forcing e2xcos⁡x on y′′−4y′+5y hits roots 2±j directly, even though r=2 alone is not a root.

Worked examples

Try each step yourself, then reveal the working.

Example 1: Superposition of Polynomial and Resonant Sinusoid

numerical

Find the particular integral yp(x) of y′′+4y=8x2+3cos⁡(2x).

  1. Step 1: Split RHS into polynomial and resonant sinusoidal subproblems

    Try it on paper first.

Example 2: 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 3: Repeated Exponential Resonance (Double Root)

numerical

Find yp(x) for y′′−4y′+4y=6e2x.

  1. Step 1: Identify multiplicity of alpha = 2 in characteristic polynomial

    Try it on paper first.

Example 4: Nonhomogeneous Variable-Coefficient ODE by Reduction of Order

conceptual

Given that y1=x solves x2y′′−xy′+y=0, reduce x2y′′−xy′+y=x2 (x>0) to a first-order equation and find yp(x).

  1. Step 1: Normalize and substitute y = v(x) x

    Try it on paper first.

Previous year questions

No official GATE EC question is tagged with this topic yet. The topic test below uses practice questions.

Topic test

8 questions: 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-29. Spotted a mistake? Use Report an issue on any question, or contact us.