Integration by substitution is defined as something like
$\displaystyle\int_a^b f(\phi(t))\phi'(t)dt = \int_{\phi(a)}^{\phi(b)} f(x)dx$
But for my taste, the variables $x$ and $t$ are exactly switched! It's still correct since it's just a name, but why is this written in the exact counter intuitive way? I Feel like maybe I'm missing something. To illustrate, an example:
$\displaystyle\int_{x=0}^{x=2} x \cos(x^2+1)dx$
Then we have $t=ϕ(x)=x^2+1$ and therefore $\frac{dt}{dx}=2x$ or $dx=\frac{dt}{2x}$. So we have
$\displaystyle\int_{\phi(0)}^{\phi(2)} \frac 1 2 \cos(t)dt = \int_{t=1}^{t=5} \frac 1 2 \cos(t)dt = \frac 1 2 (\sin 5 - \sin 1)$
Which is all correct and wonderful. But why on earth would you name the variables $t$ and $x$ exactly the opposite way of how they would appear in almost every situation?