---
title: ABCD matrices and cascades
heading: The transmission matrix, cascading two-ports by multiplication, building-block matrices, and converting to S-parameters
eyebrow: S6 · Lesson 3 · ABCD matrices and cascades
xp: 50
---

::: hook
Most microwave circuits are chains: a filter is a ladder of series and shunt elements, a matching network a line followed by a stub, an amplifier a match, a transistor and another match. The ABCD (transmission) matrix is built for chains. It relates the voltage and current at a two-port's input to those at its output, so the matrix of a whole cascade is just the product of its pieces' matrices, in order. A handful of building blocks, a series impedance, a shunt admittance, a length of line, covers nearly everything, and one formula turns the result into the S-parameters a network analyzer would measure.
:::

::: play
- A three-element lowpass filter, series L, shunt C, series L, between 50 Ω ports, computed by multiplying three ABCD matrices and converting to $|S_{21}|$ in dB.
- With L = 7.96 nH and C = 6.37 pF it's a 1 GHz Butterworth filter: −3.01 dB at 1 GHz and −18.1 dB at 2 GHz, exactly the Butterworth response $1/(1 + (f/f_c)^6)$.
- Change the values and the response loses its flatness or shifts: the next lessons show how filter values are chosen.
:::
:::

```sim plot
view: graph
x: f = 0.1..4 GHz
y: S = -50..2 dB
slider: L = 1..20 = 7.96 nH
slider: C = 1..15 = 6.37 pF
plot: 20*log(abs(2/((1 + (j*2*pi*f*L)*(j*2*pi*f*C/1000)) + ((j*2*pi*f*L)*2 + (j*2*pi*f*L)^2*(j*2*pi*f*C/1000))/50 + (j*2*pi*f*C/1000)*50 + (1 + (j*2*pi*f*L)*(j*2*pi*f*C/1000))))) | samples: 600 | label: |S₂₁|, dB
plot: -3.01 | dashed | color: ch3 | label: −3 dB
```

::: predict
## A two-port's ABCD matrix is [[1, 0], [0, 1]]. What is it?

- [ ] An open circuit
- [ ] A short circuit
- [x] A direct connection (a zero-length line)
- [ ] A matched load

::: reveal
The identity matrix leaves voltage and current unchanged from input to output: $V_1 = V_2$, $I_1 = I_2$. That's a plain through connection. Cascading anything with it leaves that thing unchanged, just as multiplying by 1 does.
:::
:::

::: nameit
## The ABCD matrix

$$\begin{bmatrix}V_1\\I_1\end{bmatrix} = \begin{bmatrix}A & B\\C & D\end{bmatrix}\begin{bmatrix}V_2\\I_2\end{bmatrix}$$

with $I_2$ flowing *out* of port 2 into the next stage, so a cascade's matrix is the product of its stages' matrices, input to output:

$$[\text{ABCD}]_\text{total} = [\text{ABCD}]_1[\text{ABCD}]_2\cdots$$

## Building blocks

| Two-port | A | B | C | D |
|---|---|---|---|---|
| series impedance Z | 1 | Z | 0 | 1 |
| shunt admittance Y | 1 | 0 | Y | 1 |
| line, $Z_0$, βl | $\cos\beta l$ | $jZ_0\sin\beta l$ | $jY_0\sin\beta l$ | $\cos\beta l$ |
| ideal transformer N:1 | N | 0 | 0 | 1/N |

A reciprocal network has $AD - BC = 1$; a symmetric one also has A = D. A quarter-wave line, [[0, jZ₀], [j/Z₀, 0]], is an **impedance inverter**: it turns a load $Z_L$ into $Z_0^2/Z_L$.

## Using the result

- Input impedance with a load: $Z_\text{in} = \frac{AZ_L + B}{CZ_L + D}$.
- S-parameters in a $Z_0$ system:

