---
title: Problem set 12
heading: "Problem set 12: the whole course"
eyebrow: A8 · Problem set 12
type: problems
---

::: hook
Multi-step problems from the whole course, on first- and second-order circuits, systems and stability, the way they come up on a bench or an exam. Each one has your own numbers. Treat it as practice for the final exam.
:::

::: pool
pick: 12

::: check
kind: parts
given: Vs = 5 | 10 | 12; R = 1k..10k E6 Ω; C = 100n..1µ E6 F

## A {C} capacitor starts at 0 V and is switched through {R} onto a {Vs} V supply.

::: part
answer: R*C
unit: s
tolerance: 1%

### What is the time constant?

::: misses
- [R/C] It's the product: $\tau = RC$.
- [any] $\tau = RC$.
:::
:::

::: part
answer: Vs/R
unit: A
tolerance: 1%

### What current flows the instant the switch closes?

::: misses
- [0] At the first instant the capacitor still has 0 V across it, so the whole supply sits across R.
- [Vs*C] That's the final charge. The current is set by R.
- [any] At $t = 0$ the capacitor is at 0 V, so $i = V_s/R$.
:::
:::

::: part
answer: R*C*ln(10)
unit: s
tolerance: 1%

### How long until the capacitor reaches 90% of {Vs} V?

::: misses
- [0.9*R*C] The curve isn't straight. Solve $1 - e^{-t/\tau} = 0.9$.
- [R*C*ln(9)] That's the 10–90% rise time. From 0% it takes $\tau\ln 10$.
- [any] Solve $e^{-t/\tau} = 0.1$.
:::
:::

::: right
Right. A full RC transient from three numbers.
:::
:::

::: check
kind: parts
given: Lm = 1 | 4 | 9; k = 6 | 8 | 10 | 12 | 14; let R = 10*k*sqrt(Lm)

## A series RLC circuit has R = {R} Ω, L = {Lm} mH and C = 100 nF. It's driven by a step.

::: part
answer: 1/(2*pi*sqrt(Lm/1000*100e-9))
unit: Hz
tolerance: 1%

### What is its natural frequency $f_0$?

::: misses
- [1/sqrt(Lm/1000*100e-9)] That's $\omega_0$ in rad/s. Divide by $2\pi$.
- [any] $f_0 = 1/(2\pi\sqrt{LC})$.
:::
:::

::: part
answer: R/2*sqrt(100e-9/(Lm/1000))
tolerance: 1%

### What is the damping ratio ζ?

::: misses
- [R*sqrt(100e-9/(Lm/1000))] Don't forget the ½.
- [R/2*sqrt((Lm/1000)/100e-9)] Upside down: $\zeta = \tfrac{R}{2}\sqrt{C/L}$.
- [any] $\zeta = \tfrac{R}{2}\sqrt{C/L}$.
:::
:::

::: part
answer: 100*exp(-pi*(k/20)/sqrt(1 - (k/20)^2))
unit: %
tolerance: 1%

### By what percentage does the capacitor's voltage overshoot?

::: misses
- [100*exp(-pi*k/20)] Divide by $\sqrt{1 - \zeta^2}$ inside the exponent.
- [any] $M_p = e^{-\pi\zeta/\sqrt{1 - \zeta^2}}$.
:::
:::

::: right
Right. Underdamped, so it overshoots once or twice before settling.
:::
:::

::: check
kind: parts
given: R = 5..47 E12 Ω; L = 1m..10m E6 H; C = 10n..100n E6 F; Vs = 1..5 int

## A {Vs} V sine drives a series RLC circuit (R = {R}, L = {L}, C = {C}) at its resonant frequency.

::: part
answer: sqrt(L/C)/R
tolerance: 1%

### What is Q?

::: misses
- [R*sqrt(C/L)] That's $1/Q = 2\zeta$.
- [any] $Q = \tfrac1R\sqrt{L/C}$.
:::
:::

