Question:medium

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

The Correct Option is D

Solution and Explanation

Step 1: Factor
$\dfrac{dy}{dx}=(1-x)(1+y)$, a variable separable equation.

Step 2: Integrate both sides
$\int\dfrac{dy}{1+y}=\int(1-x)\,dx$.

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

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