$$S_{11} = \frac{A + B/Z_0 - CZ_0 - D}{A + B/Z_0 + CZ_0 + D}, \qquad S_{21} = \frac{2}{A + B/Z_0 + CZ_0 + D}$$

(for a reciprocal network $S_{12} = S_{21}$).
:::

::: example
## Find the ABCD matrix of the T lowpass (series Z₁, shunt Y, series Z₂), and check the 1 GHz Butterworth design.

::: solution
1. **Multiply the three matrices.**
   $$\begin{aligned} &\begin{bmatrix}1 & Z_1\\0 & 1\end{bmatrix}\begin{bmatrix}1 & 0\\Y & 1\end{bmatrix}\begin{bmatrix}1 & Z_2\\0 & 1\end{bmatrix} \\ &= \begin{bmatrix}1 + Z_1Y & Z_1 + Z_2 + Z_1Z_2Y\\Y & 1 + Z_2Y\end{bmatrix} \end{aligned}$$
2. **Check the Butterworth design.** With L = 7.96 nH, C = 6.37 pF and $Z_0$ = 50 Ω, $S_{21}$ gives −3.01 dB at 1 GHz and −18.13 dB at 2 GHz.
3. **Compare with the formula.** The 2 GHz value matches the maximally flat response exactly:
   $$10\log\frac{1}{1 + 2^6} = -18.13\ \text{dB}$$

**Answer:** $A = 1 + Z_1Y$, $B = Z_1 + Z_2 + Z_1Z_2Y$, $C = Y$ and $D = 1 + Z_2Y$, and the design gives −3.01 dB at 1 GHz and −18.13 dB at 2 GHz, exactly as the Butterworth formula says.
:::
:::

::: example
## Check the 3 dB attenuator T (8.6, 141.8, 8.6 Ω) with ABCD matrices.

::: solution
1. **A and D.**
   $$\begin{aligned} A = D &= 1 + \frac{8.6}{141.8} \\ &= 1.0606 \end{aligned}$$
2. **B and C.**
   $$\begin{aligned} B &= 2(8.6) + \frac{8.6^2}{141.8} \\ &= 17.72\ \Omega \\ C &= 1/141.8 \\ &= 7.05\ \text{mS} \end{aligned}$$
3. **Reciprocity check.**
   $$\begin{aligned} AD - BC &= 1.1249 - 0.1249 \\ &= 1 \end{aligned}$$
   as for any reciprocal network.
4. **Denominator.** In 50 Ω, $B/Z_0 = 0.354$ and $CZ_0 = 0.353$:
   $$\begin{aligned} &A + B/Z_0 + CZ_0 + D \\ &= 1.0606 + 0.354 \\ &\quad + 0.353 + 1.0606 \\ &= 2.828 \end{aligned}$$
5. **Transmission.**
   $$\begin{aligned} S_{21} &= \frac{2}{2.828} \\ &= 0.707 \end{aligned}$$
   which is −3.01 dB.

**Answer:** A = D = 1.0606, B = 17.72 Ω and C = 7.05 mS, with AD − BC = 1, and $S_{21}$ = 0.707 (−3.01 dB), as a 3 dB attenuator should give.
:::
:::

::: example
## A lossless 75 Ω line 45° long sits in a 50 Ω system. Find its S-parameters from its ABCD matrix. What if it were a 50 Ω line?

::: solution
1. **ABCD matrix of the line.**
   $$\begin{aligned} A = D &= \cos 45° \\ &= 0.707 \\ B &= j75 \times 0.707 \\ &= j53.0\ \Omega \\ C &= j0.707/75 \\ &= j9.43\ \text{mS} \end{aligned}$$
2. **Normalize to 50 Ω.**
   $$\begin{aligned} B/Z_0 &= j1.061 \\ CZ_0 &= j0.471 \end{aligned}$$
3. **Denominator.** Its magnitude is 2.085:
   $$\begin{aligned} &A + B/Z_0 + CZ_0 + D \\ &= 1.414 + j1.532 \end{aligned}$$
