Separation of Variables

Calculus
process

Also known as: separable equations, separable DE

Grade 9-12

View on concept map

A method for solving first-order DEs of the form \frac{dy}{dx} = f(x) \cdot g(y): rearrange to \frac{dy}{g(y)} = f(x)\,dx, then integrate both sides. This is the simplest and most commonly used technique for solving DEs.

This concept is covered in depth in our solving integrals with partial fractions, with worked examples, practice problems, and common mistakes.

Definition

A method for solving first-order DEs of the form \frac{dy}{dx} = f(x) \cdot g(y): rearrange to \frac{dy}{g(y)} = f(x)\,dx, then integrate both sides.

💡 Intuition

If the rate of change factors into a piece that depends only on x and a piece that depends only on y, you can sort them onto opposite sides of the equation—all the y-stuff on the left, all the x-stuff on the right—then integrate each side in its own variable.

🎯 Core Idea

Separation of variables works only when \frac{dy}{dx} can be written as a product of a function of x alone and a function of y alone. It converts a DE into two independent integration problems.

Example

Solve \frac{dy}{dx} = xy.
Separate: \frac{dy}{y} = x\,dx.
Integrate: \ln|y| = \frac{x^2}{2} + C.
Solve: y = Ae^{x^2/2} (where A = \pm e^C).

Formula

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

Notation

\frac{dy}{g(y)} = f(x)\,dx — all y-terms on the left with dy, all x-terms on the right with dx. +C appears on one side only.

🌟 Why It Matters

This is the simplest and most commonly used technique for solving DEs. It handles exponential growth/decay, logistic growth, Newton's law of cooling, and many other standard models. It's usually the first method taught and the first method to try.

💭 Hint When Stuck

Try rewriting dy/dx as a product of something in x only times something in y only, then move all y-terms to the left side with dy.

Formal View

If \frac{dy}{dx} = f(x) \cdot g(y) and g(y) \neq 0, then \int \frac{1}{g(y)}\,dy = \int f(x)\,dx + C. Let G(y) = \int \frac{1}{g(y)}\,dy and F(x) = \int f(x)\,dx; then G(y) = F(x) + C defines y implicitly. Equilibrium solutions: g(y_0) = 0 \implies y = y_0 is a constant solution.

🚧 Common Stuck Point

After integrating, you often get y defined implicitly (\ln|y| = \ldots). You may need to solve for y explicitly, and don't forget to handle \pm from absolute values.

⚠️ Common Mistakes

  • Dividing by g(y) = 0 without checking: if g(y_0) = 0, then y = y_0 is a constant (equilibrium) solution that gets lost when you divide. Always check for equilibrium solutions separately.
  • Forgetting the constant of integration: you need +C on one side (not both—combining two constants gives one). The initial condition determines C.
  • Trying to separate a DE that isn't separable: \frac{dy}{dx} = x + y cannot be written as f(x) \cdot g(y), so this method doesn't apply.

Frequently Asked Questions

What is Separation of Variables in Math?

A method for solving first-order DEs of the form \frac{dy}{dx} = f(x) \cdot g(y): rearrange to \frac{dy}{g(y)} = f(x)\,dx, then integrate both sides.

Why is Separation of Variables important?

This is the simplest and most commonly used technique for solving DEs. It handles exponential growth/decay, logistic growth, Newton's law of cooling, and many other standard models. It's usually the first method taught and the first method to try.

What do students usually get wrong about Separation of Variables?

After integrating, you often get y defined implicitly (\ln|y| = \ldots). You may need to solve for y explicitly, and don't forget to handle \pm from absolute values.

What should I learn before Separation of Variables?

Before studying Separation of Variables, you should understand: differential equations intro, integral.

How Separation of Variables Connects to Other Ideas

To understand separation of variables, you should first be comfortable with differential equations intro and integral.

Want the Full Guide?

This concept is explained step by step in our complete guide:

How to Integrate Rational Functions: Long Division and Partial Fractions →