← 2021 Paper 1
UPSC 2021 Maths Optional Paper 1 Q6b — Step-by-Step Solution
15 marks · Section B
Linear ODE with constant coefficients · ODEs · asked 4× in 13 yrs · Read the full method →
Question
Solve completely dx2d2y+(tanx−3cosx)dxdy+2ycos2x=cos4x, demonstrating all steps.
Technique
Substitution t=sinx converts non-constant-coefficient to constant-coefficient y′′−3y′+2y=1−t2; standard CF + polynomial PI.
Solution
Strategy. This is a non-constant-coefficient linear ODE. Try a substitution to simplify. Let t=g(x) for some g to make the ODE constant-coefficient.
Step 1 — Recognise potential substitution
Coefficient of y′ has tanx−3cosx; coefficient of y has cos2x; RHS has cos4x.
Try t=sinx, so dt/dx=cosx.
dxdy=dtdy⋅cosx.
dx2d2y=dxd(cosxdtdy)=−sinxdtdy+cosx⋅dxddtdy=−sinxdtdy+cos2xdt2d2y.
Substitute into the ODE:
[−sinxyt+cos2xytt]+(tanx−3cosx)cosxyt+2ycos2x=cos4x.
Expand: −sinxyt+cos2xytt+sinxyt−3cos2xyt+2cos2xy=cos4x.
The sinxyt terms cancel:
cos2xytt−3cos2xyt+2cos2xy=cos4x.
Divide by cos2x:
ytt−3yt+2y=cos2x=1−sin2x=1−t2.
Step 2 — Solve constant-coefficient ODE
y′′−3y′+2y=1−t2 (where ′=d/dt).
CF: Roots of D2−3D+2=(D−1)(D−2): D=1,2. yc=C1et+C2e2t.
PI for 1−t2: Try yp=at2+bt+c.
yp′=2at+b, yp′′=2a.
2a−3(2at+b)+2(at2+bt+c)=1−t2,
2at2+(2b−6a)t+(2a−3b+2c)=1−t2.
Match:
- t2: 2a=−1⇒a=−1/2.
- t1: 2b−6a=0⇒2b+3=0⇒b=−3/2.
- t0: 2a−3b+2c=1⇒−1+9/2+2c=1⇒2c=1+1−9/2=−5/2⇒c=−5/4.
yp=−2t2−23t−45.
Step 3 — Convert back to x
t=sinx.
y=C1esinx+C2e2sinx−2sin2x−23sinx−45.
Answer
y=C1esinx+C2e2sinx−21sin2x−23sinx−45.