There are a number of posts about definite integrals with non-injective u-substitutions:
- Is it always safe to assume that a integral is zero if it has equal bounds?
- How do the limits change with the substitution $u=\sin θ$
- Substitution Makes the Integral Bounds Equal
- Why does this $u$-substitution zero out my integral?
The conclusion is basically the same in each case. For some reason, I don't remember ever being warned about this situation, and I thought it must be because each time this came up, we just skipped over the part where you evaluate $u(a)$ and $u(b)$ and went straight to substituting $u(x)$ in the now integrated function. Is this what people generally do?
i.e. if a u-substitution enables us to find an anti-derivative $F(u(x))$, can we safely assume that regardless of whether or not $u(a) = u(b)$, $F(b) - F(a)$ will be the solution?
It is mostly a practical concern - in general I'm not going to remember on what intervals some function is injective, which appears to be the solution in the above questions. In none of those examples do I see the above points failing.
edit: I try add an example different from those in the above questions:
$$\int_0^{2\pi} \cos x \sin^2 x dx$$
re-arrangements using trig identities aside, the simplest approach seems to involve letting $u(x) = \sin x$, so that $F(x) = \frac{1}{3} \sin^3 x$ and $F(b) - F(a) = 0$, which in this case happens to coincide with what would have (erroneously) happened had we written
$$\int_{u(0)}^{u(2\pi)} u^2 du$$