Sub topic 9
From power to energy
This chapter assumes you know Ohm's law, KCL and KVL, the basic elements (resistors, ideal sources, capacitors, inductors), and how to integrate simple functions. It also assumes you have met the passive sign convention and the rule that p = v·i is positive when an element absorbs power.
Why energy needs its own treatment
Power tells you how fast an element exchanges energy with the rest of the circuit at one instant. Many practical questions ask about a total amount instead. How much energy does a battery supply during a 10-second load pulse? How much heat does a resistor produce in an hour? How much energy does a capacitor release when it discharges?
Energy answers these questions. It is the accumulation of power over time, so it is found with an integral.
Definition: energy as the integral of power
Power is the rate of change of energy:
p(t) = dw/dt
Here w is energy in joules (J) and p is power in watts (W). One watt is one joule per second. Integrating both sides gives the energy exchanged between times t₁ and t₂:
w(t₁, t₂) = ∫ p(t) dt, from t₁ to t₂
Because p = v·i, this is also:
w(t₁, t₂) = ∫ v(t)·i(t) dt, from t₁ to t₂
The sign convention carries through. If v and i follow the passive sign convention for the element, then:
- w > 0 means the element absorbed net energy over the interval.
- w < 0 means the element delivered net energy over the interval.
The sign of w describes the net result over the whole interval. Power can change sign inside the interval, so an element may absorb for part of the time and deliver for the rest.
The simplest case: constant power
If p is constant, the integral is a product:
w = p · Δt
A 36 W resistor load running for 10 s absorbs 360 J. A 36 W source delivering for the same time supplies 360 J, which is a delivered energy, so with the passive convention it appears as w = −360 J.
Practical units
The joule is small for everyday quantities, so you will meet other units.
| Unit | Definition | In joules |
|---|---|---|
| joule (J) | 1 W for 1 s | 1 J |
| watt-hour (Wh) | 1 W for 3600 s | 3600 J |
| kilowatt-hour (kWh) | 1000 W for 3600 s | 3.6 × 10⁶ J |
Utilities bill in kWh. A 2 kW heater that runs for 3 hours uses 2 kW × 3 h = 6 kWh, which equals 21.6 MJ.
Energy when power varies with time
When v or i changes with time, you integrate the product. Take a resistor R = 5 Ω carrying i(t) = 2t amperes for 0 ≤ t ≤ 3 s. The voltage under the passive convention is v = R·i = 10t volts, so:
p(t) = v·i = 20t² W
w = ∫ 20t² dt from 0 to 3 = (20/3)·t³ evaluated from 0 to 3 = (20/3)(27) = 180 J
You can check this numerically with a short script.
# Energy absorbed by a 5 ohm resistor carrying i(t) = 2t for 0 <= t <= 3 s.
# Passive sign convention: v = R * i, so p = 20 * t^2.
R = 5.0
t_end = 3.0
n = 300000
dt = t_end / n
w = 0.0
for k in range(n):
t = (k + 0.5) * dt # midpoint of each slice
i = 2.0 * t
v = R * i
p = v * i
w += p * dt
print(f"w = {w:.3f} J") # w = 180.000 J
print("exact = 180 J")The midpoint sum matches the analytic result. Numerical integration is useful when you only have sampled measurements of v and i, which is the usual case with an oscilloscope or data logger.
Energy is the area under the power curve
Graphically, the energy over an interval is the signed area between the p(t) curve and the time axis. Area above the axis counts as absorbed energy. Area below the axis counts as delivered energy.
For a piecewise-constant power, you can skip calculus and add rectangles. Suppose a device has these power levels, all measured with the passive convention:
| Interval | p (W) | Duration (s) | Energy (J) |
|---|---|---|---|
| 0 to 2 s | 10 | 2 | 20 |
| 2 to 5 s | −4 | 3 | −12 |
| 5 to 6 s | 6 | 1 | 6 |
The net energy is 20 − 12 + 6 = 14 J. The device absorbed 26 J in total and delivered 12 J, so the net absorbed energy is 14 J. A single number such as 14 J hides this back-and-forth, so report the pieces when the distinction matters.
Energy from the energy-power relation in reverse
The relation also runs backward. If you know the energy w(t) as a function of time, then p(t) = dw/dt. This matters for storage elements. For a capacitor you can write the stored energy first as ½Cv² and then differentiate to get the power. The next chapters use this idea, but the key point here is that energy and power are linked in both directions by differentiation and integration.
Net energy versus stored energy
An important distinction separates two kinds of element.
- A resistor can only absorb. Its energy w(t₁, t₂) is never negative, and the energy turns into heat. The process cannot be reversed by the circuit, so the energy is lost to the circuit.
- An ideal capacitor or inductor can both absorb and deliver. Over a full cycle where it returns to its starting state, the net energy is zero, because everything absorbed is later given back.
- A source can deliver or absorb depending on the direction of current through it. A battery that is being charged absorbs energy.
For an energy-storing element, the energy absorbed from time 0 to t equals the change in stored energy, provided the stored energy was zero or is accounted for at the start. So w(0, t) = W(t) − W(0), where W is the stored energy. This is why the stored-energy formulas are the integral of power, written once and for all.
Worked example: a battery during a charge cycle
A battery has terminal voltage 12 V. Current enters its positive terminal at 2 A for 30 minutes (charging), then leaves its positive terminal at 1 A for 40 minutes (discharging into a load). Assume the terminal voltage stays at 12 V.
With the passive convention, current entering the + terminal is positive.
- Charging: p = 12 × 2 = 24 W, absorbing. The time is 1800 s, so w = 24 × 1800 = 43 200 J.
- Discharging: the current entering the + terminal is −1 A, so p = 12 × (−1) = −12 W, delivering. The time is 2400 s, so w = −12 × 2400 = −28 800 J.
- Net: 43 200 − 28 800 = 14 400 J absorbed.
In watt-hours, the battery took in 12 Wh, gave out 8 Wh, and kept a net 4 Wh. The ratio 8/12 is about 0.67, so this ideal-voltage model gives a delivered-to-absorbed energy ratio of 67%. In a real battery, the missing energy is mostly heat in internal resistance. An ideal 12 V source model cannot show that loss, and the net absorbed energy here is stored chemically.
# Battery with constant 12 V terminal voltage.
# Each segment: (current into + terminal in A, duration in s)
segments = [(2.0, 1800.0), (-1.0, 2400.0)]
V = 12.0
net = 0.0
for i, dt in segments:
p = V * i
w = p * dt
net += w
kind = "absorbed" if w > 0 else "delivered"
print(f"p = {p:6.1f} W, w = {w:10.1f} J ({kind})")
print(f"net = {net:.1f} J = {net/3600:.2f} Wh")
# p = 24.0 W, w = 43200.0 J (absorbed)
# p = -12.0 W, w = -28800.0 J (delivered)
# net = 14400.0 J = 4.00 WhEdge cases and pitfalls
- Mixing up power and energy units. A kilowatt is a rate. A kilowatt-hour is an amount. A "5 kW battery" and a "5 kWh battery" are different specifications.
- Forgetting the sign of the interval order. The integral runs from earlier to later time. Reversing the limits flips the sign.
- Averaging signs away. Net energy of zero does not mean nothing happened. A capacitor in a cycle can have zero net energy while exchanging large amounts internally.
- Using i²R on a source. The formulas i²R and v²/R apply to resistors only. For a source or storage element, use v·i with the correct sign.
- Inconsistent convention at the element. If you switch convention for one element, the sign of w flips with it. Keep the convention fixed across the whole calculation.
- Discontinuities in p(t). Switched circuits have power that jumps. Split the integral at each switching instant and sum the pieces.
Summary of the relationships
| Quantity | Symbol | Relation | Unit |
|---|---|---|---|
| Power | p | p = v·i = dw/dt | W |
| Energy over an interval | w | ∫ p dt | J |
| Constant power | w | p·Δt | J |
| Net energy sign | w | w > 0 absorbed, w < 0 delivered | J |
Exercise
A component has v = 6 V and current entering its + terminal of i(t) = 3 − t amperes, for 0 ≤ t ≤ 5 s. (a) Find p(t). (b) Find the net energy over the 5 s. (c) Does the component absorb or deliver net energy?
Show answer
(a) With the passive convention, p = v·i = 6(3 − t) = 18 − 6t W. (b) w = ∫ (18 − 6t) dt from 0 to 5 = [18t − 3t²] from 0 to 5 = 90 − 75 = 15 J. (c) w is positive, so the component absorbs 15 J net. It absorbs while t < 3 s (p > 0, 27 J absorbed over 0 to 3 s) and delivers for 3 s < t ≤ 5 s (12 J delivered), giving 27 − 12 = 15 J.
Exercise
A 100 W lamp is on for 4 hours each day. How much energy does it use in 30 days, in kWh and in joules?
Show answer
Daily energy = 0.1 kW × 4 h = 0.4 kWh. Over 30 days, 0.4 × 30 = 12 kWh. In joules, 12 × 3.6 × 10⁶ = 4.32 × 10⁷ J.