---
title: Problem set 1
heading: "Problem set 1: first-order equations"
eyebrow: A8 · Problem set 1
type: problems
---

::: hook
These problems use lessons 1 to 7: what a differential equation describes, separable equations, first-order linear equations and their integrating factors, exact and Bernoulli equations, and time constants. For each, decide first whether it's separable, linear, or both.
:::

::: pool
pick: 12

::: check
kind: parts
given: Vs = 5 | 12; tau = 2 | 10; v = 1 | 3

## A capacitor charges by $\dot v = \frac{\given{Vs} - v}{\tau}$ with $\tau$ = {tau} ms.

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

### At the moment it's at {v} V, how fast is it rising?

::: misses
- [any] Substitute into the equation.
:::
:::

::: part
answer: tau*ln(Vs/(Vs - v))
unit: ms
tolerance: 0.5%

### Starting from 0 V, when does it reach {v} V?

::: misses
- [any] $v = V_s(1 - e^{-t/\tau})$, solved for $t$.
:::
:::
:::

::: check
kind: parts
given: y0 = 6 | 10; a = 0.1 | 0.25

## $\dot y = -\given{a}y^2$, $y(0) = \given{y0}$.

::: part
answer: y0/(1 + a*y0*2)
tolerance: 0.5%

### What is $y(2)$?

::: misses
- [any] $y = \frac{y_0}{1 + ay_0t}$.
:::
:::

::: part
answer: 3/(a*y0)
tolerance: 0.5%

### When does $y$ fall to a quarter of $y_0$?

::: misses
- [any] $1 + ay_0t = 4$.
:::
:::
:::

::: check
kind: parts
given: h0 = 2 | 8; c = 0.05 | 0.1

## A tank drains with $\dot h = -\given{c}\sqrt h$, starting at {h0} m.

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

### How long until it's empty?

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

::: part
answer: (sqrt(h0) - c/2*10)^2
unit: m
tolerance: 0.5%

### How deep is it after 10 s?

::: misses
- [any] Square $\sqrt{h_0} - 5c$.
:::
:::
:::

::: check
kind: parts
given: K = 800 | 2000; P0 = 100 | 200; r = 0.3 | 0.8

## A logistic population, $\dot P = \given{r}P(1 - P/\given{K})$, starts at {P0}.

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

### What is $P(5)$?

::: misses
- [any] The logistic solution.
:::
:::

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

### When does it reach half its capacity?

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

::: check
kind: parts
given: k = 3 | 6; tau = 0.5 | 2

## A ramp of {k} V/ms drives an RC filter with $\tau$ = {tau} ms, starting at 0 V.

::: part
answer: k*tau
unit: V
tolerance: 0.5%

### Once settled, how far behind the input is the output?

::: misses
- [any] Delayed by $\tau$ on a slope of $k$.
:::
:::

::: part
answer: k*tau*exp(-1)
unit: V
tolerance: 0.5%

### At $t = \tau$, how far is the output from its settled path $k(t - \tau)$?

::: misses
- [any] The transient term $k\tau e^{-t/\tau}$.
:::
:::
:::

::: check
kind: parts
given: a = 2 | 5; b = 8 | 15

## $\dot y + \given{a}y = \given{b}$, $y(0) = 0$.

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

### What does $y$ settle to?

::: misses
- [any] $\dot y = 0$.
:::
:::

::: part
answer: ln(10)/a
tolerance: 0.5%

### When is $y$ within 10% of that?

::: misses
- [any] $e^{-at} = 0.1$.
:::
:::
:::

::: check
kind: parts
given: a = 4 | 6; c = 1 | 2

## $\dot y + \given{a}y = e^{-\given{c}t}$, $y(0) = 0$.

::: part
answer: ln(a/c)/(a - c)
tolerance: 0.5%

### When is $y$ largest?

::: misses
- [any] $y = \frac{e^{-ct} - e^{-at}}{a - c}$; set $\dot y = 0$.
:::
:::

::: part
answer: (exp(-c*ln(a/c)/(a - c)) - exp(-a*ln(a/c)/(a - c)))/(a - c)
tolerance: 0.5%

### What is that largest value?

::: misses
- [any] Substitute the time back in.
:::
:::
:::

::: check
kind: parts
given: tau = 1 | 2.2 | 3.3 | 4.7 | 6.8 | 10

