---
title: "Project: an L-network impedance match"
heading: Make a load look like the source it needs, at one frequency
eyebrow: C3 · Lesson 27 · Project
xp: 80
---

::: hook
A 50 Ω radio transmitter must drive an antenna that, at the operating frequency, looks like 200 Ω. Connected directly, the mismatch reflects a third of the power. Two components, an inductor and a capacitor arranged as an L, transform the 200 Ω into exactly 50 Ω at that frequency, and all the available power goes into the antenna. In this project you'll design such L-networks, verify them with your complex-impedance tools, and sweep them to see how narrow a match is.
:::

::: play
- An L-network matches a source $R_S$ to a load $R_L$ (larger) at $f_0$: a series inductor on the source side, a shunt capacitor across the load. The curve is the fraction of the available power reaching the load, against frequency.
- At $f_0$ it's exactly 1. The match narrows as the ratio $R_L/R_S$ grows, because the network's Q grows.
- The readouts give the component values for the design.
:::
:::

```sim plot
view: graph
x: f = 1..100 MHz log
y: P = 0..1.05
slider: RS = 10..100 step 1 = 50 Ω
slider: RL = 100..2000 = 200 Ω log
slider: f0 = 1..100 = 10 MHz log
plot: 1 - abs((j*(f/f0)*sqrt(RL/RS - 1)*RS + 1/(1/RL + j*(f/f0)*sqrt(RL/RS - 1)/RL) - RS)/(j*(f/f0)*sqrt(RL/RS - 1)*RS + 1/(1/RL + j*(f/f0)*sqrt(RL/RS - 1)/RL) + RS))^2 | label: share of available power delivered | samples: 600
plot: 1 - ((RL - RS)/(RL + RS))^2 + 0*f | label: no network | dashed | color: ch2
readout: network Q = sqrt(RL/RS - 1) | digits: 3
readout: series inductor, µH = sqrt(RL/RS - 1)*RS/(2*pi*f0*1e6)*1e6 | digits: 4
readout: shunt capacitor, pF = sqrt(RL/RS - 1)/(2*pi*f0*1e6*RL)*1e12 | digits: 4
```

::: predict
## A 50 Ω source drives a 200 Ω load directly. What share of its available power reaches the load?

- [ ] 25%
- [ ] 50%
- [x] 64%
- [ ] 100%

::: reveal
64%. The reflection coefficient is $\frac{200 - 50}{200 + 50} = 0.6$, so $0.6^2 = 36\%$ of the available power is reflected and 64% delivered. A matching network recovers the missing 36% at its design frequency.
:::
:::

::: nameit
## The L-network

To match a smaller resistance $R_\text{lo}$ to a larger $R_\text{hi}$ at angular frequency ω, put a series reactance $X_s$ on the low side and a shunt reactance $X_p$ across the high side, with

$$Q = \sqrt{\frac{R_\text{hi}}{R_\text{lo}} - 1} \qquad X_s = QR_\text{lo} \qquad X_p = \frac{R_\text{hi}}{Q}$$

**Why it works:** the shunt reactance across $R_\text{hi}$ turns it, viewed as a series circuit, into $R_\text{lo}$ plus some reactance (a parallel-to-series conversion, lesson 13), and the series reactance cancels that reactance (lesson 9).

## Choosing parts

For a **low-pass** L, the series element is an inductor and the shunt a capacitor:

$$L = \frac{X_s}{\omega} \qquad C = \frac{1}{\omega X_p}$$

It also attenuates harmonics, which a transmitter needs. If the source is the larger resistance, mirror the network: shunt capacitor across the source, series inductor to the load.

## Bandwidth

The match is exact only at $f_0$. The network's Q sets how fast it degrades, roughly a loaded bandwidth of $\frac{2f_0}{Q}$: large transformation ratios mean high Q and narrow bandwidth. Wider bandwidth takes more sections (two L's in cascade, each doing part of the ratio) or a transformer.

## Checking a design

Compute the input impedance of the network with the load attached (lesson 25), and the share of available power delivered, $1 - |\Gamma|^2$ with $\Gamma = \frac{Z_\text{in} - R_S}{Z_\text{in} + R_S}$.
:::

::: example
## Design a low-pass L-network matching 50 Ω to 200 Ω at 10 MHz.

::: solution
1. **Q of the match.**
   $$\begin{aligned} Q &= \sqrt{4 - 1} \\ &= 1.73 \end{aligned}$$
2. **Series reactance.**
   $$\begin{aligned} X_s &= Q \times 50 \\ &= 86.6\ \Omega \end{aligned}$$
3. **Shunt reactance.**
   $$\begin{aligned} X_p &= \frac{200}{Q} \\ &= 115.5\ \Omega \end{aligned}$$
4. **Inductor.** In series from the source:
   $$\begin{aligned} L &= \frac{86.6}{2\pi \times 10^7} \\ &= 1.38\ \mu\text{H} \end{aligned}$$
