---
title: Problem set 12
heading: "Problem set 12: calculus in circuits"
eyebrow: A5 · Problem set 12
type: problems
---

::: hook
Multi-step problems that use derivatives and integrals the way circuit analysis does, drawing on the whole course. Each one has your own numbers. Work each on paper before entering anything.
:::

::: pool
pick: 12

::: check
kind: parts
given: Vs = 5 | 10 | 12; R = 1k..10k E12 Ω; C = 1µ..10µ E6 F; let tau = R*C in s

## A capacitor $C$ = {C} charges from 0 V toward {Vs} V through $R$ = {R}, so $\tau$ = {tau}. The current is $i = \frac{V_s}{R}e^{-t/\tau}$.

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

### What is the current at $t = 0$?

::: misses
- [Vs*R] Current is voltage divided by resistance.
- [any] At $t = 0$, $e^0 = 1$, so $i = V_s/R$.
:::
:::

::: part
answer: Vs*C*(1 - exp(-1))
unit: C
tolerance: 1%

### How much charge has flowed by $t = \tau$?

::: misses
- [Vs*C] That's the final charge, after a long time. By one time constant it's 63% of that.
- [Vs/R*tau] That's the charge if the current stayed at its starting value. It falls, so less flows.
- [any] Integrate $i$ from 0 to τ: $\frac{V_s}{R}\tau(1 - e^{-1})$.
:::
:::

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

### What is the capacitor's voltage then?

::: misses
- [Vs*exp(-1)] That's the part still to go. The voltage has climbed to 63%.
- [any] $v = q/C$.
:::
:::

::: right
Right. The integral of the current gives the charge, and the charge sets the voltage.
:::
:::

::: check
kind: parts
given: Vs = 6 | 9 | 12 | 24; Rs = 2..50 sig 2

## A {Vs} V source has an internal resistance $R_s$ = {Rs} Ω.

::: part
answer: Vs^2/(4*Rs)
unit: W
tolerance: 1%

### What is the most power it can deliver to a load?

::: misses
- [Vs^2/Rs] At the best load, $R_L = R_s$, the current is $V_s/2R_s$.
- [any] $P_\text{max} = V_s^2/4R_s$.
:::
:::

::: part
answer: Vs^2*2*Rs/(3*Rs)^2
unit: W
tolerance: 1%

### How much does a load of $2R_s$ get?

::: misses
- [Vs^2/(4*Rs)] That's the maximum, at $R_L = R_s$. Put $R_L = 2R_s$ into $V_s^2R_L/(R_s + R_L)^2$.
- [any] $P = V_s^2R_L/(R_s + R_L)^2$ with $R_L = 2R_s$.
:::
:::

::: part
answer: 2/3*100
unit: %
tolerance: 0.5%

### And what is the efficiency at that load, in percent?

::: misses
- [50] That's the efficiency at the matched load.
- [any] Efficiency is $R_L/(R_s + R_L)$.
:::
:::

::: right
Right. A slightly mismatched load gives up a little power for a lot of efficiency: 89% of the maximum at 67% efficiency.
:::
:::

::: check
kind: parts
given: L = 1m..100m E6 H; I = 0.1..2 sig 2; T = 1..10 int

## The current in a {L} inductor ramps steadily from 0 to {I} A in {T} ms.

::: part
answer: L*I/(T/1000)
unit: V
tolerance: 1%

### What voltage is across it during the ramp?

::: misses
- [L*I] Divide by the time: $v = L\,di/dt$.
- [L*I/T] The time is in milliseconds; use seconds.
- [any] $v = L\,\Delta i/\Delta t$, with the time in seconds.
:::
:::

::: part
answer: 0.5*L*I^2
unit: J
tolerance: 1%

### How much energy does it store at the end?

::: misses
- [L*I^2] There's a factor of ½.
- [any] $E = \tfrac12 LI^2$.
:::
:::

::: right
Right. Integrating the power $vi$ over the ramp gives the same $\tfrac12 LI^2$.
:::
:::

::: check
kind: parts
given: A = 1..20 int; D = 0.1..0.9 sig 1

## A pulse train is $A$ = {A} V for a fraction $D$ = {D} of each period and 0 V for the rest.

::: part
answer: A*D
unit: V
tolerance: 0.5%

### What is its average value?

::: misses
- [A] That's its value during the pulse. Average over the whole period.
- [any] Area per period divided by the period: $AD$.
:::
:::

::: part
answer: A*sqrt(D)
unit: V
tolerance: 0.5%

### And its RMS value?

::: misses
- [A*D] That's the average. RMS squares first: the mean of $v^2$ is $A^2D$.
- [A] That's only right when the pulse lasts the whole period.
- [any] The mean of $v^2$ is $A^2D$; take its square root.
:::
:::

