Analog Electronics Exercises
These problems cover the whole course in its order. Work each one by hand first, with units on every line, then open the answer. Each answer links back to the lesson that explains the method. The Python block at the end recomputes the numerical answers, so you can change a value and see how the result moves. Unless a problem says otherwise, use (300 K) and for hand bias calculations.
Semiconductors and diodes
1. Doping. Silicon at 300 K has . It is doped with donors. Find the electron and hole concentrations. Which carriers are the minority?
Answer
Fully ionised donors give . Mass action, : . Holes are the minority carriers, twelve orders of magnitude fewer. See Semiconductors for Circuit Designers.
2. The diode law per decade. A diode follows . By how much does its forward voltage rise when the current rises ten times, for and for ?
Answer
Well above , : for and for . See Diode Models.
3. A diode circuit by iteration. A source drives a resistor in series with a diode with , (no series resistance). Find the diode voltage, the current and the small-signal resistance at that point.
Answer
Newton's method on converges to , . Then . The constant-drop model with gives , 1 % low. See Solving Diode Circuits.
4. Bridge rectifier and reservoir capacitor (calculation only: mains). A transformer gives rms at into a bridge with per diode. The load draws from . Estimate the peak output voltage and the peak-to-peak ripple.
Answer
(two diodes conduct at a time). Full-wave ripple peak-to-peak; the estimate is slightly pessimistic because the capacitor recharges before the full half period ends. See Rectifiers and The Reservoir Capacitor.
5. Zener regulator. A Zener regulator runs from to and supplies to . The Zener needs at least . Choose the series resistor (E12) and find the worst-case Zener and resistor dissipation.
Answer
Worst case for regulation is minimum input and maximum load: , so (giving ). Worst case for the Zener is maximum input and no load: , , so use a part. The resistor dissipates : a resistor. See Zener and Schottky Diodes.
6. LED resistor. A red LED drops at and is driven from a logic pin. Find the series resistor.
Answer
(E24 exists). The pin's own output resistance lowers the current a little; check the pin's current rating. See LEDs and Photodiodes.
Transistors
7. Voltage-divider bias. , , , , , . Find and with the Thevenin method.
Answer
, . , , : active region, with room to swing. See BJT Biasing.
8. Small-signal gain. Problem 7's stage has fully bypassed and drives through a coupling capacitor. Find , , the midband voltage gain and the input resistance.
Answer
, . (ignoring ). . See BJT Small-Signal Models and The Common-Emitter Amplifier.
9. Relay driver. A relay coil draws . An NPN with is driven from a pin. Using a forced of 10 and , find . What else must the circuit have?
Answer
, , so (check that the pin may source about ). A flyback diode across the coil, cathode to , so that the coil's current has a path at turn-off and the collector is not driven far above the supply. See The BJT as a Switch.
10. Common-source stage. An NMOS with , , is biased at with and the source grounded for AC. Find , , and the gain.
Answer
(ignoring in the bias), , , . See The Common-Source Amplifier.
11. Differential pair. A BJT pair has a tail, per side and a tail source resistance . Find the single-ended differential gain, the common-mode gain and the CMRR.
Answer
Each transistor carries : . Single-ended , , . Taking the output differentially doubles and, with perfect matching, cancels . See The Differential Pair.
12. Class B efficiency. A class-B push-pull stage on delivers a sine of peak. What is its efficiency, and why does the output look wrong near zero crossings?
Answer
. Near zero neither transistor conducts until the input passes about : crossover distortion. Class AB bias removes it. See Output Stages.
Frequency response and feedback
13. Miller effect. A CE stage has a gain of from base to collector, , , and the base node sees . Estimate the input pole.
Answer
, . The capacitor dominates. A cascode removes most of it. See High-Frequency Response and the Miller Effect.
14. Desensitivity. An amplifier with has feedback . Find the closed-loop gain, then the change in closed-loop gain when drops by 10 %.
Answer
. With : , a change of : the loop gain of 1000 divides the sensitivity by about . See Negative Feedback.
Op-amps and filters
15. Bandwidth and slew rate. A non-inverting amplifier with gain 11 uses an op-amp with and slew rate . Find the small-signal bandwidth and the full-power bandwidth for a peak output.
Answer
. : above a full-size sine turns into a triangle long before the small-signal corner. See Gain-Bandwidth, Slew Rate and a SPICE Macro-Model.
16. Offset at the output. An inverting amplifier with uses an op-amp with . What output offset results?
Answer
The offset is amplified by the noise gain : , not . See Offset, Bias Currents, CMRR and Rail-to-Rail.
17. Sallen-Key design. Design a unity-gain Sallen-Key Butterworth low-pass at with both resistors .
Answer
and , with the feedback capacitor and to ground. needs ; , so , (e.g. and from ). See Active Filters.
Oscillators, regulators and practice
18. Wien bridge. , . Find the frequency and the amplifier gain needed.
Answer
; the network passes at with zero phase, so the non-inverting gain must be 3 (), slightly more to start and with amplitude control to stay sinusoidal. See Oscillators.
19. 555 astable. , , . Find the frequency and duty cycle.
Answer
, ; duty cycle . See Colpitts, Crystal, Relaxation and 555 Oscillators.
20. LDO temperature. An LDO drops to at , with , at ambient. Find the dissipation and the junction temperature.
Answer
, . Efficiency is at best . See LDOs, Dropout and Thermal Design.
21. Resistor noise. What is the rms thermal noise of a resistor at in a bandwidth?
Answer
rms; the density is . See Noise in Analog Circuits.
Check the numbers in Python
import math
VT, k = 25.85e-3, 1.380649e-23
# 3: diode circuit by Newton's method
Is, n, V = 2.52e-9, 1.752, 0.6
for _ in range(50):
f = (5 - V) / 1e3 - Is * (math.exp(V / (n * VT)) - 1)
df = -1 / 1e3 - Is / (n * VT) * math.exp(V / (n * VT))
V -= f / df
I = (5 - V) / 1e3
print(f"3: V = {V:.4f} V, I = {I*1e3:.3f} mA, rd = {n*VT/I:.2f} Ohm")
# 7 and 8: voltage-divider bias and CE gain
VCC, R1, R2, RE, RC, beta, RL = 12, 47e3, 10e3, 1e3, 4.7e3, 200, 10e3
Vth, Rth = VCC * R2 / (R1 + R2), R1 * R2 / (R1 + R2)
IB = (Vth - 0.7) / (Rth + (beta + 1) * RE)
IC = beta * IB
VCE = VCC - IC * RC - (beta + 1) * IB * RE
gm = IC / VT
rpi = beta / gm
Av = -gm * RC * RL / (RC + RL)
Rin = 1 / (1 / Rth + 1 / rpi)
print(f"7: IC = {IC*1e3:.3f} mA, VCE = {VCE:.2f} V")
print(f"8: gm = {gm*1e3:.1f} mS, rpi = {rpi/1e3:.2f} k, Av = {Av:.0f}, Rin = {Rin/1e3:.2f} k")
# 11: differential pair
gm1 = 0.5e-3 / VT
Ad, Acm = gm1 * 10e3 / 2, 10e3 / (2 * 100e3)
print(f"11: Ad = {Ad:.1f}, Acm = {Acm:.3f}, CMRR = {20*math.log10(Ad/Acm):.1f} dB")
# 13, 15, 17, 19, 21
print(f"13: f_in = {1/(2*math.pi*1e3*(20e-12 + 4e-12*101))/1e3:.0f} kHz")
print(f"15: f_CL = {1e6/11/1e3:.1f} kHz, f_FP = {0.5e6/(2*math.pi*5)/1e3:.1f} kHz")
s = 1 / (2 * math.pi * 1e3 * 10e3)
print(f"17: C2 = {s/math.sqrt(2)*1e9:.2f} nF, C1 = {s*math.sqrt(2)*1e9:.2f} nF")
T = 0.693 * 21e3 * 10e-9
print(f"19: f = {1/T/1e3:.2f} kHz, duty = {100*11/21:.1f} %")
print(f"21: vn = {math.sqrt(4*k*300*1e4*2e4)*1e6:.2f} uV rms")3: V = 0.6504 V, I = 4.350 mA, rd = 10.41 Ohm
7: IC = 1.343 mA, VCE = 4.34 V
8: gm = 52.0 mS, rpi = 3.85 k, Av = -166, Rin = 2.62 k
11: Ad = 96.7, Acm = 0.050, CMRR = 65.7 dB
13: f_in = 375 kHz
15: f_CL = 90.9 kHz, f_FP = 15.9 kHz
17: C2 = 11.25 nF, C1 = 22.51 nF
19: f = 6.87 kHz, duty = 52.4 %
21: vn = 1.82 uV rms
Test yourself
A diode with carries ten times more current. Its forward voltage rises by about…
A BJT is biased at . Its transconductance at 300 K is about…
An inverting amplifier with gain uses an op-amp with . Its closed-loop bandwidth is about…
Which change cures crossover distortion in a push-pull output stage?
- A larger output capacitor
- Biasing both transistors slightly on (class AB)
- Removing the emitter resistors
- A higher supply voltage