The solution of the differential equation \(\displaystyle\frac{dy}{dx}=1+x+y+xy\), where C is an arbitrary constant, is:
Answer & explanation
Correct answer: option 3
The correct answer is Option (3) → \(\log(1+y)=x+\displaystyle\frac{x^2}{2}+C\)
The right side factorises:
\(1 + x + y + xy = (1 + x) + y(1 + x) = (1 + x)(1 + y)\)
So the variables separate:
\( \displaystyle \frac{dy}{1+y} = (1 + x)\,dx \)
Integrating both sides:
\( \displaystyle \log|1+y| = x + \frac{x^2}{2} + C \)