There are specific techniques that can be used to solve specific types of differential equations. This is similar to solving algebraic equations. In algebra, we can use the quadratic formula to solve a quadratic equation, but not a linear or cubic equation. In the same way, techniques that can be used for a specific type of differential equation are often ineffective for a differential equation of a different type. In this section, we describe and practice a technique to solve a class of differential equations called separable equations.

Definition8.2.1.Separable Differential Equation.

A separable differential equation is one that can be written in the form

where \(n\) is a function that depends only on the dependent variable \(y\text{,}\) and \(m\) is a function that depends only on the independent variable \(x\text{.}\)

Below, we show a few examples of separable differential equations, along with similar looking equations that are not separable.

Notice that a separable equation requires that the functions of the dependent and independent variables be multiplied, not added (like item 8.2.3:1 in List 8.2.3). An alternate definition of a separable differential equation states that an equation is separable if it can be written in the form

Since the functions on the left and right hand sides of the equation are equal, their antiderivatives should be equal up to an arbitrary constant of integration. That is

Though the integral on the left may look a bit strange, recall that \(y\) itself is a function of \(x\text{.}\) Consider the substitution \(u = y(x)\text{.}\) The differential is \(du = \displaystyle \frac{dy}{dx}\,dx\text{.}\) Using this substitution, the above equation becomes

This relationship between \(y\) and \(x\) is an implicit form of the solution to the differential equation. Sometimes (but not always) it is possible to solve for \(y\) to find an explicit version of the solution.

Though the technique outlined above is formally correct, what we did essentially amounts to integrating the function \(n\) with respect to its variable and integrating the function \(m\) with respect to its variable. The informal way to solve a separable equation is to treat the derivative \(\displaystyle \frac{dy}{dx}\) as if it were a fraction. The separated form of the equation is

To solve, we integrate the left hand side with respect to \(y\) and the right hand side with respect to \(x\) and add a constant of integration. As long as we are able to find the antiderivatives, we can find an implicit form for the solution. Sometimes we are able to solve for \(y\) in the implicit solution to find an explicit form of the solution to the differential equation. We practice the technique by solving the three differential equations listed in the separable column above, and conclude by revisiting and finding the general solution to the logistic differential equation from Section 8.1.

Example8.2.4.Solving a Separable Differential Equation.

Find the general solution to the differential equation \(\yp = x^2y\text{.}\)

Using the informal solution method outlined above, we treat \(\displaystyle \frac{dy}{dx}\) as a fraction, and write the separated form of the differential equation as

This is an implicit form of the solution to the differential equation. Solving for \(y\) yields an explicit form for the solution. Exponentiating both sides, we have

This solution is a bit problematic. First, the absolute value makes the solution difficult to understand. The second issue comes from our desire to find the general solution. Recall that a general solution includes all possible solutions to the differential equation. In other words, for any given initial condition, the general solution must include the solution to that specific initial value problem. We can often satisfy any given initial condition by choosing an appropriate \(C\) value. When solving separable equations, though, it is possible to lose solutions that have the form \(y = \text{ constant}\text{.}\) Notice that \(y=0\) solves the differential equation, but it is not possible to choose a finite \(C\) to make our solution look like \(y=0\text{.}\) Our solution cannot solve the initial value problem \(\displaystyle \frac{dy}{dx} = x^2y\text{,}\) with \(y(a) = 0\) (where \(a\) is any value). Thus, we haven’t actually found a general solution to the problem. We can clean up the solution and recover the missing solution with a bit of clever thought.

Recall the formal definition of the absolute value: \(\abs{y} = y\) if \(y \geq 0\) and \(\abs{y} = -y\) if \(y \lt 0\text{.}\) Our solution is either \(y = e^C e^{\frac{x^3}{3}}\) or \(y = - e^C e^{{\frac{x^3}{3}}}\text{.}\) Further, note that \(C\) is constant, so \(e^C\) is also constant. If we write our solution as \(y = Ae^{\frac{x^3}{3}}\text{,}\) and allow the constant \(A\) to take on either positive or negative values, we incorporate both cases of the absolute value. Finally, if we allow \(A\) to be zero, we recover the missing solution discussed above. The best way to express the general solution to our differential equation is

\begin{equation*}
y = Ae^{\frac{x^3}{3}}\text{.}
\end{equation*}

Example8.2.5.Solving a Separable Initial Value Problem.

Solve the initial value problem \(\displaystyle (y\sqrt{y^2-5}) \yp - \sin(x) \cos(x) = 0\text{,}\) with \(y(0) = -3\text{.}\)

The indefinite integral \(\displaystyle \int y\sqrt{y^2-5}\,dy\) requires the substitution \(u = y^2-5\text{.}\) Using this substitute yields the antiderivative \(\displaystyle \frac{1}{3} (y^2-5)^{3/2}\text{.}\) The indefinite integral \(\displaystyle \int \sin(x) \cos(x)\,dx\) requires the substitution \(u = \sin(x)\text{.}\) Using this substitution yields the antiderivative \(\displaystyle \frac{1}{2} \sin^2 x\text{.}\) Thus, we have an implicit form of the solution to the differential equation given by

\begin{equation*}
\frac{1}{3} (y^2-5)^{3/2} = \frac{1}{2} \sin^2 x + C\text{.}
\end{equation*}

The initial condition says that \(y\) should be \(-3\) when \(x\) is \(0\text{,}\) or

We start by observing that there are no constant solutions to this differential equation because there are no constant \(y\) values that make the right hand side of the equation identically zero. Thus, we need not worry about losing solutions during the separation of variables process. The separated form of the equation is given by

We looked at a slope field for this equation in Section 8.1 in the specific case of \(k = M = 1\text{.}\) Here, we use separation of variables to find an analytic solution to the more general equation. Notice that the independent variable \(t\) does not explicitly appear in the differential equation. We mentioned that an equation of this type is called autonomous. All autonomous first order differential equations are separable.

We start by making the observation that both \(y=0\) and \(y = M\) are constant solutions to the differential equation. We must check that these solutions are not lost during the separation of variables process. The separated form of the equation is

The antiderivative of the left hand side of the equation can be found by making use of partial fractions. Using the techniques discussed in Section 6.5, we write

Letting \(A\) take on positive values or negative values incorporates both cases of the absolute value. This is another implicit form of the solution. Solving for \(y\) gives the explicit form

\begin{equation*}
y = \frac{M}{1 + be^{-kt}}\text{,}
\end{equation*}

where \(b\) is an arbitrary constant. Notice that \(b=0\) recovers the constant solution \(y = M\text{.}\) The constant solution \(y=0\) cannot be produced with a finite \(b\) value, and has been lost. The general solution the logistic differential equation is the set containing \(\displaystyle y = \frac{M}{1 + be^{-kt}}\) and \(y=0\text{.}\)

Exercises8.2.2Exercises

Problems

Exercise Group.

In the following exercises, decide whether the differential equation is separable or not separable. If the equation is separable, write it in separated form.