Solve the equation $$t\cdot\frac{dx}{dt}=x(\ln x - \ln t)$$
My try:
We consider the equation for $x, t >0$. $$tx'=x(\ln x - \ln t)$$ $$t \cdot \frac{dx}{dt}=x(\ln x - \ln t)$$ $$\frac{dx}{x}=(\ln x - \ln t)\frac{dt}t$$ $$\int \frac{1}{x}dx=\int \ln (\frac xt) \cdot \frac 1t dt$$ $\int \ln (\frac xt) \cdot \frac 1t dt=\begin{cases} u=\ln (\frac xt) \\ du = -\frac 1t dt \end{cases} = -\int u du = -\frac{u^2}2 +C = -\frac 12 \ln ^2 (\frac xt) +C$
We go back to our equation: $$\ln x =-\frac 12 \ln ^2 (\frac xt) +C$$ However, I think my way of solving is not the best, because I came to an equation from which it is difficult to determine $x(t)$.
This ODE can be recasted as $\dot{x} = u\ln u$, where $u = \frac{x}{t}$, hence $\dot{u} = \frac{\dot{x}}{t} - \frac{x}{t^2} = \frac{u\ln u-u}{t}$ and $\frac{\mathrm{d}u}{u(\ln u-1)} = \frac{\mathrm{d}t}{t}$ by separation of variables, which leads to $\ln(\ln u-1) - \ln(\ln u_0-1) = \ln t - \ln t_0$ after integration and finally $u(t) = \exp\left(1+\frac{t}{t_0}(\ln u_0-1)\right)$, with the initial condition $u(t_0) = u_0$.