Particular solution of the differential equation \(\log\left(\displaystyle\frac{dy}{dx}\right)=x+y\), given that when \(x = 0, y = 0\) is:
Answer & explanation
Correct answer: option 1
The correct answer is Option (1) → \(e^x+e^{-y}=2\)
Removing the logarithm:
\( \displaystyle \frac{dy}{dx} = e^{x+y} = e^x\,e^y \)
The variables separate:
\( \displaystyle \int e^{-y}\,dy = \int e^x\,dx \)
\(-e^{-y} = e^x + C\)
Putting x = 0, y = 0:
\(-1 = 1 + C,\quad C = -2\)
Hence
\(-e^{-y} = e^x - 2\)
\(e^x + e^{-y} = 2\)