::: right
Right. That's why a PWM motor drive's heating depends on the square root of the duty cycle, not the duty cycle itself.
:::
:::

::: check
kind: parts
given: a = 2 | 3; dx = 0.2 | 0.3

## Use the tangent line of $\sqrt{x}$ at $x = \given{a}^2$ to estimate $\sqrt{\given{a}^2 + \given{dx}}$.

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

### What is the slope of $\sqrt x$ at $x = \given{a}^2$?

::: misses
- [1/(2*a^2)] The slope is $1/(2\sqrt x)$, and $\sqrt{a^2} = a$.
- [any] $\frac{d}{dx}\sqrt x = \frac{1}{2\sqrt x}$.
:::
:::

::: part
answer: a + dx/(2*a)
tolerance: 0.001%

### What does the tangent line estimate?

::: misses
- [sqrt(a^2 + dx)] That's the exact value. The tangent line gives $a + \Delta x/(2a)$.
- [any] $\sqrt{a^2 + \Delta x} \approx a + \Delta x \cdot \frac{1}{2a}$.
:::
:::

::: right
Right. The estimate is a hair too high, because the curve bends below its tangent.
:::
:::
::: check
kind: parts
given: V = 5 | 12; R = 1 | 10; C = 10 | 100

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

::: part
answer: V/(R*1e3)
unit: A

### What current flows at the instant it starts?

::: misses
- [any] At $t = 0$ the capacitor is at 0 V, so the whole {V} V is across $R$.
:::
:::

::: part
answer: R*1e3*C*1e-6*ln(10)
unit: s

### How long until the current has fallen to a tenth of that?

::: misses
- [R*1e3*C*1e-6] One time constant leaves 37%, not 10%.
- [any] $e^{-t/\tau} = 0.1$, so $t = \tau\ln 10$.
:::
:::

::: part
answer: 0.5*C*1e-6*V^2
unit: J

### How much energy does the resistor turn into heat during the whole charge?

::: misses
- [C*1e-6*V^2] That's what the source supplies. Half of it is stored.
- [any] The resistor's share equals the energy stored: $\frac{1}{2}CV^2$.
:::
:::
:::

::: check
kind: parts
given: A = 1 | 3; f = 50 | 1000

## A current $i(t) = \given{A}\sin(2\pi \cdot \given{f}\,t)$ A flows into a 10 µF capacitor that starts at 0 V.

::: part
answer: A/(2*pi*f*10e-6)*2
unit: V

### What is the capacitor's peak-to-peak voltage swing?

::: misses
- [A/(2*pi*f*10e-6)] That's the amplitude of the sinusoidal part. Starting at 0, $v = \frac{A}{\omega C}(1 - \cos\omega t)$ swings from 0 to twice that.
- [any] Integrate: $v = \frac{A}{\omega C}(1 - \cos\omega t)$.
:::
:::

::: part
answer: A/(2*pi*f*10e-6)
unit: V

### What is its average voltage?

::: misses
- [0] It never goes negative: the cosine form oscillates around $\frac{A}{\omega C}$.
- [any] The average of $\frac{A}{\omega C}(1 - \cos\omega t)$.
:::
:::
:::

::: check
kind: parts
given: E = 6 | 12; r = 0.5 | 2

## A source of {E} V with {r} Ω inside drives a variable load.

::: part
answer: E^2/(4*r)
unit: W

### What is the most power the load can take?

::: misses
- [E^2/r] At the peak the load equals $r$, and $P = E^2/(4r)$.
- [any] Maximize $P(R) = E^2R/(R + r)^2$.
:::
:::

::: part
answer: 50
tolerance: 0.5%

### At that point, what percent of the source's power reaches the load?

::: misses
- [100] The internal resistance takes as much as the load.
- [any] Load and internal resistance are equal, so they share the power equally.
:::
:::
:::

::: check
kind: parts
given: Vp = 10 | 170; Vd = 0.7 | 1.4

## A full-wave rectifier turns a sine of peak {Vp} V into $|v|$, minus {Vd} V of diode drop while conducting.

::: part
answer: 2*Vp/pi
unit: V

### Ignoring the drop, what is the average output?

::: misses
- [Vp/sqrt(2)] That's the RMS. The average of $|\sin|$ is $2/\pi$.
- [any] $\frac{2V_p}{\pi}$.
:::
:::

::: part
answer: Vp/sqrt(2)
unit: V

### Ignoring the drop, what is its RMS value?

::: misses
- [any] Rectifying doesn't change the square.
:::
:::
:::

