Sub topic 10
RMS and power in a resistor
This chapter assumes you know Ohm's law, P = V·I, the identity for sin² in terms of cos 2θ, and the idea of an average as an integral over one period. Earlier chapters defined RMS and derived Vrms = Vm/√2. Here you will see why RMS is the right number for power, using the resistor as the test case.
The question RMS answers
A resistor turns electrical energy into heat. The heat depends on the power, not on the sign of the voltage. A 120 V AC source and a 120 V DC source both push current through a heater, but the AC voltage keeps changing. What DC voltage would heat the resistor equally?
The answer is the RMS value. It is defined as the DC value that delivers the same average power to a resistor. This chapter shows that definition and the formula Vm/√2 are the same statement.
Instantaneous power
For a resistor R, Ohm's law holds at every instant. If v(t) = Vm sin(ωt + φ), then:
- i(t) = v(t)/R = Im sin(ωt + φ), where Im = Vm/R.
- p(t) = v(t)·i(t) = v(t)²/R = i(t)²R.
Because p(t) is a square, it is never negative. The resistor absorbs energy at every instant, whichever way the current flows. This is why a heater works on AC.
Substitute the sine and use sin²θ = (1 − cos 2θ)/2:
p(t) = (Vm²/R) sin²(ωt + φ) = (Vm²/2R)·[1 − cos(2ωt + 2φ)]
The expression has two parts:
- A constant term, Vm²/(2R).
- An oscillating term, −(Vm²/2R) cos(2ωt + 2φ), which swings at twice the source frequency.
Average power
Average the power over one full period T. The cosine term has equal positive and negative lobes, so its average is zero, just as the average of any full-cycle sinusoid is zero. Only the constant term remains:
Pavg = Vm²/(2R)
The phase φ drops out. Shifting the waveform in time does not change its average heating.
Now write the same average power as a DC power. A DC voltage Vdc across R dissipates Vdc²/R. Setting the two equal:
Vdc²/R = Vm²/(2R)
so Vdc = Vm/√2. That DC value is Vrms. The derivation never needed the calculus of the RMS integral directly, because the sin² identity does the averaging.
The same result from the RMS definition
Vrms is defined as the square root of the mean of the squared signal. Since p(t) = v(t)²/R, the average power is
Pavg = (1/R)·mean(v²) = Vrms²/R
This is the logic of the name:
- Square the signal. This gives power, up to the factor 1/R.
- Take the mean over a period. This gives average power.
- Take the square root. This converts back to volts.
So RMS is not an arbitrary averaging trick. It is the voltage scale on which "same heating" means "same number".
The power formulas in RMS terms
With Vrms and Irms, every DC power formula keeps its form for a resistor:
| Quantity | Formula | Notes |
|---|---|---|
| Average power | Pavg = Vrms · Irms | Resistor only (see the warning below) |
| Average power | Pavg = Irms² · R | |
| Average power | Pavg = Vrms² / R | |
| Peak (maximum) power | Pmax = Vm²/R = 2·Pavg | Occurs when the sine is at ±Vm |
| Minimum power | 0 | Occurs when v = 0 |
Pmax is exactly twice Pavg. The power waveform oscillates between 0 and 2·Pavg and is centered on Pavg.
Worked example
A 100 Ω heating element is connected to a 120 V RMS sinusoidal source.
- Peak voltage: Vm = 120·√2 ≈ 169.7 V.
- RMS current: Irms = 120/100 = 1.2 A. Peak current: Im = 169.7/100 ≈ 1.697 A.
- Average power: Pavg = 120²/100 = 144 W. As a check, Irms²R = 1.2²·100 = 144 W, and Vm²/(2R) = 28 800/200 = 144 W.
- Peak instantaneous power: Pmax = 169.7²/100 ≈ 288 W, which is twice 144 W.
The element behaves, thermally, like a 120 V DC supply. The element is rated by average power, but its instantaneous power briefly reaches 288 W, 120 times per second on a 60 Hz supply (twice per cycle).
Checking it numerically
The code below builds the waveform for this example and averages the instantaneous power over exactly one period. It also integrates p(t) to get energy per cycle and compares it with a DC source delivering the same energy.
import numpy as np
R = 100.0 # resistance, ohms
Vrms = 120.0 # RMS voltage, volts
Vm = Vrms * np.sqrt(2) # peak voltage
f = 60.0 # frequency, hertz
phi = np.deg2rad(40) # arbitrary phase: it should not matter
T = 1 / f
# Sample exactly one period (endpoint=False avoids counting the first point twice)
N = 20000
t = np.linspace(0, T, N, endpoint=False)
v = Vm * np.sin(2 * np.pi * f * t + phi)
i = v / R
p = v * i # instantaneous power
p_avg = np.mean(p)
energy_cycle = p_avg * T # joules dissipated in one cycle
print(f"peak power = {p.max():.2f} W")
print(f"minimum power = {p.min():.4f} W")
print(f"average power = {p_avg:.3f} W")
print(f"Vrms^2 / R = {Vrms**2 / R:.3f} W")
print(f"energy per cycle = {energy_cycle * 1000:.3f} mJ")
print(f"DC energy, 120 V = {Vrms**2 / R * T * 1000:.3f} mJ")Running it gives a peak close to 288 W, a minimum near 0 W, and an average of 144.000 W, in agreement with Vrms²/R. Change phi to any other value and the average stays at 144 W. Change Vrms to 240 and the average becomes 576 W: doubling the voltage quadruples the power.
Common errors
Using the peak value in P = V²/R
Writing P = Vm²/R gives Pmax, not the average. It overstates average power by a factor of 2. Use either Vm²/(2R) or Vrms²/R.
Averaging in the wrong order
The average of v is zero, so Pavg is not (average v)·(average i). The RMS value is the square root of the average of the square, not the average of the absolute value. For a sine, the mean absolute value is 2Vm/π ≈ 0.637·Vm, while Vrms ≈ 0.707·Vm. These are different, and the difference matters when you read a meter (a later chapter).
Scaling RMS values linearly across a sum
If two sources add in series, their RMS values add only when they are in phase and have the same frequency. In general, the powers (or the mean squares) combine, not the RMS values.
Assuming Vrms = Vm/√2 for every waveform
The factor 1/√2 comes from the mean of sin², which is 1/2. A square wave or a triangle wave has a different mean-square, and so a different factor. The power argument still works, but the numbers change.
Forgetting that p(t) runs at twice the frequency
The power in a resistor from a 50 Hz source pulses at 100 Hz. This is why mains-powered incandescent lamps flicker slightly at twice the line frequency, and why the filter capacitors in rectifiers see a ripple at 2f.
Edge cases
- DC offset. If v(t) = Vdc + Vm sin(ωt), then the mean square is Vdc² + Vm²/2. The DC and AC parts contribute separate powers, so Vrms = √(Vdc² + Vm²/2). The cross term averages to zero.
- Non-integer number of periods. If you average the power over a time that is not a whole number of periods, the cosine term does not cancel exactly, and the result is slightly off. In the code above, the exact period and
endpoint=Falseavoid this. A real meter averages over many cycles, so the error shrinks. - Temperature-dependent resistance. The derivation assumes R is constant. A real filament's resistance changes with temperature, but because it changes slowly compared with the 2f ripple, the average-power result is still a good approximation.
Summary
For a resistor, instantaneous power is p(t) = Vm² sin²(ωt + φ)/R. It never goes negative and oscillates at 2f around an average of Vm²/(2R). Setting this equal to Vrms²/R gives Vrms = Vm/√2. This is why RMS is the "heating-equivalent" DC value.
Exercise
A heater is rated 1500 W on a 230 V RMS supply. Find its resistance, its RMS current, the peak voltage, and the peak instantaneous power. Treat it as an ideal resistor.
Show answer
R = Vrms²/Pavg = 230²/1500 = 52 900/1500 ≈ 35.3 Ω. Irms = Pavg/Vrms = 1500/230 ≈ 6.52 A. Vm = 230·√2 ≈ 325.3 V. Peak power = 2·Pavg = 3000 W (check: Vm²/R = 325.3²/35.27 ≈ 3000 W).
Exercise
A sinusoidal source with a 170 V peak value drives a 50 Ω resistor. A student computes the average power as 170²/50 = 578 W. What is wrong, and what is the correct average power?
Show answer
The student used the peak voltage in P = V²/R, which gives the peak instantaneous power, not the average. The average power is Vm²/(2R) = 170²/(2·50) = 289 W. Equivalently, Vrms = 170/√2 ≈ 120.2 V, and Vrms²/R = 14 450/50 = 289 W.
Exercise
A voltage v(t) = 5 + 10 sin(ωt) volts is applied to a 10 Ω resistor. What is the average power?
Show answer
The mean square is 5² + 10²/2 = 25 + 50 = 75 V², so Vrms = √75 ≈ 8.66 V. Pavg = 75/10 = 7.5 W. This is the DC part (25/10 = 2.5 W) plus the AC part (50/10 = 5 W); the cross term averages to zero.