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 general solution of the differential equation $\frac{d y}{d x}=\frac{x+y+1}{x+y-1}$ is given by
MathematicsDifferential EquationsMHT CETMHT CET 2021 (20 Sep Shift 1)
Options:
  • A $y=x \log (x+y)+c$
  • B $x-y=\log (x+y)+c$
  • C $x+y=\log (x+y)+c$
  • D $y=x+\log (x+y)+c$
Solution:
2201 Upvotes Verified Answer
The correct answer is: $y=x+\log (x+y)+c$
$$
\frac{d y}{d x}=\frac{x+y+1}{x+y-1}
$$
Put $x+y=u \Rightarrow 1+\frac{d y}{d x}=\frac{d u}{d x}$
$$
\begin{aligned}
& \therefore \frac{\mathrm{du}}{\mathrm{dx}}-1=\frac{\mathrm{u}+1}{\mathrm{u}-1} \Rightarrow \frac{\mathrm{du}}{\mathrm{dx}}=\frac{\mathrm{du}+1}{\mathrm{dx}-1}+1=\frac{2 \mathrm{u}}{\mathrm{u}-1} \\
& \therefore\left(\frac{\mathrm{u}-1}{\mathrm{u}}\right) \mathrm{du}=2 \mathrm{dx}
\end{aligned}
$$
Integrating both sides, we get
$$
\begin{aligned}
& \int d u-\int \frac{d u}{u}=\int 2 d x \\
& \therefore u-\log u=2 x+c \\
& \therefore x+y-\log (x+y)=2 x+c \Rightarrow y=x+\log (x+y)+c
\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.