Circuit Theory: Introduction
A sensor board arrives on your desk with a schematic and a complaint: "the reference voltage reads 3.3 V instead of 5 V". There are a dozen resistors, two supplies, a few capacitors and an op-amp input. Where do you start? Guessing and probing can take a day. A circuit analyst writes the equations, finds in ten minutes that the reference divider is loaded by an input that was assumed to be "high impedance", predicts the 3.3 V to two digits, and proposes a fix before touching the board.
That is the skill this course builds: analyse an unfamiliar linear circuit with the right method, and verify the result by simulation and measurement. It is the core course of the Electrical Engineering track. Everything after it (analog electronics, signals, control, power, RF) assumes you can do it without thinking.
What circuit theory is
Circuit theory replaces a physical circuit by a model: ideal elements (resistors, capacitors, inductors, sources) joined at nodes, obeying Kirchhoff's laws. The model is lumped (the circuit is small compared with the wavelengths in it), and in this course mostly linear and time-invariant. Within those limits three questions cover almost everything:
| Question | Signals | Main tools | Sections |
|---|---|---|---|
| What are the steady voltages and currents? | DC | KCL, KVL, nodal, mesh, MNA, Thevenin | DC laws, systematic analysis, theorems |
| How does the circuit move from one state to another? | steps, switching | differential equations, time constants, Laplace | transients, Laplace domain |
| How does it respond to sinusoids of each frequency? | AC | phasors, impedance, transfer functions | steady state, frequency response, two-ports |
The map
| Section | You will be able to | Labs and tools |
|---|---|---|
| Getting started | use reference directions, the passive sign convention and topology counts | ee-netlist, Python |
| Math in context | handle complex numbers, linear systems and circuit ODEs in NumPy and SymPy | Python |
| DC circuit laws | apply Ohm and Kirchhoff, reduce networks, use dividers and source models | ee-netlist, circuit, dc-power, ngspice |
| Systematic analysis | write nodal, mesh and MNA equations for any circuit, run DC sweeps and tolerance studies | ee-netlist, NumPy, ngspice |
| Network theorems | use superposition, Thevenin, Norton and maximum power transfer | ee-netlist, dc-power, ngspice |
| Energy storage and transients | solve RC, RL and RLC responses by inspection and by ODE | ee-rc-rl-transient, ee-rlc-resonance, ngspice |
| Sinusoidal steady state | analyse AC circuits with phasors and compute real, reactive and complex power | ee-phasor-diagram, ngspice |
| Frequency response | draw Bode plots, design first- and second-order filters, use | ee-bode-plot, ee-rlc-resonance, ngspice |
| Coupled circuits and two-ports | handle mutual inductance, ideal transformers and two-port parameters | NumPy, ngspice |
| Laplace domain | analyse circuits in , read poles and zeros | SymPy, control |
| Three-phase | analyse balanced star and delta systems per phase | ee-three-phase |
The mathematics lives in the Mathematics track, and this course links to it instead of repeating it: Linear Algebra for circuit equations, Differential Equations for transients, Signals and Fourier for frequency analysis. Units, components, the bench instruments and safety are in EE Foundations.
How to analyse an unfamiliar circuit
- Redraw and label. Mark every node, choose ground, draw reference directions (Circuit Elements, Topology and the Passive Sign Convention).
- Simplify what is obvious. Series and parallel resistors, dividers, source transformations.
- Pick a method. Few nodes, many loops: nodal. Few meshes, current sources in the loops: mesh. Only one load of interest: Thevenin. Several sources: maybe superposition.
- Solve, by hand for small systems, with NumPy for anything larger.
- Check in three independent ways: power balance (the absorbed powers sum to zero), a limiting case (a resistor set to zero or infinity gives a known answer), and a simulation.
- Measure, when it is safe, and compare within the measurement uncertainty.
Conventions used in this course
- Symbols. DC and rms values in capitals (, ), instantaneous values in lower case (, ), phasors in bold (, ), impedance , admittance . The imaginary unit is , because is a current. Physics labs label voltage , as European school books do; it is the same quantity.
- Signs. The passive sign convention everywhere: current arrow into the terminal, absorbed.
- Units upright, a space after the number: , , .
- Worked examples use Given / Find / Solve / Check.
- SPICE decks run in ngspice 42. SPICE reports a source's current flowing into its terminal, so a source that delivers power shows a negative current.
- Safety. Hands-on work is low voltage, isolated and current-limited (a bench supply at most DC with a current limit, a function generator, batteries). Mains-voltage topics, including power-factor correction and three-phase, are taught by calculation and simulation only.
A first example, three ways
Given: a divider of two resistors on a supply, designed to give , feeding an input that behaves like to ground.
Find: with and without the load, and the current from the supply.
Solve: the load is in parallel with :
Without the load, . The supply current with the load is .
Check: the loaded value must lie below 5 V (the load only removes current from the output node) and above 0 V; 3.33 V does. In the Thevenin picture the divider is a source behind , and agrees.
The same in Python, sweeping the load to see how "high impedance" the input must be:
V1, R1, R2 = 10.0, 10e3, 10e3
def par(a, b):
return a * b / (a + b)
print(" RL Vout error")
for RL in [1e3, 10e3, 100e3, 1e6, 10e6]:
vout = V1 * par(R2, RL) / (R1 + par(R2, RL))
print(f"{RL:9.0f} {vout:7.3f} V {100 * (vout - 5) / 5:7.2f} %") RL Vout error
1000 0.833 V -83.33 %
10000 3.333 V -33.33 %
100000 4.762 V -4.76 %
1000000 4.975 V -0.50 %
10000000 4.998 V -0.05 %
For a 1 % error the load must be about 100 times the divider's Thevenin resistance of . And the same circuit in ngspice:
cat > divider.cir <<'EOF'
* Loaded divider: 10 V, 10k/10k, 10k load
V1 in 0 DC 10
R1 in out 10k
R2 out 0 10k
RL out 0 10k
.control
op
print v(out) i(V1)
.endc
.end
EOF
ngspice -b divider.cir 2>&1 | grep -E '^(v\(|i\()'v(out) = 3.333333e+00
i(v1) = -6.66667e-04
Three methods, one answer. Move the load in the lab and watch the output fall as approaches the divider resistors:
Guided lab: the loaded divider
Hand calculation. As above: unloaded, with , with .
Simulation. The Python table, the SPICE deck and the lab all agree.
What you would measure. Use 1 % resistors and a bench supply at with a current limit. Expect unloaded, with the load and with ; the uncertainty is mostly the three 1 % resistors. A DMM's own input loads the divider by only , as the last row of the table shows (The Digital Multimeter).
Hazards and safe setup. , current-limited; at most in any resistor. Turn the supply off before changing the load.
Pitfalls
- Forgetting the load. A divider's ratio holds only when nothing draws current from its output.
- Trusting one method. A typo in a netlist and a slip in algebra are equally likely; agreement of two independent methods is the check.
- Analysing outside the model. Kirchhoff's laws assume a lumped, quasi-static circuit; long cables at high frequency need transmission-line theory.
Practice
- What load makes the / divider read ?
- Redesign the divider with equal resistors so that a load causes at most 1 % error. What resistor value, and what supply current?
Answer
- gives .
- The Thevenin resistance must be about (more precisely gives ), so ; the supply then delivers about . Stiff dividers waste current, which is why buffers exist (Analog Electronics).
Test yourself
A circuit is 2 m across and carries signals up to 1 kHz. Is a lumped (Kirchhoff) model appropriate?
- yes: the wavelength at 1 kHz is about 300 km, far larger than 2 m
- no: any circuit over 1 m needs transmission-line theory
- only if all resistors are below 1 kOhm
- only for DC
Which symbol does this course use for the imaginary unit?
A 10 V divider of two resistors drives a load. The output is…
Which of these is a hands-on activity in this course?
- measuring the power factor of a mains motor
- measuring an RC filter driven by a function generator
- wiring a three-phase star load
- correcting the power factor of a household circuit with a capacitor