Separable Differential Equations
Problem
Solve dy/dx = xy. Separate variables to get dy/y = x dx, integrate both sides, and show the family of solution curves.
Explanation
What does "separable" mean?
A first-order ODE is separable when you can rearrange it so that every -term (including ) sits on one side and every -term (including ) sits on the other:
Once separated, the ODE is just two independent integrals. That's the whole trick — no need for integrating factors, no need for linear-algebra machinery. It is by far the fastest technique when it applies, so always check separability first.
The given equation
Here and . Separable.
Step-by-step solution
Step 1 — Separate.
Step 2 — Integrate both sides.
Step 3 — Solve for by exponentiating.
Drop the absolute value by letting absorb the sign:
Every non-zero value of gives a different solution curve — that is the general solution, a one-parameter family.
The constant solution we might have lost
When we divided by in step 1 we implicitly assumed . Check directly in the original ODE:
So is also a solution — and it corresponds to in our formula. The general solution covers all solutions, including the zero solution.
Verification
Differentiate :
Initial value problem — picking one curve out of the family
If you're told , plug in:
So the unique solution through is
One initial condition ↔ one curve.
Geometric picture
- Every member of the family has the same shape — a Gaussian-like profile — scaled vertically by .
- Positive gives curves that live above the -axis; negative mirrors them below.
- The -axis () is an invariant line — a trajectory that stays put.
When to use separation
Check if the right side factors as :
- — separable (, ).
- — not separable (a sum, not a product).
- — separable (, ).
- — not separable, but homogeneous (see #178).
Common mistakes
- Forgetting the absolute value when integrating . It matters if you want negative-valued solutions.
- Leaving two constants (one for each integral). There's only one independent constant — fold them into a single .
- Dropping the singular solution (or more generally wherever ) without checking. Always verify it directly.
- Writing without the absolute value, then being stuck when the data is negative.
Try it in the visualization
Slide the initial condition to pick a curve out of the family, and watch how all curves share the same Gaussian shape. Toggle the zero solution to see the invariant line .
Interactive Visualization
Parameters
Got your own math or physics problem?
Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.