Why can we say the following:
$u=\int\frac{\mathrm du}{\mathrm dx}\mathrm dx$,
where we treat $u$ as a function (e.g., see this proof).
Because as far as I know, $\int\frac{\mathrm du}{\mathrm dx}\mathrm dx$, as an indefinite integral, stands for a set of functions, whose derivative equals the integrand.
$\int f(x)\,\mathrm dx=F(x)+C$
So how can we say a function $u$ is equal to a family of functions?