← 2021 Paper 1
UPSC 2021 Maths Optional Paper 1 Q8a-ii — Step-by-Step Solution
10 marks · Section B
Method of variation of parameters · ODEs · asked 11× in 13 yrs · Read the full method →
Question
Find general solution of x2y′′−2x(1+x)y′+2(1+x)y=0. Hence solve x2y′′−2x(1+x)y′+2(1+x)y=x3 by variation of parameters.
Technique
Spot y1=x by inspection; reduction of order gives y2=xe2x; standard VoP yields particular solution.
Solution
Step 1 — Find one solution by inspection
Try y=x: y′=1, y′′=0. Substitute:
x2⋅0−2x(1+x)⋅1+2(1+x)⋅x=−2x(1+x)+2x(1+x)=0 ✓.
So y1=x.
Step 2 — Find second solution via reduction of order
Try y2=v(x)⋅x. Then y2′=v′x+v, y2′′=v′′x+2v′.
Substitute into x2y′′−2x(1+x)y′+2(1+x)y=0:
x2(v′′x+2v′)−2x(1+x)(v′x+v)+2(1+x)vx=0,
x3v′′+2x2v′−2x2(1+x)v′−2x(1+x)v+2x(1+x)v=0,
x3v′′+2x2v′−2x2(1+x)v′=0.
Simplify 2x2v′−2x2(1+x)v′=2x2v′[1−(1+x)]=−2x3v′.
So x3v′′−2x3v′=0, i.e., v′′=2v′.
Let u=v′: u′=2u, so u=Ce2x. Take C=1: v′=e2x, v=e2x/2.
So y2=v⋅x=xe2x/2. Up to a constant, take y2=xe2x.
Step 3 — Verify y2=xe2x
y2′=e2x+2xe2x=(1+2x)e2x.
y2′′=2e2x+(1+2x)(2)e2x=2e2x+2(1+2x)e2x=(4+4x)e2x=4(1+x)e2x.
LHS: x2⋅4(1+x)e2x−2x(1+x)(1+2x)e2x+2(1+x)xe2x
=e2x(1+x)[4x2−2x(1+2x)+2x]
=e2x(1+x)[4x2−2x−4x2+2x]
=e2x(1+x)⋅0=0 ✓.
Step 4 — General homogeneous solution
yh=C1x+C2xe2x.
Step 5 — Variation of parameters for x3 RHS
Standard form: divide by x2:
y′′−x2(1+x)y′+x22(1+x)y=x.
So g(x)=x in standard form y′′+…=g(x).
VoP: yp=u1y1+u2y2 with u1′y1+u2′y2=0, u1′y1′+u2′y2′=g(x).
With y1=x, y2=xe2x, y1′=1, y2′=(1+2x)e2x:
System:
xu1′+xe2xu2′=0⇒u1′=−e2xu2′.
u1′+(1+2x)e2xu2′=x.
Sub: −e2xu2′+(1+2x)e2xu2′=x,
e2xu2′(2x)=x,
u2′=21e−2x.
u2=∫21e−2xdx=−41e−2x.
u1′=−e2x⋅21e−2x=−1/2.
u1=−x/2.
Step 6 — Particular solution
yp=u1y1+u2y2=(−x/2)(x)+(−e−2x/4)(xe2x)=−x2/2−x/4.
Step 7 — General solution
Answer
y=C1x+C2xe2x−2x2−4x.