What Is a Separable Differential Equation: A Clear 2024 Guide

A separable differential equation is a first-order ordinary differential equation that can be written in the form $ \frac{dy}{dx} = g(x)h(y) $, where the right-hand side is the product of a function of $ x $ and a function of $ y $. This structure allows the variables to be separated so that all terms involving $ y $ and $ dy $ appear on one side, and all terms involving $ x $ and $ dx $ appear on the other. Once separated, both sides can be integrated directly, leading to a solution. This method is widely used in calculus and applied mathematics due to its simplicity and broad applicability Paul’s Online Math Notes.
The key idea behind solving separable equations is treating $ \frac{dy}{dx} $ as if it were a fraction—a useful informal technique that yields correct results when handled with care. The goal is to rearrange the equation into the form $ \frac{1}{h(y)} dy = g(x) dx $, then integrate each side with respect to its variable. While not all differential equations allow this separation, those that do are generally straightforward to solve.
Not every equation is separable. For example, $ \frac{dy}{dx} = x + y $ or $ \frac{dy}{dx} = \sin(xy) $ cannot be broken into a product of functions each depending on only one variable. In contrast, equations like $ \frac{dy}{dx} = x^2 y $, $ \frac{dy}{dx} = \frac{x}{y} $, or $ \frac{dy}{dx} = e^x \cos(y) $ are separable because they naturally split into functions of $ x $ and $ y $ multiplied together.
Example: Solving a Separable Equation
Consider the differential equation:
$$ \frac{dy}{dx} = x^2 y $$
This equation is separable because the right-hand side is the product of $ x^2 $ (a function of $ x $) and $ y $ (a function of $ y $). To solve it, divide both sides by $ y $ (assuming $ y \neq 0 $) and multiply both sides by $ dx $:
$$ \frac{1}{y} dy = x^2 dx $$
Now integrate both sides:
$$ \int \frac{1}{y} dy = \int x^2 dx $$
$$ \ln|y| = \frac{x^3}{3} + C $$
To solve for $ y $, exponentiate both sides:
$$ |y| = e^{\frac{x^3}{3} + C} = e^C \cdot e^{\frac{x^3}{3}} $$
Let $ A = e^C $, where $ A > 0 $. Since $ y $ could be positive or negative, we write the general solution as:
$$ y = A e^{\frac{x^3}{3}}, \quad A \in \mathbb{R}, A \neq 0 $$
Note that during division by $ y $, we assumed $ y \neq 0 $. However, $ y = 0 $ also satisfies the original equation because $ \frac{dy}{dx} = x^2 \cdot 0 = 0 $, and the derivative of a constant zero function is zero. Therefore, $ y = 0 $ is a valid solution and corresponds to $ A = 0 $. Including it, the complete general solution is:
$$ y = A e^{\frac{x^3}{3}}, \quad A \in \mathbb{R} $$
If an initial condition were given—say, $ y(0) = 2 $—we could substitute $ x = 0 $, $ y = 2 $ into the solution:
$$ 2 = A e^{0} \Rightarrow A = 2 $$
Thus, the particular solution would be $ y = 2e^{\frac{x^3}{3}} $.
This example illustrates the standard solution process: separation, integration, and solving for the constant when an initial condition is provided. It also highlights the importance of checking for solutions lost during division.
When Is Separation Possible?
Separation of variables applies only when the differential equation can be expressed as $ \frac{dy}{dx} = g(x)h(y) $. This includes many common models in science and engineering. For instance, population growth under ideal conditions follows $ \frac{dP}{dt} = kP $, which is separable and yields exponential growth. Newton’s law of cooling, which models how an object’s temperature changes in response to ambient temperature, also leads to a separable equation Khan Academy.
Some equations may not appear separable at first but can be transformed into one through substitution. For example, $ \frac{dy}{dx} = \frac{y}{x} $ becomes separable when rewritten as $ \frac{1}{y} dy = \frac{1}{x} dx $. However, equations involving sums like $ x + y $, or more complex interactions such as $ \frac{y}{x+y} $, typically require other methods, such as integrating factors or exact equations.
Common Mistakes and Tips
One frequent error is omitting the constant of integration. Since solving a differential equation involves integration, leaving out $ +C $ results in an incomplete general solution. The constant must be included after integrating both sides.
Another issue arises when dividing by a function of $ y $. Doing so may exclude constant solutions where that function equals zero. For example, in $ \frac{dy}{dx} = y(1 - y) $, dividing by $ y(1 - y) $ assumes $ y \neq 0 $ and $ y \neq 1 $. But both $ y = 0 $ and $ y = 1 $ are constant solutions—equilibria—that satisfy the equation. These must be checked separately and added to the solution set if valid.
Always verify your solution by differentiating it and confirming it satisfies the original differential equation. This step catches algebraic errors and ensures correctness. Also, pay attention to domain restrictions. Solutions involving logarithms require positive arguments, so absolute values (as in $ \ln|y| $) are necessary, and the domain of the solution may exclude points where expressions become undefined Wikipedia — Separation of variables.
Key Takeaways
- A separable differential equation has the form $ \frac{dy}{dx} = g(x)h(y) $, where the variables can be separated algebraically.
- The solution involves rewriting the equation as $ \frac{1}{h(y)} dy = g(x) dx $ and integrating both sides.
- Always check for constant solutions that may be lost when dividing by a function of $ y $.
- Use initial conditions after integration to determine the value of the constant and find a particular solution.
- The method only works when the right-hand side is a product of functions of $ x $ and $ y $ alone, not sums or mixed expressions.