---
title: Phase-shift keying and differential detection
heading: M-PSK constellations and their error rates, why PSK falls behind QAM at high orders, differential encoding against phase ambiguity, and noncoherent DPSK detection
eyebrow: S8 · Lesson 19 · Phase-shift keying and differential detection
xp: 50
---

::: hook
Putting all the information in a carrier's phase gives a signal of constant amplitude, which a power amplifier driven near saturation can transmit without distorting, the reason satellites and many mobile systems prefer PSK. The constellation is a ring of points, and as more points are crowded onto the ring they get close together faster than QAM's grid points do. A second practical problem is that a receiver recovering the carrier can lock to any of several phases; differential encoding sidesteps it, and differential detection even does away with carrier recovery, at a price of about a decibel.
:::

::: play
- Bit error probability against Eb/N0 for coherent BPSK, differential BPSK ($\frac{1}{2}e^{-E_b/N_0}$) and Gray-coded 8-PSK and 16-PSK.
- DBPSK needs no phase reference and costs only about 0.7 dB at 10⁻⁵ (10.3 against 9.6 dB).
- Each doubling of the PSK order beyond 4 costs about 4 to 5 dB: 8-PSK needs 13.0 dB and 16-PSK 17.4 dB, compared with 13.4 dB for 16-QAM.
:::
:::

```sim plot
view: graph
x: E = 0..22 dB
y: P = 1e-8..0.5 log
plot: Q(sqrt(2*10^(E/10))) | samples: 400 | label: BPSK, QPSK
plot: 0.5*exp(-10^(E/10)) | samples: 400 | dashed | color: ch3 | label: DBPSK
plot: 2*Q(sqrt(2*3*10^(E/10))*sin(pi/8))/3 | samples: 400 | color: ch2 | label: 8-PSK
plot: 2*Q(sqrt(2*4*10^(E/10))*sin(pi/16))/4 | samples: 400 | dashed | label: 16-PSK
plot: 1e-5 | dashed | color: ch3 | label: 10⁻⁵
```

::: predict
## 16-PSK and 16-QAM both send 4 bits per symbol. At the same average energy, which has the larger minimum distance?

- [ ] 16-PSK, because all its points have full energy
- [x] 16-QAM, by about 4.2 dB in squared distance
- [ ] They're equal
- [ ] It depends on Gray coding

::: reveal
16-PSK's points sit on one circle 22.5° apart: $d^2 = 4E_s\sin^2(\pi/16)$ = 0.152 $E_s$. 16-QAM's grid has $d_\text{min} = 2d$ with $E_s = 10d^2$, so $d^2$ = 0.4 $E_s$, 2.63 times larger, 4.2 dB. QAM uses the plane more efficiently; PSK wins only when constant amplitude matters.
:::
:::

::: nameit
## M-PSK

$s_i(t) = \sqrt{\frac{2E_s}{T}}\cos\left(2\pi f_ct + \frac{2\pi i}{M}\right)$: M points on a circle of radius $\sqrt{E_s}$, adjacent ones $d = 2\sqrt{E_s}\sin(\pi/M)$ apart. Each has two nearest neighbors, so

$$P_s \approx 2Q\left(\sqrt{\frac{2E_s}{N_0}}\sin\frac{\pi}{M}\right), \qquad P_b \approx \frac{P_s}{\log_2M}$$

BPSK and QPSK have the same bit error rate; 8-PSK needs about 3.4 dB more, and each further doubling about 4.5 dB more.

## Phase ambiguity and differential encoding

A carrier-recovery loop locked to a squared or fourth-powered signal can settle at any of M phases. Sending information in the **change** of phase from one symbol to the next ($b_k = b_{k-1} \oplus d_k$ for binary) makes the data independent of that ambiguity: coherent detection followed by differential decoding works at any lock phase, at the cost of error pairs (one wrong symbol corrupts two differences), roughly doubling the error rate.

## Differential detection (DPSK)

Comparing each symbol's phase directly with the previous symbol's, with no carrier recovery at all:

$$P_b = \frac{1}{2}e^{-E_b/N_0}\text{ (DBPSK)}$$

about 0.7 dB worse than BPSK at 10⁻⁵, and about 2.3 dB worse for DQPSK. π/4-DQPSK, which rotates the constellation by 45° each symbol so that the envelope never passes through zero, was used in early digital cellphones.
:::

::: example
## What Eb/N0 does DBPSK need for 10⁻⁵, and how does that compare with coherent BPSK?

