Question:medium

If \(x\frac{dy}{dx}=y(\log y-\log x+1)\) and its solution is \(y=[h(x)]e^{cx}\), then \(h(x)=\ldots\)

Show Hint

Substitute y = vx to reduce it to separable form.
Updated On: Nov 12, 2026
  • \(2x\)
  • \(x\)
  • \(\log x\)
  • \(\frac{1}{x}\)
Show Solution

The Correct Option is B

Solution and Explanation

Step 1: Verify the Proposed Solution
Take $y=xe^{cx}$. Then $\dfrac{dy}{dx}=e^{cx}+cxe^{cx}$.

Step 2: Substitute
$x\dfrac{dy}{dx}=xe^{cx}(1+cx)$. Also $\log y-\log x+1=cx+1$, so $y(\log y-\log x+1)=xe^{cx}(1+cx)$.

Step 3: Conclude
Both sides match, so $h(x)=x$.

Final Answer:
The equation is satisfied by y = x e^{cx}, so h(x) = x. \[ \boxed{\text{(B) }x} \]
Was this answer helpful?
0