Separable Differential Equations
Recognize and solve separable first-order ODEs by separating variables and integrating, with a worked example.
Continue where you stopped
The core idea
On this page
A first-order ODE is separable if you can rewrite it as a pure-x factor times a pure-y factor:
Some sources call these “variable separable” equations.
In physics, separable ODEs are common because many models say “rate of change = (something depending on the state) × (something depending on time/position)”.
- Exponential decay / relaxation: the same separation step gives you e^(-t/τ) behavior in many systems.
- Quadratic drag (terminal speed): separable once you write dv/dt = g-(b/m)v² (see UY1: Resistive Forces).
- RC discharge: also separable (and linear): UY1: RC Circuits
- Math hub: Mathematics for Undergraduate Physics
If you can move everything involving y (and dy) to one side and everything involving x (and dx) to the other, it’s separable.
Method (separate → integrate)
Starting from
- Rearrange into (1/g(y))dy = f(x)dx.
- Integrate both sides and include + C.
- Solve for y if possible.
- Apply the initial condition to determine C.
- Do a quick check: differentiate your answer and verify the ODE.
-
Separate variables
1/g(y) dy = f(x) dx -
Integrate both sides
∫ 1/g(y) dy = ∫ f(x) dx + C -
Solve for y if possible, and apply initial conditions to fix C.
If g(y*) = 0, then y(x) = y* is a constant solution (often physically meaningful).
- Missing absolute values in logs: if you integrate ∫ dy/y you must write ln |y|.
- Dividing by something that can be zero: when you divide by g(y), you may lose solutions with g(y) = 0. Handle equilibrium solutions separately.
- Forgetting the domain: after solving, check where the solution is defined (e.g. denominators not zero).
Worked example
Solve
Separate:
Integrate:
Apply y(0) = 1:
So the solution is:
Worked example (physics): exponential decay / relaxation
Radioactive decay and many “relaxation” models start from
Separate:
Integrate:
Exponentiate and apply N(0) = N₀:
Interpretation:
- λ has units s⁻¹ and sets the decay rate.
- Half-life: t_(1/2) = (ln 2)/λ.
Worked example (physics): quadratic drag leads to tanh
One standard falling-with-drag model is
where b is a drag constant and v ≥ 0 after release.
Define the terminal speed
Then the ODE becomes
Separate variables using u = v/vₜ:
Integrate:
Apply v(0) = 0 so u(0) = 0 and C = 0:
Sanity checks:
- t → 0: tanh x ≈ x, so v ≈ gt (free-fall initially).
- t → ∞: tanh → 1, so v → vₜ (terminal speed).
For full physical setup/sign conventions, see UY1: Resistive Forces.
Practice (with hints + answers)
1) Solve: dy/dx = 3xy, with y(0)=2
Hint: Move all y terms to the left: (1/y)dy = 3x dx.
Answer:
Apply y(0) = 2: ln 2 = C.
2) Solve: dq/dt = -(1/RC) q, with q(0)=q0
Hint: This is separable and gives an exponential.
Answer:
3) Find equilibrium solutions of: dy/dt = y(1-y)
Hint: Set the right-hand side to zero.
Answer: Equilibria are y(t) = 0 and y(t) = 1 because y(1-y) = 0 at y = 0,1.
4) (Stretch) Solve: dy/dx = y^2, y(0)=1
Hint: ∫ y⁻²dy = -1/y.
Answer:
Apply y(0) = 1: -1 = C.