## A first-order system has $\tau$ = {tau} µs.

::: part
answer: tau*ln(9)
unit: µs
tolerance: 0.5%

### What is its 10–90% rise time?

::: misses
- [any] $\tau\ln 9$.
:::
:::

::: part
answer: 1/(2*pi*tau*1e-6)/1000
unit: kHz
tolerance: 0.5%

### What is its −3 dB bandwidth?

::: misses
- [any] $\frac{1}{2\pi\tau}$.
:::
:::
:::

::: check
kind: parts
given: t = 2..9 int

## $\dot y + \dfrac{y}{t} = 1$, $y(1) = 0$, for $t > 0$.

::: part
answer: (t^2 - 1)/(2*t)
tolerance: 0.5%

### What is $y(\given{t})$?

::: misses
- [any] $\mu = t$.
:::
:::

::: part
answer: (t^2 + 1)/(2*t^2)
tolerance: 0.5%

### What is $\dot y$ there?

::: misses
- [any] Differentiate, or use $\dot y = 1 - y/t$.
:::
:::
:::

::: check
kind: parts
given: T0 = 80 | 120; Ta = 20 | 25; k = 0.05 | 0.1

## A heatsink cools by $\dot T = -\given{k}(T - T_a)$ from {T0} °C, with ambient $T_a$ = {Ta} °C ($t$ in s).

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

### What is its temperature after 30 s?

::: misses
- [T0*exp(-k*30)] It cools toward ambient, not toward 0 °C.
- [any] $T = T_a + (T_0 - T_a)e^{-kt}$.
:::
:::

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

### How long until it's halfway to ambient?

::: misses
- [any] $e^{-kt} = \frac{1}{2}$.
:::
:::
:::

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

## $\dot y = \given{k}\,t\,y$ with $y(0) = \given{y0}$.

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

### What is $y(1)$?

::: misses
- [y0*exp(k)] Integrate $kt$: $\frac{kt^2}{2}$.
- [any] $y = y_0e^{kt^2/2}$.
:::
:::

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

### When does $y$ double?

::: misses
- [any] $\frac{kt^2}{2} = \ln 2$.
:::
:::
:::

::: check
kind: parts
given: Vs = 10 | 5; R = 1 | 4.7; C = 1 | 10

## A {C} µF capacitor charges through {R} kΩ from 0 V toward {Vs} V.

::: part
answer: R*C
unit: ms
tolerance: 0.5%

### What is the time constant?

::: misses
- [any] $RC$, with kΩ × µF = ms.
:::
:::

::: part
answer: Vs*(1 - exp(-3))
unit: V
tolerance: 0.5%

### What is the voltage after three time constants?

::: misses
- [any] $V_s(1 - e^{-3})$.
:::
:::
:::

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

## Solve the exact equation $(2xy + \given{a})\,dx + (x^2 + 2\cdot\given{b}y)\,dy = 0$.

::: part
answer: 2 + a + 4*b
tolerance: 0.5%

### Its solutions are $x^2y + ax + by^2 = C$. What is $C$ for the curve through $(1, 2)$?

::: misses
- [2 + a] Include $by^2$, which comes from the $2by$ in $N$.
- [any] Evaluate $F$ at $(1, 2)$.
:::
:::
:::

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

## Solve the Bernoulli equation $\dot y = \given{k}y - y^2$ with $y(0)$ = {y0}.

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

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

::: misses
- [any] With $v = 1/y$: $\dot v = -kv + 1$, so $v = \frac1k + \left(\frac{1}{y_0} - \frac1k\right)e^{-kt}$.
:::
:::

::: part
answer: k
tolerance: 0.5%

### What does $y$ approach?

::: misses
- [any] Set $\dot y = 0$.
:::
:::
:::

::: check
kind: parts
given: V = 5 | 10; s = 2 | 4

## A first-order step response heads for {V} V and starts rising at {s} V/ms.

::: part
answer: V/s
unit: ms
tolerance: 0.5%

### What is $\tau$?

::: misses
- [s/V] The initial slope is $V/\tau$.
- [any] The tangent at the start reaches the final value after one $\tau$.
:::
:::

::: part
answer: V*(1 - exp(-1))
unit: V
tolerance: 0.5%

### What is the voltage after one $\tau$?

::: misses
- [any] 63% of the way.
:::
:::
:::
:::
