# 9.3: Separable Equations

- Page ID
- 4500

\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

Skills to Develop

In this section, we strive to understand the ideas generated by the following important questions:

- What is a separable differential equation?
- How can we find solutions to a separable differential equation?
- Are some of the differential equations that arise in applications separable?

In Sections 7.2 and 7.3, we have seen several ways to approximate the solution to an initial value problem. Given the frequency with which differential equations arise in the world around us, we would like to have some techniques for finding explicit algebraic solutions of certain initial value problems. In this section, we focus on a particular class of differential equations (called separable) and develop a method for finding algebraic formulas for solutions to these equations.

A *separable differential equation* is a differential equation whose algebraic structure permits the variables present to be separated in a particular way. For instance, consider the equation

\[\dfrac{dy}{dt} = t y.\]

We would like to separate the variables \(t\) and \(y\) so that all occurrences of \(t\) appear on the right-hand side, and all occurrences of \(y\) appears on the left and multiply \(dy/dt\). We may do this in the preceding differential equation by dividing both sides by \(y\):

\[\dfrac{1}{y} \dfrac{dy}{dt} = t. \]

Note particularly that when we attempt to separate the variables in a differential equation, we require that the left-hand side be a product in which the derivative \(dy/dt\) is one term. Not every differential equation is separable. For example, if we consider the equation

\[\dfrac{dy}{ dt} = t − y,\]

it may seem natural to separate it by writing

\[y + \dfrac{dy}{dt} = t.\]

As we will see, this will not be helpful since the left-hand side is not a product of a function of \(y\) with \(\frac{dy}{dt}\).

Preview Activity \(\PageIndex{1}\):

In this preview activity, we explore whether certain differential equations are separable or not, and then revisit some key ideas from earlier work in integral calculus.

- Which of the following differential equations are separable? If the equation is separable, write the equation in the revised form \(g(y) \dfrac{dy}{dt} = h(t).\)
- \( \dfrac{dy}{dt} = −3y\)
- \( \dfrac{dy}{dt}t = t y − y. \)
- \( \dfrac{dy}{dt} = t + 1. \)
- \( \dfrac{dy}{dt} = t^2 − y^2 .\)

- Explain why any autonomous differential equation is guaranteed to be separable.
- Why do we include the term “\(+C\)” in the expression \[\int x\, dx = \dfrac{x^2}{2} + C?\]
- Suppose we know that a certain function \(f\) satisfies the equation

