Sub topic 7
Average value: why a full cycle averages to zero
This chapter assumes you can integrate a sine function and read the form v(t) = Vm sin(ωt + φ) from the earlier chapters. It defines the average value of a periodic signal, shows why a sinusoid averages to zero over a full cycle, and explains where a nonzero average does appear. The next chapter builds RMS on the same averaging idea.
What "average" means for a time-varying signal
The average of a signal over an interval is the net area under its curve divided by the length of the interval. For a signal v(t) over the interval from t₁ to t₂:
V_avg = (1 / (t₂ − t₁)) ∫ v(t) dt, with the integral taken from t₁ to t₂
Area above the time axis counts as positive. Area below counts as negative. The average is therefore the constant height of a rectangle that has the same net area as the waveform over the same interval.
For a periodic signal with period T, the natural interval is exactly one period:
V_avg = (1/T) ∫ v(t) dt, integrated from 0 to T
The average over one period is the same for any starting point, so you can begin the interval wherever is convenient.
Why a full sine cycle averages to zero
Start with v(t) = Vm sin(ωt + φ) and ω = 2π/T. Integrate over one period:
- Write the average: V_avg = (1/T) ∫ Vm sin(ωt + φ) dt, from 0 to T.
- Integrate: the antiderivative of sin(ωt + φ) is −cos(ωt + φ)/ω.
- Evaluate the limits: V_avg = (Vm / (ωT)) · [cos(φ) − cos(ωT + φ)].
- Use ωT = 2π: cos(2π + φ) = cos(φ), so the bracket is cos(φ) − cos(φ) = 0.
So V_avg = 0 for every amplitude, every frequency, and every phase angle.
The reason is symmetry. A sine wave's positive half-cycle and negative half-cycle have equal areas with opposite signs. Shifting the phase only moves where the cycle starts. It cannot change the total area in one complete period.
The same result holds for a current i(t) = Im sin(ωt + φ). It also holds for a cosine, because a cosine is a sine with a 90° phase shift.
The nonzero averages you will meet
A zero average does not mean the signal does nothing. It means the average is the wrong tool for describing its size or its effect. Three situations produce a nonzero average.
Averaging over a half cycle
Over the positive half-cycle, from t = 0 to T/2 with φ = 0:
V_avg,half = (2/T) ∫ Vm sin(ωt) dt, from 0 to T/2
The integral of sin(ωt) over that range is 2/ω. Therefore:
V_avg,half = (2/T)(Vm)(2/ω) = 4Vm / (ωT) = 4Vm / 2π = 2Vm/π ≈ 0.637 Vm
For the 170 V peak mains waveform used in this tutorial, the half-cycle average is about 108.2 V.
Rectified signals
A full-wave rectifier flips the negative half-cycles upward. The result is |v(t)|, which repeats every half period, and its average over a full period equals the half-cycle average: 2Vm/π ≈ 0.637 Vm.
A half-wave rectifier blocks the negative half-cycles instead. The positive half contributes area 2Vm/ω, but that area is divided by the whole period T:
V_avg,half-wave = (1/T)(2Vm/ω) = Vm/π ≈ 0.318 Vm
| Waveform | Average over one full period | Column | Column |
|---|---|---|---|
| Sine wave, v = Vm sin(ωt + φ) | 0 | ||
| Full-wave rectified sine, \ | v\ | 2Vm/π ≈ 0.637 Vm | |
| Half-wave rectified sine | Vm/π ≈ 0.318 Vm | ||
| Sine plus DC offset, Vdc + Vm sin(ωt + φ) | Vdc |
A DC offset
If a signal is v(t) = Vdc + Vm sin(ωt + φ), the average of the sum is the sum of the averages. The sine part contributes zero, so the full-period average is Vdc. The average of a periodic signal is its DC component, and the remaining part of the signal is its AC component.
This is why a DC-blocking capacitor passes a sinusoid but removes the offset. It removes the average.
The interval must be a whole number of periods
The zero result depends on integrating over a complete period, or any whole number of periods. If the averaging window ends partway through a cycle, the leftover partial cycle leaves a net area.
Take an averaging window of 1.5 periods starting at φ = 0. The first full period contributes zero. The extra half-cycle contributes 2Vm/ω of area. Dividing by the window length 1.5T gives:
V_avg = 2Vm / (ω · 1.5T) = 2Vm / (3π) ≈ 0.212 Vm
The longer the window, the smaller this leftover becomes, because the same partial-cycle area is divided by a larger length. This is how a slow averaging meter settles toward zero on a sine wave. The leftover never exceeds 2Vm/(ωTw) in size, where Tw is the window length.
Checking the results numerically
The script below averages a 170 V, 60 Hz sinusoid over different windows. It uses endpoint=False so that a full-period grid does not count the first sample twice.
import numpy as np
Vm = 170.0 # peak voltage, volts
f = 60.0 # frequency, hertz
T = 1 / f
def avg_over(duration, n=20000, transform=lambda v: v):
"""Mean of transform(v) over [0, duration) with v = Vm*sin(2*pi*f*t)."""
t = np.linspace(0, duration, n, endpoint=False)
v = Vm * np.sin(2 * np.pi * f * t)
return np.mean(transform(v))
print(f"full period: {avg_over(T):9.4f} V (about 0)")
print(f"1.5 periods: {avg_over(1.5 * T):9.4f} V (about 0.212*Vm = 36.08)")
print(f"half cycle: {avg_over(T / 2):9.4f} V (about 2*Vm/pi = 108.23)")
print(f"full-wave rectified:{avg_over(T, transform=np.abs):9.4f} V (about 108.23)")
print(f"half-wave rectified:{avg_over(T, transform=lambda v: np.maximum(v, 0)):9.4f} V (about Vm/pi = 54.11)")
# A DC offset shifts the full-period average by exactly that amount
t = np.linspace(0, T, 20000, endpoint=False)
v_offset = 5.0 + Vm * np.sin(2 * np.pi * f * t + np.deg2rad(30))
print(f"with +5 V offset: {np.mean(v_offset):9.4f} V (about 5)")Each printed value matches the closed-form result in its comment, up to small numerical error. The last line uses a 30° phase angle to confirm that phase does not change the full-period average.
Why the average is not enough
A 120 V mains outlet and a 12 V battery can both power a heater, and the mains sine wave has an average of zero. The heating effect is clearly not zero. Power in a resistor is p = v²/R, and v² is never negative. Squaring turns the negative half-cycles into positive contributions, so the average of v² is positive even though the average of v is zero.
This is the motivation for the next chapter, which defines RMS as the root of the mean of the square. The average of v describes the DC component. It says nothing about the energy delivered by the AC component.
Common errors
- Reporting the half-cycle average as the average. The value 0.637 Vm applies to a half cycle or to a rectified signal. It is not the average of a sine wave over a full period.
- Averaging over a partial cycle and calling it the DC value. If the window is not a whole number of periods, the result depends on the start phase and window length. Check the window before trusting a computed mean.
- Confusing average with RMS. The average of a sine is 0, and its RMS is Vm/√2 ≈ 0.707 Vm. The factor 0.637 Vm belongs to a different quantity.
- Forgetting the offset. On an oscilloscope, a trace centered above the zero line has a nonzero average. Separate the DC component from the AC component before comparing amplitudes.
- Assuming phase changes the average. Shifting φ moves the waveform in time. Over a whole period the average stays the same.
Exercise
A current is i(t) = 4 + 6 sin(ωt + 40°) amperes. (a) What is its average value over one full period? (b) What is the peak value of the AC component? (c) What is the average over one full period if the 40° phase angle is changed to 120°?
Show answer
(a) The sine term averages to zero over one full period, so the average is the DC term: 4 A. (b) The AC component has peak value 6 A. (c) Phase does not change the full-period average, so it is still 4 A.
Exercise
A full-wave rectifier is fed a sine wave with a peak of 20 V. What is the average value of the rectified output over one period? What is the average of the original, unrectified sine wave over one period?
Show answer
The full-wave rectified average is 2Vm/π = 2(20)/π ≈ 12.73 V. The unrectified sine wave averages to 0 V over one full period.
Exercise
A sine wave of peak Vm starts at φ = 0 and is averaged over exactly 2.5 periods. What is the average, and why is it nonzero?
Show answer
The first 2 periods contribute zero net area. The remaining half-cycle contributes area 2Vm/ω. The window length is 2.5T, so the average is 2Vm / (ω · 2.5T) = 2Vm / (5π) ≈ 0.127 Vm. It is nonzero because the window is not a whole number of periods.