---
title: Midterm exam
heading: "Midterm exam: first- and second-order equations"
eyebrow: A8 · Midterm exam
type: problems
---

::: hook
Twelve problems from the first half of the course: first-order equations and their models, stability, and unforced second-order systems. Give yourself two hours, work without the lessons open, and write out your reasoning before checking each answer. "Another set" deals a different exam.
:::

::: pool
pick: 12

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

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

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

### What is its time constant?

::: misses
- [any] $RC$.
:::
:::

::: part
answer: R*C*ln(Vs/(Vs - 5))
unit: ms
tolerance: 0.5%

### When does it reach 5 V?

::: misses
- [any] Solve $V_s(1 - e^{-t/RC}) = 5$.
:::
:::
:::

::: check
kind: parts
given: y0 = 4 | 10; a = 0.05 | 0.2

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

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

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

::: misses
- [y0*exp(-a*y0*5)] The $y^2$ law decays like $1/t$, not exponentially.
- [any] $\frac{y_0}{1 + ay_0t}$.
:::
:::

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

### When does $y$ halve?

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

::: check
kind: parts
given: k = 2 | 4; tau = 1 | 3

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

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

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

::: misses
- [any] $k\tau$.
:::
:::

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

### What is the output at $t = 2\tau$?

::: misses
- [any] $k(t - \tau + \tau e^{-t/\tau})$.
:::
:::
:::

::: check
kind: parts
given: a = 3 | 5; c = 1 | 2; t = 0.5 | 1

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

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

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

::: misses
- [any] Integrating factor $e^{at}$.
:::
:::

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

### When is $y$ largest?

::: misses
- [any] $ce^{-ct} = ae^{-at}$.
:::
:::
:::

::: check
kind: parts
given: A = 1.5 | 2 | 2.5 | 3 | 4 | 5

## A latch obeys $\dot v = -v + \given{A}\tanh v$.

::: part
answer: A - 1

### At what rate does an offset from 0 V grow?

::: misses
- [any] $f'(0)$.
:::
:::

::: part
answer: ln(100)/(A - 1)
tolerance: 0.5%

### How long does a 10 mV offset take to reach 1 V, by the linear growth?

::: misses
- [any] A factor of 100 at rate $A - 1$.
:::
:::
:::

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

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

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

### When does it blow up?

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

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

### What is $y$ halfway to the blow-up time?

::: misses
- [any] At $t = \frac{1}{2ky_0}$, $y = 2y_0$.
:::
:::
:::

::: check
kind: parts
given: P = 6 | 10; Rth = 5 | 8; Cth = 10 | 20

## A device dissipates {P} W with $R_\theta$ = {Rth} K/W, $C_\theta$ = {Cth} J/K, in 25 °C air.

::: part
answer: 25 + P*Rth*(1 - exp(-60/(Rth*Cth)))
unit: °C
tolerance: 0.5%

### How hot is it after 60 s?

::: misses
- [any] $25 + PR_\theta(1 - e^{-t/R_\theta C_\theta})$.
:::
:::

::: part
answer: 25 + P*Rth
unit: °C

### How hot does it finally get?

::: misses
- [any] $25 + PR_\theta$.
:::
:::
:::

::: check
kind: parts
given: V = 200 | 50; r = 10 | 5; S0 = 8 | 2

## A {V} L tank holding {S0} kg of salt is flushed with fresh water at {r} L/min.

::: part
answer: S0*exp(-r*15/V)
unit: kg
tolerance: 0.5%

### How much salt remains after 15 min?

::: misses
- [any] $S_0e^{-rt/V}$.
:::
:::

::: part
answer: V/r*ln(10)
unit: min
tolerance: 0.5%

### When is only a tenth left?

::: misses
- [any] $e^{-rt/V} = 0.1$.
:::
:::
:::

::: check
kind: parts
given: L = 4.7 | 22; C = 0.47 | 2.2

## An {L} mH inductor rings with a {C} µF capacitor.

::: part
answer: 1/(2*pi*sqrt(L*1e-3*C*1e-6))
unit: Hz
tolerance: 0.5%

### At what frequency?

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