::: solution
1. **Solve the DBPSK formula.**
   $$\begin{aligned} \frac12e^{-x} &= 10^{-5} \\ x &= \ln 50\,000 \\ &= 10.82 \\ &= 10.3\ \text{dB} \end{aligned}$$
2. **Compare BPSK.** BPSK needs 9.6 dB: DBPSK pays a 0.7 dB penalty for skipping carrier recovery entirely.

**Answer:** DBPSK needs 10.3 dB, 0.7 dB more than coherent BPSK's 9.6 dB.
:::
:::

::: example
## How far apart are adjacent 8-PSK points at $E_s$ = 1, and what's the symbol error probability at Es/N0 = 15 dB?

::: solution
1. **Distance.**
   $$\begin{aligned} d &= 2\sin(22.5°) \\ &= 0.765 \end{aligned}$$
2. **Symbol errors.**
   $$\begin{aligned} P_s &\approx 2Q(\sqrt{2 \times 31.6}\sin 22.5°) \\ &= 2Q(3.04) \\ &= 2.3 \times 10^{-3} \end{aligned}$$
3. **Bit errors.** With Gray coding, $P_b$ ≈ 8 × 10⁻⁴.
4. **Per bit.**
   $$\begin{aligned} E_b/N_0 &= 15 - 4.8 \\ &= 10.2\ \text{dB} \end{aligned}$$

**Answer:** adjacent points are 0.765 apart, and the symbol error probability is about 2.3 × 10⁻³.
:::
:::

::: example
## At Eb/N0 = 8 dB, compare DBPSK with coherent BPSK.

::: solution
1. **Linear Eb/N0.**
   $$\begin{aligned} E_b/N_0 &= 10^{0.8} \\ &= 6.31 \end{aligned}$$
2. **DBPSK.**
   $$\begin{aligned} P_b &= \frac12e^{-6.31} \\ &= 9.1 \times 10^{-4} \end{aligned}$$
3. **Coherent BPSK.**
   $$\begin{aligned} P_b &= Q(\sqrt{12.62}) \\ &= Q(3.55) \\ &= 1.9 \times 10^{-4} \end{aligned}$$
   nearly five times fewer errors.
4. **At higher SNR.** The gap shrinks to the 0.7 dB quoted at 10⁻⁵, which differential detection buys back in simplicity: no carrier recovery at all.

**Answer:** DBPSK gives 9.1 × 10⁻⁴ and coherent BPSK 1.9 × 10⁻⁴, nearly five times fewer errors.
:::
:::

::: check
given: M = 8 | 16 | 32; E = 12 | 18 | 24
answer: 2*Q(sqrt(2*10^(E/10))*sin(pi/M))
tolerance: 1%

## {M}-PSK runs at Es/N0 = {E} dB. What's its approximate symbol error probability?

::: right
Right. $2Q(\sqrt{2E_s/N_0}\sin(\pi/M))$ = {answer}.
:::

::: misses
- [Q(sqrt(2*10^(E/10))*sin(pi/M))] Each point has two nearest neighbors.
- [any] Not yet. Adjacent points are $2\sqrt{E_s}\sin(\pi/M)$ apart.
:::
:::

::: check
given: E = 6 | 9 | 11
answer: 0.5*exp(-10^(E/10))
tolerance: 1%

## DBPSK runs at Eb/N0 = {E} dB. What's its bit error probability?

::: right
Right. $\frac{1}{2}e^{-E_b/N_0}$ = {answer}.
:::

::: misses
- [Q(sqrt(2*10^(E/10)))] That's coherent BPSK; differential detection is a little worse.
- [any] Not yet. $P_b = \frac{1}{2}e^{-E_b/N_0}$.
:::
:::

::: check
given: P = 0.001 | 0.00001 | 0.0000001
answer: 10*log(ln(1/(2*P)))
unit: dB
tolerance: 0.05

## What Eb/N0 does DBPSK need for a bit error probability of {P}?

::: right
Right. $E_b/N_0 = \ln(1/2P_b)$: {answer} dB.
:::

::: misses
- [10*log(ln(1/P))] Solve $\frac{1}{2}e^{-x} = P_b$: the ½ matters.
- [any] Not yet. Invert $\frac{1}{2}e^{-E_b/N_0}$.
:::
:::

::: check
given: M = 4 | 6 | 8; E = 1 | 4
answer: 2*sqrt(E)*sin(pi/M)
tolerance: 0.5%

