---
title: Problem set 4
heading: "Problem set 4: separable equations and equilibria"
eyebrow: A6 · Problem set 4
type: problems
---

::: hook
These problems use lessons 17 to 19: separable differential equations, equilibria and their stability, and the logistic equation. Separate, integrate both sides, use the starting value, and check your answer by differentiating. For equilibria, find where the rate is zero and look at its slope there.
:::

::: pool
pick: 12

::: check
kind: parts
given: k = 0.2 | 0.5; y0 = 2 | 5; t = 3 | 8

## $y' = -\given{k}y^2$ with $y(0)$ = {y0}.

::: part
answer: y0/(1 + k*y0*t)
tolerance: 0.5%

### What is $y$ at $t$ = {t}?

::: misses
- [y0*exp(-k*t)] That's $y' = -ky$.
- [any] $\frac1y = \frac{1}{y_0} + kt$.
:::
:::

::: part
answer: 1/(k*y0)
tolerance: 0.5%

### When has it fallen to half its start?

::: misses
- [ln(2)/k] That's an exponential's half-life.
- [any] Solve $\frac{1}{1 + ky_0t} = \tfrac12$.
:::
:::
:::

::: check
kind: parts
given: h0 = 2 | 4; c = 0.04 | 0.1

## A tank {h0} m deep drains as $h' = -\given{c}\sqrt h$.

::: part
answer: 2*sqrt(h0)/c
unit: s
tolerance: 0.5%

### When is it empty?

::: misses
- [any] $2\sqrt h = 2\sqrt{h_0} - ct$.
:::
:::

::: part
answer: h0/4
unit: m
tolerance: 0.5%

### How deep is it halfway to empty?

::: misses
- [h0/2] $\sqrt h$ falls linearly, so halfway in time, $\sqrt h$ is half: $h$ is a quarter.
- [any] At half the emptying time, $\sqrt h = \sqrt{h_0}/2$.
:::
:::
:::

::: check
kind: parts
given: b = 0.5 | 2; a = 1 | 1.5

## $y' = \given{b}ty$ with $y(0) = 1$.

::: part
answer: exp(b*a^2/2)
tolerance: 0.5%

### What is $y$ at $t$ = {a}?

::: misses
- [exp(b*a)] Integrate $bt$: it gives $bt^2/2$.
- [any] $\ln y = bt^2/2$.
:::
:::

::: part
answer: sqrt(2*ln(2)/b)
tolerance: 0.5%

### When does it double?

::: misses
- [any] Solve $bt^2/2 = \ln 2$.
:::
:::
:::

::: check
kind: parts
given: C = 10 | 100; k = 1 | 4; v0 = 5 | 12; t = 2 | 10

## A {C} µF capacitor at {v0} V discharges through a part conducting $kv^2$, $k$ = {k} mA/V².

::: part
answer: v0/(1 + k*1e-3*v0*t*1e-3/(C*1e-6))
unit: V
tolerance: 0.5%

### What is its voltage after {t} ms?

::: misses
- [any] $v = \frac{v_0}{1 + kv_0t/C}$.
:::
:::

::: part
answer: C*1e-6/(k*1e-3*v0)*1000
unit: ms
tolerance: 0.5%

### When has it fallen to half?

::: misses
- [any] $\frac{kv_0t}{C} = 1$.
:::
:::
:::

::: check
kind: parts
given: K = 200 | 1000; y0 = 10 | 20; r = 0.3 | 0.8

## A logistic quantity with $K$ = {K} and $r$ = {r} starts at {y0}.

::: part
answer: ln((K - y0)/y0)/r
tolerance: 0.5%

### When does it reach $K/2$?

::: misses
- [any] $\frac1r\ln\frac{K - y_0}{y_0}$.
:::
:::

::: part
answer: r*K/4
tolerance: 0.5%

### How fast is it growing then?

::: misses
- [any] $rK/2 \cdot (1 - \tfrac12)$.
:::
:::
:::

::: check
kind: parts
given: K = 200 | 1000; y0 = 10 | 20; r = 0.3 | 0.8; t = 3 | 10

## The same logistic quantity.

::: part
answer: K/(1 + (K - y0)/y0*exp(-r*t))
tolerance: 0.5%

### What is it at $t$ = {t}?

::: misses
- [any] $\frac{K}{1 + \frac{K - y_0}{y_0}e^{-rt}}$.
:::
:::

::: part
answer: ln(9*(K - y0)/y0)/r
tolerance: 0.5%

### When does it reach 90% of $K$?

::: misses
- [any] The denominator must equal $10/9$.
:::
:::
:::

::: check
kind: parts
given: b = 2..30 int

## $y' = y^2 - \given{b}$ has two equilibria.

::: part
answer: -sqrt(b)
tolerance: 0.5%

### Which one is stable?

::: misses
- [sqrt(b)] $f'(y) = 2y$ is positive there: unstable.
- [any] Stable where $f'(y_*) < 0$.
:::
:::

::: part
answer: -2*sqrt(b)
tolerance: 0.5%

### What is $f'$ at the stable one?

::: misses
- [any] $f'(y) = 2y$.
:::
:::
:::

::: check
kind: parts
given: th = 10 | 30; P0 = 0.5 | 1; a = 0.002 | 0.005

## A part with $\theta$ = {th} °C/W dissipates {P0} W cool; its power rises {a} per °C of heating.

