TExcelTAD
Home › Electromagnetic Theory: Maxwell's Equations to Waves › Input Impedance, Stubs and the Quarter-Wave Transformer

Input Impedance, Stubs and the Quarter-Wave Transformer

Connect a 100 Ω100\ \Omega resistor to the end of a 50 Ω50\ \Omega cable and measure at the other end: at some frequencies you read 100 Ω100\ \Omega, at others 25 Ω25\ \Omega, and in between complex values with both inductive and capacitive reactance. A length of line transforms impedance. That is a nuisance when you want to know what a load really is, and a tool when you want to build one: a shorted piece of cable is an inductor or a capacitor, a quarter-wave piece is an impedance inverter, and both are standard parts of RF filters and matching networks. This lesson derives the input impedance of a loaded line and its four most useful special cases.

The input-impedance formula

Z0, beta lossless line ZL Zin length l (d = l from the load)

At a distance dd from the load the voltage and current are the forward and backward waves of Reflection and VSWR: V~(d)=V0+(ejβd+ΓLe−jβd)\tilde{V}(d) = V_0^+(e^{j\beta d} + \Gamma_L e^{-j\beta d}) and I~(d)=(V0+/Z0)(ejβd−ΓLe−jβd)\tilde{I}(d) = (V_0^+/Z_0)(e^{j\beta d} - \Gamma_L e^{-j\beta d}). Their ratio at d=ℓd = \ell, with ΓL=(ZL−Z0)/(ZL+Z0)\Gamma_L = (Z_L - Z_0)/(Z_L + Z_0) substituted, is the input impedance of a lossless line:

Zin=Z0 ZL+jZ0tan⁡βℓZ0+jZLtan⁡βℓ,βℓ=2πℓλZ_\text{in} = Z_0\, \frac{Z_L + jZ_0 \tan\beta\ell}{Z_0 + jZ_L \tan\beta\ell}, \qquad \beta\ell = \frac{2\pi\ell}{\lambda}

(For a lossy line replace jtan⁡βℓj\tan\beta\ell by tanh⁡γℓ\tanh\gamma\ell.) Only the electrical length βℓ\beta\ell matters, and ZinZ_\text{in} repeats every half wavelength.

Special cases

Line ZinZ_\text{in} Use
matched, ZL=Z0Z_L = Z_0 Z0Z_0 at any length the goal of matching
shorted, ZL=0Z_L = 0 jZ0tan⁡βℓjZ_0\tan\beta\ell an inductor for βℓ<90∘\beta\ell < 90^\circ, a parallel resonator at λ/4\lambda/4
open, ZL=∞Z_L = \infty −jZ0cot⁡βℓ-jZ_0\cot\beta\ell a capacitor for βℓ<90∘\beta\ell < 90^\circ, a series resonator at λ/4\lambda/4
half wave, ℓ=λ/2\ell = \lambda/2 ZLZ_L "transparent" repeat, e.g. a radome of half-wave thickness
quarter wave, ℓ=λ/4\ell = \lambda/4 Z02/ZLZ_0^2/Z_L impedance inverter and quarter-wave transformer

Two consequences are worth remembering. A short at the end of a λ/4\lambda/4 line looks like an open circuit at its input, so a quarter-wave shorted stub can hold up a line (or carry DC to an amplifier) without loading the RF signal at that frequency. And since ZocZsc=(−jZ0cot⁡βℓ)(jZ0tan⁡βℓ)=Z02Z_\text{oc}Z_\text{sc} = (-jZ_0\cot\beta\ell)(jZ_0\tan\beta\ell) = Z_0^2, two measurements of a cable (far end open, then shorted) give Z0=ZocZscZ_0 = \sqrt{Z_\text{oc}Z_\text{sc}} at any frequency and any length.

