← 2018 Paper 1
UPSC 2018 Maths Optional Paper 1 Q8d — Step-by-Step Solution
12 marks · Section B
Exact equations · ODEs · asked 9× in 13 yrs · Read the full method →
Question
Find f(y) such that (2xey+3y2)dy+(3x2+f(y))dx=0 is exact and hence solve.
Technique
Impose Py=Qx to solve f′(y)=2ey; then integrate the exact equation (F=∫Pdx, match Fy=Q).
Solution
Write the equation in the standard order Pdx+Qdy=0 with
P=3x2+f(y),Q=2xey+3y2.
Step 1 — Exactness condition
The equation is exact iff ∂y∂P=∂x∂Q:
∂y∂P=f′(y),∂x∂Q=2ey.
So we need
f′(y)=2ey⇒f(y)=2ey
(taking the integration constant to be 0, since any constant added to f just shifts P by a constant and can be absorbed).
f(y)=2ey.
Step 2 — The now-exact equation
P=3x2+2ey,Q=2xey+3y2,Py=2ey=Qx. ✓
Step 3 — Find the potential F
Integrate P in x:
F=∫(3x2+2ey)dx=x3+2xey+g(y).
Differentiate in y and match Q:
Fy=2xey+g′(y)=Q=2xey+3y2⇒g′(y)=3y2⇒g(y)=y3.
Step 4 — General solution
Answer
x3+2xey+y3=C.