I changed the dummy variables of integration because I used the boundaries as the limits of the definite integrals. It's considered bad form to have the variable of integration in the limits. Using definite integrals removes the need for finding the constant of integration.
Suppose you have the initial value problem (IVP):
$$\frac{dy}{dx}=f(x)$$ where $$y\left(x_0\right)=y_0$$
Now, separating variables and using indefinite integrals, we may write:
$$\int\,dy=\int f(x)\,dx$$
And upon integrating, we find
$$y(x)=F(x)+C$$ where $$\frac{d}{dx}\left(F(x) \right)=f(x)$$
Using the initial condition, we get
$$y\left(x_0 \right)=F\left(x_0 \right)+C$$
Solving for \(C\) and using $$y\left(x_0\right)=y_0$$, we obtain:
$$C=y_0-F\left(x_0 \right)$$ thus:
$$y(x)=F(x)+y_0-F\left(x_0 \right)$$
which we may rewrite as:
$$y(x)-y_0=F(x)-F\left(x_0 \right)$$
Now, we may rewrite this, using the anti-derivative form of the fundamental theorem of calculus, as:
$$\int_{y_0}^{y(x)}\,dy=\int_{x_0}^{x}f(x)\,dx$$
Now, since the variable of integration gets integrated out, it is therefore considered a "dummy variable" and since it is considered good form not to use the same variable in the boundaries as we use for integration, we may switch these dummy variables and write:
$$\int_{y_0}^{y(x)}\,du=\int_{x_0}^{x}f(v)\,dv$$
This demonstrates that the two methods are equivalent.
Using the boundaries (the initial and final values) in the limits of integration eliminates the need to solve for the constant of integration, and I find it a more intuitive and cleaner approach to separable initial value problems.