Separation of
Variables
Learn the essential technique for solving differential equations by isolating \(y\) and \(x\) on opposite sides, then integrating to find the general solution.
What Is a Differential Equation?
A differential equation (DE) is any equation that contains a derivative. It relates a function to its own rate of change. Here is an example:
The goal is to find the function \(y(x)\) that satisfies the equation: not a number, but an entire family of curves.
General vs Particular Solutions
A Family of Solution Curves
Each value of \(C\) gives a different curve. Below, \(\frac{dy}{dx} = 2x\) has the general solution \(y = x^2 + C\):
The Core Idea
Separation of variables works when you can rewrite a DE so that all \(y\) terms are on one side and all \(x\) terms are on the other:
Once separated, integrate both sides independently:
When Is a DE Separable?
A first-order DE \(\frac{dy}{dx} = F(x,y)\) is separable if and only if it can be factored as:
Separable vs Non-Separable
| Equation | Separable? | Reasoning |
|---|---|---|
| \(\frac{dy}{dx} = xy^2\) | ✓ Yes | \(f(x)=x,\; g(y)=y^2\) |
| \(\frac{dy}{dx} = e^{x+y}\) | ✓ Yes | \(e^{x+y} = e^x \cdot e^y\) |
| \(\frac{dy}{dx} = x^2 + y^2\) | ✕ No | Sum, not a product |
| \(\frac{dy}{dx} = \frac{\sin x}{\cos y}\) | ✓ Yes | \(\sin x \cdot \sec y\) |
Step-by-Step Method
Example 1: Basic Separation
Example 2: Involving \(y\)
Example 3: Exponential Growth
Example 4: Trigonometric DE
Why Only One Constant?
When you integrate both sides you technically get a constant on each side:
Combine them: \(G(y) = F(x) + (C_2 - C_1)\). Since \(C_2 - C_1\) is just another constant, we write a single \(C\):
Writing \(+C\) on only one side is standard: never put a constant on both sides.
Handling \(\ln|y|\) and Absolute Values
When \(\int \frac{1}{y}\,dy = \ln|y|\) appears, follow these steps to clean up:
Common Mistakes
Summary Table
| Step | Action | Result |
|---|---|---|
| 1. Check | Can we write \(\frac{dy}{dx} = f(x) \cdot g(y)\)? | If yes, proceed |
| 2. Separate | Move \(y\) terms left, \(x\) terms right | \(\frac{1}{g(y)}\,dy = f(x)\,dx\) |
| 3. Integrate | Integrate both sides | \(G(y) = F(x) + C\) |
| 4. Solve | Isolate \(y\) if possible | Explicit or implicit form |
Question 1 of 5
What is the general solution of \(\dfrac{dy}{dx} = 6x^2\)?
Question 2 of 5
Which of the following DEs is NOT separable?
Question 3 of 5
Solve \(\dfrac{dy}{dx} = \dfrac{2x}{y}\). What is the general solution?
Question 4 of 5
The general solution of \(\dfrac{dy}{dx} = -2y\) is:
Question 5 of 5
After separating \(\dfrac{dy}{dx} = e^{x+y}\), the correct separated form is: