Question
Test whether the differential equation (2xy+3)dx+(x2−1)dy=0 is exact. If so, solve it.
(JEE Main 2022, similar pattern)
Solution — Step by Step
The equation is in the form Mdx+Ndy=0.
M=2xy+3 and N=x2−1.
A differential equation is exact if ∂y∂M=∂x∂N.
∂y∂M=2x
∂x∂N=2x
Since ∂y∂M=∂x∂N=2x, the equation is exact.
We need F such that ∂x∂F=M and ∂y∂F=N.
Integrate M with respect to x:
F=∫(2xy+3)dx=x2y+3x+g(y)
where g(y) is an unknown function of y only.
∂y∂F=x2+g′(y)=N=x2−1
g′(y)=−1⟹g(y)=−y
F(x,y)=x2y+3x−y=C
x2y+3x−y=C
where C is an arbitrary constant.
Why This Works
An exact differential equation Mdx+Ndy=0 means there exists a function F(x,y) such that dF=Mdx+Ndy. The equation then simply says dF=0, so F=constant.
The exactness condition ∂M/∂y=∂N/∂x comes from the equality of mixed partial derivatives: ∂y∂x∂2F=∂x∂y∂2F.
The method reconstructs F by integrating one partial derivative and using the other to pin down the arbitrary function.
Alternative Method
You can also integrate N with respect to y first: F=∫(x2−1)dy=x2y−y+h(x). Then ∂F/∂x=2xy+h′(x)=2xy+3, so h′(x)=3, h(x)=3x. Same result: F=x2y−y+3x=C.
When the equation is not exact, look for an integrating factor. If NMy−Nx is a function of x only, the integrating factor is e∫NMy−Nxdx. If MNx−My is a function of y only, the integrating factor is e∫MNx−Mydy.
Common Mistake
After integrating M w.r.t. x, students often write g(y) as a constant instead of a function of y. The “constant of integration” when integrating a partial derivative is not a number — it is a function of the other variable. Missing this function g(y) means the solution will not satisfy ∂F/∂y=N.