Exact Differential Equation — Test and Solution Method

hard JEE-MAIN JEE Main 2024 4 min read

Question

Solve the differential equation:

(2xy+y2)dx+(x2+2xy)dy=0(2xy + y^2)\,dx + (x^2 + 2xy)\,dy = 0

Also verify whether the equation is exact before solving. (JEE Main 2024 pattern)


Solution — Step by Step

Write the equation in standard form Mdx+Ndy=0M\,dx + N\,dy = 0:

M=2xy+y2,N=x2+2xyM = 2xy + y^2, \qquad N = x^2 + 2xy

We treat MM as the coefficient of dxdx and NN as the coefficient of dydy. This identification is the only thing that matters before testing exactness.

Compute the partial derivatives:

My=y(2xy+y2)=2x+2y\frac{\partial M}{\partial y} = \frac{\partial}{\partial y}(2xy + y^2) = 2x + 2y Nx=x(x2+2xy)=2x+2y\frac{\partial N}{\partial x} = \frac{\partial}{\partial x}(x^2 + 2xy) = 2x + 2y

Since My=Nx\dfrac{\partial M}{\partial y} = \dfrac{\partial N}{\partial x}, the equation is exact. We can now integrate directly.

We need a function F(x,y)F(x, y) where:

Fx=M=2xy+y2\frac{\partial F}{\partial x} = M = 2xy + y^2

Integrate with respect to xx, treating yy as constant:

F=(2xy+y2)dx=x2y+xy2+g(y)F = \int (2xy + y^2)\,dx = x^2y + xy^2 + g(y)

The g(y)g(y) here is not just a constant — it can depend on yy. This is the step most students skip, and it costs them marks.

Differentiate FF with respect to yy:

Fy=x2+2xy+g(y)\frac{\partial F}{\partial y} = x^2 + 2xy + g'(y)

Set this equal to N=x2+2xyN = x^2 + 2xy:

x2+2xy+g(y)=x2+2xyx^2 + 2xy + g'(y) = x^2 + 2xy g(y)=0    g(y)=C1 (a constant)g'(y) = 0 \implies g(y) = C_1 \text{ (a constant)}

The solution to an exact equation is F(x,y)=CF(x, y) = C:

x2y+xy2=C\boxed{x^2y + xy^2 = C}

This can also be written as xy(x+y)=Cxy(x + y) = C.


Why This Works

When we say an equation Mdx+Ndy=0M\,dx + N\,dy = 0 is exact, we mean there exists some function F(x,y)F(x, y) such that dF=Mdx+NdydF = M\,dx + N\,dy. So the equation is literally saying dF=0dF = 0, which means F=constantF = \text{constant}.

The condition My=Nx\dfrac{\partial M}{\partial y} = \dfrac{\partial N}{\partial x} is the mathematical test for this. It comes from Clairaut’s theorem — mixed partials of FF must be equal: Fxy=FyxF_{xy} = F_{yx}.

Once you know the equation is exact, the integration procedure is systematic and guaranteed to work. No guesswork, no integrating factors needed.


Alternative Method — Inspection / Grouping

Sometimes you can spot the exact differential directly by grouping terms. Rewrite:

2xydx+2xydy+y2dx+x2dy=02xy\,dx + 2xy\,dy + y^2\,dx + x^2\,dy = 0

Notice that x2dy+y2dxx^2\,dy + y^2\,dx is not d(x2y)d(x^2y) — but x2dy+2xydx=d(x2y)x^2\,dy + 2xy\,dx = d(x^2y) and y2dx+2xydy=d(xy2)y^2\,dx + 2xy\,dy = d(xy^2).

Group more carefully:

(2xydx+x2dy)d(x2y)+(y2dx+2xydy)d(xy2)=0\underbrace{(2xy\,dx + x^2\,dy)}_{d(x^2y)} + \underbrace{(y^2\,dx + 2xy\,dy)}_{d(xy^2)} = 0 d(x2y)+d(xy2)=0    d(x2y+xy2)=0d(x^2y) + d(xy^2) = 0 \implies d(x^2y + xy^2) = 0   x2y+xy2=C\therefore\; x^2y + xy^2 = C

Same answer, and in JEE this method is often faster once you recognise the standard exact differentials.

Standard exact differentials worth memorising for JEE:

  • d(xy)=xdy+ydxd(xy) = x\,dy + y\,dx
  • d(x2y)=2xydx+x2dyd(x^2y) = 2xy\,dx + x^2\,dy
  • d ⁣(xy)=ydxxdyy2d\!\left(\dfrac{x}{y}\right) = \dfrac{y\,dx - x\,dy}{y^2}
  • d ⁣(lnxy)=ydxxdyxyd\!\left(\ln\dfrac{x}{y}\right) = \dfrac{y\,dx - x\,dy}{xy}

Common Mistake

Forgetting that g(y)g(y) is a function, not a constant.

When you integrate MM with respect to xx, the “constant of integration” can depend on yy. Students write g(y)=Cg(y) = C immediately without checking — then get the wrong FF, and the condition Fy=N\dfrac{\partial F}{\partial y} = N fails.

Always differentiate your FF with respect to yy, compare with NN, and then solve for g(y)g'(y). If g(y)g'(y) still contains xx, that means you made an arithmetic error somewhere — go back and recheck.

Want to master this topic?

Read the complete guide with more examples and exam tips.

Go to full topic guide →

Try These Next