Question:medium

The solution of the differential equation \(\frac{dy}{dx}=\frac{xy+y}{xy+x}\) is

Show Hint

Factorise numerator and denominator to separate the variables as (y+1)/y dy = (x+1)/x dx.
Updated On: Nov 12, 2026
  • \(y-x=\log \left(\frac{x}{y}\right)+c\)
  • \(x-y=\log \left(\frac{x}{y}\right)+c\)
  • \(y+x=\log \left(\frac{x}{y}\right)+c\)
  • \(y+x=\log \left(\frac{y}{x}\right)+c\)
Show Solution

The Correct Option is A

Solution and Explanation

Step 1: Factor
The equation is $\frac{dy}{dx}=\frac{y}{x}\cdot\frac{x+1}{y+1}$.

Step 2: Integrate both sides
$\frac{y+1}{y}dy=\frac{x+1}{x}dx$ integrates to $y+\log y=x+\log x+c$.

Step 3: Match the options
Bring the log terms together: $y-x=\log x-\log y+c$, which is the first option.

Final Answer:
The first option matches. \[ \boxed{\text{(A) }y-x=\log \left(\dfrac{x}{y}\right)+c} \]
Was this answer helpful?
0