Although separating
\(dy\) &
\(dx\) in
\(\sfrac{dy}{dx}\) is mathematically invalid, it is a widely accepted shortcut in the SOV method.
To see why, start with the separable form,
\begin{equation*}
\frac{dy}{dx} = f(x) \cdot g(y)\text{,}
\end{equation*}
and divide both sides by \(g(y)\text{,}\) leaving the derivative intact:
\begin{equation*}
\frac{1}{g(y)}\ \frac{dy}{dx} = f(x)\text{.}
\end{equation*}
From here, integrate both sides with respect to \(x\text{:}\)
\begin{equation*}
\int \frac{1}{g(y)}\ \frac{dy}{dx}\ dx = \int f(x)\ dx\text{.}
\end{equation*}
Since the product,
\(\sfrac{dy}{dx}\cdot dx\text{,}\) is defined as the differential,
\(dy\text{,}\) we can substitute it into to get the form of the integral you see in
Step 2:
\begin{equation*}
\int \frac{1}{g(y)}\ dy = \int f(x)\ dx,
\end{equation*}
which justifies the informal splitting of \(dy\) and \(dx\) in the derivative, \(\sfrac{dy}{dx}\text{.}\)