I came across this phrasing of the theorem justifying u-substitution:
Let $F(x)$ be an antiderivative of $f(x)$ in an interval $I.$ Let $\phi$ from $J$ to $I$, $\phi(t) = x$ be a differentiable function. Then $\int f(x)dx=\int f(\phi(t))\phi^{\prime}(t)dt.$
I am confused about the assumptions part - first of all, why can we assume that there exists a function $\phi$ such that $\phi(t)=x$?
Secondly, we know that the image of $\phi$ over $J$ is a subset of $I$. Why aren't we demanding that the image of $\phi$ will be equal to $I$, and not just a subset? In my mind, we are "losing" some $x$ values that are not given by $\phi(t)$ if it is strictly contained.
Lastly, in the final steps of the proof of this theorem, we said that $F(\phi(t))+c=F(x)+c=\int f(x)dx.$ Why can we treat $x$ just like a "dummy" variable? We assumed it equals a function $\phi(t)$ after all.