Separable Equations
Suppose a hot cup of coffee cools in a room at constant temperature. Or a population grows subject to limited resources. Can we write down, in closed form, exactly how the quantity changes over time? Both situations reduce to a first-order differential equation. Its right-hand side factors into two pieces. One piece depends only on the independent variable. The other depends only on the unknown function. This factoring is not a curiosity. It is the single most exploitable structural feature a first-order equation can have. It converts a differential equation into two ordinary integrals. Separable equations matter because they give the first genuinely algorithmic method for solving nonlinear differential equations. This contrasts with the qualitative sketching of First-Order ODEs and Direction Fields. Before separable equations, a student can only say "the slope field looks like this." After separable equations, a student can produce an explicit formula. They can check it by substitution. They can use it to predict the future of the system exactly. This is the bridge from geometric intuition to symbolic computation. The big picture is this: "separability" is the first of a hierarchy of special structures. These are separable, then linear, then exact. Each makes first-order equations solvable by quadrature (that is, by integration). Each structure has its own recognition test and its own solution recipe. Separable equations are the simplest member of this family. They require only algebraic factoring and Integration Techniques already in hand. This article gives the precise definition of a separable equation. It proves the separation-of-variables theorem rigorously. This includes the existence and uniqueness statement needed to justify the method. It works two nontrivial examples with attention to domain and singular solutions. It shows exactly what goes wrong if the separability hypothesis is dropped.
- A first-order ODE is separable if it can be written as .
- Method: divide by (where nonzero), then integrate both sides separately in and .
- Points where give constant (equilibrium) solutions that the algebra can silently discard.
- The resulting implicit relation defines implicitly; solving for explicitly is not guaranteed.
- Local existence and uniqueness of solutions follows from continuity and differentiability of (Picard–Lindelöf).
- Key idea: factoring the slope function into an -part and a -part turns a differential equation into two ordinary integrals.
Where this lives today
Separable equations are the working engine behind population models (logistic growth, as in Example 1), radioactive decay and pharmacokinetics (), Newton's law of cooling, and Torricelli's law for draining tanks. In physics, separable ODEs appear when solving for terminal velocity under quadratic drag, and in circuit theory for simple RC discharge. In probability and statistics, separable differential equations arise in deriving certain characteristic-function and survival-function relationships (e.g., the exponential distribution's memoryless property emerges from a separable hazard-rate equation). In numerical analysis and scientific computing, separable equations serve as the benchmark test cases against which numerical ODE solvers (Euler's method, Runge–Kutta) are validated, since the exact closed-form solution is known. The technique also foreshadows Exact Equations and Linear First-Order Equations, both of which generalize separability: an exact equation replaces the product structure with a more general condition on partial derivatives, while a linear equation trades separability for an integrating-factor trick that always works regardless of factorization.
Ask the tutor: How do I find the exact interval on which a separable equation's explicit solution is valid, before I even solve the initial value problem?
A first-order ordinary differential equation
is called separable on a rectangle (with open intervals) if there exist functions and such that
Equivalently, after formally treating as a ratio of differentials, the equation can be rewritten in differential form as
separating all -dependence onto one side and all -dependence onto the other. A solution is a differentiable function defined on a subinterval of , with , satisfying the equation identically.
Intuition
Think of as saying: the instantaneous steepness of the solution curve is a product of a factor that depends only on where you are horizontally () and a factor that depends only on where you are vertically (). This is a strong restriction — most functions do not factor this way (think of , which is a sum, not a product, of separate pieces). When the restriction does hold, the direction field has a striking symmetry: moving along any horizontal line , the slopes are all proportional to with the same constant of proportionality ; moving along any vertical line , the slopes are all proportional to scaled by . The algebraic trick is to divide both sides by , formally separating the differentials, and then recognize that each side is now a function of one variable alone, so each side can be integrated independently. The subtlety — and the one place careless students lose points — is that dividing by requires . Wherever , the constant function is itself a solution (since both sides of the ODE vanish), but this equilibrium solution can vanish from view once you divide it out. A complete answer must always list these separately.
Central theorem
Let be continuous on an open interval , and let be continuous on an open interval with for all . Fix and , and let be antiderivatives,
Then: 1. (Local solvability.) There is an interval containing and a unique differentiable function with solving
and this satisfies, for all ,
2. (Implicit characterization.) Since is strictly monotonic on (because and is continuous, hence of one sign by the intermediate value theorem), has an inverse on its range, and
is the unique solution on the largest interval containing on which stays in the range of .
We use the technique of reduction to quadrature: converting the ODE into an equivalent statement about ordinary (Riemann) integrals, together with the chain rule and the inverse function theorem.
Step 1: Existence and uniqueness locally (invoking Picard–Lindelöf). Since is continuous on and is continuous with on , the product is continuous on the rectangle . Because is continuous and nowhere zero on the interval , and continuous functions attain intermediate values, cannot change sign on ; hence is continuous on . If in addition is continuously differentiable (or merely locally Lipschitz — guaranteed, for instance, if ), then is locally Lipschitz in uniformly for near , since
on any compact sub-rectangle, where is a local Lipschitz constant for . The Picard–Lindelöf theorem (existence-uniqueness for first-order IVPs with continuous, locally Lipschitz right-hand side) then guarantees a unique solution to the initial value problem on some interval , with and for . (This existence-uniqueness step is the one place we use machinery external to the separation technique itself; it is not proved here but is a standard prerequisite result, and it is what guarantees the manipulations below are manipulating an actual, well-defined function rather than a formal expression.)
Step 2: The differential identity. Because solves the IVP and for (as where never vanishes), we may divide the ODE by :
This is a legitimate algebraic step (dividing both sides of a true equation of real numbers by a nonzero real number), valid at every individually.
Step 3: Integrate both sides. Both sides of the boxed identity in Step 2 are continuous functions of on : the right side because is continuous, and the left side because it equals divided by the continuous nonvanishing function , and is continuous since is a solution of an ODE with continuous right-hand side (so is a composition of continuous functions). Integrate both sides from to an arbitrary :
On the left, substitute , so ; since is this is a valid substitution in a Riemann integral, and as runs from to , runs from to :
Combining,
which is the claimed identity, and it holds precisely because is the (unique, by Step 1) solution of the IVP — so there is no circularity: uniqueness of was established independently via Picard–Lindelöf before this identity was derived.
Step 4: is invertible on . Since is continuous on and never zero (as is never zero), the intermediate value theorem applied to shows cannot change sign on the interval : if and for some in , continuity of would force for some between them, a contradiction. So throughout or throughout ; either way is strictly monotonic, hence injective, on . A continuous strictly monotonic function on an interval is a bijection onto its image (itself an interval, by the intermediate value theorem), and its inverse is continuous by the inverse function theorem for monotone continuous functions.
Step 5: Solve for . Since and is invertible with inverse defined on the range of , we may apply to both sides wherever lies in that range:
This is well-defined precisely on the largest sub-interval containing on which remains inside the range of (which is an open interval containing , by continuity of and ). This establishes both the existence of the explicit inverse formula and its maximal domain of validity, completing the proof.
∎Under the hypotheses of the theorem, every solution of with values in arises, on its interval of definition, from the one-parameter family of implicit relations
obtained by choosing the constant to match any desired initial condition . If vanishes at some point adjoined to the domain, the constant function is an additional equilibrium solution, not captured by the family above, since was defined only where .
Worked examples
Example 1 (logistic-type equation with asymmetric initial data). Solve
Here and , so the equation is separable. Equilibrium solutions occur where , i.e. and . Since the initial value lies in where and is continuous and nonvanishing, the theorem applies on . Separate variables:
Partial fractions: . Integrating,
For , , so . Exponentiate:
Apply : , so . Solve for :
With :
Check: at , . ✓ Differentiating and substituting back into confirms the ODE (routine quotient-rule verification). Note the solution blows up as , i.e. as ; the maximal interval of existence to the right is , and as , consistent with being a stable equilibrium approached from above.
Example 2 (trigonometric separable equation, non-polynomial and ). Solve
Here (continuous on ) and , continuous and nonvanishing on , which contains . The theorem applies with these . Separate:
Integrate both sides:
Apply : , and , so
Thus the implicit solution is
Since where is invertible, we may solve explicitly there:
valid on the set of where the argument of lies in . As , , so the argument eventually exceeds ; the solution's maximal interval of existence is therefore a bounded interval around , determined by solving
for the endpoint values of — a concrete illustration that solutions of nonlinear separable equations can have finite escape even when is defined for all .
Drop the hypothesis that is nonvanishing on , and consider
Here and , which is zero at — exactly the initial point. Formally separating,
and imposing gives , so is one candidate solution. Direct substitution confirms and , so this does solve the ODE. But the equilibrium solution also solves the same initial value problem, since and both vanish identically. Thus the IVP has at least two distinct solutions on any interval around — uniqueness fails. This is not a contradiction of the theorem: the theorem's hypothesis on was violated (we needed to avoid , but the initial condition sits exactly at the zero of ), and correspondingly the underlying Picard–Lindelöf hypothesis (local Lipschitz continuity of in near ) also fails, since
This example shows precisely what the nonvanishing- hypothesis buys us: without it, both existence-uniqueness and the clean separation-of-variables bookkeeping break down, and infinitely many solutions (in fact, delayed-onset cubics glued to the zero solution) can pass through the same point.
Scope, edge cases & common traps
| Situation | What to do |
|---|---|
| at the initial point | Check if solves the ODE directly; if so it is a valid equilibrium solution, list it explicitly. |
| for some but not at | Solve normally on the interval around where ; the zero of marks a boundary the solution curve cannot cross (by uniqueness, distinct solutions cannot intersect). |
| Implicit relation cannot be solved explicitly | State the implicit solution as final answer; this is a fully legitimate closed form. |
| Antiderivatives or have no elementary closed form | Leave the answer as a definite integral (still "solved by quadrature"). |
| Domain of or restricted (e.g. , ) | The maximal interval of existence may be strictly smaller than where the original expression is defined; always re-check via . |
The mathematician behind it
Origins · 1 minGottfried Wilhelm Leibniz and how this was discovered
Leibniz introduced the differential notation , that makes the separation-of-variables manipulation () visually and computationally natural. His correspondence in the 1690s with Johann Bernoulli contains explicit treatments of what we now call separable equations, arising from geometric problems such as finding curves of given tangent-line properties.
Do I always need to check that h(y) ≠ 0 before dividing?
Yes. Dividing by is only valid where , and the resulting family is built entirely from that restricted domain. Any -value where gives a constant function that trivially satisfies the ODE (both sides equal zero), but this solution generally cannot be recovered from the formula for any finite choice of , since itself was defined using . Omitting this check is the most common source of "lost solutions" in textbook exercises, and can also hide uniqueness failures, as the counterexample with demonstrates.
Is the "general solution" H(y) = G(x) + C really the complete solution set?
Not quite — it is the complete set of solutions taking values strictly inside , where is continuous and nonzero, together with any equilibrium solutions from zeros of found separately. If has multiple zeros, the real line for splits into several open intervals on each of which the theorem applies separately, potentially producing different-looking implicit families on each piece, glued together only at the equilibrium levels. A fully complete answer lists all equilibrium solutions plus the family on each maximal -interval separately.
What if I can't solve H(y) = G(x) + C for y explicitly?
This is common and entirely acceptable — the implicit relation is a complete, rigorous solution of the differential equation. Many separable equations (e.g. ) lead to transcendental implicit relations with no elementary explicit inverse. In applied contexts, one can still extract qualitative information (monotonicity, asymptotic behavior, equilibrium stability) directly from the implicit equation or by implicit differentiation, without ever solving for explicitly.
How is separability different from being "solvable by an integrating factor" (linear equations)?
Separable equations require the very specific product structure ; this is a strong and often absent condition — for instance fails to have this form for any choice of . Linear equations, , are solved by an integrating factor that works regardless of whether the equation is separable; indeed linear equations are separable only in the special homogeneous case . The two methods overlap only on that special case and are otherwise complementary tools for different equation shapes.
Can separable equations have solutions that only exist on a finite interval, even though g and h are defined everywhere?
Yes, exactly as illustrated in Example 2. Even when and are smooth on the whole real line, the explicit solution is only valid where stays inside the range of . If has a bounded range (e.g. , range ) while is unbounded (e.g. grows like ), the solution necessarily reaches the boundary of 's range at some finite , producing finite-time blow-up or loss of the solution's real-valuedness — a genuinely nonlinear phenomenon absent from linear equations with smooth coefficients on all of .
Does the order in which I integrate matter, i.e. can I integrate the y-side first or the x-side first?
No — since the two integrals and are with respect to entirely independent variables, they may be computed in either order, or even simultaneously; the final implicit equation is the same regardless. What does matter is being consistent about the single overall constant of integration: writing two separate constants (one per side) and then combining them into one is fine, but forgetting the constant altogether on one side is the error to avoid.
What role does the theorem's use of Picard–Lindelöf actually play, since the separation algorithm seems purely algebraic?
The algebraic manipulation of separating and integrating produces a candidate relation between and , but by itself does not certify that this candidate is the only solution, or even a genuine differentiable solution, of the original IVP. Picard–Lindelöf (via the local Lipschitz condition on ) is what guarantees, independently of the algebra, that a unique solution exists near the initial point — so that the candidate produced by separation, once verified by direct substitution, must in fact be that unique solution. Without this existence-uniqueness backing, as the counterexample shows, the algebra can produce one valid solution while missing others.