Skip to content
GATEiit

GATE EC · Engineering Mathematics

Methods of solution using variation of parameters

Lagrange's variation of parameters for general nonhomogeneous linear ODEs, normalizing leading coefficients, computing Wronskians via Abel's identity, and handling Euler-Cauchy and causal Green's kernels.

Before you start

  • Linear differential equations →

    Finding two linearly independent homogeneous basis solutions y1,y2 is the mandatory first step of variation of parameters.

  • Nonhomogeneous equations →

    Distinguishes forcing functions solvable by undetermined coefficients from arbitrary forcing terms requiring variation of parameters.

  • Matrix algebra →

    Cramer's rule on the Wronskian matrix solves directly for the parameter derivatives u1′,u2′,…,un′.

Concept notes

1. Why Variation of Parameters Works Where Trial Ansätze Fail

Undetermined coefficients works only when the ODE has constant coefficients and the forcing function belongs to a finite-dimensional shift-invariant family (polynomials, eαx, sin⁡βx, cos⁡βx). For equations with non-constant coefficients or general inputs like sec⁡x, tan⁡x, ln⁡x, or ex/x, Joseph-Louis Lagrange's Variation of Parameters (VoP) provides a universal integral formula.

Consider the normalized second-order ODE (leading coefficient strictly equal to 1): y′′+p(x)y′+q(x)y=g(x), with known linearly independent homogeneous basis {y1(x),y2(x)}. Replace the two constant parameters c1,c2 with unknown functions u1(x),u2(x): yp(x)=u1(x)y1(x)+u2(x)y2(x). Because one equation cannot uniquely pin down two unknown functions, impose the strategic auxiliary constraint: u1′(x)y1(x)+u2′(x)y2(x)=0. Differentiating yp twice and substituting into the ODE cancels all p and q terms (since L[y1]=L[y2]=0), leaving the 2×2 linear system:

Variation of Parameters Pipeline (Normalizing Lead Coefficient First) 1. Normalize ODE Divide by a₂(x) first! y'' + p y' + q y = g(x) 2. Basis & Wronskian Solve homogeneous y₁, y₂ W = y₁ y₂' − y₂ y₁' ≠ 0 3. Parameter Slopes u₁' = − y₂ g(x) / W u₂' = + y₁ g(x) / W 4. Integrate u₁', u₂' (Omit Integration Constants for y_p) y(x) = c₁ y₁ + c₂ y₂ + u₁(x) y₁ + u₂(x) y₂ Algebraic check: u₁' y₁ + u₂' y₂ ≡ 0 must hold identically
Four-step variation-of-parameters workflow emphasizing normalization by a₂(x) before forming u₁' and u₂'.

2. The Wronskian, Cramer's Rule, and Abel's Identity

The determinant of the system matrix above is the Wronskian: Whenever {y1,y2} are linearly independent solutions on an interval I where p,q are continuous, W(x)≠0 everywhere on I. Cramer's rule immediately yields: u1′(x)=−y2(x) g(x)W(x),u2′(x)=+y1(x) g(x)W(x). Integrating u1′,u2′ (omitting constants of integration, which merely duplicate c1y1+c2y2) gives: yp(x)=−y1(x)∫y2(x)g(x)W(x) dx+y2(x)∫y1(x)g(x)W(x) dx.

Abel's Identity (GATE shortcut): Even without integrating, the Wronskian satisfies the first-order ODE W′+p(x)W=0, yielding W(x)=W(x0) exp⁡ ⁣(−∫x0xp(t) dt). Abel's identity lets you compute W(x) at any point knowing only its value at x0 and the coefficient p(x)—often without finding y1 or y2 explicitly.

3. Normalizing Non-Constant & Euler-Cauchy Equations Before VoP

The single most common mistake in VoP is forgetting to divide an equation like a2(x)y′′+a1(x)y′+a0(x)y=r(x) by a2(x): g(x)=r(x)a2(x)≠r(x)! For instance, in the forced Euler-Cauchy equation x2y′′+axy′+by=r(x) (x>0):

  1. Find homogeneous solutions y1=xm1,y2=xm2 (or xm,xmln⁡x for double roots).
  2. Normalize to y′′+axy′+bx2y=r(x)x2, so g(x)=r(x)/x2.
  3. Compute W=y1y2′−y2y1′ (note Abel gives W(x)∝x−a) and apply Cramer's rule using g(x)=r(x)/x2.