5. **Capacitor.** Across the load:
   $$\begin{aligned} C &= \frac{1}{2\pi \times 10^7 \times 115.5} \\ &= 138\ \text{pF} \end{aligned}$$

**Answer:** a 1.38 µH inductor in series from the source and a 138 pF capacitor across the load.
:::
:::

::: example
## Check it: what does the source see at 10 MHz?

::: solution
1. **Load in parallel with the capacitor.**
   $$\begin{aligned} Z &= 200 \parallel (-j115.5) \\ &= 50 - j86.6\ \Omega \end{aligned}$$
2. **Add the inductor.** Its $+j86.6$ Ω cancels the reactance:
   $$\begin{aligned} Z_\text{in} &= 50 - j86.6 + j86.6 \\ &= 50\ \Omega \end{aligned}$$
3. **Off frequency.** At 20 MHz the same network passes only 16% of the available power, and at 5 MHz 76%, so the match is narrow.

**Answer:** the source sees exactly 50 Ω at 10 MHz.
:::
:::

::: check
given: RS = 25 | 50; RL = 100 | 450
answer: sqrt(RL/RS - 1)
tolerance: 0.5%

## What Q does an L-network matching {RS} Ω to {RL} Ω have?

::: right
Right. $\sqrt{R_L/R_S - 1}$ = {answer}.
:::

::: misses
- [sqrt(RL/RS)] Subtract 1 inside the root.
- [any] Not yet. $Q = \sqrt{R_\text{hi}/R_\text{lo} - 1}$.
:::
:::

::: check
given: RS = 25 | 50; RL = 100 | 450
answer: sqrt(RL/RS - 1)*RS
unit: Ω
tolerance: 0.5%

## For that match ({RS} Ω to {RL} Ω), what series reactance is on the {RS} Ω side?

::: right
Right. $X_s = QR_\text{lo}$ = {answer}.
:::

::: misses
- [RL/sqrt(RL/RS - 1)] That's the shunt reactance.
- [any] Not yet. $X_s = QR_\text{lo}$.
:::
:::

::: check
given: RS = 25 | 50; RL = 100 | 450
answer: RL/sqrt(RL/RS - 1)
unit: Ω
tolerance: 0.5%

## And what shunt reactance goes across the {RL} Ω load?

::: right
Right. $X_p = R_\text{hi}/Q$ = {answer}.
:::

::: misses
- [any] Not yet. $X_p = R_\text{hi}/Q$.
:::
:::

::: check
given: X = 50 | 150; f = 7 | 14 | 30
answer: X/(2*pi*f*1e6)*1e6
unit: µH
tolerance: 0.5%

## What inductor has {X} Ω of reactance at {f} MHz?

::: right
Right. $X/\omega$ = {answer}.
:::

::: misses
- [any] Not yet. $L = X/(2\pi f)$.
:::
:::

::: check
given: X = 50 | 150; f = 7 | 14 | 30
answer: 1/(2*pi*f*1e6*X)*1e12
unit: pF
tolerance: 0.5%

## What capacitor has {X} Ω of reactance at {f} MHz?

::: right
Right. $\frac{1}{\omega X}$ = {answer}.
:::

::: misses
- [any] Not yet. $C = 1/(2\pi fX)$.
:::
:::

::: check
given: RS = 50 | 75; RL = 10 | 300 | 1000
answer: 100*(1 - ((RL - RS)/(RL + RS))^2)
tolerance: 0.5%

## A {RS} Ω source drives a {RL} Ω load directly. What percentage of the available power reaches it?

::: right
Right. $1 - \Gamma^2$ = {answer}%.
:::

::: misses
- [100*(1 - abs(RL - RS)/(RL + RS))] Reflected power goes as $\Gamma^2$.
- [any] Not yet. $\Gamma = \frac{R_L - R_S}{R_L + R_S}$.
:::
:::

::: check
kind: python

## Write `lmatch(RS, RL, f)`: return `(L, C, topology)` for a low-pass L-network matching `RS` to `RL` at `f` Hz, with `topology` = `'series-first'` when RS < RL (series L from the source, shunt C across the load) and `'shunt-first'` otherwise (shunt C across the source, series L to the load).

```python starter
import numpy as np

def lmatch(RS, RL, f):
    w = 2 * np.pi * f
    return np.sqrt(RS * RL) / w, 1 / (w * np.sqrt(RS * RL)), 'series-first'

print(lmatch(50, 200, 10e6))
```

```python solution
import numpy as np

def lmatch(RS, RL, f):
    w = 2 * np.pi * f
    lo, hi = min(RS, RL), max(RS, RL)
    Q = np.sqrt(hi / lo - 1)
    L = Q * lo / w
    C = Q / (w * hi)
    return L, C, ('series-first' if RS < RL else 'shunt-first')

print(lmatch(50, 200, 10e6))
```

