Sub topic 8
Why We Need RMS and How It Is Defined
This chapter assumes you know Ohm's law, power as P = V·I, and the sinusoid v(t) = Vm sin(ωt + φ). You need introductory calculus only to read the integral in the definition.
The problem: peak and average both mislead
Two simple numbers describe a sinusoid, and neither tells you how much work it does.
- The peak value Vm is the largest instant of the wave. The voltage spends very little time there.
- The average over a full cycle is zero, because the positive half cancels the negative half.
A zero average does not mean zero effect. A 60 Hz current through a heater element warms it just as much in the negative half-cycle as in the positive one. Heating depends on the square of the current, and a square is never negative.
The idea: match the heating of a DC source
We want one number for a time-varying signal that can be used like a DC value. The test is power in a resistor. A DC voltage V across a resistor R dissipates P = V²/R. An AC voltage v(t) dissipates an instantaneous power v(t)²/R, which changes from moment to moment.
The effective value of v(t) is the DC voltage that would deliver the same average power to the same resistor. To find it, average the instantaneous power over one period T and set it equal to V²/R.
- Instantaneous power: p(t) = v(t)²/R
- Average power: P = (1/T) ∫ v(t)²/R dt, taken over one period
- Set P = Veff²/R. The resistance R cancels.
R cancels, so the effective value does not depend on the resistor you chose. It is a property of the waveform alone.
The definition
Solving step 3 for the DC value gives the definition of the RMS value (root mean square):
The name lists the operations in the order you perform them, reading from the inside out:
- Square the signal, so negative values become positive.
- Take the mean (average) of the squares over one period.
- Take the root, the square root, to return to volts.
The same definition applies to current: Irms = √((1/T) ∫₀ᵀ i(t)² dt).
Checking the definition on a DC signal
For a constant v(t) = V, the integrand is V², and the mean of a constant is that constant. The root of V² is V. RMS reproduces the DC value, which is what an effective value must do.
The same steps on sampled data
When you have sampled data instead of a formula, the integral becomes a mean over samples. The steps are the same: square, average, take the root.
import numpy as np
# Samples of a signal that alternates between +3 V and -3 V
v = np.array([3.0, 3.0, -3.0, -3.0, 3.0, 3.0, -3.0, -3.0])
mean_value = np.mean(v) # 0.0, the plain average hides the signal
rms_value = np.sqrt(np.mean(v ** 2)) # 3.0
print(f"mean = {mean_value:.2f} V")
print(f"RMS = {rms_value:.2f} V")The mean is 0 V, but the RMS is 3 V. A 3 V DC source would heat a resistor equally, so 3 V is the useful number.
Common errors
- Averaging over a partial cycle. The definition uses one full period, or a whole number of periods. A partial cycle gives a wrong result for most waveforms.
- Taking the square root too early. The root of the mean of squares is not the mean of the absolute values. Those two numbers differ for most waveforms.
- Assuming RMS means "peak divided by √2". That holds only for a sine wave. The next chapter derives it. The definition above holds for any waveform.
Exercise
A voltage alternates between +10 V and -10 V in equal time, spending half of each period at each level. What is its average over one period, and what is its RMS value?
Show answer
The average is (10 + (-10))/2 = 0 V. The squared signal is 100 V² at all times, so the mean of the squares is 100 V², and the RMS value is √100 = 10 V.