General Solutions:
Separation of Variables
Learn to solve differential equations by isolating each variable on its own side, then integrating to find the general solution.
What Is a Differential Equation?
A differential equation (DE) is an equation that relates a function to one or more of its derivatives. We write the unknown function as \( y \) and its derivative as \( \frac{dy}{dx} \).
A general solution includes an arbitrary constant \( C \) because many functions can share the same derivative. A particular solution fixes \( C \) using an initial condition.
What Does "Separable" Mean?
A first-order ODE is separable if it can be written as a product of a function of \( x \) alone and a function of \( y \) alone:
Visual Intuition: Slope Fields
A slope field plots tiny line segments whose slopes equal \( \frac{dy}{dx} \) at each point. Each solution curve threads through these segments. The general solution is the entire family of curves, one for each value of \( C \).
The Core Method
Given a separable ODE \( \frac{dy}{dx} = f(x) \cdot g(y) \), the technique has one key move: treat \( dy \) and \( dx \) as separable differentials.
The constant \( C \) appears because each side produces its own constant of integration: we combine them into a single \( C \) on one side.
Formal Theorem
Separable vs. Non-Separable
Not every first-order ODE can be solved this way. The critical test: can you factor the right side into \( f(x) \cdot g(y) \)?
| Equation | Separable? | Why? |
|---|---|---|
| \( \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 + y \) | ✕ No | Sum, not product |
| \( \frac{dy}{dx} = \sin(xy) \) | ✕ No | Cannot factor \( xy \) inside \(\sin\) |
How to Apply the Method
Example 1: Basic Separation
Solve: \( \frac{dy}{dx} = 3x^2 y \)
Example 2: Implicit Solution
Solve: \( \frac{dy}{dx} = \frac{x}{y^2} \)
Example 3: Exponential Growth
Solve: \( \frac{dy}{dx} = ky \), where \( k \) is a constant.
Example 4: Trigonometric ODE
Solve: \( \frac{dy}{dx} = \frac{\cos x}{e^y} \)
Implicit vs. Explicit Solutions
After integrating, you may not always be able to isolate \( y \). Both forms are valid general solutions.
Common Mistakes
Summary of the Method
| Step | Action | Result |
|---|---|---|
| 1. Check form | Factor as \( f(x) \cdot g(y) \) | Confirm separable |
| 2. Separate | \( \frac{1}{g(y)}\,dy = f(x)\,dx \) | Variables isolated |
| 3. Integrate | \( \int \) both sides | Implicit equation |
| 4. Solve for \( y \) | Algebra (if possible) | Explicit solution |
| 5. Add \( +C \) | Include constant | General solution |
| 6. Check \( g(y)=0 \) | Test constant solutions | No solutions lost |
Question 1 of 5
Which of the following ODEs is separable?
Question 2 of 5
After separating \( \frac{dy}{dx} = 2xy \), which equation should you integrate?
Question 3 of 5
What is the general solution of \( \frac{dy}{dx} = 2xy \)?
Question 4 of 5
When solving \( \frac{dy}{dx} = y^2 \sin x \), which constant solution might be lost during separation?
Question 5 of 5
The general solution of \( \frac{dy}{dx} = \frac{e^x}{y} \) is: