Let be the independent variable and write . Suppose a quantity changes at a rate that is the product of a factor depending only on time and a factor depending only on the current state, as in . Then each variable can be gathered on its own side of the equation and integrated. This lesson explains why that step is legitimate, which solutions the division step can lose, when a relation between the variables is the natural answer, and how to find the interval on which a solution is valid.
Key terms
Separable equation
Definition A first-order equation is separable if it can be written as
where is continuous on an open interval and is continuous on an open interval . The right side is a product of a function of alone and a function of alone. An autonomous equation with continuous is the special case .
In plain words Time and state affect the rate through separate factors that are multiplied together. Neither factor contains the other variable.
Example In the time factor is and the state factor is . The equation is separable too, because . The equation is not. If held on a rectangle, then for two fixed times the ratio would equal the constant wherever . But that ratio is , which changes with .
Separation of variables
Definition Let be separable as above, and let be an open interval on which . Let be an antiderivative of on and an antiderivative of on . A differentiable function on an interval contained in , with values in , is a solution if and only if
for some constant . The reason is the chain rule,
which equals at every point exactly when solves the equation, and two functions with the same derivative on an interval differ by a constant. The usual shorthand for this relation is
In plain words Divide by the state factor where it is not zero, then integrate each side with respect to its own variable. Writing and on separate sides is a compact record of the chain rule argument, not a separate rule.
Example Solve on a branch where . The function has the antiderivative on each of the intervals and , so
On the branch this gives , and on the branch it gives . Both are of the form with , where the sign of is the sign of the branch.
Equilibria lost by division
Definition If for some in , the constant function solves on all of , because both sides are zero. Such a constant solution is an equilibrium. Separation divides by , so it only produces solutions that avoid the zeros of , and the equilibria have to be found before dividing and checked on their own. If in addition is continuously differentiable on , the uniqueness theorem applies to , so a solution that equals at one time equals at every time. Every solution is then either an equilibrium or never reaches one, and in the second case its values stay inside a single interval where separation applies. Without that hypothesis a solution can reach an equilibrium in finite time, as does for at .
In plain words Before dividing by , list every value with . Each one is a constant solution, and the division may have removed it from the family that separation produces.
Example For the zero of gives the equilibrium , which does solve the equation, since both sides are . The separated family with happens to recover it at , and is continuously differentiable, so every solution is for some real . That last step was checked in the original equation, and it does not always work. For , separation gives
and no value of produces the equilibrium , because the fraction is never zero.
Implicit solution
Definition A relation is an implicit solution on an open interval if it defines there a differentiable function that solves the equation and satisfies for every in the interval. By the implicit function theorem, if has continuous first partial derivatives near a point of the relation and , then on some open interval around the part of the relation near is the graph of a differentiable function with , and
The separated relation has , which is never zero on , so it always defines locally there.
In plain words Separation often ends with an equation that links the two variables rather than a formula for . That equation is a valid answer wherever it defines as a differentiable function, and the initial value picks out the piece of its graph that the solution follows.
Example Take with , where now is the independent variable and . The equation itself requires , so multiplying by loses nothing and gives . The left side is the derivative of , so , and the initial point gives , that is
The whole circle is not the graph of one function. The initial value selects the upper half,
and differentiating gives , as required.
Solution interval
Definition A solution of an initial-value problem is a function on an open interval containing the initial time that takes the initial value, is differentiable and satisfies the equation at every point of that interval. The solution interval is the largest such interval for the selected solution, its maximal interval of existence. A formula can be defined on a larger set than the solution interval, or on a set that is not an interval, so the interval has to be read off separately. For a separated formula, look for the times where leaves , where becomes unbounded, and where the values approach an end of , such as a point where is zero or undefined. In the last case the separated formula stops, and whether the solution can be continued needs a separate check in the original equation.
In plain words After finding a formula, ask how far it can be followed from the initial time in each direction while it stays differentiable and keeps satisfying the equation.
Example The function solves with , since for every real , so its solution interval is the whole line. Its derivative is negative for and positive for , so it falls to its minimum value at and rises afterward. For with , the family above gives and
This formula is defined for every , but the solution interval is , the interval containing , because becomes unbounded at both ends. The upper half circle has solution interval . Its formula is defined on , but at the value makes the right side undefined.
Check yourself
- Decide which of the equations , and are separable, and name the two factors when they are.
Show the answer
The first is separable, since with and , and it has the equilibrium . The second is separable, since , and it has no equilibrium because is never zero. The third is not separable. If held on a rectangle, then for two fixed times the ratio would equal the constant wherever . But the ratio is , which changes as changes.
- Solve the problem below, leaving the answer as a relation between and , and explain why that relation defines as a differentiable function of for every real .
Show the answer
The state factor is never zero, so there are no equilibria to set aside. Separating the variables gives
so , and gives . The solution satisfies
The function has and takes every real value, so for each there is exactly one with . The derivative of the relation in , which is , is never zero, so by the implicit function theorem this is a differentiable function of . Differentiating the relation gives back . The solution interval is the whole line, and for example is the real root of , about .
- Solve with and give the solution interval. Which solution has , and why does the separated formula not show it?
Show the answer
The zero of gives the equilibrium . For , separating the variables gives
The initial value gives , so and
As a check, , which equals . The denominator vanishes where , and the zeros nearest to are and , where . The solution interval is .
The problem with is solved by the equilibrium , and since is continuously differentiable it is the only solution. No value of in gives the constant , because the fraction is never zero. The equilibrium was lost when the equation was divided by .