```python tests
import numpy as np
L, C, t = lmatch(50, 200, 10e6)
assert t == 'series-first', "With RS < RL, the series inductor comes first."
assert abs(L - 1.37832223855e-6) < 1e-12, f"L should be 1.378 µH; got {L * 1e6:.4f} µH."
assert abs(C - 137.832223855e-12) < 1e-15, f"C should be 137.8 pF; got {C * 1e12:.2f} pF."
L, C, t = lmatch(300, 50, 10e6)
assert t == 'shunt-first', "With RS > RL, the network is mirrored."
assert abs(L - 1.7794063585e-6) < 1e-12 and abs(C - 118.62709057e-12) < 1e-15, f"300 Ω to 50 Ω: 1.779 µH and 118.6 pF; got {L * 1e6:.4f} µH and {C * 1e12:.2f} pF."
```

::: right
Right. The starter's geometric-mean guess has the right flavor but the wrong values: the L-network needs $Q = \sqrt{R_\text{hi}/R_\text{lo} - 1}$.
:::
:::

::: check
kind: python

## Write `zin(L, C, RL, f, topology)`: the complex impedance the source sees looking into the network with `RL` attached, and `delivered(L, C, RS, RL, f, topology)`: the share of available power reaching the load, $1 - |\Gamma|^2$.

```python starter
import numpy as np

def zin(L, C, RL, f, topology):
    return complex(RL)

def delivered(L, C, RS, RL, f, topology):
    z = zin(L, C, RL, f, topology)
    return 1 - abs((z - RS) / (z + RS)) ** 2
```

```python solution
import numpy as np

def zin(L, C, RL, f, topology):
    w = 2 * np.pi * f
    zl, zc = 1j * w * L, 1 / (1j * w * C)
    par = lambda a, b: a * b / (a + b)
    if topology == 'series-first':
        return zl + par(RL, zc)
    return par(zc, zl + RL)

def delivered(L, C, RS, RL, f, topology):
    z = zin(L, C, RL, f, topology)
    return 1 - abs((z - RS) / (z + RS)) ** 2
```

```python tests
import numpy as np
L, C = 1.37832223855448e-6, 137.832223855448e-12
z = zin(L, C, 200, 10e6, 'series-first')
assert abs(z - 50) < 1e-6, f"At 10 MHz the source should see exactly 50 Ω; got {z}."
assert abs(delivered(L, C, 50, 200, 10e6, 'series-first') - 1) < 1e-12, "At the design frequency all the available power is delivered."
assert abs(delivered(L, C, 50, 200, 20e6, 'series-first') - 0.16494845) < 1e-6, "At 20 MHz only 16.5% gets through."
assert abs(delivered(L, C, 50, 200, 5e6, 'series-first') - 0.75964392) < 1e-6, "At 5 MHz, 76%."
L2, C2 = 1.7794063585429427e-6, 118.62709056952951e-12
assert abs(zin(L2, C2, 50, 10e6, 'shunt-first') - 300) < 1e-6, "The mirrored network should present 300 Ω."
```

::: right
Right. Notice how fast the match falls off: an octave away, most of the power is reflected. That narrowness is a feature in a transmitter, which must not radiate its harmonics.
:::
:::

::: explain
## How can two lossless components make a 200 Ω load look like 50 Ω, without wasting any power?

::: model
A capacitor in parallel with the 200 Ω load changes how it looks: at the design frequency the combination is equivalent to 50 Ω in series with a capacitive reactance. The series inductor's reactance is chosen to cancel that capacitive part exactly, leaving a pure 50 Ω for the source. Inductors and capacitors store and return energy without dissipating it, so all the power the source delivers into that 50 Ω ends up in the 200 Ω load, now at a higher voltage and lower current, as a transformer would deliver it. The trick works only at one frequency, because the reactances change with frequency.
:::
:::

::: practice

::: check
given: Q = 1 | 3; f0 = 10 | 100
answer: 2*f0/Q
unit: MHz
tolerance: 0.5%

## About what bandwidth does a matched L-network with Q = {Q} have at {f0} MHz, using $2f_0/Q$?

::: misses
- [any] $2f_0/Q$.
:::
:::

::: check
given: R = 50 | 75; X = 30 | 100
answer: (R^2 + X^2)/R
unit: Ω
tolerance: 0.5%

## {R} Ω in series with {X} Ω of reactance is equivalent, at that frequency, to what resistance in parallel with a reactance?

::: misses
- [any] $R_p = (R^2 + X^2)/R$.
:::
:::

::: check
given: Gamma = 0.1 | 0.3 | 0.6
answer: 100*Gamma^2
tolerance: 0.5%

## A mismatch has |Γ| = {Gamma}. What percentage of the available power is reflected?

::: misses
- [any] $|\Gamma|^2$.
:::
:::
:::
