01 / 21
\(y\)
\(x\)

Solving Separable
Equations

Learn to split, integrate, and solve differential equations where variables can be separated to opposite sides.

Differential Equations

What Is a Differential Equation?

A differential equation (DE) is any equation that involves an unknown function and one or more of its derivatives. For example:

Here \( y \) is the unknown function of \( x \), and \( \frac{dy}{dx} \) is its first derivative. Our goal: find a formula for \( y(x) \) that satisfies this relationship.

What Does Separable Mean?

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

Left side
Pure function of \( y \) times \( dy \)
Right side
Pure function of \( x \) times \( dx \)

Why Separable Equations Matter

Separable equations appear throughout science and engineering. They model situations where the rate of change of a quantity depends on the quantity itself:

Population Growth
\( \frac{dP}{dt} = kP \)
Radioactive Decay
\( \frac{dN}{dt} = -\lambda N \)
Newton's Cooling
\( \frac{dT}{dt} = -k(T - T_s) \)

The Core Separation Method

Starting from any first-order ODE of the form:

We rewrite it by dividing both sides by \( g(y) \) and multiplying by \( dx \):

Then integrate both sides:

Visualizing the Process

\( \frac{dy}{dx} = f(x) \cdot g(y) \)
Separate: \( \frac{1}{g(y)}\,dy = f(x)\,dx \)
Integrate both sides
Solve for \( y \) (if possible)
Apply initial condition (if given)

Separable vs Non-Separable

Not every first-order ODE is separable. The key test: can the right-hand side be written as a product \( f(x) \cdot g(y) \)?

Equation Separable? Why
\( \frac{dy}{dx} = x^2 y \) ✓ Yes \( f(x) = x^2,\; g(y) = y \)
\( \frac{dy}{dx} = \frac{y}{x+1} \) ✓ Yes \( f(x) = \frac{1}{x+1},\; g(y) = y \)
\( \frac{dy}{dx} = x + y \) ✕ No Sum, not a product
\( \frac{dy}{dx} = xy + x^2 \) ✕ No \( x(y + x) \): mixed terms

Step-by-Step Method

1
Identify the ODE has the form \( \frac{dy}{dx} = f(x)\,g(y) \).
2
Separate variables: move all \( y \)-terms (with \( dy \)) to the left, all \( x \)-terms (with \( dx \)) to the right.
3
Integrate both sides independently. Don't forget the constant \( +\, C \).
4
Solve for \( y \) explicitly if possible (otherwise leave as an implicit solution).
5
Apply the initial condition \( y(x_0) = y_0 \) to find \( C \).

Example 1: Exponential Growth

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

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

Solution Curve: \( y = 3e^{2x} \)

Example 2: A Polynomial Right Side

Solve \( \frac{dy}{dx} = \frac{x^2}{y} \).

1
Separate: \( y\, dy = x^2\, dx \)
2
Integrate: \( \int y\, dy = \int x^2\, dx \implies \frac{y^2}{2} = \frac{x^3}{3} + C \)
3
Solve: \( y^2 = \frac{2x^3}{3} + K \) where \( K = 2C \)

Choose the positive or negative branch based on initial conditions.

Example 3: Trigonometric Separation

Solve \( \frac{dy}{dx} = \frac{\cos x}{e^y} \) with \( y(0) = 0 \).

1
Separate: \( e^y\, dy = \cos x\, dx \)
2
Integrate: \( \int e^y\, dy = \int \cos x\, dx \implies e^y = \sin x + C \)
3
Apply IC: \( e^0 = \sin 0 + C \implies 1 = C \)
4
Solve: \( e^y = \sin x + 1 \implies y = \ln(\sin x + 1) \)

Solution Curve: \( y = \ln(\sin x + 1) \)

Common Mistakes to Avoid

✕ Forgetting the Constant
Every indefinite integral needs \( +C \). Dropping it gives a particular solution, not the general one.
✕ Dividing by Zero
Dividing by \( g(y) \) is only valid when \( g(y) \neq 0 \). Check for equilibrium solutions separately.
✕ Dropping Absolute Values
The integral of \( \frac{1}{y} \) is \( \ln|y| + C \), not just \( \ln y \). The absolute value is crucial and should only be removed after solving for \( y \).

Don't Forget Equilibrium Solutions

When we divide by \( g(y) \), we implicitly assume \( g(y) \neq 0 \). Any value \( y_0 \) where \( g(y_0) = 0 \) gives a constant solution:

Example: For \( \frac{dy}{dx} = y(1 - y) \), setting \( g(y) = y(1 - y) = 0 \) gives:

\( y = 0 \)
Equilibrium: zero population stays zero
\( y = 1 \)
Equilibrium: carrying capacity reached

Always check these before dividing and separating.

Summary Checklist

Step Action Watch Out For
1. Identify Write as \( f(x) \cdot g(y) \) Sums are not separable
2. Equilibria Solve \( g(y) = 0 \) Lost when dividing
3. Separate \( \frac{1}{g(y)} dy = f(x) dx \) Keep \( dy, dx \) with their side
4. Integrate Both sides independently Don't forget \( +C \)
5. Solve Isolate \( y \) if possible Implicit form is OK
6. Apply IC Plug in \( (x_0, y_0) \) Choose correct branch

Question 1 of 5

Which of the following is separable?

Question 2 of 5

After separating \( \frac{dy}{dx} = 3x^2 y \), the correct separated form is:

Question 3 of 5

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

Question 4 of 5

For \( \frac{dy}{dx} = y^2 \sin x \), what is the general solution?

Question 5 of 5

The equation \( \frac{dy}{dx} = y(1 - y) \) has equilibrium solutions at: