Question:

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
collegedunia
Verified By Collegedunia

The Correct Option is A

Solution and Explanation

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

Step 2: Separate the variables
\(\frac{dy}{dx}=\frac{y(x+1)}{x(y+1)}\Rightarrow\frac{y+1}{y}dy=\frac{x+1}{x}dx\).

Step 3: Integrate
\(\int\left(1+\frac{1}{y}\right)dy=\int\left(1+\frac{1}{x}\right)dx\)
\(y+\log y=x+\log x+c\).

Step 4: Rearrange
\(y-x=\log x-\log y+c=\log\left(\frac{x}{y}\right)+c\).

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