---
title: Leads, lags and phasor diagrams
heading: Which one comes first?
eyebrow: A3 · Lesson 14 · Leads, lags and phasor diagrams
xp: 40
---

::: hook
On a scope, two sine waves of the same frequency are offset in time. Is the second one 90° behind the first, or 270° ahead? Both describe the same picture. Engineers settle it with a convention: compare the nearest peaks and quote the smaller shift, as a lead or a lag. In a capacitor the current leads the voltage by a quarter cycle; in an inductor it lags. Reading those relationships off a waveform, and drawing them as phasors, is the skill here.

::: play
- The solid curve is the reference, $\cos\omega t$. The other is $\cos(\omega t + \varphi)$.
- Make $\varphi$ positive. Does the second wave's peak come before or after the reference's?
- Read the time shift in the strip. How does it change if you double the frequency at the same $\varphi$?
:::
:::

```sim plot
view: graph
x: t = 0..4 ms
y: v = -1.5..1.5
slider: f = 250..1000 step 50 = 500 Hz
slider: phi = -180..180 step 5 = 45 °
plot: cos(2*pi*f*t/1000) | label: reference
plot: cos(2*pi*f*t/1000 + phi°) | color: ch2 | label: shifted by φ
readout: time shift (positive means earlier) = phi/360/f s | format: si
readout: period = 1/f s | format: si
```

::: predict
## A waveform is $\cos(\omega t + 30°)$. Compared with $\cos\omega t$, when does it reach its peak?

- [x] Earlier: it leads by 30°
- [ ] Later: it lags by 30°
- [ ] At the same time, since only the shape matters
- [ ] It depends on the frequency

::: reveal
Earlier. $\cos(\omega t + 30°)$ peaks when $\omega t + 30° = 0$, which is at a negative time, before the reference peaks at $t = 0$. A plus sign in the phase means it leads. As a phasor, it's the reference arrow turned 30° counterclockwise, which is ahead, since phasors spin counterclockwise.
:::
:::

::: nameit
## Lead and lag

Two sinusoids of the same frequency differ by a **phase difference** $\Delta\varphi$. The one whose phase angle is larger **leads**: it reaches each peak first. The other **lags**.

$$v_1 = \cos(\omega t + \varphi_1), \quad v_2 = \cos(\omega t + \varphi_2): \qquad v_1 \text{ leads } v_2 \text{ by } \varphi_1 - \varphi_2$$

By convention the difference is brought into the range −180° to 180°: a lead of 270° is called a lag of 90°.

**Time and phase.** A full cycle is 360° and lasts one period $T = 1/f$, so a phase difference corresponds to a time shift

$$\Delta t = \frac{\Delta\varphi}{360°} \times T = \frac{\Delta\varphi}{360° \cdot f}$$

The same 45° is 0.125 ms at 1 kHz and 2.08 ms at 60 Hz.

**Sines and cosines.** $\sin\omega t = \cos(\omega t - 90°)$: a sine lags a cosine by 90°. Before comparing phases, write both waves the same way, usually as cosines.

## Phasor diagrams

A **phasor diagram** draws each sinusoid as its phasor, all on one plane. Since the arrows all spin together at $\omega$, only their angles relative to each other matter, so one is chosen as the **reference** and drawn at 0°. An arrow turned counterclockwise from another leads it.

Two relationships are worth knowing by heart, from lesson 15's rule that differentiating multiplies by $j\omega$:
- **Capacitor:** $i = C\,dv/dt$, so the current is $j\omega C$ times the voltage: it **leads** by 90°.
- **Inductor:** $v = L\,di/dt$, so the voltage leads the current by 90°: the current **lags** by 90°.

A memory aid that's been passed down for generations: **ELI the ICE man**. In an inductor (L), voltage (E) comes before current (I); in a capacitor (C), current (I) comes before voltage (E).
:::

::: example
## $v_1 = 5\cos(\omega t + 20°)$ and $v_2 = 3\sin(\omega t + 80°)$. Which leads, and by how much?

::: solution
1. **Write $v_2$ as a cosine.** Use $\sin x = \cos(x - 90°)$:
   $$\begin{aligned} v_2 &= 3\cos(\omega t + 80° - 90°) \\ &= 3\cos(\omega t - 10°) \end{aligned}$$
2. **Compare angles.**
   $$20° - (-10°) = 30°$$
   So $v_1$ leads $v_2$ by 30°.
3. **The wrong way.** Comparing a sine's angle directly with a cosine's would have given 60°, the wrong answer by 90°.

