Question:

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

The Correct Option is B

Solution and Explanation

Step 1: Understanding the Concept
Rewrite as \(\dfrac{dy}{dx}=\dfrac{y}{x}\left(\log\dfrac{y}{x}+1\right)\), a homogeneous equation. Put \(y=vx\), so \(\dfrac{dy}{dx}=v+x\dfrac{dv}{dx}\).

Step 2: Substitute
\(v+x\dfrac{dv}{dx}=v(\log v+1)\Rightarrow x\dfrac{dv}{dx}=v\log v\).

Step 3: Separate and Integrate
\(\dfrac{dv}{v\log v}=\dfrac{dx}{x}\Rightarrow\log|\log v|=\log x+\log c\Rightarrow\log v=cx\).

Step 4: Result
So \(v=e^{cx}\) and \(y=xe^{cx}\). Comparing with \(y=h(x)e^{cx}\), \(h(x)=x\), option (B).

Final Answer:
The function h of x is x. \[ \boxed{\text{(B) }x} \]
Was this answer helpful?
0
0