## {M}-PSK has symbol energy {E}. How far apart are adjacent points?

::: right
Right. $2\sqrt{E_s}\sin(\pi/M)$ = {answer}.
:::

::: misses
- [2*pi*sqrt(E)/M] That's the arc length; use the chord.
- [any] Not yet. Two radii with angle 2π/M between them.
:::
:::

::: check
given: M = 16 | 64 | 256
answer: 10*log((6/(M - 1))/(4*sin(pi/M)^2))
unit: dB
tolerance: 0.05

## At the same average energy, how much larger is {M}-QAM's minimum squared distance than {M}-PSK's?

::: right
Right. QAM: $d_\text{min}^2 = 6E_s/(M - 1)$; PSK: $4E_s\sin^2(\pi/M)$. Ratio {answer} dB.
:::

::: misses
- [any] Not yet. Compare $\frac{6}{M - 1}$ with $4\sin^2(\pi/M)$.
:::
:::

::: check
given: P = 0.003 | 0.001 | 0.0005 | 0.0001 | 0.00002 | 0.00001
answer: 2*P
tolerance: 0.5%

## Coherent BPSK with differential decoding has raw bit error probability {P}. Roughly what's the decoded error probability?

::: right
Right. Each raw error spoils two differences: about $2P$ = {answer}.
:::

::: misses
- [P] A single raw error affects two consecutive differences.
- [any] Not yet. Errors come in pairs.
:::
:::

::: check
kind: parts
given: M = 8 | 16 | 32; E = 15 | 20 | 25

## {M}-PSK runs at Es/N0 = {E} dB with Gray coding.

::: part
answer: 2*Q(sqrt(2*10^(E/10))*sin(pi/M))
tolerance: 1%

### What is its approximate symbol error probability?

::: misses
- [any] $2Q(\sqrt{2E_s/N_0}\sin(\pi/M))$.
:::
:::

::: part
answer: 2*Q(sqrt(2*10^(E/10))*sin(pi/M))/(log(M)/log(2))
tolerance: 1%

### And its bit error probability?

::: misses
- [any] $P_s/\log_2M$.
:::
:::
:::

::: check
kind: derivation
vars: E = 0.5..30, P = 1e-9..0.1, M = 4..64

## DBPSK runs at Eb/N0 = E (linear); M-PSK has unit symbol energy.

::: step
answer: 0.5*exp(-E)

### What is DBPSK's bit error probability?
:::

::: step
answer: -ln(2*P)

### What Eb/N0 does DBPSK need for error probability P?
:::

::: step
answer: 2*sin(pi/M)

### How far apart are adjacent M-PSK points?
:::

::: right
Right. DBPSK's exponential tail makes its required Eb/N0 easy to invert exactly.
:::
:::

::: explain
## Why does differential encoding solve the carrier phase ambiguity?

::: model
A receiver that recovers its carrier from the signal itself, for example by squaring a BPSK signal to remove the modulation, can lock at either of two phases 180° apart, and it has no way to tell which is right. If the data were sent as absolute phases, locking the wrong way would invert every bit. Differential encoding puts the information in whether the phase changed from one symbol to the next. A constant phase error, including a 180° flip, shifts every symbol's phase by the same amount, so the changes between symbols, and therefore the data, come out correct either way. The cost is that one symbol received in error corrupts both the difference before it and the one after, roughly doubling the bit error rate.
:::
:::

::: practice

::: check
given: M = 8 | 16; E = 15 | 20
answer: 2*Q(sqrt(2*10^(E/10))*sin(pi/M))
tolerance: 1%

## {M}-PSK symbol error probability at Es/N0 {E} dB?

::: misses
- [any] $2Q(\sqrt{2E_s/N_0}\sin(\pi/M))$.
:::
:::

::: check
given: E = 5 | 6 | 7 | 8 | 9 | 10 | 11
answer: 0.5*exp(-10^(E/10))
tolerance: 1%

## DBPSK at {E} dB?

::: misses
- [any] $\frac{1}{2}e^{-E_b/N_0}$.
:::
:::

::: check
given: M = 8 | 32; E = 2 | 9
answer: 2*sqrt(E)*sin(pi/M)
tolerance: 0.5%

## Adjacent distance for {M}-PSK, $E_s$ = {E}?

::: misses
- [any] $2\sqrt{E_s}\sin(\pi/M)$.
:::
:::
:::
