First-Order Equations: Separable & Linear

separation of variables

Separation of variables is the actual hands-on procedure you run to solve a separable equation. If a separable equation is the type of problem, separation of variables is the recipe you follow — the sequence of algebraic and integration steps that turns dy/dx = f(x) g(y) into an answer.

The steps are simple to state. First, treat dy/dx as a genuine ratio of differentials and rearrange to dy/g(y) = f(x) dx so each variable is alone on its side. Second, place an integral sign in front of both sides and integrate: integral of 1/g(y) dy equals integral of f(x) dx, plus a single arbitrary constant C (one constant covers both sides). Third, if you can, solve the resulting relation for y to get an explicit solution; if you cannot, leave it as an implicit general solution. Throughout, you must separately list any constant solutions where g(y) = 0, because dividing by g(y) hid them.

This is usually the first solution technique anyone learns, and it is worth getting the mechanics clean because the same move — split, integrate, reattach a constant — reappears later (for instance in solving partial differential equations by separating space and time). One honest point: treating dy/dx as a fraction you can split is a convenient shorthand, justified rigorously by the chain rule and substitution; it is a reliable habit here, not a license to manipulate dy and dx however you please in every context.

For dy/dx = y cos x: split to dy/y = cos x dx, integrate to ln|y| = sin x + C, exponentiate to y = A e^(sin x). One constant A absorbs the integration constant from both sides.

The three moves: separate, integrate both sides with one constant, then solve for y if possible.

You add only ONE constant C, not one per side — two constants would just merge into one. And after solving, list the constant solutions you divided away.

Also called
分變數法the separation method