::: check
kind: parts
given: L = 10 | 100; I = 2 | 5; T = 1 | 10

## An inductor of {L} mH carrying {I} A is switched off and its current falls linearly to zero in {T} µs.

::: part
answer: L*1e-3*I/(T*1e-6)
unit: V

### What voltage appears across it?

::: misses
- [any] $v = L\,|di/dt|$.
:::
:::

::: part
answer: 0.5*L*1e-3*I^2
unit: J

### How much energy has to go somewhere?

::: misses
- [any] $\frac{1}{2}LI^2$.
:::
:::
:::

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

## A sensor's output is $v(T) = \given{a}\sqrt{T}$ volts, with $T$ in kelvin, and it's read at $T$ = {b}00 K.

::: part
answer: a/(2*sqrt(b*100))
unit: V/K

### What is its sensitivity $dv/dT$ there, in volts per kelvin?

::: misses
- [a/sqrt(b*100)] The derivative of $\sqrt T$ is $\frac{1}{2\sqrt T}$.
- [any] Differentiate $a\sqrt{T}$.
:::
:::

::: part
answer: 0.001/(a/(2*sqrt(b*100)))
unit: K

### An ADC resolves 1 mV. What temperature step is that, using the linear approximation?

::: misses
- [any] $\Delta T = \Delta v/(dv/dT)$.
:::
:::
:::

::: check
kind: parts
given: L = 10 | 50; I = 1 | 3; R = 10 | 100

## A {L} mH inductor carrying {I} A is switched into a {R} Ω resistor.

::: part
answer: 0.5*L*1e-3*I^2
unit: J
tolerance: 0.5%

### How much energy does it hold?

::: misses
- [any] $\tfrac12LI^2$.
:::
:::

::: part
answer: L*1e-3/R*ln(2)/2
unit: s
tolerance: 0.5%

### When has half that energy gone into the resistor?

::: misses
- [L*1e-3/R*ln(2)] Energy goes as $i^2$, so it decays twice as fast as the current.
- [any] Solve $e^{-2t/\tau} = \tfrac12$ with $\tau = L/R$.
:::
:::
:::

::: check
kind: parts
given: R = 1 | 10; C = 10 | 47; V = 5 | 12; th = 3 | 4

## A {C} µF capacitor charges through {R} kΩ from 0 toward {V} V. A circuit trips at {th} V.

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

### When does it trip?

::: misses
- [R*C*ln(V/th)] The gap is $V - v$.
- [any] Solve $V(1 - e^{-t/RC}) = $ {th}.
:::
:::

::: part
answer: C*th^2/2
unit: µJ
tolerance: 0.5%

### How much energy does the capacitor hold then?

::: misses
- [any] $\tfrac12Cv^2$ at {th} V.
:::
:::
:::

::: check
kind: parts
given: E = 12 | 24; r = 0.5 | 2; tr = 5 | 10

## A source of {E} V with internal resistance {r} Ω drives a load matched to it, $R = r$.

::: part
answer: E^2/(4*r)
unit: W
tolerance: 0.5%

### What power does the load take?

::: misses
- [any] $E^2/4r$.
:::
:::

::: part
answer: E^2/(4*r)*(1 - (tr/100)^2/4)
unit: W
tolerance: 0.5%

### If $R$ is off by {tr}% either way, about how much power is lost? Give the power then, using $P \approx P_\text{max}(1 - \delta^2/4)$ for a fractional mismatch $\delta$.

::: misses
- [E^2/(4*r)*(1 - tr/100)] Near the peak the loss is second order: it goes as $\delta^2$.
- [any] $P_\text{max}(1 - \delta^2/4)$ with $\delta$ = {tr}/100.
:::
:::
:::

::: check
kind: parts
given: A = 10 | 170; R = 10 | 100

## A half-wave rectifier passes only the positive halves of $\given{A}\sin\theta$ to a {R} Ω load.

::: part
answer: A/2
unit: V
tolerance: 0.5%

### What is the RMS voltage?

::: misses
- [A/sqrt(2)] Half the waveform is missing, so the mean square halves.
- [any] $\sqrt{\frac{1}{2\pi}\int_0^\pi A^2\sin^2\theta\,d\theta}$.
:::
:::

::: part
answer: A^2/(4*R)
unit: W
tolerance: 0.5%

### What average power does the load take?

::: misses
- [any] $V_\text{rms}^2/R$.
:::
:::

::: part
answer: A/pi
unit: V
tolerance: 0.5%

### What is the average (DC) voltage?

::: misses
- [2*A/pi] That's for full-wave rectification.
- [any] $\frac{1}{2\pi}\int_0^\pi A\sin\theta\,d\theta$.
:::
:::
:::
:::
