SECTION 1
Historical Context & Motivation
Differential equations — equations that relate a function to its derivative — sit at the heart of nearly every branch of science. They describe how populations grow, how heat spreads through metal, and how planets orbit stars. The challenge has always been: given a differential equation, how do you find the function it describes? One of the earliest and most elegant answers is a technique called separation of variables. This method works by rearranging the equation so that each variable lives on its own side, making integration possible.
1690s • Leibniz & the Bernoullis
1748 • Euler's Systematic Approach
1822 • Fourier's Heat Equation
Today • Modern Applications
The central question this lesson addresses is straightforward: when you see an equation like dy/dx = f(x) · g(y), how do you systematically find every possible function y(x) that satisfies it? That collection of all possible solutions — one for every value of the arbitrary constant — is called the general solution.
SECTION 2
Core Principles & Definitions
Before diving into calculations, you need a solid understanding of the key ideas that make separation of variables work. These four principles form the backbone of the method and will guide every step of your solutions.
Separable Equations
Separation Step
Integration
General Solution
KEY TAKEAWAY
SECTION 3
Visual Explanation: The Family of Solution Curves
A general solution isn't a single curve — it's an entire family of curves, one for every value of the constant C. The diagram below shows the general solution to dy/dx = x/y, which is x² + y² = C (a family of circles centered at the origin). Each circle corresponds to a different positive value of C.
Notice how the circles grow outward as C increases. If someone gave you an initial condition — say, the curve must pass through the point (3, 4) — you could plug those coordinates in and solve for C: 9 + 16 = 25, so C = 25 and the particular solution would be the green circle. But without an initial condition, you report the entire family: x² + y² = C.
SECTION 4
Mathematical Framework
Let's formalize the method step by step. Separation of variables applies to any first-order ODE (ordinary differential equation) that can be written in the following form.
SEPARABLE FORM
f(x) is a function of x only; g(y) is a function of y only. The right side must be a product (or quotient) that factors cleanly.
STEP 1 — SEPARATE
Divide both sides by g(y) and multiply both sides by dx. Now all y-expressions are on the left and all x-expressions are on the right.
STEP 2 — INTEGRATE
Integrate each side with respect to its own variable. Only one arbitrary constant C is needed (the two constants from each integral combine into one).
STEP 3 — SOLVE FOR y (IF POSSIBLE)
After integrating, solve algebraically for y in terms of x and C when possible. If you cannot isolate y, the implicit equation is still a valid general solution.
Why only one constant?
SECTION 5
Step-by-Step Decision Flowchart
Not every differential equation is separable, and even when one is, it can take a few tries to see the factored form. The flowchart below walks you through the decision process, from recognizing a separable equation to writing the final general solution.
The diamond-shaped decision box is the most important part. If you cannot express the right-hand side of dy/dx = h(x, y) as a product of a function of x and a function of y, then the equation is not separable and you'll need a different method. But when it does factor, the remaining steps are pure algebra and integration — skills you already have.
SECTION 6
Worked Example
Let's solve the differential equation dy/dx = 2xy step by step. This is a classic separable equation where f(x) = 2x and g(y) = y.
Find the general solution of dy/dx = 2xy
- 1
Step 1 — Verify Separability
The right-hand side is 2xy, which equals (2x)(y). Since 2x depends only on x and y depends only on y, this equation is separable.dy/dx = (2x)(y) ✓ Separable - 2
Step 2 — Separate the Variables
Divide both sides by y and multiply both sides by dx. This places all y-terms on the left and all x-terms on the right.(1/y) dy = 2x dx - 3
Step 3 — Integrate Both Sides
Integrate the left side with respect to y and the right side with respect to x. The integral of 1/y is ln|y|, and the integral of 2x is x².ln|y| = x² + C - 4
Step 4 — Solve for y
Exponentiate both sides to remove the natural log. Recall that = |y|. We write |y| = = · . Since is just a positive constant, we rename it A (where A ≠ 0). Dropping the absolute value and allowing A to be any nonzero real number gives the general solution.y = , where A is an arbitrary nonzero constant - 5
Step 5 — Check the Solution
Differentiate y = : dy/dx = A · 2x · = 2x · () = 2xy. This matches the original equation, confirming our solution is correct.dy/dx = 2xy ✓ Verified
Note on y = 0
SECTION 7
Strengths, Limitations & Common Pitfalls
Separation of variables is a powerful technique, but it has clear boundaries. Understanding when it works — and when it doesn't — will save you time and frustration.
| Strengths | Limitations |
|---|---|
| Straightforward and systematic — the steps are always the same. | Only works if the equation can be written as f(x) · g(y). Many equations (e.g., dy/dx = x + y) cannot be separated. |
| Produces the complete general solution, including all possible particular solutions. | The resulting integrals are not always solvable in closed form (you might need numerical methods). |
| Relies only on algebra and basic integration — no new formulas to memorize. | You may lose solutions when dividing by g(y) = 0. Always check separately. |
| Results are easy to verify by substituting back into the original equation. | Solving for y explicitly is not always possible; the general solution may remain implicit. |
Comparison of strengths and limitations of the separation of variables method.
COMMON PITFALL
SECTION 8
Connection to Advanced Topics
Separation of variables is your first step into a much larger world. As you move forward in calculus and differential equations, you'll encounter equations that aren't separable and require more sophisticated tools. The table below compares what you've learned today with the methods you'll see next.
| Feature | Separation of Variables | Integrating Factors (next topic) |
|---|---|---|
| Equation type | dy/dx = f(x) · g(y) | dy/dx + P(x)y = Q(x) |
| Key idea | Move x and y to opposite sides, then integrate | Multiply by a special function to make the left side a product rule |
| When it works | Right side factors into x-only × y-only | Equation is first-order linear (y appears only to the first power) |
| Difficulty | Introductory — uses only algebra and basic integration | Intermediate — requires recognizing the product rule in reverse |
Separation of variables vs. integrating factors
Beyond integrating factors, you'll also encounter exact equations, second-order equations, and systems of differential equations. Each requires its own method, but the mindset is the same: manipulate the equation into a form where integration (or another known technique) applies. Mastering separation of variables gives you a solid foundation for all of those.
SECTION 9
Practice Problems
Question 1: CONCEPTUAL
Show answer
Question 2: BASIC CALCULATION
Show answer
Question 3: INTERMEDIATE
Show answer
Question 4: APPLIED
Show answer
Question 5: CRITICAL THINKING
Show answer
SUMMARY
Summary
Summary
Separation of variables is a method for solving first-order differential equations of the form dy/dx = f(x) · g(y). The process has three core steps: separate the variables so all y-terms are on one side and all x-terms are on the other; integrate both sides independently; and solve for y (if possible). The result contains one arbitrary constant C and represents a family of curves — the general solution.
Always remember to check for lost solutions caused by dividing by g(y) when g(y) = 0, and verify your answer by substituting back into the original equation. This technique is the foundation for more advanced methods like integrating factors and exact equations that you'll encounter later in your study of differential equations.