01 / 20

Solving Separable
Differential Equations

Master the technique of separating variables to solve first-order DEs, apply initial conditions, and find particular solutions to real-world models.

Calculus 2

What Is a Differential Equation?

A differential equation (DE) is an equation that relates a function to one or more of its derivatives. Our goal is to find the unknown function \( y(x) \) that satisfies the equation.

Example
\( \dfrac{dy}{dx} = 3x^2 \)
Solution
\( y = x^3 + C \)

A Family of Solution Curves

Each value of \( C \) in the general solution produces a different curve. An initial condition selects exactly one curve from the family.

x y \(-1\) \(-2\) \(1\) \(2\) \(2\) \(4\) \(-2\) \(-4\) y(0) = 0 \(C = 0\) \(C = 2\) \(C = -2\)

What Makes a DE Separable?

A first-order DE is separable if it can be written so that all \( y \)-terms are on one side and all \( x \)-terms are on the other:

This means the right-hand side factors as a product of a function of \( x \) alone and a function of \( y \) alone. We can then "separate" the variables onto different sides of the equation.

✓ Separable
\( \dfrac{dy}{dx} = x^2 y \)
✕ Not Separable
\( \dfrac{dy}{dx} = x + y \)

The Separation Technique

Starting from \( \dfrac{dy}{dx} = f(x) \cdot g(y) \), we rearrange to isolate variables, then integrate both sides:

After integrating, solve for \( y \) (if possible) and apply any given initial condition to determine the constant \( C \).

Separable vs Non-Separable

Equation Separable? Reasoning
\( \dfrac{dy}{dx} = xy^2 \) Yes \( f(x)=x,\; g(y)=y^2 \)
\( \dfrac{dy}{dx} = e^{x+y} \) Yes \( e^x \cdot e^y \) factors
\( \dfrac{dy}{dx} = x^2 + y^2 \) No Sum, not product
\( \dfrac{dy}{dx} = \sin(xy) \) No Cannot factor \( xy \)

Step-by-Step Approach

1
Identify: Confirm the DE has the form \( \dfrac{dy}{dx} = f(x) \cdot g(y) \).
2
Separate: Move all \( y \)-terms to the left and all \( x \)-terms to the right: \( \dfrac{dy}{g(y)} = f(x)\,dx \).
3
Integrate: Integrate both sides: \( \displaystyle\int \frac{dy}{g(y)} = \int f(x)\,dx + C \).
4
Solve for \( y \): If possible, isolate \( y \) to get an explicit solution.
5
Apply IC: Substitute the initial condition \( y(x_0) = y_0 \) to find \( C \).

Example 1: Basic Separation

1
Separate: \( \dfrac{dy}{y} = 3x^2\,dx \)
2
Integrate: \( \ln|y| = x^3 + C \)
3
Solve: \( y = Ae^{x^3} \) where \( A = \pm e^C \)
4
Apply IC: \( y(0) = A \cdot 1 = 2 \), so \( A = 2 \)

Visualizing \( y = 2e^{x^3} \)

x y \(-1\) \(1\) \(2\) \(4\) \(6\) \(8\) (0, 2) \( y = 2e^{x^3} \)

Example 2: Implicit Solution

1
Separate: \( (1 + y^2)\,dy = x\,dx \)
2
Integrate: \( y + \dfrac{y^3}{3} = \dfrac{x^2}{2} + C \)
3
Apply IC: \( 1 + \dfrac{1}{3} = 0 + C \), so \( C = \dfrac{4}{3} \)

Example 3: Exponential Decay

1
Separate: \( \dfrac{dN}{N} = -k\,dt \)
2
Integrate: \( \ln|N| = -kt + C \)
3
Solve: \( N = Ae^{-kt} \), then \( N(0) = A = N_0 \)

Visualizing Exponential Decay

t N(t) \( N_0 \) \( \frac{N_0}{2} \) \( t_{1/2} \) approaches 0

Don't Forget Equilibrium Solutions

When we divide by \( g(y) \), we assume \( g(y) \neq 0 \). Any value of \( y \) where \( g(y) = 0 \) is a constant (equilibrium) solution that we must check separately.

Stable
Nearby solutions converge toward it (e.g., \( y = 1 \) in the logistic equation)
Unstable
Nearby solutions diverge away (e.g., \( y = 0 \) in the logistic equation)

Common Mistakes to Avoid

✕ Forgetting the Constant
Write \( +C \) on one side only after integrating. Two constants combine into one.
✕ Dropping Absolute Value
From \( \ln|y| \), writing \( y = e^{\dots} \) loses negative solutions. Use \( y = \pm e^{\dots} = Ae^{\dots} \).
✕ Ignoring Equilibria
Dividing by \( g(y) \) silently excludes roots of \( g(y) = 0 \). Always check them.

Summary Checklist

Step Action Watch For
1. Identify Check \( \frac{dy}{dx} = f(x)g(y) \) Sums are not separable
2. Separate Move \( y \) left, \( x \) right \( g(y)=0 \) equilibria
3. Integrate Antidifferentiate both sides Only one \( +C \)
4. Solve Isolate \( y \) if possible Implicit is OK
5. Apply IC Plug in \( (x_0, y_0) \) Verify solution works

Question 1 of 5

Which of the following differential equations is separable?

Question 2 of 5

Solve \( \dfrac{dy}{dx} = 2xy \) with \( y(0) = 3 \). What is \( y(x) \)?

Question 3 of 5

When solving \( \dfrac{dy}{dx} = y^2 \sin x \) by separation, what integral appears on the left side?

Question 4 of 5

For the equation \( \dfrac{dy}{dx} = y(3 - y) \), what are the equilibrium solutions?

Question 5 of 5

After integrating both sides of a separable DE, a student writes \( \ln|y| = x^3 + C_1 \) on the left and adds \( C_2 \) on the right. What is the correct approach?