Sub topic 7
Average value: why a full cycle averages to zero
This chapter assumes you know Ohm's law, basic trigonometry, and that an integral gives the area under a curve. You have already seen the form v(t) = Vm sin(ωt + φ). Here we ask a simple question: what is the average of that waveform?
Definition of the average
The average value of a periodic signal is its mean over one full period T:
Vavg = (1/T) ∫ v(t) dt, integrated from t0 to t0 + T
The integral is the signed area under the curve. Area above the axis counts as positive. Area below counts as negative. Dividing by T turns that net area into a height.
Why a full cycle averages to zero
Take v(t) = Vm sin(ωt) and integrate over one period, with ωT = 2π:
- The integral of sin(ωt) is −cos(ωt)/ω.
- Evaluate from 0 to T: −(1/ω)[cos(ωT) − cos(0)].
- Since ωT = 2π, cos(ωT) = 1 and cos(0) = 1, so the bracket is 0.
So Vavg = 0. The positive half-cycle and the negative half-cycle have equal areas and cancel. The same result holds for any phase φ and any starting time t0, because the integral covers a whole number of periods of a sinusoid.
Checking it numerically
The code samples exactly one period of a 170 V, 60 Hz sinusoid with a 30° phase. It then computes the mean.
import numpy as np
Vm = 170.0 # peak voltage, volts
f = 60.0 # frequency, hertz
phi = np.deg2rad(30) # phase angle, radians
# Sample exactly one period
t = np.linspace(0, 1 / f, 10000, endpoint=False)
v = Vm * np.sin(2 * np.pi * f * t + phi)
v_avg = np.mean(v) # close to 0 over a full cycle
v_rms = np.sqrt(np.mean(v ** 2)) # numerical RMS
print(f"average = {v_avg:.6f} V")
print(f"numerical RMS = {v_rms:.3f} V")
print(f"Vm/sqrt(2) = {Vm / np.sqrt(2):.3f} V")The average prints as a value very close to zero. The RMS line previews the next chapters: the signal has a clearly nonzero effective size even though its mean is zero.
Common errors
- Averaging over a partial cycle. Over half a period, starting at a zero crossing, the average is not zero. For Vm sin(ωt) over 0 to T/2 it is 2Vm/π ≈ 0.637 Vm. This is the half-cycle average, and it is what a rectifier output approaches.
- Sampling a non-integer number of periods. In the code,
endpoint=Falsekeeps the samples to exactly one period. Including the endpoint, or using 1.3 periods, leaves a small nonzero mean. - Concluding that zero average means zero effect. A 120 V outlet has zero average voltage but still heats a resistor. Heating depends on v², which is never negative.
- Ignoring DC offset. If v(t) = V0 + Vm sin(ωt + φ), the average over a full period is V0. The sine part still contributes nothing.
Why this matters
A zero average makes the mean useless as a measure of how much a sinusoid delivers. We need a quantity that does not cancel between positive and negative halves. Squaring the signal before averaging removes the sign, and that is the idea behind RMS.
Exercise
A signal is v(t) = 5 + 10 sin(ωt + 40°) volts. What is its average over one full period, and what is its average over the half period starting at a zero crossing of the sine part if the sine part alone is considered?
Show answer
The full-period average is 5 V, because the sine term averages to zero and only the 5 V offset remains. For the sine part alone over a half period from a zero crossing, the average is 2Vm/π = 20/π ≈ 6.37 V in magnitude.