**Answer:** $v_1$ leads $v_2$ by 30°.
:::
:::

::: example
## At 60 Hz, a motor's current reaches its peak 2.0 ms after the voltage does. What is the phase relationship?

::: solution
1. **Period.**
   $$\begin{aligned} T &= \frac{1}{60}\ \text{s} \\ &= 16.67\ \text{ms} \end{aligned}$$
2. **Delay as a fraction of a cycle.**
   $$\frac{2.0}{16.67} = 0.12$$
3. **Delay as an angle.**
   $$0.12 \times 360° = 43°$$
4. **Kind of load.** The current lags the voltage by 43°: an inductive load, as a motor's windings make it.
5. **Power factor.**
   $$\cos 43° = 0.73$$

**Answer:** the current lags the voltage by 43°, an inductive load with a power factor of 0.73.
:::
:::

::: example
## At 60 Hz, $v = 10\cos(377t + 15°)$ and $i = 4\sin(377t + 60°)$. Which leads, by what angle, and by how much time?

::: solution
1. **Write the sine as a cosine.** Use $\sin x = \cos(x - 90°)$:
   $$i = 4\cos(377t - 30°)$$
2. **Compare phases.**
   $$15° - (-30°) = 45°$$
   The voltage leads the current by 45°.
3. **Convert to time.** That's $45/360$ of a 16.7 ms period:
   $$\frac{45}{360} \times 16.7\ \text{ms} = 2.08\ \text{ms}$$

**Answer:** the voltage leads the current by 45°, which is 2.08 ms.
:::
:::

::: check
given: p1 = 10 | 40 | 75; p2 = -30 | 20 | 35
answer: p1 - p2
unit: °
tolerance: 0.2%

## By how many degrees does $\cos(\omega t + \given{p1}°)$ lead $\cos(\omega t + (\given{p2})°)$?

::: right
Right. The lead is the difference in phase angles: {answer}.
:::

::: misses
- [p2 - p1] That's a lag. The first one's angle is larger, so it leads.
- [p1 + p2] Subtract the angles.
- [any] Not yet. Subtract the second phase from the first.
:::
:::

::: check
given: p = 30 | 45 | 72 | 120; f = 50 | 60 | 1000
answer: p/(360*f)
unit: s

## A {f} Hz waveform leads another by {p}°. How far ahead is it in time?

::: right
Right. $\frac{\given{p}}{360} \times \frac{1}{\given{f}}$ = {answer}.
:::

::: misses
- [p/f] Turn the angle into a fraction of a cycle first: divide by 360°.
- [p*pi/180/f] That's radians divided by $f$. Divide by $2\pi f$ if you use radians.
- [any] Not yet. Fraction of a cycle times the period.
:::
:::

::: check
given: dt = 0.5 | 1 | 2.5; f = 50 | 60 | 100
answer: 360*f*dt*1e-3
unit: °

## At {f} Hz, one waveform reaches its peak {dt} ms after another. By how many degrees does it lag?

::: right
Right. $\Delta t \times f \times 360° = $ {answer}.
:::

::: misses
- [360*f*dt] Put the delay in seconds.
- [f*dt*1e-3] That's the fraction of a cycle. Multiply by 360°.
- [any] Not yet. Divide the delay by the period, then multiply by 360°.
:::
:::

::: check
given: p1 = 20 | 50; p2 = 30 | 70
answer: p1 - p2 + 90
unit: °
tolerance: 0.2%

## By how many degrees does $\cos(\omega t + \given{p1}°)$ lead $\sin(\omega t + \given{p2}°)$?

::: right
Right. $\sin(\omega t + \given{p2}°) = \cos(\omega t + \given{p2}° - 90°)$, so the lead is $\given{p1} - (\given{p2} - 90)$ = {answer}°.
:::

::: misses
- [p1 - p2] Write the sine as a cosine first: $\sin x = \cos(x - 90°)$.
- [p1 - p2 - 90] A sine lags a cosine by 90°, so the cosine leads by 90° more.
- [any] Not yet. Convert the sine to a cosine, then subtract the angles.
:::
:::

::: check
kind: choice

## In a capacitor driven by a sinusoidal voltage, how does the current compare with the voltage?

- [x] It leads by 90°
- [ ] It lags by 90°
- [ ] It's in phase
- [ ] It leads by 180°

::: right
Right. $i = C\,dv/dt$, and the rate of change of a cosine peaks a quarter cycle before the cosine does. ICE: current before voltage in a capacitor.
:::

