Question:medium

The general solution of \(xdy-ydx=xy\,dy\) is

Show Hint

For equations involving differentials such as \[ M(x,y)\,dx+N(x,y)\,dy=0, \] first collect all \(dx\) terms together and all \(dy\) terms together before attempting separation of variables.
Updated On: Jun 18, 2026
  • \(y=Ae^{-xy}\)
  • \(y=Ae^{x}\)
  • \(\dfrac{y}{x}=Ae^{x}\)
  • \(\dfrac{x}{y}+\dfrac{y}{x}=C\)
Show Solution

The Correct Option is A

Solution and Explanation

Step 1: Rewrite as a homogeneous differential form.
x dy – y dx = xy dy → x dy – xy dy = y dx → x(1–y)dy = y dx → dx/x = (1–y)/y dy = (1/y – 1)dy.

Step 2: Integrate directly.

∫ dx/x = ∫ (1/y – 1)dy → ln|x| = ln|y| – y + C.

Step 3: Rearrange to solve for relationship.

ln|x| – ln|y| = –y + C → ln|x/y| = –y + C → x/y = e^(C)·e^(–y) → x = A y e^(–y) → y e^y = A/x. Alternatively, y = A e^(–xy).

Step 4: Final Answer:

y = A e^(–xy).
Was this answer helpful?
0