Sub topic 2
Voltage as energy per unit charge
This chapter assumes you know Ohm's law, Kirchhoff's voltage and current laws, basic algebra, and the idea of a derivative as a rate of change. It defines voltage as energy per unit charge. The next chapter, on Q = CV, uses that definition.
Why define voltage this way
A capacitor stores energy by separating charge. To calculate that energy, you need to know how much energy each coulomb gains or loses when it moves. Voltage gives you that number.
The definition is:
In differential form, v = dw/dq. Here w is energy in joules and q is charge in coulombs. If a small charge dq moves through a voltage v, the energy exchanged is dw = v dq. This one relation produces the capacitor energy formula later in the tutorial, so keep it in mind.
Voltage is always between two points
Voltage is a difference, not an absolute quantity. When someone says "the node is at 5 V", they mean 5 V relative to a chosen reference node, usually called ground.
- The voltage v_AB is the voltage at A relative to B.
- Swapping the order flips the sign: vBA = −vAB.
- Choosing a different reference shifts every node voltage by the same amount, but it does not change any voltage difference.
This matters for capacitors. A capacitor's voltage is the difference between its two plates. Only that difference is tied to the stored charge.
Sign and direction
Charge gains energy when you move it against the electric force, and it loses energy when it moves with the force. Voltage tells you which case applies.
- If a positive charge moves from the lower-potential terminal to the higher-potential terminal, it gains energy. The source or the outside agent supplies that energy.
- If a positive charge moves from the higher-potential terminal to the lower-potential terminal, it gives up energy. A component absorbs it.
The passive sign convention ties this to circuit analysis. When the current reference arrow enters the terminal marked + on a component, the product p = vi is the power the component absorbs. A positive p means the component absorbs energy. A negative p means it delivers energy to the rest of the circuit.
Power links voltage, current, and energy
Current is charge per unit time, i = dq/dt. Voltage is energy per unit charge, v = dw/dq. Multiply them and the charge cancels:
p = dw/dt = (dw/dq)(dq/dt) = v i
Power is the rate of energy transfer. Integrating power over time gives energy:
w = ∫ p dt = ∫ v i dt
This is the route used in the "Energy stored in the electric field" chapter. For a capacitor, i is replaced by C dv/dt, and the integral becomes ½CV².
| Quantity | Symbol | Unit | Relation |
|---|---|---|---|
| Charge | q | coulomb (C) | i = dq/dt |
| Current | i | ampere (A) | 1 A = 1 C/s |
| Voltage | v | volt (V) | v = dw/dq, 1 V = 1 J/C |
| Energy | w | joule (J) | dw = v dq |
| Power | p | watt (W) | p = v i, 1 W = 1 J/s |
Worked example: energy to move a charge
A 12 V source moves 0.5 C of charge from its negative terminal to its positive terminal at a constant 12 V. How much energy does the source supply?
Because the voltage is constant, W = QV = 0.5 C × 12 V = 6 J.
The same calculation in code:
V = 12.0 # volts
Q = 0.5 # coulombs
W = Q * V # joules, valid because V is constant
print(f"W = {W:.1f} J")The output is W = 6.0 J.
When voltage is not constant
The shortcut W = QV only works when the voltage stays the same while the charge moves. A capacitor breaks this assumption. Its voltage rises as charge accumulates, so each new coulomb is pushed against a higher voltage than the last one.
In that case you must sum small pieces: W = ∫ v dq. Take a capacitor charged from 0 to Q_final. Each small piece of charge dq is moved at the voltage the capacitor has at that moment. The next chapter shows that v = q/C, which leads to W = ½ Q²/C. For now, a numeric version of the idea shows why the shortcut fails.
# Move charge onto a plate in small steps while the voltage rises
# linearly from 0 V to 10 V as charge goes from 0 C to 1 C.
# (This linear rise is what a capacitor does; the next chapter explains why.)
V_final = 10.0
Q_final = 1.0
steps = 100000
dq = Q_final / steps
W = 0.0
for k in range(steps):
q = (k + 0.5) * dq # charge already moved (midpoint of the step)
v = V_final * q / Q_final # voltage at that moment
W += v * dq # dw = v dq
print(f"Integrated W = {W:.3f} J")
print(f"Shortcut Q*V = {Q_final * V_final:.3f} J")The integrated energy is 5.000 J, and the shortcut gives 10.000 J. The shortcut overestimates by a factor of 2 because it charges every coulomb at the final voltage. The true answer is the average voltage (5 V) times the charge (1 C).
Voltage, KVL, and energy conservation
Kirchhoff's voltage law (KVL) says the voltages around any closed loop sum to zero. The energy view explains why. A charge that goes around a closed loop returns to its starting point. If the loop gave it a net energy gain or loss, you could extract free energy by circling forever. So the energy gained in sources equals the energy lost in components, and the voltage rises and drops cancel.
Applied to a series loop with a source and a capacitor, KVL says the source voltage equals the capacitor voltage plus any resistor voltage. That is the equation behind RC charging in a later chapter.
Common errors
- Treating voltage as a property of one point. A single node has no voltage until you name a reference.
- Mixing up sign conventions. If the current arrow enters the + terminal, p = vi is absorbed power. If it enters the − terminal, p = vi is delivered power.
- Using W = QV with changing voltage. This gives twice the real energy for a capacitor charging from zero.
- Confusing voltage with energy. Voltage is energy per charge. A small 9 V battery moves very little charge compared with a car battery at 12 V, so the car battery stores far more energy even at a similar voltage.
Quick check with units
A reliable habit is to check that units agree before trusting a result.
- V × C = (J/C) × C = J. Energy.
- V × A = (J/C) × (C/s) = J/s = W. Power.
- A × s = C. Charge.
If a formula for energy does not reduce to joules, something is wrong.
Exercise
A 3 µF capacitor is charged so its voltage rises linearly from 0 V to 6 V while 18 µC of charge moves onto it. (a) What energy would the shortcut W = QV give? (b) What energy is actually stored, using W = ∫ v dq with a linear voltage? (c) By what factor does the shortcut overestimate?
Show answer
(a) W = QV = 18 µC × 6 V = 108 µJ. (b) The voltage rises linearly, so the average voltage is 3 V. W = 18 µC × 3 V = 54 µJ. (c) The shortcut gives 108 µJ and the true value is 54 µJ, so it overestimates by a factor of 2.
Exercise
A component has 4 V across it, measured with the + marking on the terminal where a 0.25 A current enters. (a) Does it absorb or deliver power, and how much? (b) How much energy does it exchange in 10 s if the values stay constant?
Show answer
(a) The current enters the + terminal, so the passive sign convention applies. p = vi = 4 V × 0.25 A = 1 W, which is positive, so the component absorbs 1 W. (b) Energy = p × t = 1 W × 10 s = 10 J absorbed.