Quarter-wave transformer. To match a resistive load RLR_L to a line Z0Z_0, insert a λ/4\lambda/4 section of impedance Z1=Z0RLZ_1 = \sqrt{Z_0 R_L}: it presents Z12/RL=Z0Z_1^2/R_L = Z_0. It works exactly at one frequency and approximately over a band; the Mini Project designs one in square coax and measures its bandwidth. For a complex load, first move along the line to a voltage minimum or maximum, where the impedance is real (Z0/VSWRZ_0/\text{VSWR} or Z0⋅VSWRZ_0 \cdot \text{VSWR}), and transform from there. Anti-reflection coatings use the same idea for plane waves (Normal Incidence).

Worked example

Given: a 50 Ω50\ \Omega coax with velocity factor 0.6670.667, at 100 MHz100\ \text{MHz} (λ=0.667⋅2.998 m=2.000 m\lambda = 0.667 \cdot 2.998\ \text{m} = 2.000\ \text{m}).

Find: (a) the length of shorted stub that gives +j50 Ω+j50\ \Omega and the inductance it replaces; (b) the length of open stub that gives −j25 Ω-j25\ \Omega and its equivalent capacitance; (c) the input impedance of a λ/8\lambda/8 length terminated in 100 Ω100\ \Omega.

Solve:

(a)jZ0tan⁡βℓ=j50 Ω⇒tan⁡βℓ=1, βℓ=45∘, ℓ=λ/8=25.0 cm;L=50 Ω2π⋅108 Hz=79.6 nH(b)−jZ0cot⁡βℓ=−j25 Ω⇒cot⁡βℓ=0.5, βℓ=63.43∘, ℓ=0.1762λ=35.2 cm;C=12π⋅108 Hz⋅25 Ω=63.7 pF(c)Zin=50 100+j5050+j100 Ω=50 (100+j50)(50−j100)502+1002 Ω=40−j30 Ω\begin{aligned} \text{(a)}\quad & jZ_0\tan\beta\ell = j50\ \Omega \Rightarrow \tan\beta\ell = 1,\ \beta\ell = 45^\circ,\ \ell = \lambda/8 = 25.0\ \text{cm}; \quad L = \frac{50\ \Omega}{2\pi \cdot 10^8\ \text{Hz}} = 79.6\ \text{nH} \\ \text{(b)}\quad & -jZ_0\cot\beta\ell = -j25\ \Omega \Rightarrow \cot\beta\ell = 0.5,\ \beta\ell = 63.43^\circ,\ \ell = 0.1762\lambda = 35.2\ \text{cm}; \quad C = \frac{1}{2\pi \cdot 10^8\ \text{Hz} \cdot 25\ \Omega} = 63.7\ \text{pF} \\ \text{(c)}\quad & Z_\text{in} = 50\,\frac{100 + j50}{50 + j100}\ \Omega = 50\,\frac{(100 + j50)(50 - j100)}{50^2 + 100^2}\ \Omega = 40 - j30\ \Omega \end{aligned}

Check: in (c) ∣ΓL∣=1/3\lvert\Gamma_L\rvert = 1/3, and Γin=(40−j30−50)/(40−j30+50)=(−10−j30)/(90−j30)\Gamma_\text{in} = (40 - j30 - 50)/(40 - j30 + 50) = (-10 - j30)/(90 - j30) has magnitude 31.62/94.87=1/331.62/94.87 = 1/3: a lossless line changes the phase of Γ\Gamma, never its magnitude. A stub is an inductor or capacitor only near its design frequency; at 200 MHz200\ \text{MHz} stub (a) becomes a quarter wave and an open circuit.

In Python

The formula as a function, the stub reactances against frequency, and the same input impedances from skrf network objects:

python · try it yourself
import numpy as np
import matplotlib.pyplot as plt
import skrf as rf

Z0, VF = 50.0, 0.667
V = VF * 2.998e8

