Join the Most Relevant JEE Main 2025 Test Series & get 99+ percentile! Join Now
Search any question & find its solution
Question: Answered & Verified by Expert
The solution of the differential equation $\frac{d y}{d x}=\frac{x y+y}{x y+x}$ is
MathematicsDifferential EquationsAP EAMCETAP EAMCET 2008
Options:
  • A $x+y-\log \left(\frac{c y}{x}\right)$
  • B $x+y=\log (c x y)$
  • C $x-y-\log \left(\frac{c x}{y}\right)$
  • D $y-x=\log \left(\frac{c x}{y}\right)$
Solution:
1247 Upvotes Verified Answer
The correct answer is: $y-x=\log \left(\frac{c x}{y}\right)$
Given differential equation is
$$
\begin{aligned}
\frac{d y}{d x} & =\frac{x y+y}{x y+x} \\
\Rightarrow \quad \frac{d y}{d x} & =\frac{y(1+x)}{x(1+y)} \\
\Rightarrow \quad \frac{(1+y)}{y} d y & =\frac{(1+x)}{x} d x \\
\Rightarrow \quad \int\left(\frac{1}{y}+1\right) d y & =\int\left(\frac{1}{x}+1\right) d x \\
\Rightarrow \quad \log y+y & =\log x+x+\log c \\
\Rightarrow \quad y-x & =\log \left(\frac{c x}{y}\right)
\end{aligned}
$$

Looking for more such questions to practice?

Download the MARKS App - The ultimate prep app for IIT JEE & NEET with chapter-wise PYQs, revision notes, formula sheets, custom tests & much more.