4. **S-parameters.**
   $$\begin{aligned} |S_{11}| &= \frac{0.589}{2.085} \\ &= 0.283 \\ |S_{21}| &= \frac{2}{2.085} \\ &= 0.959 \end{aligned}$$
5. **Lossless check.** As a lossless network must,
   $$0.283^2 + 0.959^2 = 1$$
6. **A 50 Ω line.** A 50 Ω line gives $B/Z_0 = CZ_0$, so $S_{11} = 0$ and $S_{21} = 1\angle{-45°}$: a matched line is pure delay.

**Answer:** the 75 Ω line has |S₁₁| = 0.283 and |S₂₁| = 0.959; a 50 Ω line would give S₁₁ = 0 and S₂₁ = 1∠−45°.
:::
:::

::: check
given: A = 1 | 1.5 | 2; B = 10 | 50; C = 0.005 | 0.02; L = 25 | 50 | 100
answer: (A*L + B)/(C*L + (1 + B*C)/A)
unit: Ω
tolerance: 0.5%

## A reciprocal two-port has A = {A}, B = {B} Ω and C = {C} S (so D = (1 + BC)/A). What's its input impedance with a {L} Ω load?

::: right
Right. $\frac{AZ_L + B}{CZ_L + D}$ = {answer} Ω.
:::

::: misses
- [(A*L + B)/(C*L + A)] Find D from reciprocity: AD − BC = 1.
- [any] Not yet. $Z_\text{in} = (AZ_L + B)/(CZ_L + D)$.
:::
:::

::: check
given: A = 1 | 1.2; B = 20 | 60; C = 0.004 | 0.01
answer: (1 + B*C)/A
tolerance: 0.5%

## A reciprocal two-port has A = {A}, B = {B} Ω and C = {C} S. What's D?

::: right
Right. AD − BC = 1 gives D = {answer}.
:::

::: misses
- [B*C/A] Reciprocity requires AD − BC = 1.
- [any] Not yet. Solve AD − BC = 1.
:::
:::

::: check
given: Z = 10 | 40; Y = 0.005 | 0.02
answer: 1 + Z*Y
tolerance: 0.5%

## A series impedance of {Z} Ω is followed by a shunt admittance of {Y} S. What's the A element of the cascade?

::: right
Right. $\begin{bmatrix}1 & Z\\0 & 1\end{bmatrix}\begin{bmatrix}1 & 0\\Y & 1\end{bmatrix}$ has A = 1 + ZY = {answer}.
:::

::: misses
- [1] Multiply the matrices: the series element and the shunt element interact.
- [any] Not yet. Multiply the two matrices in order.
:::
:::

::: check
given: A = 1 | 1.1; B = 5 | 25; C = 0.002 | 0.008; Z = 50
answer: 2/(A + B/Z + C*Z + (1 + B*C)/A)
tolerance: 0.5%

## A reciprocal two-port has A = {A}, B = {B} Ω, C = {C} S. What's its |S₂₁| in a {Z} Ω system?

::: right
Right. $\frac{2}{A + B/Z_0 + CZ_0 + D}$ = {answer}.
:::

::: misses
- [any] Not yet. Find D, then use the conversion formula.
:::
:::

::: check
given: Z = 35.36 | 50 | 70.71; L = 25 | 100 | 200
answer: Z^2/L
unit: Ω
tolerance: 0.5%

## A quarter-wave line of {Z} Ω is terminated in {L} Ω. What's its input impedance?

::: right
Right. $Z_0^2/Z_L$ = {answer} Ω.
:::

::: misses
- [L] A quarter wave inverts the impedance.
- [any] Not yet. The quarter-wave line's ABCD matrix is [[0, jZ₀], [j/Z₀, 0]].
:::
:::

