"Using infinitesimals", as in physics, one can see that $\frac{\frac{df}{dt}}{\frac{dx}{dt}}=\frac{df}{dx}$.
How does one justify it?
Assuming both nominator and denominator exist, then $x$ is also continuous at t, thus $x(t+h)=x(t)+\delta x(h),\lim_{h\rightarrow 0}\delta x(h)=0$.
For $f(x(t)),x(t)$ we conclude:
$\frac{\lim_{h\rightarrow 0}\frac{f(x(t+h))-f(x(t))}{h}}{\lim_{h\rightarrow 0}\frac{x(t+h)-x(t)}{h}}=\lim_{h\rightarrow 0}\frac{\frac{f(x(t+h))-f(x(t))}{h}}{\frac{x(t+h)-x(t)}{h}}=\lim_{h\rightarrow 0}\frac{f(x(t+h))-f(x(t))}{x(t+h)-x(t)}=\lim_{\delta x\rightarrow 0}\frac{f(x+\delta x))-f(x)}{x+\delta x-x}=\lim_{\delta x\rightarrow 0}\frac{f(x+\delta x))-f(x)}{\delta x}=\frac{df}{dx}$
Have I missed anything?