---
title: Problem set 3
heading: "Problem set 3: the whole course"
eyebrow: A1 · Problem set 3
type: problems
---

::: hook
These problems draw on the whole course, the way a final exam would: tolerance and units from the last three lessons, mixed with prefixes, estimates and decibels from earlier. Each takes several steps with your own numbers. Work each step on paper first, and use the earlier lessons if you get stuck.
:::

::: pool
pick: 10

::: check
kind: parts
given: Q = 220 | 240 | 620; I = 5..80 sig 2

## A wireless sensor runs from a coin cell rated {Q} mAh and draws an average of {I} µA.

::: part
answer: Q*1000/I
tolerance: 2%

### How many hours will the cell last?

::: misses
- [Q/I] Check the prefixes: the capacity is in milliamp-hours and the current in microamps. Put them in the same unit first.
- [I/Q] That's upside down. Hours of life is the charge divided by the current.
- [any] Divide the charge by the current, with both in the same prefix.
:::
:::

::: part
answer: Q*1000/I/24
tolerance: 2%

### How many days is that?

::: misses
- [Q*1000/I*24] Divide by the 24 hours in a day.
- [any] Divide the hours by 24.
:::
:::

::: part
answer: Q*1000/I/24/365
tolerance: 2%

### And how many years?

::: misses
- [any] Divide the days by 365.
:::
:::

::: right
Right. Real cells deliver somewhat less than their rating at very low currents and in the cold, so a designer would plan on a bit less than this.
:::
:::

::: check
kind: parts
given: Pt = 10 | 20 | 30 dBm; Lc = 1..4 int; Gt = 6..15 int; Lp = 80..120 step 5; Gr = 2..6 int

## A transmitter puts out {Pt} into a cable that loses {Lc} dB, feeding an antenna with {Gt} dB of gain. The path to the receiver loses {Lp} dB, and the receiving antenna adds {Gr} dB of gain.

::: part
answer: Pt - Lc + Gt - Lp + Gr
unit: dBm
tolerance: 0.1 dBm

### What signal level reaches the receiver?

::: misses
- [Pt + Lc + Gt + Lp + Gr] The cable and the path lose power, so subtract them.
- [Pt - Lc + Gt - Lp - Gr] The receiving antenna has gain, so it adds.
- [any] Start from {Pt}, add each gain and subtract each loss.
:::
:::

::: part
answer: 1e-3*10^((Pt - Lc + Gt - Lp + Gr)/10)
unit: W

### What power is that?

::: misses
- [10^((Pt - Lc + Gt - Lp + Gr)/10)] dBm is relative to 1 mW, so multiply the ratio by 1 mW.
- [1e-3*10^((Pt - Lc + Gt - Lp + Gr)/20)] For a power, divide the decibels by 10.
- [any] Turn the dBm into a ratio, $10^{L/10}$, and multiply by 1 mW.
:::
:::

::: right
Right. This kind of sum is called a link budget, and radio engineers write one for every link they design.
:::
:::

::: check
kind: parts
given: Vs = 5 | 12 V; t1 = 1 | 5; t2 = 2 | 5 | 10

## A divider has two resistors with the same marked value. The top one, R1, has a tolerance of ±{t1}%, and the bottom one, R2, ±{t2}%. It's fed from {Vs}.

::: part
answer: Vs*(1 + t2/100)/((1 - t1/100) + (1 + t2/100))
unit: V
tolerance: 0.1%

### What is the highest the output could be?

::: misses
- [Vs/2] That's the output with perfect parts. Push R1 to its lowest and R2 to its highest.
- [Vs*(1 - t2/100)/((1 + t1/100) + (1 - t2/100))] That's the lowest output. For the highest, R2 should be high and R1 low.
- [any] Use $V_\text{out} = V_s R_2 / (R_1 + R_2)$ with R1 at its lowest and R2 at its highest.
:::
:::

::: part
answer: Vs*(1 - t2/100)/((1 + t1/100) + (1 - t2/100))
unit: V
tolerance: 0.1%

### And the lowest?

::: misses
- [Vs/2] That's the output with perfect parts. Push R1 to its highest and R2 to its lowest.
- [any] Use the same formula with R1 at its highest and R2 at its lowest.
:::
:::

::: right
Right. The output can only be trusted to within the range you just found, whatever the meter in the lab shows for one particular board.
:::
:::

::: check
given: R0 = 0.5..5 sig 2 Ω; a = 2 | 3 | 4; b = 2 | 3
answer: R0*a/b^2
unit: Ω
tolerance: 1%

## A copper wire has a resistance of {R0}. A second copper wire is {a} times as long and {b} times the diameter. What is its resistance?

::: right
Right. The length multiplies the resistance by {a}, and the area grows by {b}², which divides it by that much.
:::

