← 2023 Paper 1
UPSC 2023 Maths Optional Paper 1 Q6a — 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 the differential equation
dx3d3y−3dx2d2y+4dxdy−2y=ex+cosx.
Technique
Auxiliary polynomial; resonance modification (xex) for the ex piece since 1 is a root; trigonometric ansatz Bcosx+Csinx for the cosx piece (no resonance because ±i are not roots of the auxiliary).
Solution
Step 1 — Solve the homogeneous part
Auxiliary equation: m3−3m2+4m−2=0.
Try m=1: 1−3+4−2=0 ✓. So (m−1) is a factor.
Polynomial division: m3−3m2+4m−2=(m−1)(m2−2m+2).
Roots of m2−2m+2=0: m=1±i.
Complementary function:
yc=c1ex+ex(c2cosx+c3sinx).
Step 2 — Particular integral for ex
Since m=1 is a simple root of the auxiliary equation, try yp,1=Axex.
The operator can be written D3−3D2+4D−2=(D−1)(D2−2D+2).
Apply (D−1)(D2−2D+2) to Axex. First (D2−2D+2)(Axex):
D(Axex)=Aex+Axex=Aex(1+x).
D2(Axex)=Aex(1+x)+Aex=Aex(2+x).
(D2−2D+2)(Axex)=Aex[(2+x)−2(1+x)+2x]=Aex[2+x−2−2x+2x]=Aex⋅x=Axex.
Then (D−1)(Axex)=Aex+Axex−Axex=Aex.
Set this equal to ex: A=1, so yp,1=xex.
Step 3 — Particular integral for cosx
Try yp,2=Bcosx+Csinx.
yp,2′=−Bsinx+Ccosx.
yp,2′′=−Bcosx−Csinx.
yp,2′′′=Bsinx−Ccosx.
Substitute:
yp,2′′′−3yp,2′′+4yp,2′−2yp,2
=(Bsinx−Ccosx)−3(−Bcosx−Csinx)+4(−Bsinx+Ccosx)−2(Bcosx+Csinx)
=sinx(B+3C−4B−2C)+cosx(−C+3B+4C−2B)
=sinx(−3B+C)+cosx(B+3C).
Set equal to cosx: −3B+C=0,B+3C=1. From the first: C=3B. Substitute: B+9B=1⇒B=101,C=103.
yp,2=101cosx+103sinx=10cosx+3sinx.
Step 4 — General solution
Answer
y=c1ex+ex(c2cosx+c3sinx)+xex+10cosx+3sinx.