TExcelTAD
Home › Circuit Theory & Network Analysis › Circuit Theory: Introduction

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

math in context complex, matrices, ODEs DC circuit laws Ohm, KCL, KVL, sources systematic analysis nodal, mesh, MNA, SPICE network theorems Thevenin, superposition transients RC, RL, RLC sinusoidal steady state phasors, AC power frequency response Bode, filters, resonance coupled circuits transformers, two-ports Laplace domain s, poles, zeros three-phase, exercises mini project
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 QQ 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 ss, 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

  1. Redraw and label. Mark every node, choose ground, draw reference directions (Circuit Elements, Topology and the Passive Sign Convention).
  2. Simplify what is obvious. Series and parallel resistors, dividers, source transformations.
  3. 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.
  4. Solve, by hand for small systems, with NumPy for anything larger.
  5. 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.
  6. Measure, when it is safe, and compare within the measurement uncertainty.

Conventions used in this course

  • Symbols. DC and rms values in capitals (VV, II), instantaneous values in lower case (v(t)v(t), i(t)i(t)), phasors in bold (V\mathbf{V}, I\mathbf{I}), impedance ZZ, admittance YY. The imaginary unit is jj, because ii is a current. Physics labs label voltage UU, as European school books do; it is the same quantity.
  • Signs. The passive sign convention everywhere: current arrow into the ++ terminal, p=vip = vi absorbed.
  • Units upright, a space after the number: 4.7 kΩ4.7\ \text{k}\Omega, 100 nF100\ \text{nF}, 1.59 kHz1.59\ \text{kHz}.
  • 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 24 V24\ \text{V} 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

+ - V1 10 V R1 10 kOhm R2 10 kOhm RL 10 kOhm in out load

Given: a divider of two 10 kΩ10\ \text{k}\Omega resistors on a 10 V10\ \text{V} supply, designed to give 5 V5\ \text{V}, feeding an input that behaves like RL=10 kΩR_L = 10\ \text{k}\Omega to ground.

Find: VoutV_\text{out} with and without the load, and the current from the supply.

Solve: the load is in parallel with R2R_2:

R2∥RL=10⋅1010+10 kΩ=5 kΩ,Vout=10 V⋅5 kΩ10 kΩ+5 kΩ=3.33 VR_2 \parallel R_L = \frac{10 \cdot 10}{10 + 10}\ \text{k}\Omega = 5\ \text{k}\Omega, \qquad V_\text{out} = 10\ \text{V} \cdot \frac{5\ \text{k}\Omega}{10\ \text{k}\Omega + 5\ \text{k}\Omega} = 3.33\ \text{V}

Without the load, Vout=10⋅10/20=5.00 VV_\text{out} = 10 \cdot 10/20 = 5.00\ \text{V}. The supply current with the load is 10 V/15 kΩ=0.667 mA10\ \text{V}/15\ \text{k}\Omega = 0.667\ \text{mA}.

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 5 V5\ \text{V} source behind 5 kΩ5\ \text{k}\Omega, and 5⋅10/(5+10)=3.33 V5 \cdot 10/(5 + 10) = 3.33\ \text{V} agrees.

The same in Python, sweeping the load to see how "high impedance" the input must be:

python · try it yourself
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 5 kΩ5\ \text{k}\Omega. And the same circuit in ngspice:

bash · try it yourself
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 RLR_L approaches the divider resistors:

node voltages (to ground 0)in10.00 Vout3.333 VnetlistV1 in 0 DC 10R1 in out 10kR2 out 0 10kRL out 0 10kelement currents (node 1 to node 2 through it)V1in>0-667 uAR1in>out667 uAR2out>0333 uARLout>0333 uA

Guided lab: the loaded divider

Hand calculation. As above: 5.00 V5.00\ \text{V} unloaded, 3.33 V3.33\ \text{V} with 10 kΩ10\ \text{k}\Omega, 4.76 V4.76\ \text{V} with 100 kΩ100\ \text{k}\Omega.

Simulation. The Python table, the SPICE deck and the lab all agree.

What you would measure. Use 1 % resistors and a bench supply at 10.0 V10.0\ \text{V} with a 5 mA5\ \text{mA} current limit. Expect 5.00±0.06 V5.00 \pm 0.06\ \text{V} unloaded, 3.33±0.04 V3.33 \pm 0.04\ \text{V} with the 10 kΩ10\ \text{k}\Omega load and 4.76±0.05 V4.76 \pm 0.05\ \text{V} with 100 kΩ100\ \text{k}\Omega; the uncertainty is mostly the three 1 % resistors. A DMM's own 10 MΩ10\ \text{M}\Omega input loads the divider by only 0.05 %0.05\ \%, as the last row of the table shows (The Digital Multimeter).

Hazards and safe setup. 10 V10\ \text{V}, current-limited; at most 5 mW5\ \text{mW} 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

  1. What load makes the 10 kΩ10\ \text{k}\Omega / 10 kΩ10\ \text{k}\Omega divider read 4.50 V4.50\ \text{V}?
  2. Redesign the divider with equal resistors so that a 10 kΩ10\ \text{k}\Omega load causes at most 1 % error. What resistor value, and what supply current?
Answer
  1. Vout=5⋅RL/(5 kΩ+RL)=4.5V_\text{out} = 5 \cdot R_L/(5\ \text{k}\Omega + R_L) = 4.5 gives RL=45 kΩR_L = 45\ \text{k}\Omega.
  2. The Thevenin resistance R/2R/2 must be about RL/100=100 ΩR_L/100 = 100\ \Omega (more precisely 5RL/(R/2+RL)≥4.955 R_L/(R/2 + R_L) \ge 4.95 gives R/2≤101 ΩR/2 \le 101\ \Omega), so R=200 ΩR = 200\ \Omega; the supply then delivers about 10/(200+200∥10 000)=25.2 mA10/(200 + 200 \parallel 10\,000) = 25.2\ \text{mA}. 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?

  1. yes: the wavelength at 1 kHz is about 300 km, far larger than 2 m
  2. no: any circuit over 1 m needs transmission-line theory
  3. only if all resistors are below 1 kOhm
  4. only for DC

Which symbol does this course use for the imaginary unit?

  1. ii
  2. jj
  3. II
  4. ι\iota

A 10 V divider of two 10 kΩ10\ \text{k}\Omega resistors drives a 10 kΩ10\ \text{k}\Omega load. The output is…

  1. 5.00 V5.00\ \text{V}
  2. 3.33 V3.33\ \text{V}
  3. 2.50 V2.50\ \text{V}
  4. 6.67 V6.67\ \text{V}

Which of these is a hands-on activity in this course?

  1. measuring the power factor of a mains motor
  2. measuring an RC filter driven by a function generator
  3. wiring a three-phase star load
  4. correcting the power factor of a household circuit with a capacitor