Question:

The general solution of the differential equation \(\frac{\mathrm{d}y}{\ \mathrm{d}x}=1-x+y-xy\) is (where \(C\) is a constant of integration)

Show Hint

Factor the right side as (1 - x)(1 + y), separate the variables and integrate.
Updated On: Nov 17, 2026
  • \(\log (1+y)=x+\frac{x^{2}}{2}+C\)
  • \(\log (1-x)=\log (1+y)+y+C\)
  • \(\log (1+y)=y-\frac{x^{2}}{2}+C\)
  • \(\log (1+y)=x-\frac{x^{2}}{2}+C\)
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is D

Solution and Explanation

Step 1: Understanding the Concept
\(1-x+y-xy=(1-x)+y(1-x)=(1-x)(1+y)\).

Step 2: Separate
\(\dfrac{dy}{1+y}=(1-x)\,dx\).

Step 3: Integrate
\(\log(1+y)=x-\dfrac{x^{2}}{2}+C\), option (D).

Final Answer:
The solution is \(\log(1+y)=x-\frac{x^{2}}{2}+C\). \[ \boxed{\text{(D) }\log (1+y)=x-\frac{x^{2}}{2}+C} \]
Was this answer helpful?
0
0