Method Allowed a2,a1,a0 Allowed g(x) Core advantage
Undetermined Coefficients Constants only Polynomial, eαx, sin⁡βx, cos⁡βx Pure algebra, no integrals
Variation of Parameters Any continuous p(x),q(x) Any integrable function (sec⁡x,ln⁡x, etc.) Works universally once yh is known

4. Higher-Order Extension and Causal Green's Function Kernel

For an n-th order normalized ODE with fundamental set {y1,…,yn}, Cramer's rule solves W [u1′,…,un′]T=[0,…,0,g(x)]T: uk′(x)=Wk(x) g(x)W(x),k=1,…,n, where Wk replaces the k-th column of the n×n Wronskian matrix with [0,…,0,1]T.

Combining definite integrals from x0 to x unites VoP with causal impulse response (Green's function) theory used in networks and signals: yp(x)=∫x0xG(x,t) g(t) dt,G(x,t)=y1(t)y2(x)−y2(t)y1(x)W(t). Here G(x,t) satisfies G(t,t)=0 and unit slope jump ∂G/∂x∣x=t+=1, representing the zero-state response at x to a unit impulse δ(x−t).

Variation of Parameters as a Causal Impulse Response Kernel G(x, t) x G(x, t) x = t Slope jumps by +1 Zero for x < t G(x,t) = [y₁(t)y₂(x) − y₂(t)y₁(x)] / W(t)
Writing VoP as ∫ G(x, t) g(t) dt exposes the causal Green's function kernel G(x, t) = sin(x−t) u(x−t) for y'' + y = g(x).

Formulas to remember

Second-order Wronskian
W(y1,y2)(x)=y1(x)y2′(x)−y2(x)y1′(x)
Variation of parameters integral formulaHere g(x)=r(x)/a2(x) is the RHS of the normalized ODE y′′+py′+qy=g(x).
yp(x)=−y1(x)∫y2(x)g(x)W(x) dx+y2(x)∫y1(x)g(x)W(x) dx
Parameter derivative slopes
u1′(x)=−y2(x)g(x)W(x),u2′(x)=y1(x)g(x)W(x)
Abel's Wronskian identitySign in exponent is minus the coefficient p(x) of y′ after dividing out a2(x).
W(x)=W(x0) exp⁡ ⁣(−∫x0xp(t) dt)
n-th order VoP column rule
uk′(x)=Wk(x)W(x) g(x),RHS column=[0,…,0,1]T
Causal Green's function kernel
yp(x)=∫x0xy1(t)y2(x)−y2(t)y1(x)W(t) g(t) dt

Common mistakes

  • Forgetting to divide by the leading coefficient a2(x): Plugging the unnormalized RHS r(x) directly into u1′,u2′ multiplies yp by an extraneous factor of a2(x).
  • Sign errors between u1′ and u2′: Remember u1′=−y2g/W (minus sign) while u2′=+y1g/W (plus sign); swapping signs flips yp↦−yp.
  • Wrong sign in Abel's identity: W′+pW=0 solves to W=W0e−∫p dx, with a minus sign before ∫p(x) dx after normalizing.
  • Confusing ∫u1′ dx constants: Including integration constants inside u1,u2 doesn't invalidate yp, but clutters arithmetic—always take constants as zero for yp.
  • Applying VoP outside continuity domains: Singular points where a2(x)=0 (like x=0 in Euler-Cauchy) restrict solutions separately to (0,∞) or (−∞,0).

Worked examples

Try each step yourself, then reveal the working.

Example 1: Non-Elementary Forcing via Variation of Parameters

numerical

Find the particular solution yp(x) of y′′+y=sec⁡x on (−π/2,π/2).

  1. Step 1: Compute homogeneous basis and Wronskian

    Try it on paper first.

Example 2: Euler-Cauchy Normalization Trap in Variation of Parameters

numerical

Find yp(x) for x2y′′−2xy′+2y=x3ln⁡x (x>0).

  1. Step 1: Normalize leading coefficient and find basis + Wronskian

    Try it on paper first.

Example 3: Computing Wronskian via Abel's Identity

numerical

Two solutions of (1−x2)y′′−2xy′+6y=0 satisfy W(0)=3. Find W(1/2) without solving the ODE.

  1. Step 1: Write in normalized form to extract p(x)

    Try it on paper first.

Example 4: Checking Auxiliary Constraint u₁'y₁ + u₂'y₂ = 0

conceptual

Explain why VoP forces u1′y1+u2′y2=0 and verify it for y′′−y=2ex+e−x with y1=ex,y2=e−x.

  1. Step 1: Explain the role of the auxiliary constraint

    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.