Separate, Integrate, Solve
When a differential equation lets you put every y on one side and every x on the other, you can solve it with two ordinary integrals.
What makes an equation separable
A first-order equation is separable if it can be written as \(\frac{dy}{dx} = g(x)h(y)\): a function of \(x\) times a function of \(y\). Examples: \(y' = xy\), \(y' = \frac{x^2}{y}\), \(y' = e^{x + y} = e^xe^y\). Not separable: \(y' = x + y\), because a sum cannot be split into a product.
The method
Divide by \(h(y)\) and multiply by \(dx\) to separate: \(\frac{dy}{h(y)} = g(x)\,dx\). Integrate both sides: \(\int\frac{dy}{h(y)} = \int g(x)\,dx\). Add one constant of integration (one is enough, since the two can be combined). Then solve for \(y\) if possible, and use any initial condition to find the constant.
\int \frac{dy}{h(y)} = \int g(x)\,dx + CWorked example: y' = xy
Separate: \(\frac{dy}{y} = x\,dx\). Integrate: \(\ln|y| = \frac{x^2}{2} + C\). Exponentiate: \(|y| = e^Ce^{x^2/2}\), so \(y = Ae^{x^2/2}\), where \(A\) is any constant (including \(0\), which covers the equilibrium solution \(y = 0\) lost when we divided by \(y\)). With \(y(0) = 3\), \(A = 3\).
y = Ae^{x^2/2}Worked example: y' = x/y
Separate: \(y\,dy = x\,dx\). Integrate: \(\frac{y^2}{2} = \frac{x^2}{2} + C\), or \(y^2 - x^2 = K\). The solutions are hyperbolas. With \(y(0) = 2\), \(K = 4\), so \(y = \sqrt{x^2 + 4}\), choosing the positive root because \(y(0)\) is positive. Implicit solutions like \(y^2 - x^2 = K\) are perfectly acceptable when solving for \(y\) is messy.
Lost solutions
Dividing by \(h(y)\) assumes \(h(y) \ne 0\). Any value where \(h(y) = 0\) gives a constant solution that the separation method can miss. For \(y' = y^2 - 1\), the constant solutions \(y = 1\) and \(y = -1\) must be checked and listed separately. Always ask: did I divide by something that could be zero?
Newton's law of cooling, solved
\(\frac{dT}{dt} = -k(T - A)\), where \(A\) is the room temperature. Separate: \(\frac{dT}{T - A} = -k\,dt\). Integrate: \(\ln|T - A| = -kt + C\), so \(T = A + (T_0 - A)e^{-kt}\). A coffee at 90°C in a 20°C room approaches 20°C exponentially. If it is 60°C after 10 minutes, then \(40 = 70e^{-10k}\) gives \(k = \frac{\ln(7/4)}{10} \approx 0.056\) per minute.
T(t) = A + (T_0 - A)e^{-kt}Mixing problems
A tank holds 100 L of brine with 10 kg of salt. Fresh water flows in at 5 L/min and the well-mixed solution flows out at 5 L/min. Salt amount \(S\) satisfies \(\frac{dS}{dt} = -\frac{5}{100}S\), since salt leaves at concentration \(\frac{S}{100}\) times 5 L/min. So \(S = 10e^{-0.05t}\): after 20 minutes, about 3.7 kg remain. Rate in minus rate out is the key modelling principle.
Orthogonal trajectories
Curves that cross a family of curves at right angles are called orthogonal trajectories. For the family \(y = cx^2\), the slope is \(y' = \frac{2y}{x}\); perpendicular curves have slope \(-\frac{x}{2y}\). Solving \(y' = -\frac{x}{2y}\) by separation gives ellipses \(x^2 + 2y^2 = K\). These appear in physics as field lines perpendicular to equipotential curves.
Common mistakes
Trying to separate an equation that is a sum, not a product. Forgetting the constant of integration, or adding it only after exponentiating incorrectly. Writing \(e^{a + C} = e^a + e^C\) instead of \(e^ae^C\). Missing constant solutions that were lost by dividing. Choosing the wrong sign of a square root for the initial condition.
Try it yourself
Solve \(y' = 2xy^2\) with \(y(0) = 1\). Answer: \(\frac{dy}{y^2} = 2x\,dx\), so \(-\frac{1}{y} = x^2 + C\); \(y(0) = 1\) gives \(C = -1\), so \(y = \frac{1}{1 - x^2}\). Notice the solution blows up at \(x = 1\), even though the equation looks harmless.
Key takeaways
Separable equations have the form \(g(x)h(y)\). Separate the variables, integrate both sides, add a constant, then solve and apply initial conditions. Check for constant solutions lost by dividing. Cooling, decay, and mixing problems are classic separable models.
Why solutions can blow up
Nonlinear equations like \(y' = y^2\) can produce solutions that go to infinity in finite time. With \(y(0) = 1\), the solution \(y = \frac{1}{1 - t}\) explodes at \(t = 1\). This is very different from linear equations, whose solutions exist as long as their coefficients are continuous, and it is why the domain of a solution matters.
Flashcard
\frac{dy}{dx} = g(x)h(y)
Check your understanding
Which equation is separable?
