S614 of 55
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

S6 · Lesson 14 · Matching lab

L-section solutions for any load, exact multisection responses and stub-match bandwidths, in Python

Lessons 8 to 12 designed matching networks with formulas, several of them approximate: the small-reflection theory behind multisection transformers, and the habit of judging a stub match only at its design frequency. This lab writes a general L-section solver and proves each solution by computing the input impedance it produces, evaluates a binomial transformer exactly by cascading its sections' ABCD matrices, and sweeps both single-stub solutions across frequency to see which one is broader and by how much.

  • The solid curve is the small-reflection estimate for a three-section binomial transformer from 100 Ω to 50 Ω, |Γ|=13|cos⁡θ|3 with θ=π2ff0; the dashed one is a single quarter-wave section's exact response.
  • The binomial's flat bottom is the maximally flat response. The lab computes its exact response by cascading ABCD matrices: the 0.05 bandwidth is 69.7%, against the estimate's 71%.
  • Both repeat every 2f0, since each section is a quarter wave at f0.

Predict

Pozar's 60 − j80 Ω load is matched at 2 GHz with a short-circuited stub, either the solution nearer the load (d = 0.110λ, stub 0.095λ) or the farther one (d = 0.259λ, stub 0.405λ). How do their bandwidths for |Γ| ≤ 0.2 compare?

Name it

The L-section solutions (Pozar)

For a load RL+jXL and line Z0:

  • If RL>Z0, put the shunt element next to the load: B=XL±RL/Z0RL2+XL2−Z0RLRL2+XL2 and X=1B+XLZ0RL−Z0BRL.
  • If RL<Z0, put the series element next to the load: X=±RL(Z0−RL)−XL and B=±(Z0−RL)/RLZ0.

A solution is proven by computing the input impedance: shunt-first gives 1/(1/ZL+jB)+jX; series-first gives 1/(1/(ZL+jX)+jB).

Exact cascades

Each quarter-wave section at frequency ratio r=f/f0 has electrical length θ=π2r and ABCD matrix [[cos θ, jZ sin θ], [j sin θ/Z, cos θ]]; multiplying them and loading with ZL gives the exact input impedance, with every multiple reflection included.

Sweeping a stub match

With the load modeled by its actual elements, the line and stub lengths scale with frequency: βd=2π(d/λ0)r. The input admittance is the transformed load admittance plus the stub's −jY0cot⁡βℓ.

Check

Write lmatch(ZL, Z0=50): both L-section solutions as a list of (kind, X, B) with kind 'shunt-first' or 'series-first', and zin(kind, X, B, ZL): the input impedance each gives.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Check

Write binomial(Z0, ZL, N): the N section impedances from ln⁡Zn+1Zn=2−NCnNln⁡ZLZ0, and gamma(zs, Z0, ZL, r): the exact |Γ| at frequency ratio r by cascading ABCD matrices (first section next to Z0).

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Check

Write stub_gamma(d, l, r): the |Γ| of Pozar's short-stub match at frequency ratio r, with the load 60 Ω in series with the capacitance giving −j80 Ω at 2 GHz, a stub of l wavelengths at a distance d wavelengths (both at 2 GHz) on 50 Ω line; and bandwidth(d, l, g=0.2): the fractional band around r = 1 where |Γ| ≤ g, stepping r by 0.0001.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Explain why

Why is a matching network made with shorter lines usually broader in bandwidth?