EE Basics · step 2 · circuit quantities

Charge, Current, Voltage, Power and Energy

Every circuit quantity is a simplification of Maxwell's equations. This page derives each one from the field picture: what current really is, why voltage exists, where KCL and KVL come from and when they fail, why a wire has resistance, and how energy actually travels from a source to a load.

Builds onMaxwell's equationsLeads toResistors · Capacitors · Inductors

1Charge

Charge is the property that makes a particle feel and create electric fields. It comes in integer multiples of the elementary charge and is conserved: no process creates or destroys net charge.

$$e = 1.602\times10^{-19}\ \text{C}, \qquad q = N e,\quad N\in\mathbb{Z}$$

One coulomb is about \(6.24\times10^{18}\) electrons. In metals the mobile carriers are electrons (charge \(-e\)); in semiconductors both electrons and holes carry current; in electrolytes and batteries, ions do.

Gauss's law, \(\nabla\cdot\mathbf{E}=\rho/\varepsilon_0\), says charge is the source of the electric field. Every circuit quantity below is a statement about how charge moves and what fields that motion creates.

2Current and current density

Current is the rate at which charge crosses a surface:

$$I = \frac{dQ}{dt} \qquad [\text{A} = \text{C/s}]$$

Current is a total through a whole cross-section. The local quantity is the current density \(\mathbf{J}\), in A/m², with \(I = \int_S \mathbf{J}\cdot d\mathbf{A}\).

Derivation · J from carrier motion
  1. Suppose there are \(n\) carriers per cubic metre, each with charge \(q\), all drifting with average velocity \(\mathbf{v}_d\).
  2. In time \(dt\), the carriers that cross an area \(A\) normal to \(\mathbf{v}_d\) are those within a slab of thickness \(v_d\,dt\): a volume \(A\,v_d\,dt\).
  3. The charge crossing is \(dQ = n q A v_d\,dt\), so \(I = dQ/dt = nqAv_d\) and $$\mathbf{J} = n q\, \mathbf{v}_d$$
Number · how slow are electrons?

Copper has about one free electron per atom: \(n \approx 8.5\times10^{28}\ \text{m}^{-3}\). For 1 A in a 1 mm² wire:

$$v_d = \frac{I}{nqA} = \frac{1}{(8.5\times10^{28})(1.6\times10^{-19})(10^{-6})} \approx 7.4\times10^{-5}\ \text{m/s}$$

That is 0.07 mm/s. The electrons crawl. A light turns on instantly because the field that pushes them travels along the wire at a large fraction of the speed of light, and all the electrons in the loop start moving almost together.

3Continuity and Kirchhoff's current law

Conservation of charge is built into Maxwell's equations. Take the divergence of the Ampère–Maxwell law.

Derivation · the continuity equation
  1. Start from \(\nabla\times\mathbf{B} = \mu_0\mathbf{J} + \mu_0\varepsilon_0\,\partial\mathbf{E}/\partial t\).
  2. The divergence of any curl is zero: \(\nabla\cdot(\nabla\times\mathbf{B}) = 0\). So $$0 = \mu_0\,\nabla\cdot\mathbf{J} + \mu_0\varepsilon_0\,\frac{\partial}{\partial t}(\nabla\cdot\mathbf{E})$$
  3. Substitute Gauss's law \(\nabla\cdot\mathbf{E} = \rho/\varepsilon_0\): $$\nabla\cdot\mathbf{J} + \frac{\partial \rho}{\partial t} = 0$$
  4. Integrate over a volume and use the divergence theorem: the net current out of any closed surface equals the rate at which the enclosed charge decreases, $$\oint_S \mathbf{J}\cdot d\mathbf{A} = -\frac{dQ_\text{enc}}{dt}$$

KCL is this law applied to a circuit node, a junction of wires that cannot store meaningful charge. If \(dQ_\text{enc}/dt = 0\), the currents leaving sum to zero:

$$\sum_k I_k = 0 \quad\text{(at a node)}$$

Without the displacement-current term \(\mu_0\varepsilon_0\,\partial\mathbf{E}/\partial t\), step 2 would give \(\nabla\cdot\mathbf{J}=0\) always, and a capacitor could never charge. Maxwell added that term precisely so charge conservation holds. Current "through" a capacitor is conduction current on the wires and displacement current between the plates.

When KCL is approximate

