The general solution of the differential equation \(\displaystyle\frac{dy}{dx}=1+x+y+xy\) is given by:
Answer & explanation
Correct answer: option 1
The correct answer is Option (1) → \(\log(1+y)=x+\displaystyle\frac{x^2}{2}+C\), where C is a constant
The right-hand side factorises:
\(1+x+y+xy = (1+x)+y(1+x)\)
\(= (1+x)(1+y)\)
So the equation is in variables separable form:
\( \displaystyle \frac{dy}{1+y} = (1+x)\,dx \)
Integrating both sides:
\( \displaystyle \int\frac{dy}{1+y} = \int(1+x)\,dx \)
\( \displaystyle \log|1+y| = x+\frac{x^2}{2}+C \)
For 1 + y > 0 this is \(\log(1+y)=x+\frac{x^2}{2}+C\).