← 2015 Paper 1
UPSC 2015 Maths Optional Paper 1 Q5b — Step-by-Step Solution
10 marks · Section B
Exact equations · ODEs · asked 9× in 13 yrs · Read the full method →
Question
Solve the differential equation:
(2xy4ey+2xy3+y)dx+(x2y4ey−x2y2−3x)dy=0.
Technique
Exactness test; integrating factor depending on y found via (Nx−My)/M being a function of y alone (the planted structure M=y⋅(⋯) and Nx−My=−4⋅(⋯) makes the ratio −4/y clean); reconstruct potential F by partial integration.
Solution
Strategy. Check exactness; if not exact, look for an integrating factor depending only on y (or only on x).
Let M=2xy4ey+2xy3+y, N=x2y4ey−x2y2−3x.
Step 1 — Test exactness
My=∂y∂(2xy4ey+2xy3+y)=2x(4y3ey+y4ey)+6xy2+1=2xy3ey(4+y)+6xy2+1.
Nx=∂x∂(x2y4ey−x2y2−3x)=2xy4ey−2xy2−3.
My=Nx, not exact.
Step 2 — Integrating factor depending on y alone
For μ=μ(y):
dydlnμ=MNx−My.
Compute Nx−My:
Nx−My=2xy4ey−2xy2−3−2xy3ey(4+y)−6xy2−1.
Simplify 2xy4ey−2xy3ey(4+y)=2xy3ey(y−(4+y))=2xy3ey(−4)=−8xy3ey.
And −2xy2−6xy2=−8xy2.
And −3−1=−4.
So Nx−My=−8xy3ey−8xy2−4=−4(2xy3ey+2xy2+1).
Compare with M=2xy4ey+2xy3+y=y(2xy3ey+2xy2+1).
So MNx−My=y(2xy3ey+2xy2+1)−4(2xy3ey+2xy2+1)=y−4.
Yes — function of y alone. So IF is
μ(y)=exp∫y−4dy=exp(−4ln∣y∣)=y−4=y41.
Step 3 — Multiply by μ
New M~=y4M=y42xy4ey+2xy3+y=2xey+y2x+y31.
New N~=y4N=y4x2y4ey−x2y2−3x=x2ey−y2x2−y43x.
Step 4 — Verify exactness of (M~,N~)
M~y=∂y∂(2xey+2x/y+1/y3)=2xey−y22x−y43.
N~x=∂x∂(x2ey−x2/y2−3x/y4)=2xey−y22x−y43.
Equal ✓. Exact.
Step 5 — Find potential F
Fx=M~=2xey+y2x+y31.
Integrate w.r.t. x:
F=x2ey+yx2+y3x+g(y).
Differentiate w.r.t. y and compare with N~:
Fy=x2ey−y2x2−y43x+g′(y).
Compare with N~=x2ey−y2x2−y43x: g′(y)=0, so g(y)= const.
Step 6 — General solution
Answer
x2ey+yx2+y3x=C.