Why Separating Works
Figure 1 — Four lines, no cleverness. The variables are split, each side is integrated against its own variable, and one constant is carried along.
The method rests on the chain rule read backwards. If is a function of , then is the derivative of with respect to , and the expression is the derivative of . So integrating that expression with respect to is the same as integrating with respect to . Writing and on opposite sides is shorthand for that substitution, not a licence to treat derivatives as fractions.