A separable equation is a first-order ODE that can be written so that all -stuff is on one side and all -stuff is on the other. Once separated, you integrate both sides independently.

The form: .

If depends only on and depends only on , the equation is separable. You can rearrange:

(assuming ), then integrate both sides:

This gives an implicit relation between and . Solve for explicitly if possible.

Why this works

Let be an antiderivative of and be an antiderivative of . By the chain rule:

The original ODE rearranges to , so

Two functions with equal derivatives differ by a constant: .

This is the implicit solution.

Special case:

If , then , so constant on the interval. This is the trivial constant solution.

Worked example 1

.

Rearrange:

(That’s and .)

Integrate both sides:

By parts on the left (, ): .

By parts on the right (, ): .

So:

Multiplying through by 4 and rearranging:

This is the implicit solution. You can’t isolate in elementary form — leave it implicit. See Implicit solution to ODE.

Worked example 2

.

Rearrange:

Integrate:

For : substitute , , so .

Result:

Solve for :

Explicit, this time.

Recognizing separability

Some ODEs aren’t obviously separable until you rearrange. Tactics:

  • Move all -terms to one side, all -terms to the other.
  • Watch for that factors as — often hidden behind algebraic manipulation.

Examples that aren’t separable:

  • — sum, not product. Use Integrating factor instead.
  • — can’t separate. Try a substitution like .

When integration is hard

Sometimes the integrals you produce after separating are themselves hard. Don’t stop at the separation step — make sure the integrals can actually be computed (or at least left as for explicit numerical evaluation later).

For other first-order solution methods, see Integrating factor (when separation fails because of additive structure) and Exact equation (when there’s a hidden potential function).