\[\int f'(x) \,dx = \int x\, dx.\]

What can you conclude about \(f\)?

### Solving separable differential equations

Before we discuss a general approach to solving a separable differential equation, it is instructive to consider an example.

Example \(\PageIndex{1}\): Separable Differential Equation

Find all functions \(y\) that are solutions to the differential equation

\[\dfrac{dy}{dt} = \dfrac{t}{y^ 2}. \]

**Solution**

We begin by separating the variables and writing

\[y^2 \dfrac{dy}{dt} = t.\]

Integrating both sides of the equation with respect to the independent variable \( t\) shows that

\[\int y^2 \dfrac{dy}{dt} dt = \int t\ dt.\]

Next, we notice that the left-hand side allows us to change the variable of antidifferentiation from \( t\) to \( y\). In particular, \(dy = \dfrac{dy}{dt} dt,\) so we now have

\[\int y^2\, dy = \int t\ dt.\]

This most recent equation says that two families of antiderivatives are equal to one another. Therefore, when we find representative antiderivatives of both sides, we know they must differ by arbitrary constant \(C\). Antidifferentiating and including the integration constant \(C\) on the right, we find that

\[\dfrac{y^3}{3} = \dfrac{t^2}{2} + C.\]

Again, note that it is not necessary to include an arbitrary constant on both sides of the equation; we know that \(y^3 /3\) and \(t^2 /2\) are in the same family of antiderivatives and must therefore differ by a single constant.

Finally, we may now solve the last equation above for \(y\) as a function of \(t\), which gives

\[y(t) = \sqrt[3]{\dfrac{3}{2} t^2 + 3C}.\]

Of course, the term \(3C\) on the right-hand side represents 3 times an unknown constant. It is, therefore, still an unknown constant, which we will rewrite as \(C\). We thus conclude that the function

\[y(t) = \sqrt[3]{\dfrac{3}{2} t^2 + C}.\]

is a solution to the original differential equation for any value of \(C\).

Notice that because this solution depends on the arbitrary constant \(C\), we have found an infinite family of solutions. This makes sense because we expect to find a unique solution that corresponds to any given initial value.

For example, if we want to solve the initial value problem

\[\dfrac{dy}{dt} = \dfrac{t}{ y^2}\]

with \(y(0) = 2,\)

we know that the solution has the form \(y(t) = \sqrt[3]{\dfrac{3}{2} t^2 + C}\) for some constant \(C\). We therefore must find the appropriate value for \(C\) that gives the initial value \(y(0) = 2\). Hence,

\[ 2 = y(0) = \sqrt[3]{\dfrac{3}{2}0^2+C} = \sqrt[3]{C}.\]

which shows that \(C = 2^3 = 8\). The solution to the initial value problem is then

The strategy of Example \(\PageIndex{1}\) may be applied to any differential equation of the form \( \dfrac{dy}{dt} = g(y) \cdot h(t),\) and any differential equation of this form is said to be separable. We work to solve a separable differential equation by writing

\[\dfrac{1}{g(y)} \dfrac{dy}{dt} = h(t),\]

and then integrating both sides with respect to \(t\). After integrating, we strive to solve algebraically for \(y\) in order to write \(y\) as a function of \(t\).

We consider one more example before doing further exploration in some activities.

Example \(\PageIndex{2}\): Separable Differential Equation

Solve the differential equation

\[\dfrac{dy}{dt} = 3y.\]

**Solution**

Following the same strategy as in Example \(\PageIndex{1}\), we have

\[\dfrac{1}{y} \dfrac{dy}{dt} = 3.\]

Integrating both sides with respect to \(t\),

\[\int \dfrac{1}{ y} \dfrac{dy}{dt} dt = \int 3\, dt,\]

and thus

\[\int \dfrac{1}{y}\, dy =\int 3\, dt.\]

Antidifferentiating and including the integration constant, we find that

\[\ln |y| = 3t + C.\]

Finally, we need to solve for \(y\). Here, one point deserves careful attention. By the definition of the natural logarithm function, it follows that

\[|y| = e^{3t+C} = e^{3t} e^C.\]

Since \(C\) is an unknown constant, \(e^C\) is as well, though we do know that it is positive (because \(e^x\) is positive for any \(x\)). When we remove the absolute value in order to solve for \( y\), however, this constant may be either positive or negative. We will denote this updated constant (that accounts for a possible + or −) by \(C\) to obtain

\(y(t) = Ce^{3t}.\)

There is one more slightly technical point to make. Notice that \(y = 0\) is an **equilibrium solution** to this differential equation. In solving the equation above, we begin by dividing both sides by \(y\), which is not allowed if \(y = 0\). To be perfectly careful, therefore, we will typically consider the equilibrium solutions separably. In this case, notice that the final form of our solution captures the equilibrium solution by allowing \(C = 0\).

Activity \(\PageIndex{1}\)

Suppose that the population of a town is growing continuously at an annual rate of 3% per year.

- Let P(t) be the population of the town in year \(t\). Write a differential equation that describes the annual growth rate.
- Find the solutions of this differential equation.
- If you know that the town’s population in year 0 is 10,000, find the population \(P(t)\).
- How long does it take for the population to double? This time is called the doubling time.
- Working more generally, find the doubling time if the annual growth rate is \(k\) times the population.

Activity \(\PageIndex{2}\): Cooling Coffee

Suppose that a cup of coffee is initially at a temperature of 105° F and is placed in a 75° F room. Newton’s law of cooling says that

\[\dfrac{dT}{dt} = −k(T − 75), \nonumber\]

where \(k\) is a constant of proportionality.

- Suppose you measure that the coffee is cooling at one degree per minute at the time the coffee is brought into the room. Use the differential equation to determine the value of the constant \(k\).
- Find all the solutions of this differential equation.
- What happens to all the solutions as \(t \rightarrow \infty\)? Explain how this agrees with your intuition.
- What is the temperature of the cup of coffee after 20 minutes?
- How long does it take for the coffee to cool to 80°?

Activity \(\PageIndex{3}\)

Solve each of the following differential equations or initial value problems.

- \(\dfrac{dy}{dt} − (2 − t)y = 2 − t\)
- \(\dfrac{1}{t} \dfrac{dy}{dt} = e^{{t^2}−2y}\)
- \(y' = 2y + 2, y(0) = 2\)
- \(y'= 2y^2 , y(−1) = 2\)
- \(\dfrac{dy}{dt} = \dfrac{−2ty}{t^2 + 1} , y(0) = 4\)

## Summary

In this section, we encountered the following important ideas:

- A separable differential equation is one that may be rewritten with all occurrences of the dependent variable multiplying the derivative and all occurrences of the independent variable on the other side of the equation.
- We may find the solutions to certain separable differential equations by separating variables, integrating with respect to \(t\), and ultimately solving the resulting algebraic equation for \(y\).
- This technique allows us to solve many important differential equations that arise in the world around us. For instance, questions of growth and decay and Newton’s Law of Cooling give rise to separable differential equations. Later, we will learn in Section 7.6 that the important logistic differential equation is also separable.

## Contributors

Matt Boelkins (Grand Valley State University), David Austin (Grand Valley State University), Steve Schlicker (Grand Valley State University)