Separable differential equations: separating variables, integrating both sides, and initial conditions
“Solve separable first-order differential equations of the form by separating variables and integrating both sides”
A separable ODE is solved by writing , integrating both sides, applying the initial condition to find the constant, and solving for (explicitly when possible, implicitly when not).
Jump to a section
What this dot point is asking
NESA wants you to solve a first-order differential equation of the form by separating the variables, integrating each side, and applying any given initial condition to find the constant of integration.
The conceptual leap is that , though it is really a single limit, can be manipulated like a fraction here: you gather all the -stuff with on one side and all the -stuff with on the other, then integrate each side with respect to its own variable. This works precisely because the right-hand side factorises into a part in times a part in - which is what "separable" means.
The answer
The separation method
For an equation :
- Rewrite as .
- Integrate both sides: .
- Solve for in terms of (or leave in implicit form if cleaner).
- Apply any initial condition to determine .
If for some value , then is a constant solution (an equilibrium of the equation). This must be checked separately, because the separation step divides by and so silently throws it away.
A first-order ODE is separable exactly when the right-hand side factorises as - a function of alone times a function of alone. Then and you integrate each side. Two things are easy to lose: the constant of integration (one , gathered on the right, stands for a whole family of solutions) and any constant solution where , which the division by removes.
Reading the equation geometrically, stage by stage
A first-order ODE assigns a gradient to every point of the plane, and a solution is a curve that follows those gradients. Seeing this picture makes the algebra meaningful: separating and integrating is just finding the curves that thread through the gradient field. The figures below use , whose solutions turn out to be circles.
Stage 1, the slope field. The equation gives a slope at every point: at the gradient is . Drawing a short segment of that slope at a grid of points produces the slope field, which already hints at a circular pattern.
Stage 2, separate and integrate. Gather the variables: . Integrating both sides gives , which tidies to . The algebra has produced the equation of the curves the slope field was tracing.
Stage 3, the general solution. is a family of concentric circles, one for each value of the constant . Every member of the family is a solution; the slope-field segments are tangent to these circles, which is the visual meaning of "the curve follows the gradients".
Stage 4, apply the initial condition. A condition such as when fixes the constant: , so . That selects the single circle from the family - the particular solution through the given point.
When separation is possible
A first-order ODE separates if and only if you can write for some functions and . Examples that separate:
- .
- .
- .
Examples that do not separate:
- (a sum, not a product).
- (cannot be factored cleanly).
Extension 1 problems are always separable; non-separable equations belong to Extension 2.
The constant of integration
Always include a constant after integration. It is cleaner to combine the constants from both sides into one on the right.
If the question gives an initial condition, substitute to find . If not, leave the answer in terms of . A favourite simplification is to relabel a messy constant: after exponentiating , the factor becomes a single new constant , and you should say so explicitly.
Newton's law of cooling
A body cools toward an ambient temperature at a rate proportional to the temperature difference:
where .
Separate: .
Integrate: .
So for some constant , giving
The temperature approaches as . Note that is the equilibrium (constant) solution, the case : a body already at room temperature stays there.
Implicit versus explicit solutions
Sometimes the integrated equation cannot be solved cleanly for . In that case, leave it implicit. For example,
This is the family of circles , the implicit solution - and the one drawn in the stage figures above.
How exam questions ask about separable ODEs
- "Solve the differential equation ..." (with an initial condition). Separate, integrate, apply the condition to find the constant, and give explicitly (choosing the correct sign of any root from the initial condition).
- "Find the general solution." Same, but stop at the family with ; no initial condition is given.
- "Show that satisfies / is a solution." You can verify by differentiating, but a "solve" instruction wants the separation method shown.
- "A body cools / a population grows ..." A modelling problem: set up the proportionality as a differential equation, separate and solve, then use the data points to find the constants and .
- "Find the constant solution / equilibrium." Set , i.e. solve ; this is the solution the separation step hides.
- "Leave your answer in implicit form." Do not force an explicit ; the integrated equation is the answer.
Solve a basic separable equation
To solve , divide both sides by and multiply by to get all -terms on the left and -terms on the right.
Integrate both sides: .
Solve for :
Exponentiate both sides: . Writing absorbs the sign and the constant.
Final answer: for an arbitrary constant . (The case recovers the constant solution , which the division by had removed.)
Solve with an initial condition
To solve with , separate: . Integrate both sides:
Apply the initial condition and solve for :
Substitute , : , so . The equation becomes , so .
Final answer: .
Solve a trigonometric separable equation
To solve , multiply both sides by and by :
Integrate both sides: .
Simplify the constant:
Multiply through by , writing for the new constant:
Final answer: (implicit form; an initial condition would fix and the sign of the root).
Solve a Newton's law of cooling problem
A cup of coffee at C is left in a C room and cools to C after minutes. Newton's law of cooling gives , where and . At , :
Evaluate at :
Final answer: approximately C after minutes. The coffee never quite reaches C; it approaches room temperature as .
Solve the logistic equation with partial fractions
To solve , separate: . Decompose the left-side fraction by partial fractions: .
Solve for explicitly:
The left side is , so . Solve for : , giving .
Final answer: , the logistic curve. Here and are the two constant solutions (), which bound the family.
Solve via an implicit solution
To solve with , separate: . Integrate both sides:
Apply the initial condition:
At : . So .
Final answer: .
- Failing to separate properly
- does not separate. Do not force a sum into a separable shape.
- Missing constant solutions
- has as a constant solution that the separation step (dividing by ) would lose. Check separately.
- Forgetting the constant of integration
- Integrating both sides without a throws away an entire family of solutions.
- Algebra errors when isolating
- When solving for , the sign of the square root is fixed by continuity with the initial condition.
- Treating the constant inconsistently
- , , and all stand for arbitrary constants; pick a single name and stick with it.
Show the separation as its own line () - it is where the method mark sits. Put a single on the right and, if there is an initial condition, substitute to find it before rearranging, which is usually tidier. State which sign of any square root you take and why (continuity with the given point). If the equation has an equilibrium , mention the constant solution; some questions award a mark for spotting it.
Exam-style questions
Questions in the style of NESA exam questions on this dot point, each with a worked answer. They are written by ExamExplained unless tagged "Past paper"; the year shows the paper a question is modelled on.
HSC-style4 marksSolve the differential equation with .Show worked answer →
Separate variables: .
Integrate both sides: , so (writing for ).
Apply : , so .
, so (positive root because and continuity).
Markers reward the separation, the integration on both sides, applying the initial condition to find the constant, and choosing the correct sign for the square root.