How to approach integrals in the form $\int R(x,x^{\frac{m}{n}},x^{\frac{r}{s}}...)dx$
where $R(x,x^{\frac{m}{n}},x^{\frac{r}{s}})$ represents a fraction in terms of roots:
I was told to use the substitution $x=t^k$ where k is the least common multiple of the denominators of exponents of x
let's do an example:
$$\int \frac{dx}{x-\sqrt{x}}$$
$lcm(1,2) = 2$
hence $x=t^2$ and $dx=2tdt$ then:
$$\int\frac{2tdt}{t^2-t}$$ $$2\int\frac{dt}{t-1} = 2ln|(t-1)|=2ln|\sqrt{x}-1|$$
I was told in my class to use this method but I was never told WHY it works I would like to have a deeper understanding of why this method works and also see if there are more methods to approach integrals of that form