::: part
answer: Vs/R
unit: A
tolerance: 1%

### What is the current amplitude?

::: misses
- [Vs/sqrt(L/C)] At resonance the inductor and capacitor cancel, so only R limits the current.
- [any] At $f_0$ the loop's impedance is just R.
:::
:::

::: part
answer: Vs*sqrt(L/C)/R
unit: V
tolerance: 1%

### What is the amplitude of the capacitor's voltage?

::: misses
- [Vs] At resonance the capacitor's voltage is Q times the source's.
- [any] $|V_C| = Q\,|V_s|$, or the current times $1/(\omega_0C)$.
:::
:::

::: right
Right. The capacitor sees Q times the source voltage, which is why resonant circuits need parts rated well above the supply.
:::
:::

::: check
kind: parts
given: T = 1 | 2 | 5; r = 0.1 | 0.2 | 0.3

## A ringing circuit's scope trace shows a period of {T} ms between peaks, and each peak is {r} times the one before.

::: part
answer: 2*pi/(T/1000)
unit: rad/s
tolerance: 1%

### What is the ringing angular frequency $\omega_d$?

::: misses
- [1/(T/1000)] That's the frequency in hertz. Multiply by $2\pi$ for rad/s.
- [2*pi/T] Convert {T} ms to seconds first.
- [any] $\omega_d = 2\pi/T$, with T in seconds.
:::
:::

::: part
answer: ln(1/r)/(T/1000)
tolerance: 1%

### What is the decay rate $|\sigma|$, in 1/s?

::: misses
- [ln(1/r)] Divide by the period: the envelope falls by that much in one period.
- [(1 - r)/(T/1000)] Use the logarithm: $e^{-|\sigma|T} = r$.
- [any] $e^{-|\sigma|T} = \given{r}$, so $|\sigma| = \ln(1/\given{r})/T$.
:::
:::

::: part
answer: ln(1/r)/sqrt(4*pi^2 + ln(1/r)^2)
tolerance: 1%

### What is the damping ratio ζ?

::: misses
- [ln(1/r)/(2*pi)] That shortcut is only good for light damping. Use $\delta/\sqrt{4\pi^2 + \delta^2}$.
- [any] With $\delta = \ln(1/r)$, $\zeta = \delta/\sqrt{4\pi^2 + \delta^2}$.
:::
:::

::: right
Right. The roots are $-|\sigma| \pm j\omega_d$, read straight off the trace.
:::
:::
::: check
kind: parts
given: y0 = 5 | 10; a = 0.1 | 0.4

## A capacitor discharges through a load drawing current proportional to $V^2$: $\dot V = -\given{a}V^2$ from {y0} V.

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

### What is the voltage after 1 s?

::: misses
- [y0*exp(-a*y0)] It decays like $1/t$, not exponentially.
- [any] $\frac{V_0}{1 + aV_0t}$.
:::
:::

::: part
answer: 9/(a*y0)
unit: s
tolerance: 0.5%

### When is it down to a tenth?

::: misses
- [any] $1 + aV_0t = 10$.
:::
:::
:::

::: check
kind: parts
given: P = 8 | 15; Rth = 4 | 6; Cth = 15 | 30

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

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

### What is its final temperature?

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

::: part
answer: Rth*Cth*ln(10)
unit: s
tolerance: 0.5%

### When is it within 10% of the final rise?

::: misses
- [any] $e^{-t/\tau} = 0.1$.
:::
:::
:::

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

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

::: part
answer: A - 1

### At what rate do offsets from 0 V grow?

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

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

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

::: misses
- [any] Growth factor 1000 at rate $A - 1$.
:::
:::
:::

::: check
kind: parts
given: L = 10 | 47; C = 0.47 | 2.2

## A series RLC has $L$ = {L} mH and $C$ = {C} µF.

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

### What $R$ damps it critically?

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

