← 2025 Paper 1
UPSC Maths 2025 Paper 1 Q8a — Solution
15 marks · Section B
Question
Solve the differential equation (x+2)dx2d2y−(2x+5)dxdy+2y=(1+x)ex by the method of variation of parameters.
Technique
For this variable-coefficient linear ODE, first find two independent complementary solutions (by inspecting exponential and polynomial trial forms), then apply the variation-of-parameters formula
yp=−y1∫Wy2Rdx+y2∫Wy1Rdx,
where R is the RHS after writing the ODE in standard form y′′+Py′+Qy=R.
Solution
Complementary functions
Trial y=emx in the homogeneous equation (x+2)y′′−(2x+5)y′+2y=0:
(x+2)m2−(2x+5)m+2=0 for all x.
Coefficient of x: m2−2m=0⇒m=0 or m=2. Constant term: 2m2−5m+2=0⇒m=2 or m=21. The common value is m=2, giving
y1=e2x.
For a second solution try a polynomial y=αx+β: y′′=0, y′=α, so −(2x+5)α+2(αx+β)=−2αx−5α+2αx+2β=2β−5α=0, giving β=25α. Take α=2:
y2=2x+5.
(Direct substitution confirms both annihilate the homogeneous operator.)
Divide by (x+2): y′′+Py′+Qy=R with R=x+2(1+x)ex.
Wronskian:
W=y1y2′−y2y1′=e2x⋅2−(2x+5)⋅2e2x=2e2x[1−(2x+5)]=−4(x+2)e2x.
Variation of parameters
yp=−y1∫Wy2Rdx+y2∫Wy1Rdx.
Compute the integrands (R/W=(x+2)⋅(−4)(x+2)e2x(1+x)ex=−4(x+2)2(1+x)e−x):
u2′=Wy1R=−4(x+2)e2x(x+2)e2x(1+x)ex=−4(x+2)2(x+1)ex,u2=∫u2′dx=−4(x+2)ex.
(Using ∫(x+2)2(x+1)exdx=x+2ex, since dxdx+2ex=(x+2)2ex(x+2)−ex=(x+2)2(x+1)ex.)
u1′=−Wy2R=4(x+2)2(x+1)(2x+5)e−x,u1=∫u1′dx=−4(x+2)(2x+3)e−x.
Then
yp=y1u1+y2u2=e2x(−4(x+2)(2x+3)e−x)+(2x+5)(−4(x+2)ex).
=−4(x+2)ex[(2x+3)+(2x+5)]=−4(x+2)ex⋅(4x+8)=−4(x+2)ex⋅4(x+2)=−ex.
Complete solution
y=C1e2x+C2(2x+5)−ex.
Answer
y=C1e2x+C2(2x+5)−ex.