Question:

The solution of the differential equation \((1+x)y\ \mathrm{d}x+(1-y)x\ \mathrm{d}y=0\) is

Show Hint

Divide by xy to separate the variables and integrate each side.
Updated On: Nov 17, 2026
  • \(\log xy-x+y=C\)
  • \(\log \left(\frac{x}{y}\right)-x+y=C\)
  • \(\log xy-x-y=C\)
  • \(\log (xy)+x-y=C\)
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is D

Solution and Explanation

Step 1: Understanding the Concept
Separate the variables so that \(x\) terms are with \(dx\) and \(y\) terms with \(dy\).

Step 2: Separate
Divide \((1+x)y\,dx+(1-y)x\,dy=0\) by \(xy\): \(\dfrac{1+x}{x}dx+\dfrac{1-y}{y}dy=0\).

Step 3: Split
\(\left(\dfrac1x+1\right)dx+\left(\dfrac1y-1\right)dy=0\).

Step 4: Integrate
\(\log x+x+\log y-y=C\), that is \(\log(xy)+x-y=C\).

Final Answer:
The solution is \(\log(xy)+x-y=C\). \[ \boxed{\text{(D) }\log (xy)+x-y=C} \]
Was this answer helpful?
0
0