Separable ODEs
A first order, ordinary differential equation has separable variables if it is of the form
or, if it can be expressed in the above form. We note that in Eq. (12.1), all functions of are multiplied by the derivative of with respect to , while all functions of can be separated from it,
Method of separation of variables
Our objective is to find a solution for . Naturally, to obtain a solution for , we would choose to integrate the ODE. Doing so, with respect to , we obtain,
Starting from Eq. (12.1), we can equivalently carry out the following steps.
Step 1: Separate the variables
Step 2: Integrate both sides
Step 3: Solve for
i.e. obtain an explicit solution, if possible. If not, leave the solution in implicit form.
Before we move on to examples, we justify how we can split the derivative, , which represents the rate of change of with respect to into two differentials, namely and , thus allowing us to separate the variables as in Eqs. (12.3) and (12.4). The justification comes through the chain rule (in integral form). Comparing Eqs. (12.1) and (12.2), it is obvious that the RHS of the equations are equivalent. To show that the LHS are also equivalent, we define as the antiderivative of with respect to such that or,
Using the chain rule, we have:
Integrating both sides of Eq. (12.6) with respect to , gives:
With the definition of as in Eq. (12.5), Eq. (12.7) justifies the general algorithm outlined above which is commonly used to solve separable ODEs.
Example 12.1 Find the general solution to the following ODE by separating the variables,
Solution We solve this ODE following the algorithm outlined above.
- Separating the variables,
- Integrating both sides,
where is a constant.
- Solve for ,
The general solution given by Eq. (12.11) represents a 1-parameter family of solutions. This means that depending on the value of (the parameter), we obtain a different solution. With additional information, such as an initial condition, we can solve for the value of that satisfies the ODE and the IC; recall that this yields a particular solution. The interval of existence of the solution to the ODE posed ultimately depends on the value of which, in turn, depends on the IC. Suppose we have the IC . Substituting in Eq. (12.11) gives the particular solution as:
What is the interval of existence of this solution? First, the ODE given by Eq. (12.8) is defined everywhere . Second, we note that the particular solution (12.12) is undefined at , i.e. at . Since the IC is given at , the interval of existence is given as
The graph of the function given by Eq. (12.12) is shown in Fig. 12.1; the portion of the graph associated with the particular solution is shown in red.
Figure 12.1: Plot of the function given by Eq. (12.12). The interval of existence associated with the particular solution to ODE (12.8) which satisfies the IC given by , is shown in red. Example 12.2 Find the general solution to the following ODE by separating the variables,
- Separating the variables,
- Integrating both sides,
- Solve for . Exponentiating both sides,
or,
Setting ,
Physical applications
We will discuss applications of differential equations throughout these notes. Here, we briefly mention some examples of physical applications which are described by separable differential equations:
- The growth of bacteria in biology
Suppose the number of bacteria in a yeast culture grows at a rate that is proportional to the number of bacteria present. Then, if we denote the number of bacteria by , time by and take the constant of proportionality to be then we may mathematically describe this process by,
- Radioactive decay
The same form of the ODE used in the first example may be used to describe radioactive decay in a radioactive isotope
where is the number of atoms in the isotope and is the decay constant.
- Newton's law of cooling
It has been proven experimentally that the rate of change of the temperature of a body, , which has been immersed in a medium of some constant temperature, is proportional to the difference between the temperatures in the body and the medium. This is described by the following separable ODE
where and is a proportionality constant.
In general, many physical problems that deal with temperature, decomposition/growth, and some simple chemical reactions take the form of the equations described above whose solutions involve the exponential function.
Exercises
- Solve the following IVP using the method of separation of variables,
- Solve the following ODE giving your answer in explicit form,