Using the change of variables $t=sx$ for the single definite integral:
$$\Gamma \left( x\right) =\int _{0}^{\infty }e^{-t}t^{x-1}dt$$
what magical process, in full, do you use to get to:
$$\Gamma \left( x\right) \sim x^{x}\int _{0}^{\infty }e^{-x\left( s-\log s\right) }\dfrac {ds} {s}$$
We consider the integration variables $s$ and $t$. Substitution yields \begin{align*} t&=sx\\ dt&=x ds \end{align*}