Question:medium

The solution of differential equation \(y\log x - y\,dx = x\,dy\) is

Show Hint

For equations like \(y(\log x -1)dx = xdy\), separate variables and integrate carefully.
Updated On: May 21, 2026
  • \(y(\log e^x + Cx) = 1\)
  • \(\left(\log \frac{x}{e} + Cx\right)x = y\)
  • \((\log Cx^2 + ex^2)y = x\)
  • None of these
Show Solution

The Correct Option is D

Solution and Explanation

To solve the given differential equation \( y \log x - y\,dx = x\,dy \), let's first rewrite it in a more familiar form for differential equations. This can be done by rearranging the terms as follows:

\(y \log x \,dx - y \,dx = x \,dy\)

This simplifies to:

\(y (\log x - 1) \,dx = x \,dy\)

We can now rewrite it in the standard form of a separable differential equation:

\(\frac{dy}{y} = \frac{\log x - 1}{x} \,dx\)

Now, we integrate both sides:

Integrating the left-hand side:

\(\int \frac{dy}{y} = \log |y| + C_1\)

Integrating the right-hand side:

\(\int \frac{\log x - 1}{x} \,dx = \int \frac{\log x}{x} \,dx - \int \frac{1}{x} \,dx\)

The integral of \(\frac{1}{x}\) is:

\(\int \frac{1}{x} \,dx = \log |x|\)

For the integral \(\int \frac{\log x}{x} \,dx\), we use integration by parts where:

  • Let \(u = \log x\) and \(dv = \frac{1}{x} \,dx\)
  • Then \(du = \frac{1}{x} \,dx\) and \(v = x\)

Applying integration by parts:

\(\int u \,dv = uv - \int v \,du\)

This gives:

\(\int \frac{\log x}{x} \,dx = (\log x) \cdot x - \int 1 \,dx = x \log x - x\)

Therefore, the integration of the right-hand side is:

\(x \log x - x - \log |x| + C_2\)

Combining both sides, we have:

\(\log |y| = x \log x - x - \log |x| + C\)

where \(C = C_2 - C_1\)

This form does not match any of the given options, therefore the final answer is: None of these.

Was this answer helpful?
0