def zin(zl, length, f, z0=Z0):
    t = np.tan(2 * np.pi * f / V * length)
    if np.isinf(zl):
        return -1j * z0 / t
    return z0 * (zl + 1j * z0 * t) / (z0 + 1j * zl * t)

lam = V / 100e6
print(f"lambda at 100 MHz = {lam:.4f} m")
short_len = lam / 8
open_len = np.arctan(2) / (2 * np.pi) * lam
print(f"shorted stub {short_len*100:.2f} cm: Zin = {zin(0, short_len, 100e6).imag:+.2f}j Ohm")
print(f"open stub    {open_len*100:.2f} cm: Zin = {zin(np.inf, open_len, 100e6).imag:+.2f}j Ohm")
z = zin(100, lam / 8, 100e6)
print(f"100 Ohm load, lambda/8: Zin = {z.real:.2f}{z.imag:+.2f}j Ohm")
zq = zin(100, lam / 4, 100e6)
print(f"100 Ohm load, lambda/4: Zin = {zq.real:.2f}{round(zq.imag, 2) + 0.0:+.2f}j Ohm (Z0^2/ZL = {Z0**2/100:.2f})")
zoc, zsc = zin(np.inf, 0.37, 100e6), zin(0, 0.37, 100e6)
print(f"37 cm cable: Zoc = {zoc.imag:+.2f}j, Zsc = {zsc.imag:+.2f}j, sqrt(Zoc*Zsc) = {np.sqrt(zoc*zsc).real:.2f} Ohm")

# skrf: the same lines as networks, swept 50..450 MHz
freq = rf.Frequency(50, 450, 401, unit="MHz")
cable = rf.media.DefinedGammaZ0(frequency=freq, z0=Z0, gamma=1j * 2 * np.pi * freq.f / V)
stub_s = cable.line(short_len, unit="m") ** cable.short()
stub_o = cable.line(open_len, unit="m") ** cable.open()
k = int(np.argmin(np.abs(freq.f - 100e6)))
print(f"skrf at {freq.f[k]/1e6:.0f} MHz: short stub {stub_s.z[k,0,0].imag:+.2f}j, open stub {stub_o.z[k,0,0].imag:+.2f}j Ohm")

plt.figure(figsize=(6, 3))
for net, name in [(stub_s, "shorted, 25.0 cm"), (stub_o, "open, 35.2 cm")]:
    x = net.z[:, 0, 0].imag
    plt.plot(freq.f / 1e6, np.where(np.abs(x) < 300, x, np.nan), label=name)   # gaps at resonances
plt.axhline(0, c="grey", lw=0.8)
plt.xlabel("frequency (MHz)"); plt.ylabel("input reactance (Ohm)")
plt.legend(); plt.tight_layout()
plt.show()
lambda at 100 MHz = 1.9997 m
shorted stub 25.00 cm: Zin = +50.00j Ohm
open stub    35.24 cm: Zin = -25.00j Ohm
100 Ohm load, lambda/8: Zin = 40.00-30.00j Ohm
100 Ohm load, lambda/4: Zin = 25.00+0.00j Ohm (Z0^2/ZL = 25.00)
37 cm cable: Zoc = -21.63j, Zsc = +115.60j, sqrt(Zoc*Zsc) = 50.00 Ohm
skrf at 100 MHz: short stub +50.00j, open stub -25.00j Ohm

The plot shows why stubs are narrow-band parts: the shorted stub's reactance rises like an inductor's only up to about 150 MHz150\ \text{MHz}, shoots to infinity at 200 MHz200\ \text{MHz} (a quarter wave) and turns capacitive; the open stub resonates (zero reactance) at 142 MHz142\ \text{MHz}, where it is a quarter wave long.

Cross-check in SPICE

Three λ/8\lambda/8 lines (one-way delay TD=1/(8f)=1.25 nsT_D = 1/(8f) = 1.25\ \text{ns} at 100 MHz100\ \text{MHz}), shorted, open and loaded with 100 Ω100\ \Omega, each driven by a 1 A1\ \text{A} AC current source so that the input voltage is the input impedance. 1 GΩ1\ \text{G}\Omega resistors give every node a DC path (ngspice needs one); at 100 MHz100\ \text{MHz} they add only microohms of resistance:

