I was thinking about integrals where we should be careful with the domain because we perform a trivial but not 1-1 change of variables. For example, in $$\int_{-1}^2\dfrac{4x^3dx}{1+x^4},$$ the classic change of variables $u=x^4$ is not injective; it can be evaluated simply by using the FTC, whose application here doesn't even see the fact that the $x^4$ is not 1-1. This fact actually freaked me out a bit: most of the examples that I know of for change of variable can be replaced by a direct (albeit uglier) application of the FTC, completely bypassing the bijectivity and other issues associated with change of variable.
So, I am wondering whether there really is a gap in my reasoning, that is, whether $$\int_a^b f'(g(x))g'(x)dx=f(g(b))-f(g(a))$$ actually always holds (assuming of course continuous differentiability), no matter how many oscillations $f$ and $g$ have, no matter how many pre-images every $g(x)$ has, etc.
In the above example, I would actually like to perform a change of variable $u=g(x),$ then—just then—apply the FTC; but that would require injectivity of $g,$ etc.