::: part
answer: th*P0/(1 - a*th*P0)
unit: °C
tolerance: 0.5%

### What is its equilibrium temperature rise?

::: misses
- [th*P0] That ignores the feedback.
- [any] $\frac{\theta P_0}{1 - \alpha\theta P_0}$.
:::
:::

::: part
answer: 1/(a*P0)
unit: °C/W
tolerance: 0.5%

### Above what thermal resistance would it run away?

::: misses
- [any] When $\alpha\theta P_0 = 1$.
:::
:::
:::

::: check
kind: parts
given: k = 0.1 | 0.4; y0 = 3 | 8; ye = 1 | 2

## $y' = -\given{k}(y - \given{ye})$ with $y(0)$ = {y0}.

::: part
answer: ye + (y0 - ye)*exp(-k*5)
tolerance: 0.5%

### What is $y$ at $t$ = 5?

::: misses
- [y0*exp(-k*5)] Only the distance from {ye} decays.
- [any] $y_e + (y_0 - y_e)e^{-kt}$.
:::
:::

::: part
answer: -k
tolerance: 0.5%

### What is $f'(y_e)$, the slope that makes the equilibrium stable?

::: misses
- [k] $f(y) = -k(y - y_e)$ has slope $-k$.
- [any] Differentiate $f(y) = -k(y - y_e)$.
:::
:::
:::

::: check
kind: parts
given: r = 0.5 | 1; K = 100 | 500

## The logistic equation $y' = \given{r}y(1 - y/\given{K})$.

::: part
answer: r
tolerance: 0.5%

### What is $f'(0)$, the growth rate near zero?

::: misses
- [any] $f'(y) = r - 2ry/K$.
:::
:::

::: part
answer: -r
tolerance: 0.5%

### What is $f'(K)$?

::: misses
- [r] At $K$ the slope is negative: stable.
- [any] Put $y = K$ into $f'(y)$.
:::
:::
:::

::: check
kind: parts
given: k = 0.5 | 2; y0 = 1 | 3

## $y' = \given{k}\sqrt y$ with $y(0)$ = {y0} (growth that slows as it rises).

::: part
answer: (sqrt(y0) + k)^2
tolerance: 0.5%

### What is $y$ at $t$ = 2?

::: misses
- [y0*exp(2*k)] That's exponential growth, $y' = ky$.
- [any] $2\sqrt y = 2\sqrt{y_0} + kt$.
:::
:::

::: part
answer: k/(2*sqrt(y0))
tolerance: 0.5%

### What is the relative growth rate $y'/y$ at the start?

::: misses
- [any] $\frac{k\sqrt{y_0}}{y_0}$.
:::
:::
:::

::: check
kind: parts
given: k = 1 | 3; y0 = 0.5 | 2

## $y' = \given{k}y^2$ with $y(0)$ = {y0} grows without bound in finite time.

::: part
answer: 1/(k*y0)
tolerance: 0.5%

### When does it blow up?

::: misses
- [any] $\frac1y = \frac{1}{y_0} - kt$ reaches zero.
:::
:::

::: part
answer: 2*y0
tolerance: 0.5%

### What is $y$ halfway to that time?

::: misses
- [any] At half the blow-up time, $\frac1y = \frac{1}{2y_0}$.
:::
:::
:::

::: check
kind: parts
given: V = 5 | 12; tau = 1 | 4; y0 = 0 | 2

## A capacitor follows $\tau v' = \given{V} - v$, from $v(0)$ = {y0} V, with $\tau$ = {tau} ms.

::: part
answer: tau*ln(2)
unit: ms
tolerance: 0.5%

### When is it halfway from {y0} V to {V} V?

::: misses
- [tau*ln(2)*2] Halfway takes $\tau\ln 2$.
- [any] The gap halves.
:::
:::

::: part
answer: (V - y0)/tau
unit: V/ms
tolerance: 0.5%

### What is its initial slope, in V/ms?

::: misses
- [any] The gap over $\tau$.
:::
:::
:::

::: check
kind: parts
given: a = 1 | 2; b = 3 | 5

## $y' = (y - \given{a})(\given{b} - y)$ has two equilibria.

::: part
answer: b
tolerance: 0.5%

### Which is stable?

::: misses
- [a] At $y = a$, $f'$ is positive: unstable.
- [any] $f'(y) = (b - y) - (y - a)$.
:::
:::

::: part
answer: a - b
tolerance: 0.5%

### What is $f'$ at the stable one?

::: misses
- [any] Put $y = b$ into $f'(y) = a + b - 2y$.
:::
:::
:::

::: check
kind: parts
given: k = 0.05 | 0.1; T0 = 80 | 100; Ta = 20 | 25; t = 10 | 30

## Newton's law of cooling: $T' = -\given{k}(T - \given{Ta})$, from {T0} °C.

::: part
answer: Ta + (T0 - Ta)*exp(-k*t)
unit: °C
tolerance: 0.5%

### What is $T$ at $t$ = {t} min?

::: misses
- [T0*exp(-k*t)] Only the excess over the room decays.
- [any] $T_a + (T_0 - T_a)e^{-kt}$.
:::
:::

::: part
answer: ln(2)/k
unit: min
tolerance: 0.5%

### How long until the excess halves?

::: misses
- [any] $\ln 2/k$.
:::
:::
:::
:::