::: misses
- [2] That's an inductor. In an inductor the voltage leads.
- [3] That's a resistor.
- [any] Think about $i = C\,dv/dt$: the current is largest when the voltage changes fastest.
:::
:::

::: check
given: p = 200 | 250 | 300 | 330
answer: p - 360
unit: °
tolerance: 0.2%

## One waveform leads another by {p}°. Expressed between −180° and 180°, what is the relationship? Give it as a lead, negative for a lag.

::: right
Right. A lead of {p}° is the same as a lead of $\given{p}° - 360°$ = {answer}°, a lag of {answer}° the other way.
:::

::: misses
- [p] That's outside −180° to 180°. Subtract a full turn.
- [360 - p] That's the size of the lag. As a lead it's negative.
- [any] Not yet. Subtract 360°.
:::
:::

::: check
kind: parts
given: f = 50 | 60; dt = 0.5 | 1 | 2; V = 120 | 230; I = 2 | 5

## On a {f} Hz supply of {V} V RMS, a load's current peaks {dt} ms after the voltage does. The current is {I} A RMS.

::: part
answer: 360*f*dt*1e-3
unit: °
tolerance: 0.5%

### By how many degrees does the current lag?

::: misses
- [2*pi*f*dt*1e-3] That's in radians.
- [any] The delay as a fraction of the period, times 360°.
:::
:::

::: part
answer: cos(2*pi*f*dt*1e-3)
tolerance: 0.5%

### What is the power factor?

::: misses
- [sin(2*pi*f*dt*1e-3)] Power factor is the cosine of the angle.
- [any] $\cos\varphi$.
:::
:::

::: part
answer: V*I*cos(2*pi*f*dt*1e-3)
unit: W
tolerance: 0.5%

### What real power does the load take?

::: misses
- [V*I] That's the apparent power. Multiply by the power factor.
- [any] $P = V_\text{rms}I_\text{rms}\cos\varphi$.
:::
:::
:::

::: check
kind: derivation
vars: p = -3..3, f = 10..1000, dt = 0..0.001, t = 0..0.01

## A signal $\cos(2\pi ft + p)$ is delayed by $\Delta t$. Derive the delayed signal's phase.

::: step
answer: cos(2*pi*f*(t - dt) + p)

### Write the delayed signal.
:::

::: step
answer: p - 2*pi*f*dt

### Written as $\cos(2\pi ft + \varphi)$, what is its phase $\varphi$?
:::

::: right
Right. A delay of $\Delta t$ subtracts $2\pi f\Delta t$ from the phase: a lag that grows with frequency.
:::
:::

::: explain
## Why does a counterclockwise turn on a phasor diagram mean "leads"?

::: model
Phasors spin counterclockwise as time goes on, all at the same rate. An arrow that's already turned further counterclockwise reaches every position, including the top of the real axis where its waveform peaks, before the other one does. So being ahead in angle, counterclockwise, means getting to each peak earlier in time, which is what leading means.
:::
:::

::: practice

::: check
given: p1 = -20 | 15 | 60; p2 = -60 | 5 | 40
answer: p1 - p2
unit: °
tolerance: 0.2%

## How much does $\cos(\omega t + (\given{p1})°)$ lead $\cos(\omega t + (\given{p2})°)$? Negative means a lag.

::: misses
- [p2 - p1] First minus second.
- [any] Subtract the phases.
:::
:::

::: check
given: p = 15 | 60 | 90; f = 400 | 2000 | 10000
answer: p/(360*f)
unit: s

## At {f} Hz, what time shift is {p}°?

::: misses
- [p/f] Divide by 360° too.
- [any] $\Delta\varphi/(360° f)$.
:::
:::

::: check
given: dt = 3.3 | 4.5 | 7.2; f = 400 | 1000
answer: 360*f*dt*1e-3 - 360*floor(f*dt*1e-3)
unit: °
tolerance: 0.5%

## A {f} Hz signal is delayed by {dt} ms. What phase lag is that, between 0° and 360°?

::: misses
- [360*f*dt*1e-3] Take off whole cycles.
- [360*f*dt] Use seconds.
- [any] Fraction of a period times 360°, less whole turns.
:::
:::

::: check
kind: choice

## In an inductor, how does the current compare with the voltage?

- [ ] It leads by 90°
- [x] It lags by 90°
- [ ] It's in phase
- [ ] It lags by 45°

::: misses
- [1] That's a capacitor.
- [any] ELI: voltage before current in an inductor.
:::
:::
:::
