← 2016 Paper 1
UPSC 2016 Maths Optional Paper 1 Q6b — Step-by-Step Solution
15 marks · Section B
Method of variation of parameters · ODEs · asked 11× in 13 yrs · Read the full method →
Question
Using the method of variation of parameters, solve the differential equation (D2+2D+1)y=e−xlog(x), [D≡dxd].
Technique
Variation of parameters with y1=e−x,y2=xe−x, W=e−2x; the exponentials cancel leaving ∫xlogxdx and ∫logxdx.
Solution
Step 1 — Complementary function
D2+2D+1=(D+1)2=0 gives the repeated root D=−1. Hence
yc=(c1+c2x)e−x,y1=e−x, y2=xe−x.
Step 2 — Wronskian
y1′=−e−x,y2′=(1−x)e−x.
W=e−x−e−xxe−x(1−x)e−x=e−2x[(1−x)+x]=e−2x.
With R(x)=e−xlogx (RHS in standard form, leading coefficient 1),
yp=−y1∫Wy2Rdx+y2∫Wy1Rdx.
Compute the integrands:
Wy2R=e−2xxe−x⋅e−xlogx=xlogx,Wy1R=e−2xe−x⋅e−xlogx=logx.
Step 4 — The two integrals
∫xlogxdx=2x2logx−∫2xdx=2x2logx−4x2,
∫logxdx=xlogx−x.
Step 5 — Assemble yp
yp=−e−x(2x2logx−4x2)+xe−x(xlogx−x).
=e−x[−2x2logx+4x2+x2logx−x2]=e−x[2x2logx−43x2].
Step 6 — General solution
Answer
y=(c1+c2x)e−x+e−x(2x2logx−43x2).