::: misses
- [R0*a/b] The resistance depends on the area, which goes as the diameter squared, so the area factor is {b}².
- [R0*a*b^2] A thicker wire has less resistance. Divide by the area factor.
- [R0/(a*b^2)] A longer wire has more resistance. Multiply by the length factor.
- [any] Use $R = \rho L / A$: find the factor for the length and for the area.
:::
:::

::: check
kind: parts
given: P1 = 60 | 75 | 100 W; P2 = 8 | 10 | 14 W; h = 3..6 int; c = 0.12 | 0.15 | 0.20

## An old {P1} bulb is replaced by a {P2} LED that gives the same light. It's on {h} hours a day, and electricity costs {c} dollars per kWh.

::: part
answer: (P1 - P2)*h*365
unit: Wh
tolerance: 1%

### How much energy does the change save in a year?

::: misses
- [P1*h*365] That's everything the old bulb used. The LED still uses some.
- [(P1 - P2)*h] That's one day. Multiply by 365.
- [any] The power saved is the difference between the two. Multiply it by the hours in a year that the light is on.
:::
:::

::: part
answer: (P1 - P2)*h*365/1000*c
tolerance: 1%

### How many dollars does it save in a year?

::: misses
- [(P1 - P2)*h*365*c] The price is per kilowatt-hour. Turn the watt-hours into kilowatt-hours first.
- [any] Multiply the kilowatt-hours saved by the price per kilowatt-hour.
:::
:::

::: right
Right. Multiply by the number of bulbs in a house, and the change adds up.
:::
:::

::: check
kind: parts
given: vin = 2m..50m sig 2 V; vout = 0.5..5 sig 2 V

## An amplifier turns an input of {vin} into an output of {vout}.

::: part
answer: vout/vin
tolerance: 1%

### By what factor does it multiply the voltage?

::: misses
- [vin/vout] That's upside down. The output is bigger, so the factor is more than 1.
- [any] Divide the output voltage by the input voltage, minding the prefix.
:::
:::

::: part
answer: 20*log10(vout/vin)
unit: dB
tolerance: 0.1 dB

### What is its gain in decibels?

::: misses
- [10*log10(vout/vin)] For a voltage ratio, use 20 log.
- [any] Take $20 \log_{10}$ of the voltage ratio.
:::
:::

::: right
Right. Voltage gains in the tens of decibels are typical for one amplifier stage.
:::
:::

::: check
kind: parts
given: P = 1000..2000 step 100 W; V2 = 100 | 110 | 127 V

## A heater is rated {P} at 120 V. Treat it as a resistor that doesn't change.

::: part
answer: 120^2/P
unit: Ω
tolerance: 1%

### What is its resistance?

::: misses
- [P/120^2] That's upside down. From $P = V^2/R$, $R = V^2/P$.
- [120/P] Use $P = V^2/R$: the voltage gets squared.
- [any] Rearrange $P = V^2/R$ to get $R$.
:::
:::

::: part
answer: P/120
unit: A
tolerance: 1%

### What current does it draw at 120 V?

::: misses
- [120/P] Power is voltage times current, so the current is the power divided by the voltage.
- [any] Use $P = V I$.
:::
:::

::: part
answer: P*(V2/120)^2
unit: W
tolerance: 1%

### What power does it give on a {V2} supply?

::: misses
- [P*V2/120] Power goes as the voltage squared. Square the ratio.
- [any] Multiply the rated power by the voltage ratio squared.
:::
:::

::: right
Right. A few percent less voltage gives about twice that percentage less heat, because of the square.
:::
:::
::: check
kind: parts
given: L = 1..100 E6; I = 0.5 | 2 | 5; t = 10 | 50 | 200

## An inductor of {L} mH carries {I} A. The energy it stores is $\frac{1}{2}LI^2$.

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

### How much energy does it store?

::: misses
- [0.5*L*I^2] Put the inductance in henries: {L} mH is $\given{L} \times 10^{-3}$ H.
- [L*1e-3*I^2] Include the one half.
- [0.5*L*1e-3*I] The current is squared.
- [any] $\frac{1}{2}LI^2$ with $L$ in henries.
:::
:::

::: part
answer: 0.5*L*1e-3*I^2/(t*1e-6)
unit: W

### The current is switched off in {t} µs, and all that energy has to go somewhere. What is the average power while it does?

::: misses
- [0.5*L*1e-3*I^2/t] Put the time in seconds: {t} µs is $\given{t} \times 10^{-6}$ s.
- [any] Average power is energy divided by time.
:::
:::

::: right
Right. A small energy released in microseconds is a lot of power, which is why switching off an inductor without a path for its current destroys switches.
:::
:::

::: check
kind: parts
given: V = 2..9 sig 2; I = 1..9 sig 2; tv = 1 | 2; ti = 2 | 3 | 5

## You measure {V} V across a resistor, to ±{tv}%, and {I} mA through it, to ±{ti}%.

::: part
answer: V/(I*1e-3)
unit: Ω

### What resistance do your readings give?

