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