← 2026 Paper 1

UPSC 2026 Maths Optional Paper 1 Q5a — Step-by-Step Solution

10 marks · Section B

Linear first-order · ODEs · asked 6× in 14 yrs · Read the full method →

Question

If y1y_1 and y2y_2 are two solutions of dydx+P(x)y=Q(x)\dfrac{dy}{dx} + P(x)y = Q(x), and y2=y1uy_2 = y_1 u, then show that

u=1+a e−∫(Qy1)dx,u = 1 + a\,e^{-\int \left(\frac{Q}{y_1}\right)dx},

where aa is a non-zero constant.

Technique

Substitute y2=y1uy_2=y_1u into the linear equation and use the fact that y1y_1 already satisfies it to annihilate the PP-terms; what survives is a separable first-order equation for uu alone. Integrate, and read off why the constant cannot be zero.

Solution

Step 1 — State the hypotheses precisely (and the standing assumption).

Both functions satisfy the same linear equation on a common interval II:

dy1dx+P(x) y1=Q(x),(1)\frac{dy_1}{dx} + P(x)\,y_1 = Q(x), \tag{1} dy2dx+P(x) y2=Q(x).(2)\frac{dy_2}{dx} + P(x)\,y_2 = Q(x). \tag{2}

For the substitution y2=y1uy_2=y_1u to define uu at all we need y1≠0y_1\neq 0 on II; and for y2y_2 to be a second (i.e. different) solution we need y2≢y1y_2\not\equiv y_1, so u≢1u\not\equiv 1. Both are taken throughout.

Step 2 — Put y2=y1uy_2=y_1u into equation (2).

By the product rule, dy2dx=y1dudx+udy1dx\dfrac{dy_2}{dx} = y_1\dfrac{du}{dx} + u\dfrac{dy_1}{dx}. Substituting in (2):

y1dudx+udy1dx+P y1u=Q,y_1\frac{du}{dx} + u\frac{dy_1}{dx} + P\,y_1u = Q,

and grouping the two terms carrying uu:

y1dudx+u(dy1dx+P y1)⏟=  Q by (1)=Q.y_1\frac{du}{dx} + u\underbrace{\left(\frac{dy_1}{dx} + P\,y_1\right)}_{=\;Q\ \text{by (1)}} = Q.

This is the load-bearing step: the bracket is exactly the left side of (1), so it equals QQ. Note that PP has now disappeared completely. Hence

y1dudx+uQ=Q⟹y1dudx=Q (1−u).(3)y_1\frac{du}{dx} + uQ = Q \qquad\Longrightarrow\qquad y_1\frac{du}{dx} = Q\,(1-u). \tag{3}

Step 3 — Separate and integrate.

Equation (3) is separable. Since u≢1u\not\equiv1 we may divide by 1−u1-u (on any subinterval where 1−u≠01-u\neq0; by uniqueness for the linear equation, u=1u=1 at one point would force y2≡y1y_2\equiv y_1, so in fact 1−u1-u never vanishes):

du1−u=Qy1 dx.\frac{du}{1-u} = \frac{Q}{y_1}\,dx.

Integrating both sides,

−ln⁡∣1−u∣=∫Qy1 dx+c,-\ln|1-u| = \int\frac{Q}{y_1}\,dx + c,

so

∣1−u∣=e−c e−∫(Q/y1) dx⟹1−u=A e−∫(Q/y1) dx,|1-u| = e^{-c}\,e^{-\int (Q/y_1)\,dx}\qquad\Longrightarrow\qquad 1-u = A\,e^{-\int (Q/y_1)\,dx},

where A=±e−cA=\pm e^{-c} is an arbitrary non-zero constant (the sign is absorbed on removing the modulus).

Therefore

u=1−A e−∫(Q/y1) dx=1+a e−∫(Q/y1) dx,a:=−A.u = 1 - A\,e^{-\int (Q/y_1)\,dx} = 1 + a\,e^{-\int (Q/y_1)\,dx},\qquad a:=-A .

Step 4 — Why a≠0a\neq0.

If a=0a=0 the formula gives u≡1u\equiv1, hence y2=y1u=y1y_2=y_1u=y_1. But y1y_1 and y2y_2 were taken to be two solutions, i.e. distinct ones; a repeat of y1y_1 carries no new information and the substitution y2=y1uy_2=y_1u would be vacuous. Hence a≠0a\neq0. (Equivalently: a=0a=0 is exactly the degenerate case excluded by u≢1u\not\equiv1 in Step 2, which is what allowed the division by 1−u1-u.)

Step 5 — Consistency check (worth one line in the exam).

Subtracting (1) from (2), w:=y2−y1w:=y_2-y_1 satisfies the homogeneous equation w′+Pw=0w'+Pw=0, so w=Ce−∫P dxw=Ce^{-\int P\,dx}. Our answer gives

w=y1(u−1)=a y1 e−∫(Q/y1) dx.w = y_1(u-1) = a\,y_1\,e^{-\int (Q/y_1)\,dx}.

The two agree because, dividing (1) by y1y_1,

y1′y1−Qy1=−P⟹ddx ⁣[ln⁡y1−∫Qy1dx]=−P,\frac{y_1'}{y_1} - \frac{Q}{y_1} = -P \quad\Longrightarrow\quad \frac{d}{dx}\!\left[\ln y_1 - \int\frac{Q}{y_1}dx\right] = -P,

i.e. y1e−∫(Q/y1)dx=e ln⁡y1−∫(Q/y1)dxy_1e^{-\int (Q/y_1)dx}=e^{\,\ln y_1-\int (Q/y_1)dx} is precisely e−∫P dxe^{-\int P\,dx} up to a constant. The result is therefore internally consistent with the standard structure “general solution = particular + homogeneous”.

Answer

  u=y2y1=1+a e−∫(Qy1)dx,a≠0  (else y2≡y1).  \boxed{\;u = \frac{y_2}{y_1} = 1 + a\,e^{-\int \left(\frac{Q}{y_1}\right)dx},\qquad a\neq0\ \ \text{(else }y_2\equiv y_1).\;}
We post more of this — worked solutions, CSAT trap breakdowns, guide chapters — a few times a week on Telegram. Free, no sign-in. Join

This solution is part of the Maths Coverage Map — 14 years, mapped. Get the take-away PDF free.