7D

Equations of the form dy/dx = g(y) and logistic equations

Solving dy/dx = g(y) by taking reciprocals, exponential growth, the logistic equation dP/dt = kP(1 − P/K), its solution, carrying capacity, constant solutions, and where the growth is fastest.

When the gradient depends only on $y$, as in $\dfrac{dy}{dx} = g(y)$, the trick is to flip the derivative. That handles exponential growth, and it leads to the logistic equation: the standard model for anything that grows quickly at first and then runs out of room, from rabbits on an island to a rumour in a school.

Solving $\dfrac{dy}{dx} = g(y)$

From 5B, $\dfrac{dx}{dy} = \dfrac{1}{dy/dx}$. So if $\dfrac{dy}{dx} = g(y)$, then $\dfrac{dx}{dy} = \dfrac{1}{g(y)}$, and integrating with respect to $y$ gives $x$ as a function of $y$. (This is the separable method with $f(x) = 1$.) As before, check first for constant solutions where $g(y) = 0$.

Example 1●●

Solve $\dfrac{dy}{dx} = 2(y + 2)$, given $y = 0$ when $x = 0$.

$\dfrac{dx}{dy} = \dfrac{1}{2(y + 2)}$, so $x = \tfrac12\ln|y + 2| + C$.
Take reciprocals.
$0 = \tfrac12\ln2 + C$, so $x = \tfrac12\ln\dfrac{y + 2}{2}$ (here $y + 2 \gt 0$).
At y = 0, x = 0.
$e^{2x} = \dfrac{y + 2}{2}$, so $y = 2e^{2x} - 2$.
Make y the subject: double, exponentiate, rearrange.
Example 2●●●

Solve $\dfrac{dy}{dx} = 1 + y^2$, given $y = 1$ when $x = 0$.

$\dfrac{dx}{dy} = \dfrac{1}{1 + y^2}$, so $x = \tan^{-1}y + C$.
$C = -\tfrac{\pi}{4}$, so $\tan^{-1}y = x + \tfrac{\pi}{4}$ and $y = \tan\left(x + \tfrac{\pi}{4}\right)$.
At (0, 1): 0 = π/4 + C.
The solution blows up as $x \to \tfrac{\pi}{4}$, so it is only valid for $-\tfrac{3\pi}{4} \lt x \lt \tfrac{\pi}{4}$.
tan has an asymptote when its angle reaches π/2.

The logistic equation

Exponential growth $\dfrac{dP}{dt} = kP$ assumes unlimited resources. In reality growth slows as the population $P$ approaches the most the environment can support, the carrying capacity $K$. The factor $\left(1 - \dfrac{P}{K}\right)$ does exactly that: close to $1$ when $P$ is small, close to $0$ when $P$ is near $K$.

Logistic equation
$$\frac{dP}{dt} = kP\left(1 - \frac{P}{K}\right) \qquad P = \frac{K}{1 + Ae^{-kt}}, \quad A = \frac{K}{P_0} - 1$$
Logistic growth

The upper dashed line is the carrying capacity K and the lower one is K/2. The segments show the slope field.

Try this

With $K = 8$ and $P_0 = 1$, find where the curve is steepest and check that it is on the line $P = K/2$. Then predict what happens when $P_0 = 12$ (above $K$), and check. Does $k$ change the long-run value?

Example 3●●

A population follows $P = \dfrac{1000}{1 + 9e^{-0.5t}}$. Find the initial population, the carrying capacity, and when the population reaches $500$.

$P(0) = \dfrac{1000}{1 + 9} = 100$
$P \to 1000$, so $K = 1000$.
As t → ∞, e^(−0.5t) → 0.
$9e^{-0.5t} = 1$, so $t = 2\ln9 \approx 4.39$. This is also when the growth is fastest, since $500 = \tfrac{K}{2}$.
P = 500 means 1 + 9e^(−0.5t) = 2.

Your turn

A population starts at $50$ with carrying capacity $400$, and $P = 100$ after $2$ years. Find $k$.

Show the working

$A = \tfrac{400}{50} - 1 = 7$, so $P = \dfrac{400}{1 + 7e^{-kt}}$. At $t = 2$: $1 + 7e^{-2k} = 4$, so $e^{-2k} = \tfrac37$ and $k = \tfrac12\ln\tfrac73 \approx 0.42$.

Flashcards
Solving $dfrac{dy}{dx} = g(y)$
Write $\dfrac{dx}{dy} = \dfrac{1}{g(y)}$ and integrate with respect to $y$.
Logistic solution
$P = \dfrac{K}{1 + Ae^{-kt}}$, with $A = \dfrac{K}{P_0} - 1$
Fastest logistic growth
At $P = \dfrac{K}{2}$
Practice
  1. Solve $\dfrac{dy}{dx} = 3(y + 1)$ with $y = 0$ when $x = 0$. Find $y$ when $x = 0.5$, correct to $2$ decimal places.

  2. If $\dfrac{dy}{dx} = g(y)$ and $g(y) \ne 0$, then:

  3. Find the carrying capacity for $\dfrac{dP}{dt} = 0.3P\left(1 - \dfrac{P}{600}\right)$.

  4. For $\dfrac{dP}{dt} = 0.3P\left(1 - \dfrac{P}{600}\right)$, at what population is the growth rate greatest?

  5. Find the greatest value of $\dfrac{dP}{dt}$ for $\dfrac{dP}{dt} = 0.3P\left(1 - \dfrac{P}{600}\right)$.

  6. Find the initial population for $P = \dfrac{800}{1 + 15e^{-0.4t}}$.

  7. For $P = \dfrac{800}{1 + 15e^{-0.4t}}$, when does $P$ reach $400$? Give $t$ correct to $2$ decimal places.

  8. The constant solutions of $\dfrac{dP}{dt} = kP\left(1 - \dfrac{P}{K}\right)$ are:

  9. Exam style: solve $\dfrac{dy}{dx} = 1 + y^2$ with $y = \sqrt3$ when $x = 0$. Find $y$ when $x = 0.1$, correct to $2$ decimal places.

  10. Exam style: a population starts at $20$, has carrying capacity $200$, and reaches $100$ after $5$ years. Using $P = \dfrac{K}{1 + Ae^{-kt}}$, find $k$ correct to $2$ decimal places.

Formula sheet