::: misses
- [V/I] Put the current in amperes: {I} mA is $\given{I} \times 10^{-3}$ A.
- [V*I*1e-3] Resistance is $V/I$.
- [any] $R = V/I$ with $I$ in amperes.
:::
:::

::: part
answer: V*(1 + tv/100)/(I*1e-3*(1 - ti/100))
unit: Ω

### What is the highest the true resistance could be?

::: misses
- [V*(1 + tv/100)/(I*1e-3*(1 + ti/100))] The highest $R$ comes from the highest $V$ and the lowest $I$.
- [any] Divide the highest voltage by the lowest current.
:::
:::

::: part
answer: 100*((1 + tv/100)/(1 - ti/100) - 1)
tolerance: 2%

### By what percent can the result be too low, in the worst case? Give the exact value.

::: misses
- [tv + ti] That's the small-error estimate. Work out the ratio of the highest $R$ to your reading exactly.
- [tv*ti] Errors in a quotient add, roughly. Use the exact ratio.
- [any] Divide the highest $R$ by your reading and subtract 1.
:::
:::
:::

::: check
kind: parts
given: R = 1..100 E12; C = 1..100 E6; tr = 1 | 5; tc = 5 | 10 | 20

## A filter uses $R$ = {R} kΩ (±{tr}%) and $C$ = {C} nF (±{tc}%).

::: part
answer: R*1e3*C*1e-9
unit: s

### What is its time constant $\tau = RC$?

::: misses
- [R*C] Put both in base units: kΩ times $10^3$, nF times $10^{-9}$.
- [R*1e3*C*1e-6] A nF is $10^{-9}$ F.
- [any] $\tau = RC$ in ohms and farads gives seconds.
:::
:::

::: part
answer: R*1e3*C*1e-9*(1 + tr/100)*(1 + tc/100)
unit: s

### What is the longest it could be?

::: misses
- [any] Both at their highest: multiply by $1 + \given{tr}/100$ and by $1 + \given{tc}/100$.
:::
:::

::: part
answer: 1/(2*pi*R*1e3*C*1e-9)
unit: Hz

### Its corner frequency is $1/(2\pi RC)$. What is it at the nominal values?

::: misses
- [1/(R*1e3*C*1e-9)] That's in radians per second. Divide by $2\pi$ for hertz.
- [2*pi*R*1e3*C*1e-9] Take the reciprocal.
- [any] $f_c = 1/(2\pi\tau)$.
:::
:::
:::

::: check
kind: parts
given: C = 1 | 5 | 10 | 50 | 100; V = 2.5 | 2.7 | 5

## A {C} F supercapacitor is charged to {V} V.

::: part
answer: C*V
unit: C

### How much charge does it hold?

::: misses
- [C/V] A farad is a coulomb per volt, so charge is $CV$.
- [any] $Q = CV$.
:::
:::

::: part
answer: 0.5*C*V^2
unit: J

### How much energy does it store?

::: misses
- [C*V^2] Include the one half.
- [0.5*C*V] The voltage is squared.
- [any] $\frac{1}{2}CV^2$.
:::
:::

::: part
answer: 0.5*C*V^2/3.6
tolerance: 1%

### How many mWh is that?

::: misses
- [0.5*C*V^2/3600] That's in Wh. A mWh is a thousandth of that, 3.6 J.
- [0.5*C*V^2*3.6] One mWh is 3.6 J, so divide.
- [any] 1 mWh is 3.6 J.
:::
:::

::: right
Right. Even a big supercapacitor holds only milliwatt-hours, against thousands for a phone battery. Its strength is delivering it fast.
:::
:::

::: check
kind: parts
given: L = 1..100 E6; C = 10..1000 E6; k = 4 | 9 | 16

## An LC circuit rings at $f = \dfrac{1}{2\pi\sqrt{LC}}$, with $L$ = {L} µH and $C$ = {C} pF.

::: part
answer: 1/(2*pi*sqrt(L*1e-6*C*1e-12))
unit: Hz

### At what frequency does it ring?

::: misses
- [1/(2*pi*sqrt(L*C))] Put both in base units: µH times $10^{-6}$ and pF times $10^{-12}$.
- [1/sqrt(L*1e-6*C*1e-12)] That's in radians per second. Divide by $2\pi$.
- [any] Put $L$ in henries and $C$ in farads into the formula.
:::
:::

::: part
answer: 1/sqrt(k)
tolerance: 0.5%

### $C$ is made {k} times larger. By what factor does the frequency change?

::: misses
- [1/k] The frequency goes as $1/\sqrt{C}$.
- [sqrt(k)] A bigger capacitor lowers the frequency.
- [any] $f \propto 1/\sqrt{C}$.
:::
:::

::: part
answer: 3e8*2*pi*sqrt(L*1e-6*C*1e-12)
unit: m

### What is the wavelength in air of a wave at the original frequency?

::: misses
- [3e8/(2*pi*sqrt(L*1e-6*C*1e-12))] Wavelength is speed divided by frequency.
- [any] $\lambda = c/f$.
:::
:::
:::
:::
