Initial Conditions &
Separation of Variables
Learn to solve differential equations by separating variables and using initial conditions to find the one particular solution that fits.
What Is a Differential Equation?
A differential equation (DE) is any equation that contains a function and one or more of its derivatives. It describes a relationship between a quantity and its rate of change.
Solving a DE means finding the function \(y(x)\) that satisfies the equation. The solution is not a number: it is an entire function or family of functions.
General vs. Particular Solutions
What Are Initial Conditions?
An initial condition is a known point \((x_0, y_0)\) that the solution must pass through. It pins down the constant \(C\) so you get exactly one curve instead of infinitely many.
Without the initial condition, \(C\) stays unknown and you only have the general solution.
The Technique: Separation of Variables
Separation of variables is a method for solving DEs of the form \(\dfrac{dy}{dx} = f(x)\,g(y)\). The key idea: rearrange so that all \(y\)-terms are on one side and all \(x\)-terms on the other, then integrate both sides.
The Formal Method
This works only when \(\dfrac{dy}{dx}\) can be written as a product of a function of \(x\) alone and a function of \(y\) alone. Not every DE is separable.
Separable vs. Non-Separable
| Equation | Separable? | Why |
|---|---|---|
| \(\dfrac{dy}{dx} = x^2 y\) | ✓ Yes | \(f(x)=x^2,\ g(y)=y\) |
| \(\dfrac{dy}{dx} = e^{x+y}\) | ✓ Yes | \(e^{x+y}=e^x \cdot e^y\) |
| \(\dfrac{dy}{dx} = x + y\) | ✕ No | Sum, not product |
| \(\dfrac{dy}{dx} = \sin(xy)\) | ✕ No | Cannot factor into \(f(x)\cdot g(y)\) |
How to Apply the Method
Example 1: Basic Separation
Example 2: Products of Functions
Visualizing \(y = 3e^{2x^3}\)
Example 3: Implicit Solutions
Why the \(+C\) Matters
Every antiderivative has a \(+C\) because differentiation destroys constant information. The constant of integration represents the vertical shift of the solution curve.
Common Mistakes to Avoid
Summary at a Glance
| Concept | Key Idea | Watch Out |
|---|---|---|
| Separable DE | \(\dfrac{dy}{dx}=f(x)\cdot g(y)\) | Must be a product, not a sum |
| General Solution | Contains arbitrary \(C\) | Don't forget \(+C\) |
| Initial Condition | \(y(x_0)=y_0\) pins down \(C\) | Apply after integrating |
| Particular Solution | One specific function | Check domain and sign |
| Implicit vs. Explicit | Sometimes \(y\) stays inside an equation | Use IC to pick correct branch |
Question 1 of 5
Solve \(\dfrac{dy}{dx} = 4x\) with \(y(0) = 7\). What is the particular solution?
Question 2 of 5
Which of these differential equations is separable?
Question 3 of 5
Solve \(\dfrac{dy}{dx} = y\) with \(y(0) = 5\). What is the particular solution?
Question 4 of 5
Given \(\dfrac{dy}{dx} = \dfrac{2x}{y}\) and \(y(0) = 3\), find \(y\) when \(x = 2\).
Question 5 of 5
A student solves \(\dfrac{dy}{dx} = 3x^2 y\) and writes the general solution as \(y = e^{x^3}\). What is their error?