Skip to main contentSkip to solution

The solution of the differential equation dydx−yx=2log⁡ex\frac{dy}{dx} - \frac{y}{x} = 2\log_e x

Solution

✅ Correct Option: 3

The differential equation is dydx−yx=2log⁡ex\frac{dy}{dx} - \frac{y}{x} = 2\log_e x

This is a linear differential equation of the form dydx+P(x)⋅y=Q(x)\frac{dy}{dx} + P(x) \cdot y = Q(x) where P(x)=−1xP(x) = -\frac{1}{x} and Q(x)=2log⁡exQ(x) = 2\log_e x.


The integrating factor is given by IF=e∫P(x)dxIF = e^{\int P(x)dx}

IF=e∫−1xdxIF = e^{\int -\frac{1}{x}dx}

IF=e−log⁡exIF = e^{-\log_e x}

IF=elog⁡ex−1IF = e^{\log_e x^{-1}}

IF=x−1IF = x^{-1}

IF=1xIF = \frac{1}{x}


Multiplying the entire equation by 1x\frac{1}{x}:

1x⋅dydx−1x⋅yx=1x⋅2log⁡ex\frac{1}{x} \cdot \frac{dy}{dx} - \frac{1}{x} \cdot \frac{y}{x} = \frac{1}{x} \cdot 2\log_e x

1xdydx−yx2=2log⁡exx\frac{1}{x} \frac{dy}{dx} - \frac{y}{x^2} = \frac{2\log_e x}{x}


The left side is the derivative of yx\frac{y}{x} by the quotient rule:

ddx(yx)=xdydx−y⋅1x2=1xdydx−yx2\frac{d}{dx}\left(\frac{y}{x}\right) = \frac{x\frac{dy}{dx} - y \cdot 1}{x^2} = \frac{1}{x}\frac{dy}{dx} - \frac{y}{x^2}

The equation becomes:

ddx(yx)=2log⁡exx\frac{d}{dx}\left(\frac{y}{x}\right) = \frac{2\log_e x}{x}


Integrating both sides:

yx=∫2log⁡exxdx\frac{y}{x} = \int \frac{2\log_e x}{x} dx

Let u=log⁡exu = \log_e x, then dudx=1x\frac{du}{dx} = \frac{1}{x}:

∫2log⁡exxdx=∫2u du\int \frac{2\log_e x}{x} dx = \int 2u \, du

=2⋅u22+C= 2 \cdot \frac{u^2}{2} + C

=u2+C= u^2 + C

=(log⁡ex)2+C= (\log_e x)^2 + C


Therefore:

yx=(log⁡ex)2+C\frac{y}{x} = (\log_e x)^2 + C

y=x((log⁡ex)2+C)y = x((\log_e x)^2 + C)

where CC is an arbitrary constant.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question