ExamBro
ExamBro
MHT CET · Maths · Differential Equations

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

  1. A \(\log x y-x+y=C\)
  2. B \(\log \left(\frac{x}{y}\right)-x+y=C\)
  3. C \(\log x y-x-y=C\)
  4. D \(\log (x y)+x-y=C\)
Verified Solution

Answer & Solution

Correct Answer

(D) \(\log (x y)+x-y=C\)

Step-by-step Solution

Detailed explanation

\(\begin{aligned} & (1+x) y \mathrm{~d} x+(1-y) x \mathrm{~d} y=0 \\ & \Rightarrow \int \frac{1+x}{x} \mathrm{~d} x=\int \frac{y-1}{y} \mathrm{~d} y \\ & \Rightarrow \log |x|+x=y-\log |y|+C \\ & \Rightarrow \log (x y)+x-y=C\end{aligned}\)