← 2024 Paper 1
UPSC 2024 Maths Optional Paper 1 Q6c-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 the general solution of x2y′′−2xy′+2y=x3sinx by the method of variation of parameters.
Technique
Solve the Euler–Cauchy homogeneous equation; convert to standard form (divide by x2); apply the variation-of-parameters formula.
Solution
Step 1 — Homogeneous solution.
Try y=xm: m(m−1)−2m+2=m2−3m+2=0⇒m=1,2.
Complementary function: y1=x, y2=x2.
Step 2 — Standard form.
Divide the ODE by x2: y′′−x2y′+x22y=xsinx.
The right-hand side in standard form is g(x)=xsinx.
Step 3 — Wronskian.
W=x1x22x=2x2−x2=x2.
Step 4 — Particular solution.
yp=−y1∫Wy2gdx+y2∫Wy1gdx.
Wy2g=x2x2⋅xsinx=xsinx,Wy1g=x2x⋅xsinx=sinx.
∫xsinxdx=−xcosx+sinx,∫sinxdx=−cosx.
yp=−x(−xcosx+sinx)+x2(−cosx)=x2cosx−xsinx−x2cosx=−xsinx.
Answer
y(x)=c1x+c2x2−xsinx.