Separation of Variables
The first solving technique
In the previous chapter, we saw how slope fields reveal the shape of solutions without actually solving the equation. The direction field shows us where solutions flow, and we traced them by following the arrows. But tracing is not the same as solving. Now we want formulas.
This chapter introduces your first real technique for solving differential equations. It is called separation of variables, and while it only works for certain types of equations, it works beautifully when it applies. By the end, you will be able to take a differential equation like and produce an explicit solution .
Recognizing Separable Equations
A differential equation is separable if you can write it in the form
The right-hand side must be a product of a function of alone and a function of alone. When this structure exists, we can separate the variables onto opposite sides of the equation.
Consider . The right side factors as (a function of only) times (a function of only). This equation is separable.
Now consider . The right side is a sum, not a product. There is no way to write as . This equation is not separable.
Interactive: Test whether equations are separable
Select a differential equation to analyze:
Is this equation separable?
The separable form is more common than you might expect. Many equations that do not look separable at first can be factored into the right form. For instance, factors as , which is separable with and .
The Separation Technique
The idea is deceptively simple: rearrange the equation so that all the terms are on one side with , and all the terms are on the other side with . Then integrate both sides.
Let us walk through the process with .
Step-by-step: Separating dy/dx = xy
We want to solve this equation. Notice the right side is a product of x and y.
The key move happens when we divide both sides by and rewrite the equation in differential form. At that point, each side involves only one variable:
Now integration makes sense. The left side is integrated with respect to , the right side with respect to . Each integral produces an antiderivative, and we end up with a relationship between and .
Treating dy/dx as a Fraction
You may have noticed something that seems suspicious: we treated as if it were an actual fraction, multiplying both sides by . Leibniz notation is designed to make this manipulation feel natural, and it gives the correct answer.
Rigorously, what we are doing is applying the chain rule in reverse. If is implicitly a function of , then
The substitution , transforms the right side into the integral on the left. The differential notation captures this substitution elegantly.
For practical purposes, you can think of it this way: the notation is designed so that algebraic manipulation gives the right answer. Just make sure the equation truly is separable before you separate.
Computing the Integrals
Once separated, each side is a standard integral. Let us see how the two integrals combine to form the solution.
Interactive: Watch both integrals evaluate
Starting from the separated form
Left side (in y)
Right side (in x)
A few things to notice:
The constant of integration appears only once. Technically, each integral produces a constant, say on the left and on the right. But we can combine them into a single constant on the right side. By convention, we write one after integrating.
The solution may be implicit. Sometimes you cannot solve explicitly for in terms of . The relation is itself a valid solution, even if we prefer to write .
Handling the absolute value: The in deserves care. When we exponentiate , we get where . Since could be positive or negative, we write . We can absorb the into a new constant that can be positive or negative, giving . The equilibrium solution often corresponds to the limiting case as .
Finding Particular Solutions
The general solution contains an arbitrary constant. To find a particular solution, we need an initial condition: a specific point that the solution must pass through.
Given that , we substitute into the general solution and solve for the constant.
Interactive: Pick an initial condition
Equation: · General solution:
With , we get
Drag the point or click anywhere to set an initial condition. The blue curve shows the particular solution passing through that point.
The slope field in the background shows how each particular solution follows the direction field. Every solution curve is tangent to the slope segments at every point. The initial condition selects one curve from the family of all solutions.
Example: The Exponential Equation
The simplest separable equation is
This says the rate of change of equals itself. Separating:
Integrating both sides:
Solving for :
where is an arbitrary constant. This is the exponential function, the solution to the fundamental equation of growth and decay. We will explore its applications in the next chapter.
Example: The Gaussian-Like Solution
Consider the equation we have been working with:
This factors as and . Separating:
Integrating:
Exponentiating both sides:
The shape of this solution is related to the Gaussian bell curve. When , the function grows rapidly as increases. When , it decreases. The rate of growth is proportional to both the current value and the distance from the origin.
Example: Power Law Solutions
Consider
Separating:
Integrating:
This can be rewritten as
where is a constant. The solutions are straight lines through the origin. Notice how a differential equation can have solutions of a completely different character depending on its form. The exponential growth of and the linear solutions of come from the same separation technique.
Slope Fields Revisited
Now that we can solve separable equations, let us see how the formulas connect back to the slope fields from the previous chapter.
Slope field with solution curves
Each solution curve threads through the slope field, always tangent to the direction at each point.
Each solution curve threads through the slope field, always tangent to the direction at each point. The slope field visualizes the differential equation; the solution curves are the actual solutions. Separation of variables gives us formulas for those curves.
Toggle between the three equations to see how different differential equations produce different solution families. The exponential equation produces curves that separate from or approach . The Gaussian-like equation produces curves that bulge outward from the origin. The power law produces straight lines.
When Separation Fails
Not every differential equation is separable. Consider
No amount of algebraic manipulation will factor into . For equations like this, we need other techniques: integrating factors, variation of parameters, series methods. These appear in later chapters.
Another example is . The argument inside the sine mixes the two variables in a way that cannot be separated. The presence of rather than is the telltale sign.
The good news is that separable equations are common in applications. Population growth, radioactive decay, cooling processes, and many other phenomena naturally produce separable equations. Recognizing when an equation is separable is the first step to solving it.
The Complete Algorithm
Here is the method in summary:
-
Check separability: Can you write ?
-
Separate: Rearrange to
-
Integrate: Compute
-
Solve for y: If possible, express explicitly as a function of
-
Apply initial conditions: If given , substitute to find
The technique is mechanical once you recognize it. The art lies in recognizing separable structure and handling the integrals that arise.
A Note on Lost Solutions
When we divided by during separation, we assumed . But what if for some value ? Then might be a solution that we lose in the division process.
For example, in , we divided by . But is actually a solution: if everywhere, then . This constant solution corresponds to in our general solution , so we did not lose it. But in other cases, you should check whether gives additional solutions.
Key Takeaways
- A differential equation is separable if it has the form
- Separation rewrites the equation with all terms on one side and all terms on the other
- Treating as a fraction is justified by the chain rule
- Integrating both sides produces a general solution with one arbitrary constant
- Initial conditions determine the specific value of the constant
- Not all equations are separable, which motivates learning additional techniques
- Watch for solutions lost when dividing by : check if gives constant solutions