::: part
answer: 2*sqrt(L*1e-3/(C*1e-6))
unit: Ω
tolerance: 0.5%

### What series resistance would damp it critically?

::: misses
- [any] $2\sqrt{L/C}$.
:::
:::
:::

::: check
kind: parts
given: p = 5 | 7; q = 4 | 6

## $\ddot y + \given{p}\dot y + \given{q}y = 0$.

::: part
answer: (-p + sqrt(p^2 - 4*q))/2
tolerance: 0.5%

### What is its slow root?

::: misses
- [any] The root nearer zero.
:::
:::

::: part
answer: -1/((-p + sqrt(p^2 - 4*q))/2)
tolerance: 0.5%

### What is the time constant of its slow mode?

::: misses
- [any] $1/|r_\text{slow}|$.
:::
:::
:::

::: check
kind: parts
given: zeta = 0.2 | 0.4; w0 = 2000 | 8000

## A system has $\zeta$ = {zeta} and $\omega_0$ = {w0} rad/s.

::: part
answer: 100*exp(-pi*zeta/sqrt(1 - zeta^2))
tolerance: 0.5%

### What is its step overshoot, in percent?

::: misses
- [any] $100e^{-\pi\zeta/\sqrt{1 - \zeta^2}}$.
:::
:::

::: part
answer: w0*sqrt(1 - zeta^2)/(2*pi)
unit: Hz
tolerance: 0.5%

### At what frequency does it ring?

::: misses
- [any] $\frac{\omega_0\sqrt{1 - \zeta^2}}{2\pi}$.
:::
:::
:::

::: check
kind: parts
given: y0 = 2 | 3; v0 = 1 | -2

## $\ddot y + 4\dot y + 4y = 0$ with $y(0) = \given{y0}$, $\dot y(0) = \given{v0}$.

::: part
answer: v0 + 2*y0

### In $y = (c_1 + c_2t)e^{-2t}$, what is $c_2$?

::: misses
- [v0] The $e^{-2t}$ factor contributes $-2c_1$ to the slope.
- [any] $c_2 = v_0 - ry_0$, $r = -2$.
:::
:::

::: part
answer: (y0 + (v0 + 2*y0)*1)*exp(-2)
tolerance: 0.5%

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

::: misses
- [any] Evaluate the solution.
:::
:::
:::

::: check
kind: parts
given: a = 1000 | 2000; b = 3000 | 4000

## A circuit's roots are $-\given{a} \pm j\given{b}$ (1/s).

::: part
answer: sqrt(a^2 + b^2)
unit: rad/s
tolerance: 0.5%

### What is its natural frequency $\omega_0$?

::: misses
- [b] That's the damped frequency.
- [any] The distance of the roots from the origin.
:::
:::

::: part
answer: a/sqrt(a^2 + b^2)
tolerance: 0.5%

### What is its damping ratio?

::: misses
- [any] $\zeta = \sigma/\omega_0$.
:::
:::
:::

::: check
kind: parts
given: a = 1..9 int

## The exact equation $(2xy + \given{a})\,dx + (x^2 + 4y)\,dy = 0$.

::: part
answer: 1 + a + 2
tolerance: 0.5%

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

::: misses
- [any] Evaluate $F$ at $(1, 1)$.
:::
:::
:::

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

## The logistic equation $\dot P = \given{r}P(1 - P/\given{K})$ from {P0}, solved with $v = 1/P$.

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

### What is $P$ at $t = 4$?

::: misses
- [any] $v = \frac1K + \left(\frac{1}{P_0} - \frac1K\right)e^{-rt}$.
:::
:::
:::

::: check
kind: parts
given: r = 4 | 9 | 16

## The saddle-node $\dot y = \given{r} - y^2$.

::: part
answer: sqrt(r)
tolerance: 0.5%

### Where is its stable equilibrium?

::: misses
- [-sqrt(r)] There $f' > 0$.
- [any] $f' = -2y < 0$.
:::
:::

::: part
answer: 1/(2*sqrt(r))
tolerance: 0.5%

### What is its time constant?

::: misses
- [any] $1/|f'|$.
:::
:::
:::
:::