bash · try it yourself
cat > zin.cir <<'EOF'
* input impedance of lambda/8 lines (TD = 1.25 ns at 100 MHz), Z0 = 50 Ohm
* a 1 A AC current source drives each line, so v(in) is Zin; 1 GOhm keeps DC defined
I1 0 s AC 1
T1 s 0 s_end 0 Z0=50 TD=1.25n
RSH s_end 0 1u
I2 0 o AC 1
T2 o 0 o_end 0 Z0=50 TD=1.25n
I3 0 r AC 1
T3 r 0 r_end 0 Z0=50 TD=1.25n
RL r_end 0 100
RB1 s 0 1g
RB2 o 0 1g
RB3 o_end 0 1g
RB4 r 0 1g
.control
ac lin 1 100meg 100meg
print real(v(s)) imag(v(s)) real(v(o)) imag(v(o)) real(v(r)) imag(v(r))
let z0 = sqrt(v(s) * v(o))
print z0
ac lin 4 100meg 400meg
print real(v(s)) imag(v(s))
.endc
.end
EOF
ngspice -b zin.cir 2>&1 | grep -E '^(real|imag|z0|[0-9])'
real(v(s)) = 4.500000e-06
imag(v(s)) = 5.000000e+01
real(v(o)) = 7.500000e-06
imag(v(o)) = -5.00000e+01
real(v(r)) = 4.000000e+01
imag(v(r)) = -3.00000e+01
z0 = 5.000000e+01,1.500000e-06
0	1.000000e+08	4.500000e-06	5.000000e+01
1	2.000000e+08	7.142857e+08	6.248198e-01
2	3.000000e+08	4.500000e-06	-5.00000e+01
3	4.000000e+08	1.000000e-06	-6.12323e-15