KCL fails wherever charge accumulates: on a capacitor plate, or on the stray capacitance of a node at high frequency. You restore it by drawing that capacitance explicitly. Then the node itself stores nothing and KCL holds again.

4Voltage and electric potential

Voltage is work per unit charge. Moving a charge \(q\) from a to b against the field takes work \(W = -q\int_a^b \mathbf{E}\cdot d\mathbf{l}\). Define

$$V_{ab} \equiv V_a - V_b = \int_a^b \mathbf{E}\cdot d\mathbf{l} \qquad [\text{V} = \text{J/C}]$$

This depends only on the end points, not on the path between them, when the field is conservative. That is exactly the condition in Faraday's law.

Derivation · why a potential exists
  1. Faraday's law: \(\nabla\times\mathbf{E} = -\partial\mathbf{B}/\partial t\).
  2. In electrostatics, or whenever the magnetic flux through the region is not changing, \(\nabla\times\mathbf{E} = 0\).
  3. A curl-free field can always be written as the gradient of a scalar: \(\mathbf{E} = -\nabla\phi\). (Stokes' theorem gives \(\oint \mathbf{E}\cdot d\mathbf{l} = 0\) around every loop, so the line integral between two points cannot depend on the path.)
  4. Then \(\int_a^b \mathbf{E}\cdot d\mathbf{l} = -\int_a^b \nabla\phi\cdot d\mathbf{l} = \phi(a)-\phi(b)\). Voltage is a difference in this potential \(\phi\).

Combining \(\mathbf{E}=-\nabla\phi\) with Gauss's law gives Poisson's equation, which you will meet again in the diode and MOSFET derivations:

$$\nabla^2\phi = -\frac{\rho}{\varepsilon}$$

Only differences of potential are physical. "Ground" is just the node you choose to call 0 V.

5Kirchhoff's voltage law, and when it fails

If \(\oint\mathbf{E}\cdot d\mathbf{l}=0\), then around any closed loop of components the voltage differences sum to zero:

$$\sum_k V_k = 0 \quad\text{(around a loop, no changing flux)}$$

In general, Faraday's law in integral form says

$$\oint_C \mathbf{E}\cdot d\mathbf{l} = -\frac{d\Phi_B}{dt}, \qquad \Phi_B = \int_S \mathbf{B}\cdot d\mathbf{A}$$

A real loop always encloses some magnetic flux produced by its own current. Circuit theory keeps KVL true by collecting that flux into a lumped element, the inductor, with \(\Phi = LI\) and voltage \(L\,dI/dt\). This is why every loop on a PCB has inductance, and why layout changes circuit behaviour.

The lumped-circuit approximation

KCL and KVL hold when the circuit is small compared with the wavelength, \(\ell \ll \lambda = v/f\), so that fields everywhere change together. At 100 MHz, \(\lambda\) is 3 m in air and roughly 1.5 m on FR-4. A 10 cm trace is \(\lambda/15\): lumped analysis is starting to strain. Beyond about \(\lambda/10\), treat the trace as a transmission line.

6Ohm's law from electron motion

Why does a field produce a steady drift rather than accelerating electrons forever? Because they keep colliding with lattice vibrations and defects. The Drude model captures this with one parameter, the mean time between collisions \(\tau\).

Derivation · conductivity from the Drude model
  1. Newton's law for an average carrier, with collisions acting like friction: $$m\frac{d\mathbf{v}}{dt} = q\mathbf{E} - \frac{m\mathbf{v}}{\tau}$$
  2. In steady state \(d\mathbf{v}/dt = 0\), so \(\mathbf{v}_d = \dfrac{q\tau}{m}\mathbf{E} = \mu\mathbf{E}\), where \(\mu = q\tau/m\) is the mobility.
  3. Substitute into \(\mathbf{J} = nq\mathbf{v}_d\): $$\mathbf{J} = \frac{nq^2\tau}{m}\,\mathbf{E} = \sigma\mathbf{E}, \qquad \sigma = \frac{nq^2\tau}{m} = nq\mu$$
  4. For a uniform bar of length \(L\) and area \(A\): \(E = V/L\) and \(I = JA\). So \(I = \sigma A V/L\), which is $$V = I R, \qquad R = \frac{L}{\sigma A} = \frac{\rho L}{A}$$
Number · collision time in copper

\(\sigma_\text{Cu} = 5.96\times10^{7}\ \text{S/m}\). Solving for \(\tau\):

$$\tau = \frac{\sigma m}{nq^2} = \frac{(5.96\times10^7)(9.11\times10^{-31})}{(8.5\times10^{28})(1.6\times10^{-19})^2} \approx 2.5\times10^{-14}\ \text{s}$$

Electrons collide every 25 femtoseconds. The response time of conduction is therefore far below anything a circuit cares about, which is why \(\mathbf{J} = \sigma\mathbf{E}\) holds instantly up to infrared frequencies.

Ohm's law is a constitutive relation, a property of the material, not a fundamental law. It fails in diodes, transistors, gas discharges and superconductors. The resistor page continues from here: temperature dependence, noise, and skin effect.

7Power

Power is the rate at which energy is transferred.

Derivation · \(P=VI\)
  1. Moving charge \(dQ\) through a potential difference \(V\) transfers energy \(dW = V\,dQ\).
  2. Divide by \(dt\): \(P = \dfrac{dW}{dt} = V\dfrac{dQ}{dt}\).
  3. So $$P = V I \qquad [\text{W} = \text{J/s} = \text{V}\cdot\text{A}]$$

Sign convention. Under the passive sign convention, current enters the + terminal of a component. Then \(P = VI > 0\) means the component absorbs power (a resistor, or a battery being charged), and \(P<0\) means it delivers power (a source).

For a resistor, substitute Ohm's law:

$$P = VI = I^2R = \frac{V^2}{R}$$

The field version is the local power density converted to heat, \(p = \mathbf{J}\cdot\mathbf{E} = \sigma E^2\) in W/m³. Integrating it over a uniform bar gives \(\sigma (V/L)^2\cdot AL = V^2/R\), the same result.

Why \(I^2R\) drives system design

For a fixed power delivered, \(I = P/V\), so conduction loss in the wiring is \((P/V)^2 R_\text{wire}\). Doubling the bus voltage cuts wiring loss by a factor of four. This is the whole argument for high-voltage transmission lines and for 48 V instead of 12 V buses in vehicles, robots and servers.

8Where energy really flows: the Poynting vector

Intuition says energy flows through the wire with the electrons. Maxwell's equations say otherwise: it flows through the space around the wire, in the fields, and enters the load from outside.

Derivation · Poynting's theorem
  1. Use the vector identity \(\nabla\cdot(\mathbf{E}\times\mathbf{H}) = \mathbf{H}\cdot(\nabla\times\mathbf{E}) - \mathbf{E}\cdot(\nabla\times\mathbf{H})\).
  2. Substitute Faraday \(\nabla\times\mathbf{E} = -\partial\mathbf{B}/\partial t\) and Ampère–Maxwell \(\nabla\times\mathbf{H} = \mathbf{J} + \partial\mathbf{D}/\partial t\), with \(\mathbf{B}=\mu\mathbf{H}\), \(\mathbf{D}=\varepsilon\mathbf{E}\): $$\nabla\cdot(\mathbf{E}\times\mathbf{H}) = -\mathbf{H}\cdot\frac{\partial\mathbf{B}}{\partial t} - \mathbf{E}\cdot\frac{\partial\mathbf{D}}{\partial t} - \mathbf{J}\cdot\mathbf{E}$$
  3. Note \(\mathbf{H}\cdot\partial\mathbf{B}/\partial t = \partial(\tfrac12\mu H^2)/\partial t\) and \(\mathbf{E}\cdot\partial\mathbf{D}/\partial t = \partial(\tfrac12\varepsilon E^2)/\partial t\). Define \(\mathbf{S} = \mathbf{E}\times\mathbf{H}\) and \(u = \tfrac12\varepsilon E^2 + \tfrac12\mu H^2\): $$\frac{\partial u}{\partial t} + \nabla\cdot\mathbf{S} = -\mathbf{J}\cdot\mathbf{E}$$
  4. Read it as an energy budget: stored field energy in a region grows by the power flowing in (\(-\oint\mathbf{S}\cdot d\mathbf{A}\)) minus the power converted to heat or work (\(\int \mathbf{J}\cdot\mathbf{E}\,dV\)).
resistive wire, radius a, length ℓ E = V/ℓ along the wire H = I/2πacircles the wire S = E × Hpoints in
In a resistive wire, E runs along the wire and H circles it, so \(S=E\times H\) points radially into the surface. The energy that heats the wire arrives from the surrounding field.
Check · the field flux into a resistor equals VI
  1. At the surface of a wire of radius \(a\) and length \(\ell\) carrying current \(I\) with voltage \(V\) across it: \(E = V/\ell\) (axial) and, from Ampère's law, \(H = I/(2\pi a)\) (circumferential).
  2. They are perpendicular, so \(|\mathbf{S}| = EH\), directed radially inward.
  3. Total power entering through the side surface \(2\pi a\ell\): $$P = \frac{V}{\ell}\cdot\frac{I}{2\pi a}\cdot 2\pi a\ell = VI$$

The answer matches circuit theory exactly, but the picture is different: wires guide the energy; the fields carry it. This is why the geometry between conductors (spacing, return path, dielectric) sets impedance and radiation, and why a signal needs a nearby return path.

9Energy stored in fields

Poynting's theorem identified the stored energy density

$$u = \tfrac12\varepsilon E^2 + \frac{B^2}{2\mu} \qquad [\text{J/m}^3]$$

Capacitors are devices that concentrate the first term, inductors the second. Integrating these densities over each device gives the familiar results, derived on their own pages:

$$W_C = \tfrac12 C V^2, \qquad W_L = \tfrac12 L I^2$$

Energy is power integrated over time, \(W = \int P\,dt\). Batteries are rated in watt-hours: a 3.7 V, 3 Ah cell stores \(3.7\times3 = 11.1\) Wh \(= 11.1\times3600 \approx 40\) kJ. A 10 µF capacitor at 50 V stores only \(\tfrac12(10^{-5})(50^2) = 12.5\) mJ: capacitors deliver energy quickly but hold very little of it.

10AC quantities: RMS, phasors and real power

RMS value

The RMS value of a waveform is the DC value that would dissipate the same average power in a resistor. Since \(P = v^2/R\), it is the root of the mean of the square.

Derivation · RMS of a sine
  1. \(V_\text{rms}^2 = \dfrac1T\displaystyle\int_0^T V_p^2\sin^2(\omega t)\,dt\).
  2. Use \(\sin^2 x = \tfrac12(1-\cos 2x)\). The cosine averages to zero over a period, leaving \(V_p^2/2\).
  3. So \(V_\text{rms} = V_p/\sqrt2 \approx 0.707\,V_p\). US mains at 120 V RMS peaks at 170 V.

For a square wave of ±\(V_p\), \(V_\text{rms} = V_p\). For a triangle wave, \(V_p/\sqrt3\). The factor depends on shape, which is why cheap meters that assume a sine misread distorted waveforms.

Phasors

In a linear circuit driven at one frequency, every voltage and current is a sinusoid at that frequency, differing only in amplitude and phase. Write \(v(t) = \mathrm{Re}\{\mathbf{V}e^{j\omega t}\}\) with complex amplitude \(\mathbf{V} = V_p e^{j\theta}\). Differentiation becomes multiplication by \(j\omega\), so the component laws become algebraic:

$$\mathbf{V} = \mathbf{I}R,\qquad \mathbf{V} = \mathbf{I}\cdot j\omega L,\qquad \mathbf{V} = \mathbf{I}\cdot\frac{1}{j\omega C}$$

The ratio \(Z = \mathbf{V}/\mathbf{I}\) is the impedance. KCL and KVL hold for phasors because they are linear.

Average power with a phase shift

Derivation · \(P = V_\text{rms}I_\text{rms}\cos\varphi\)
  1. Let \(v = V_p\sin\omega t\) and \(i = I_p\sin(\omega t-\varphi)\).
  2. Instantaneous power, using \(\sin A\sin B = \tfrac12[\cos(A-B)-\cos(A+B)]\): $$p(t) = \frac{V_pI_p}{2}\left[\cos\varphi - \cos(2\omega t-\varphi)\right]$$
  3. The second term averages to zero, so $$P = \frac{V_pI_p}{2}\cos\varphi = V_\text{rms}I_\text{rms}\cos\varphi$$

\(\cos\varphi\) is the power factor. A pure inductor or capacitor has \(\varphi = \pm 90°\): current flows, energy sloshes back and forth twice per cycle, and the average power is zero. In phasor form, complex power is \(\mathbf{S} = \tfrac12\mathbf{V}\mathbf{I}^* = P + jQ\), where \(P\) (watts) is real power and \(Q\) (vars) is reactive power.

11Sources, Thevenin equivalents and maximum power

An ideal voltage source holds its voltage regardless of current; an ideal current source holds its current regardless of voltage. Real sources have internal resistance. Thevenin's theorem says any linear two-terminal network behaves, at its terminals, like one voltage source \(V_\text{th}\) in series with one impedance \(Z_\text{th}\). The Norton form is a current source \(I_N = V_\text{th}/Z_\text{th}\) in parallel with \(Z_\text{th}\).

To find them: \(V_\text{th}\) is the open-circuit voltage, \(I_N\) is the short-circuit current, and \(Z_\text{th} = V_\text{oc}/I_\text{sc}\) (or the impedance seen with all independent sources zeroed).

Derivation · maximum power transfer
  1. A load \(R_L\) on a source \(V_\text{th}, R_\text{th}\) draws \(I = V_\text{th}/(R_\text{th}+R_L)\) and absorbs $$P_L = I^2R_L = \frac{V_\text{th}^2 R_L}{(R_\text{th}+R_L)^2}$$
  2. Set \(dP_L/dR_L = 0\): \(V_\text{th}^2\dfrac{(R_\text{th}+R_L)^2 - 2R_L(R_\text{th}+R_L)}{(R_\text{th}+R_L)^4} = 0\), which gives \(R_\text{th}+R_L = 2R_L\).
  3. So \(R_L = R_\text{th}\), and \(P_\text{max} = V_\text{th}^2/(4R_\text{th})\). For complex impedances the condition is \(Z_L = Z_\text{th}^*\) (conjugate match).
Maximum power is not maximum efficiency

At the matched point exactly half the power is lost in the source, so efficiency is 50%. Power systems do the opposite: they make \(R_L \gg R_\text{th}\) for high efficiency. Matching matters where the source is weak and power is scarce (antennas, sensors, RF) and on transmission lines, where it prevents reflections.

Summary

Current\(I = dQ/dt\), \(\mathbf{J} = nq\mathbf{v}_d\)
KCLFrom \(\nabla\cdot\mathbf{J} = -\partial\rho/\partial t\); holds where no charge accumulates
Voltage\(V_{ab} = \int_a^b\mathbf{E}\cdot d\mathbf{l}\); path-independent only if flux is not changing
KVL\(\oint\mathbf{E}\cdot d\mathbf{l} = -d\Phi/dt\); inductance absorbs the flux term
Ohm\(\sigma = nq^2\tau/m\), \(R = \rho L/A\)
Power\(P = VI\); local \(p = \mathbf{J}\cdot\mathbf{E}\); flows as \(\mathbf{S} = \mathbf{E}\times\mathbf{H}\)
Stored energy\(u = \tfrac12\varepsilon E^2 + B^2/2\mu\)
AC power\(P = V_\text{rms}I_\text{rms}\cos\varphi\)

12Check yourself

Electrons drift at under a millimetre per second. Why does a signal arrive in nanoseconds?

The signal is the electromagnetic field, which propagates along the conductor pair at \(c/\sqrt{\varepsilon_r}\), about half the speed of light on FR-4. Electrons everywhere along the line respond to the arriving field almost at once; none of them needs to travel the length of the wire.

Two voltmeters across the same two points read different values. How?

If changing magnetic flux threads the loop formed by the meter leads, \(\oint\mathbf{E}\cdot d\mathbf{l}\neq0\) and voltage depends on path. Each meter's leads define a different path and enclose different flux. This is real: it is how probe ground leads pick up switching noise, and why you use a short ground spring.

A 12 V, 100 W load moves to a 48 V bus with the same wiring. What happens to wiring loss?

Current falls from 8.3 A to 2.1 A, a factor of four. Loss \(I^2R\) falls by a factor of sixteen.

Why is average power zero in a pure capacitor even though current flows?

Current leads voltage by 90°, so \(\cos\varphi = 0\). The capacitor absorbs energy for a quarter cycle while charging and returns it the next quarter cycle. The instantaneous power oscillates at \(2\omega\) and averages to zero.

Where does KCL fail on a real board, and how do you fix the model?

At any node with significant capacitance to its surroundings, current flows into that capacitance, so the visible branch currents do not sum to zero. Add the parasitic capacitance to the schematic as an explicit element and KCL holds again.