::: part
answer: 5.83*sqrt(L*1e-3*C*1e-6)*1e6
unit: µs
tolerance: 1%

### With that $R$, about how long does it take to settle to 2%?

::: misses
- [any] $5.83/\omega_0$.
:::
:::
:::

::: check
kind: parts
given: K = 4 | 10; t = 0.5 | 1.5

## $\ddot y + 3\dot y + 2y = \given{K}$ from rest.

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

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

::: misses
- [any] $\frac{K}{2}(1 - 2e^{-t} + e^{-2t})$.
:::
:::

::: part
answer: K/2*(2*exp(-t) - 2*exp(-2*t))
tolerance: 0.5%

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

::: misses
- [any] Differentiate.
:::
:::
:::

::: check
kind: parts
given: Q = 10 | 30; f0 = 1 | 455

## A tuned circuit has $Q$ = {Q} at {f0} kHz.

::: part
answer: f0/Q
unit: kHz
tolerance: 0.5%

### What is its bandwidth?

::: misses
- [any] $f_0/Q$.
:::
:::

::: part
answer: Q
tolerance: 0.5%

### Driven at {f0} kHz, by what factor does the capacitor voltage exceed the drive?

::: misses
- [any] At resonance, $Q$.
:::
:::
:::

::: check
kind: parts
given: T = -3 | -1; D = 2 | 10

## A linear system has trace {T} and determinant {D}.

::: part
answer: T/2
tolerance: 0.5%

### What is the real part of its eigenvalues, or their average?

::: misses
- [any] $T/2$.
:::
:::

::: part
answer: T^2 - 4*D

### What is $T^2 - 4D$, which decides between node and spiral?

::: misses
- [any] Compute it.
:::
:::
:::

::: check
kind: parts
given: a2 = 2 | 3; a1 = 3 | 6

## $s^3 + \given{a2}s^2 + \given{a1}s + a_0$.

::: part
answer: a2*a1

### Above what $a_0$ does it become unstable?

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

::: part
answer: sqrt(a1)/(2*pi)
unit: Hz
tolerance: 0.5%

### At the boundary, at what frequency (in hertz, time in seconds) does it oscillate?

::: misses
- [sqrt(a1)] That's rad/s.
- [any] $\frac{\sqrt{a_1}}{2\pi}$.
:::
:::
:::

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

## Find the step response of $H(s) = \frac{1}{(s + \given{a})(s + \given{b})}$ by partial fractions.

::: part
answer: 1/(a*b) - exp(-a*t)/(a*(b - a)) + exp(-b*t)/(b*(b - a))
tolerance: 0.5%

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

::: misses
- [any] $\frac{1}{s(s + a)(s + b)}$ has residues $\frac{1}{ab}$, $\frac{-1}{a(b - a)}$ and $\frac{1}{b(b - a)}$.
:::
:::
:::

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

## A Schmitt trigger is a latch $\dot y = -y + \given{A}\tanh y + u$.

::: part
answer: 2*(A*sqrt(1 - 1/A) - ln(sqrt(A) + sqrt(A - 1)))
tolerance: 0.5%

### How wide is its hysteresis band in $u$?

::: misses
- [any] Twice the threshold $A\sqrt{1 - 1/A} - \cosh^{-1}\sqrt A$.
:::
:::
:::

::: check
kind: parts
given: k = 4 | 10; c = 1 | 2; F = 2 | 8

## $\ddot x + \given{c}\dot x + \given{k}x = F$ with constant $F$ = {F}.

::: part
answer: F/k
tolerance: 0.5%

### Where does $x$ settle?

::: misses
- [F/c] Damping doesn't set the final position.
- [any] DC gain $1/k$.
:::
:::

::: part
answer: -c/2
tolerance: 0.5%

### What is the real part of its eigenvalues?

::: misses
- [any] Half the trace of the state matrix.
:::
:::
:::
:::
