Skip to content
GATEiit

GATE EC, ME, CE, EE, IN + 9 more · Differential Equations

Euler–Cauchy Equations and Variation of Parameters

Solving variable-coefficient equidimensional Euler–Cauchy equations via x = e^t, and finding particular integrals for general linear ODEs using Wronskian variation of parameters.

Before you start

Concept notes

1. The three cases of roots

Let the roots of m2+(a−1)m+b=0 be m1,m2.

Roots General solution
Real, distinct m1≠m2 y=c1xm1+c2xm2
Real, repeated m y=(c1+c2ln⁡x) xm
Complex α±jβ y=xα[c1cos⁡(βln⁡x)+c2sin⁡(βln⁡x)]

Compare with constant-coefficient equations: there a repeated root gives an extra factor x; here it gives an extra factor ln⁡x. There complex roots give cos⁡βx; here they give cos⁡(βln⁡x). Both follow from x=et, which maps t→ln⁡x.

The repeated-root condition is (a−1)2=4b, and then m=(1−a)/2.

Behaviour near x=0+. A term xm with m<0 blows up as x→0+, and cos⁡(βln⁡x) oscillates infinitely often in (0,1) because ln⁡x→−∞. GATE sometimes asks which solutions stay bounded as x→0+: only terms with m>0 (or α>0) do.

x²y″ + a·x·y′ + b·y = 0 (x > 0)try y = x^m (or put x = e^t)m(m − 1) + a·m + b = 0x·y′ = Dyx²y″ = D(D − 1)yD = d/dtDistinct real rootsm₁ ≠ m₂Repeated rootm₁ = m₂ = mComplex rootsm = α ± jβy = c₁x^m₁ + c₂x^m₂y = (c₁ + c₂ ln x)·x^my = x^α [c₁ cos(β ln x)+ c₂ sin(β ln x)]
Solving $x^2y'' + axy' + by = 0$: put $y = x^m$ (or $x = e^t$), solve $m(m-1) + am + b = 0$ and pick the form by the type of roots.

2. The substitution x = e^t and non-homogeneous equations

Put x=et (so t=ln⁡x) and write D=d/dt. Then

xdydx=Dy,x2d2ydx2=D(D−1)y,x3d3ydx3=D(D−1)(D−2)y.

The equation x2y′′+axy′+by=f(x) becomes the constant-coefficient equation

[D2+(a−1)D+b]y=f(et).

Solve it by the usual CF + PI method, then put t=ln⁡x back. Useful conversions of the right side:

f(x) f(et)
xk ekt
ln⁡x t
sin⁡(ln⁡x) sin⁡t
xkln⁡x t ekt

For f(x)=xk a quicker route is the trial yp=Axk: substituting gives A [k(k−1)+ak+b]=1, valid when k is not a root of the auxiliary equation. If k is a simple root, use yp=Axkln⁡x (the same rule as resonance in constant-coefficient equations).

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

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

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

Formulas to remember

Euler-Cauchy equation
x2y′′+a x y′+b y=f(x)
Auxiliary equationFrom the trial y=xm
m(m−1)+a m+b=0
Distinct real roots
y=c1xm1+c2xm2
Repeated root
y=(c1+c2ln⁡x) xm
Complex rootsRoots α±jβ
y=xα[c1cos⁡(βln⁡x)+c2sin⁡(βln⁡x)]
Substitution x = e^tD=d/dt
xy′=Dy,x2y′′=D(D−1)y,x3y′′′=D(D−1)(D−2)y
Legendre formWith px+q=et
(px+q)y′=pDy,(px+q)2y′′=p2D(D−1)y
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

Common mistakes

  • Writing the auxiliary equation as m² + am + b = 0; the correct form is m(m − 1) + am + b = 0, that is m² + (a − 1)m + b = 0.
  • Using x·x^m for a repeated root; the second solution of an Euler-Cauchy equation is x^m ln x.
  • Writing cos βx instead of cos(β ln x) for complex roots.
  • Leaving the right side as a function of x after putting x = e^t; convert x^k to e^(kt) and ln x to t before finding the particular integral.
  • Dropping the factors p and p² in the Legendre form (px + q)²y″ + …; (px + q)y′ = pDy and (px + q)²y″ = p²D(D − 1)y.
  • Trying to impose conditions at x = 0, which is a singular point; apply them at x = 1 or use boundedness.

Worked examples

Try each step yourself, then reveal the working.

Example 1: Distinct roots with initial conditions

numerical

Solve x2y′′−2xy′−4y=0 with y(1)=3, y′(1)=7, and find y(2).

  1. Step 1: Write the auxiliary equation.

    Try it on paper first.

Example 2: Complex roots

conceptual

Find the general solution of x2y′′+xy′+4y=0 and say how many zeros a non-trivial solution has in (0,1).

  1. Step 1: Write the auxiliary equation.

    Try it on paper first.

Example 3: 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 4: 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.

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, ME, CE, EE, IN + 9 more) syllabus; being checked by a reviewer. Updated 2026-12-01. Spotted a mistake? Use Report an issue on any question, or contact us.