Skip to content

Separable Equations

You will master the technique of solving separable differential equations by separating variables, integrating both sides, and solving for the function. This is one of the most useful and widely applicable solution methods for first-order equations.

Many first-order differential equations can be written in the form:

dydx=f(x)g(y)\frac{dy}{dx} = f(x) \cdot g(y)

When an equation can be arranged like this, we say it is separable. The strategy is simple but powerful: move all the yy terms to one side and all the xx terms to the other, then integrate both sides.

Starting from:

dydx=f(x)g(y)\frac{dy}{dx} = f(x) \cdot g(y)

We rewrite it as:

1g(y)dy=f(x)dx\frac{1}{g(y)} \, dy = f(x) \, dx

Then integrate both sides:

1g(y)dy=f(x)dx+C\int \frac{1}{g(y)} \, dy = \int f(x) \, dx + C

This gives us an implicit solution that we can often solve explicitly for yy.

The visual above shows the family of solution curves for dydx=xy\frac{dy}{dx} = xy. Each curve corresponds to a different value of CC in the general solution y=Cex2/2y = Ce^{x^2/2}.

Example 1: Basic Separation

Solve dydx=xy\frac{dy}{dx} = \frac{x}{y}.

Solution:

ydy=xdxy \, dy = x \, dx

Integrate both sides:

ydy=xdx\int y \, dy = \int x \, dx y22=x22+C\frac{y^2}{2} = \frac{x^2}{2} + C

Multiply through by 2:

y2=x2+Kwhere K=2Cy^2 = x^2 + K \quad \text{where } K = 2C

Example 2: With Initial Condition

Solve dydx=2xy\frac{dy}{dx} = 2xy with y(0)=3y(0) = 3.

Solution:

dyy=2xdx\frac{dy}{y} = 2x \, dx lny=x2+C\ln |y| = x^2 + C y=Aex2(where A=±eC)y = Ae^{x^2} \quad \text{(where } A = \pm e^C\text{)}

Apply y(0)=3y(0) = 3: 3=Ae0    A=33 = A \cdot e^0 \implies A = 3

Final solution: y=3ex2y = 3e^{x^2}

Example 3: Logistic Growth

Solve the logistic equation dPdt=0.2P(1P100)\frac{dP}{dt} = 0.2P\left(1 - \frac{P}{100}\right) with P(0)=20P(0) = 20.

Solution: Separate variables and use partial fractions (details in later lessons), leading to:

P(t)=1001+4e0.2tP(t) = \frac{100}{1 + 4e^{-0.2t}}

Separable equations are used constantly in biology and chemistry. The logistic growth model you saw above predicts how populations grow when resources are limited. Pharmacologists use separable equations to model how drug concentration in the bloodstream decreases over time (exponential decay). Environmental scientists use them to track pollutant levels in lakes or the spread of invasive species. Even your phone’s battery drain over time can be modeled with a simple separable equation.

A differential equation is separable if it can be written in the form:
The first step when solving a separable equation is usually to:
Solving $\frac{dy}{dx} = ky$ gives the general solution:
After separating and integrating, the constant of integration:
Which equation is NOT separable?