::: check
given: f = 1 | 2.4; L = 2 | 8; C = 1 | 5
answer: 20*log(abs(2/((1 + (j*2*pi*f*L)*(j*2*pi*f*C)) + ((j*2*pi*f*L)*2 + (j*2*pi*f*L)^2*(j*2*pi*f*C))/50 + (j*2*pi*f*C)*50 + (1 + (j*2*pi*f*L)*(j*2*pi*f*C)))))
unit: dB
tolerance: 0.05

## A T of series {L} nH, shunt {C} pF, series {L} nH sits in a 50 Ω system. What's |S₂₁| at {f} GHz?

::: right
Right. {answer} dB.
:::

::: misses
- [any] Not yet. Multiply the three matrices, then convert to S₂₁.
:::
:::

::: check
kind: parts
given: Z = 25 | 75 | 100; t = 30 | 45 | 60

## A lossless line of {Z} Ω, {t}° long, sits in a 50 Ω system.

::: part
answer: abs(sin(t*pi/180)*(Z/50 - 50/Z))/sqrt(4*cos(t*pi/180)^2 + sin(t*pi/180)^2*(Z/50 + 50/Z)^2)
tolerance: 0.5%

### What is |S₁₁|?

::: misses
- [any] From $A = D = \cos\theta$, $B = jZ\sin\theta$, $C = j\sin\theta/Z$.
:::
:::

::: part
answer: 2/sqrt(4*cos(t*pi/180)^2 + sin(t*pi/180)^2*(Z/50 + 50/Z)^2)
tolerance: 0.5%

### What is |S₂₁|?

::: misses
- [any] $2/|A + B/Z_0 + CZ_0 + D|$.
:::
:::
:::

::: check
kind: derivation
vars: Z = 1..100, Y = 0.001..0.1, L = 1..200

## A shunt admittance Y is followed by a series impedance Z (both real), and the cascade is loaded with L.

::: step
answer: 1

### What is A?
:::

::: step
answer: 1 + Y*Z

### What is D?
:::

::: step
answer: (L + Z)/(Y*L + 1 + Y*Z)

### What input impedance does it present?
:::

::: right
Right. Multiplying [[1, 0], [Y, 1]] by [[1, Z], [0, 1]] gives [[1, Z], [Y, 1 + YZ]], and $(AZ_L + B)/(CZ_L + D)$ is Y in parallel with Z + $Z_L$.
:::
:::

::: explain
## Why do ABCD matrices cascade by multiplication when Z, Y and S matrices don't?

::: model
The ABCD matrix is defined so that it maps the output port's voltage and current to the input port's voltage and current, with the output current taken as flowing out into whatever comes next. When two two-ports are connected, the first's output voltage and current are exactly the second's input voltage and current, so substituting one relation into the other gives the cascade's input in terms of the second's output, which is just the product of the two matrices. Z, Y and S matrices relate quantities at both ports to each other in a mixed way, voltages to currents at both ports or incident to reflected waves at both, so connecting two networks couples their equations and needs more algebra. That's why chains are analyzed in ABCD form and the result converted to S at the end.
:::
:::

::: practice

::: check
given: A = 1.2 | 1.6; B = 15 | 45; C = 0.006 | 0.015; L = 50 | 75
answer: (A*L + B)/(C*L + (1 + B*C)/A)
unit: Ω
tolerance: 0.5%

## $Z_\text{in}$: A = {A}, B = {B}, C = {C}, load {L} Ω (reciprocal)?

::: misses
- [any] $(AZ_L + B)/(CZ_L + D)$, D from AD − BC = 1.
:::
:::

::: check
given: Z = 50 | 100; L = 40 | 150
answer: Z^2/L
unit: Ω
tolerance: 0.5%

## Quarter-wave inverter: {Z} Ω line, {L} Ω load?

::: misses
- [any] $Z_0^2/Z_L$.
:::
:::

::: check
given: Z = 20 | 60; Y = 0.004 | 0.015
answer: 1 + Z*Y
tolerance: 0.5%

## A element of series {Z} Ω then shunt {Y} S?

::: misses
- [any] 1 + ZY.
:::
:::
:::
