Does the following hold?
$$ \int_0^{\pi/2} f(\tan(x))\cdot \sec^2(x) \,{\rm d}x = \int_0^\infty f(t) \,{\rm d}t $$
If so, why is this substitution allowed, when the proof of the substitution rule, to my understanding, requires $\tan'(x)$ to be continuous on $[0,\pi/2]$ for the chain rule step, when it is only continuous on $(0,2\pi)$ I think?
Also if so, is are there other cases not covered by the standard substitution rule where the result also holds.
Let us recall the following theorem:
I suppose that if you ask this question it is because you haven't seen the Lebesgue integral yet (and with it the concept of set of zero measure). In the case of Riemann integral, this theorem is also true if the set of point of nondifferentiability is finite (which is a special case of set of zero measure).