ngspice reproduces +j50+j50, −j50-j50 and 40−j30 Ω40 - j30\ \Omega, and ZocZsc=50 Ω\sqrt{Z_\text{oc}Z_\text{sc}} = 50\ \Omega. The sweep of the shorted line shows the other special cases: at 200 MHz200\ \text{MHz} it is a quarter wave and its input looks like an open circuit (714 MΩ714\ \text{M}\Omega resistive, a value set only by the 1 GΩ1\ \text{G}\Omega bias resistor and the simulator's numerics: effectively infinite), at 300 MHz300\ \text{MHz} (3λ/83\lambda/8) it is a capacitor of −j50 Ω-j50\ \Omega, and at 400 MHz400\ \text{MHz} (half a wave) it is a short again.

Guided lab: open and short a cable

Hand calculation. For a coax of length ℓ\ell and velocity factor 0.6670.667, the open-end reactance is −jZ0cot⁡(2πfℓ/vp)-jZ_0\cot(2\pi f\ell/v_p) and the shorted one +jZ0tan⁡(⋅)+jZ_0\tan(\cdot); the first open-end zero (series resonance) is at f=vp/(4ℓ)f = v_p/(4\ell), for ℓ=1 m\ell = 1\ \text{m} at 50.0 MHz50.0\ \text{MHz}.

Simulation. zin() and the skrf sweep with your cable's length and velocity factor.

What you would measure. Connect 1 m1\ \text{m} of 50 Ω50\ \Omega coax to a VNA (or an antenna analyser) and sweep 11 to 200 MHz200\ \text{MHz}, far end open, then shorted with a good SMA short. Expect resonances at 50 MHz50\ \text{MHz} (open: series, impedance near zero; shorted: parallel, very large) and at multiples of 50 MHz50\ \text{MHz}, alternating. The measured frequencies give vpv_p to about ±1 %\pm 1\ \% (the connectors add a few millimetres of electrical length), and ZocZsc\sqrt{Z_\text{oc}Z_\text{sc}} at a frequency away from resonance gives Z0Z_0 within about ±2 Ω\pm 2\ \Omega. Near the resonances the cable's loss (ignored above) limits how close to zero and infinity the readings get.

Hazards and safe setup. Analyser test signals are milliwatts. Protect the analyser port from static discharge and never connect a cable that may carry DC or transmitter power.

Pitfalls

  • Using physical instead of electrical length. βℓ\beta\ell uses the wavelength in the cable, vp/fv_p/f, not c/fc/f.
  • Forgetting that stubs are narrow-band. A stub that is a 79.6 nH79.6\ \text{nH} inductor at 100 MHz100\ \text{MHz} is an open circuit at 200 MHz200\ \text{MHz}.
  • A quarter-wave transformer needs a real load at its terminals. For a complex load, find the point on the line where the impedance is real first.
  • "Shorted" needs a good short. At hundreds of megahertz a short loop of wire is a few nanohenries of inductance, enough to shift a resonance noticeably.

Practice

  1. Design a quarter-wave transformer to match a 100 Ω100\ \Omega resistive load to a 50 Ω50\ \Omega line at 433 MHz433\ \text{MHz} in a cable with velocity factor 0.80.8. Give Z1Z_1 and the physical length.
  2. What does a λ/4\lambda/4 line of Z0=50 ΩZ_0 = 50\ \Omega terminated in 10 Ω10\ \Omega look like at its input?
  3. A shorted 50 Ω50\ \Omega stub must replace a 10 pF10\ \text{pF} capacitor at 1 GHz1\ \text{GHz}. What electrical length does it need?
Answer
  1. Z1=50⋅100=70.7 ΩZ_1 = \sqrt{50 \cdot 100} = 70.7\ \Omega; λ=0.8⋅2.998×108/433×106=0.554 m\lambda = 0.8 \cdot 2.998 \times 10^8/433 \times 10^6 = 0.554\ \text{m}, so the section is 13.8 cm13.8\ \text{cm} long.
  2. 502/10=250 Ω50^2/10 = 250\ \Omega.
  3. XC=−1/(2π⋅109⋅10−11)=−15.9 ΩX_C = -1/(2\pi \cdot 10^9 \cdot 10^{-11}) = -15.9\ \Omega; tan⁡βℓ=−0.318\tan\beta\ell = -0.318, so βℓ=180∘−17.7∘=162.3∘\beta\ell = 180^\circ - 17.7^\circ = 162.3^\circ (0.451λ0.451\lambda). An open stub would be shorter: cot⁡βℓ=0.318\cot\beta\ell = 0.318, βℓ=72.3∘\beta\ell = 72.3^\circ.

Test yourself

A shorted lossless line is λ/4\lambda/4 long. Its input impedance is…

  1. zero
  2. Z0Z_0
  3. infinite (an open circuit)
  4. jZ0jZ_0

A quarter-wave transformer matches 200 Ω200\ \Omega to 50 Ω50\ \Omega. Its characteristic impedance is…

  1. 125 Ω125\ \Omega
  2. 100 Ω100\ \Omega
  3. 150 Ω150\ \Omega
  4. 250 Ω250\ \Omega

A cable reads Zoc=−j20 ΩZ_\text{oc} = -j20\ \Omega open and Zsc=+j125 ΩZ_\text{sc} = +j125\ \Omega shorted. Its Z0Z_0 is…

  1. 50 Ω50\ \Omega
  2. 72.5 Ω72.5\ \Omega
  3. 105 Ω105\ \Omega
  4. 2500 Ω2500\ \Omega

Moving along a lossless line towards the source, the magnitude of the reflection coefficient…

  1. grows
  2. falls
  3. stays the same while its phase rotates
  4. becomes zero at λ/4\lambda/4