If $t=\ln(x)$, $y$ some function of $x$, and $\dfrac{dy}{dx}=e^{-t}\dfrac{dy}{dt}$, why would the second derivative of $y$ with respect to $x$ be: $$-e^{-t}\frac{dt}{dx}\frac {dy}{dt} + e^{-t}\frac{d^2y}{dt^2}\frac{dt}{dx}?$$
I know this links into the chain rule. I don't have a good intuition for why the first term has $\dfrac{dt}{dx}\dfrac{dy}{dt}$ (although I strongly feel it's such that we can change the variable, since this question arose in the context of a second order differential equation where $y$ was differentiated in terms of $x$, but the equation was non linear, so we had to make it linear by substitution). Moreover, the proper problem that I would plead to be adressed is why the second term is differentiated in the way that it is. Basically, my question is: why is the differential of $\dfrac{dt}{dx}\dfrac{dy}{dt}$ with respect to $x$ given as $\dfrac{d^2y}{dt^2}\dfrac{dt}{dx}$.
Preferable if english to explain any mathematical derivations, but any of your personal time to help out is always much appreciated.
With your substitution $t=\ln (x) $, the differentiation wrt $x $ is a differentiation wrt $t $ multiplied by $e^{-t} $. thus
$$\frac {d}{dx}(\frac {dy}{dx})=\frac {d}{dt}(\frac {dy}{dx})e^{-t} $$
$$=\frac {d}{dt}(\frac {dy}{dt}e^{-t})e^{-t} $$
$$=(\frac {d^2y}{dt^2}-\frac {dy}{dt})e^{-2t}$$