It is a well known fact that
$$ \int f'(g(x))g'(x)dx=f(g(x))+C $$
This follows directly from the chain rule. However, sometimes it is easier to perform the substitution $u=g(x)$:
\begin{align} u&=g(x) \\ \frac{du}{dx}&=g'(x) \\ du&=g'(x)dx \\ \therefore \int f'(g(x))g'(x)dx&=\int f'(u)du\\&=f(u)+C\\&=f(g(x))+C\end{align}
Ordinarily, one cannot simply multiply both sides of an equation by $dx$. After all, '$dx$' on its own is not even formally defined. Here is my attempt to justify why this is allowed:
As well as knowing that $ \int f'(g(x))g'(x)dx=f(g(x))+C $, we also know that
$$ \int f'(u)du=f(u)+C $$
Note that this holds even when $u\neq g(x)$. However, the above fact becomes useful when we set $u=g(x)$, as $f(u)+C$ becomes $f(g(x))+C$. Knowing that $ \int f'(g(x))g'(x)dx$ and $\int f'(u)du$ evaluate to the same thing, we can say that
$$ \int f'(g(x))g'(x)dx=\int f'(u)du $$
when $u=g(x)$. Hence, $g'(x)dx$ can be replaced by $du$, without the value of the integral changing. Since differentiating both sides of $u=g(x)$ and multiplying by $dx$ yields the same result, it is safe to treat $\frac{du}{dx}$ as a fraction in this case.
I have two questions:
- Is this justification good (or, at the very least, valid)? If it can be improved upon, how so?
- Is there a more fundamental reason as to why $\frac{du}{dx}$ can be treated as a fraction? Is it something to do with how we can treat derivatives as fractions when using the chain rule?