General Solutions:
Separation of Variables
Master the technique of separating variables to solve first-order differential equations and find their general solutions.
What Is a Differential Equation?
A differential equation (DE) is any equation that contains one or more derivatives of an unknown function. Our goal is to find the function itself.
General vs. Particular Solutions
Solving a DE means finding every function that satisfies it. We call this family the general solution: it contains an arbitrary constant \(C\).
Example: \(y = Ce^{x}\)
Example: \(y = 5e^{x}\)
A Family of Solution Curves
Each value of \(C\) gives a different curve. Together, they form a family of curves that represents the general solution.
The Core Idea: Separation of Variables
If a first-order ODE can be written so that all \(y\)-terms are on one side and all \(x\)-terms are on the other, we can integrate each side independently.
The Method in Detail
How to Apply the Method
Separable vs. Non-Separable
Not every first-order ODE can be solved by separation of variables. You must be able to factor the right side into \(g(x) \cdot h(y)\).
| Equation | Separable? | Reason |
|---|---|---|
| \(\frac{dy}{dx} = x^2 y\) | ✓ Yes | \(g(x)=x^2,\; h(y)=y\) |
| \(\frac{dy}{dx} = \frac{y}{x}\) | ✓ Yes | \(g(x)=\frac{1}{x},\; h(y)=y\) |
| \(\frac{dy}{dx} = x + y\) | ✕ No | Sum, not a product |
| \(\frac{dy}{dx} = e^{x+y}\) | ✓ Yes | \(e^{x+y} = e^x \cdot e^y\) |
Example 1: Basic Separation
Example 2: Quadratic in \(y\)
Example 3: Exponential Separation
Why \(+\,C\) Is Essential
Integration produces a family of antiderivatives. The constant \(C\) represents infinitely many valid solutions. Dropping it gives only one curve instead of the complete answer.
Common Mistakes to Avoid
Summary of Key Ideas
| Concept | Definition | Example |
|---|---|---|
| Separable ODE | \(\frac{dy}{dx} = g(x)\cdot h(y)\) | \(\frac{dy}{dx} = xy\) |
| Separation step | Move \(y\) with \(dy\), \(x\) with \(dx\) | \(\frac{dy}{y} = x\,dx\) |
| Integration | Integrate both sides independently | \(\ln|y| = \frac{x^2}{2} + C\) |
| General solution | Family with arbitrary constant | \(y = Ae^{x^2/2}\) |
| Particular solution | Use initial condition for \(C\) | \(y(0)=3 \Rightarrow A=3\) |
Before the Assessment
Question 1 of 5
What is the general solution of \(\displaystyle\frac{dy}{dx} = 2xy\)?
Question 2 of 5
Which of these ODEs is not separable?
Question 3 of 5
After separating \(\displaystyle\frac{dy}{dx} = \frac{x^2}{y}\), which integral equation is correct?
Question 4 of 5
Find the general solution of \(\displaystyle\frac{dy}{dx} = \frac{1+y^2}{1+x^2}\).
Question 5 of 5
A student solves \(\frac{dy}{dx} = 6x^2 y\) and writes \(y = e^{2x^3}\). What is wrong with this answer?