Sub topic 6
Phase difference: leading and lagging
This chapter assumes you can write a sinusoid as A sin(ωt + φ), convert between degrees and radians, and relate ω to frequency and period (ω = 2πf = 2π/T). The earlier chapters on phase angle cover those. Here you compare two sinusoids and say which one is ahead.
What phase difference means
A single sinusoid has a phase angle φ, but φ only tells you where the wave starts relative to t = 0. That choice of t = 0 is arbitrary. What matters physically is how two waves relate to each other. The phase difference is the angle between them.
Take two sinusoids of the same frequency:
- v₁(t) = V₁ sin(ωt + φ₁)
- v₂(t) = V₂ sin(ωt + φ₂)
Their phase difference is
θ = φ₁ − φ₂
The ωt terms cancel, so θ does not change with time. The two waves keep the same offset for as long as they run. This only works when the frequencies are equal. If the frequencies differ, the offset drifts continuously and no single phase difference exists.
Leading and lagging
The sign of θ tells you which wave is ahead.
- If θ > 0, v₁ leads v₂. v₁ reaches each of its peaks and zero crossings earlier than v₂ does.
- If θ < 0, v₁ lags v₂. v₁ reaches them later.
- If θ = 0, the waves are in phase.
- If θ = ±180°, the waves are in antiphase. One is the negative of the other when the amplitudes are equal.
- If θ = ±90°, the waves are in quadrature.
A positive φ shifts the waveform to the left on a time plot. The rising zero crossing of sin(ωt + φ) occurs where ωt + φ = 0, which is at t = −φ/ω. For φ > 0 that time is before t = 0. A wave with a larger phase angle therefore happens earlier, which is why a larger φ means "leads".
A time axis can mislead you here. On a scope trace, the leading wave is the one whose features appear further left.
Converting phase to time
A phase difference corresponds to a fraction θ/360° of one period, so
Δt = θ / (360° · f) = θ / ω (with θ in radians)
Take v = 170 sin(377t + 30°) and i = 10 sin(377t − 20°), with f = 60 Hz. Then θ = 30° − (−20°) = 50°, so v leads i by 50°. The time shift is 50/360/60 ≈ 2.315 ms. The voltage peak arrives about 2.3 ms before the current peak.
Putting waves in a common form
You can only subtract phases when both waves use the same function (both sine) and both have positive amplitudes. Real expressions are often written with cosines or minus signs, so convert first.
| Expression | Equivalent sine form |
|---|---|
| cos(ωt) | sin(ωt + 90°) |
| −cos(ωt) | sin(ωt − 90°) |
| −sin(ωt) | sin(ωt ± 180°) |
| cos(ωt + φ) | sin(ωt + φ + 90°) |
| sin(ωt + φ) | cos(ωt + φ − 90°) |
For example, v = 10 cos(ωt − 40°) becomes 10 sin(ωt + 50°). Compare it with i = 4 sin(ωt + 10°). Then θ = 50° − 10° = 40°, so v leads i by 40°.
You can also convert everything to cosine instead. Either convention works, but you must use the same one for both waves. Mixing them is the most common source of 90° errors.
Wrapping the angle
Phase angles repeat every 360°, so φ and φ + 360° describe the same wave. Reduce the difference to the range −180° < θ ≤ 180° before you decide lead or lag.
Suppose φ₁ = 170° and φ₂ = −170°. The raw difference is 340°, which looks like a large lead. But 340° is the same as −20°, so v₁ lags v₂ by only 20°. Equivalently, v₁ leads v₂ by 340°, but nobody describes it that way. "Leads by 270°" is the same as "lags by 90°". The standard choice is the smallest angle in magnitude.
The two waves at ±180° are a special case. A 180° lead and a 180° lag are the same thing, so you just say they are in antiphase.
A procedure you can follow
The steps above reduce to a short routine.
The same procedure in code:
def wrap_deg(angle):
"""Map an angle in degrees into the range (-180, 180]."""
a = (angle + 180.0) % 360.0 - 180.0
return 180.0 if a == -180.0 else a
def describe(name1, phi1, name2, phi2, f):
"""Compare two sine waves given as phase angles in degrees."""
d = wrap_deg(phi1 - phi2)
dt = abs(d) / 360.0 / f
if d > 0:
relation = f"{name1} leads {name2}"
elif d < 0:
relation = f"{name1} lags {name2}"
else:
relation = f"{name1} and {name2} are in phase"
print(f"{relation} by {abs(d):.1f} degrees ({dt * 1000:.3f} ms at {f:g} Hz)")
describe("v", 30, "i", -20, 60) # v leads i by 50.0 degrees (2.315 ms at 60 Hz)
describe("v", 50, "i", 10, 60) # v leads i by 40.0 degrees (1.852 ms at 60 Hz)
describe("v", 170, "i", -170, 60) # v lags i by 20.0 degrees (0.926 ms at 60 Hz)The third call shows the wrapping step at work. The raw difference is 340°, and the function reports a 20° lag.
Measuring phase difference on an oscilloscope
On a two-channel scope, display both waves with the same time base. Measure the time Δt between corresponding points, such as two rising zero crossings, and the period T. Then
θ = 360° · Δt / T
Read the sign from the picture. If channel 1's zero crossing comes first (further left), channel 1 leads. Zero crossings are better than peaks to measure from, because a wave changes fastest there and the crossing is easy to locate. Make sure both channels cross zero in the same direction.
Phase in circuits: a preview
The most important physical examples involve resistors, inductors, and capacitors. You will derive them in later chapters, but the results are worth seeing now.
- Resistor: v = Ri, so voltage and current are in phase.
- Inductor: v = L di/dt. If i = Im sin(ωt), then v = ωL·Im cos(ωt) = ωL·Im sin(ωt + 90°). The voltage leads the current by 90°.
- Capacitor: i = C dv/dt. If v = Vm sin(ωt), then i = ωC·Vm sin(ωt + 90°). The current leads the voltage by 90°.
Notice that the lead is a property of the pair. The statement "voltage leads current by 90° in an inductor" and "current lags voltage by 90° in an inductor" are the same fact.
Common errors
- Comparing a sine with a cosine without converting. cos(ωt) and sin(ωt) differ by 90°, not 0°.
- Ignoring a negative amplitude. −5 sin(ωt) has a phase of ±180°, not 0°.
- Subtracting in the wrong order. θ = φ₁ − φ₂ says what wave 1 does relative to wave 2.
- Mixing degrees and radians. If ω is in rad/s, convert φ to radians before computing Δt = φ/ω.
- Comparing different frequencies. A fixed phase difference does not exist, so the question has no answer.
- Leaving the angle unwrapped. A "lead of 300°" is a 60° lag.
Exercise
A voltage is v(t) = 20 cos(314t + 25°) V and a current is i(t) = −3 sin(314t + 40°) A. (a) Write both as positive-amplitude sine waves. (b) State which one leads and by how many degrees. (c) Find the time shift in milliseconds. Use ω = 314 rad/s, so f ≈ 50 Hz.
Show answer
(a) v = 20 sin(314t + 25° + 90°) = 20 sin(314t + 115°). For the current, −3 sin(x) = 3 sin(x ± 180°). Choose +180° or −180°; use −180°: i = 3 sin(314t + 40° − 180°) = 3 sin(314t − 140°). (b) θ = 115° − (−140°) = 255°. Wrap into (−180°, 180°]: 255° − 360° = −105°. So v lags i by 105° (equivalently, i lags... no, i leads v by 105°). (c) Δt = 105/360/50 = 5.83 ms. The current peak arrives about 5.83 ms before the voltage peak.
Exercise
On a scope, channel 1 (voltage) has a rising zero crossing 1.2 ms to the left of channel 2's (current) rising zero crossing. The signal period is 10 ms. Which leads, and what is the phase difference in degrees?
Show answer
Channel 1's crossing happens earlier, so voltage leads current. θ = 360° × 1.2 / 10 = 43.2°. The voltage leads the current by 43.2°.