A7 · Lesson 5 · Matrix multiplication
Doing one transformation after another
A filter feeds an amplifier, which feeds a cable, which feeds a load. Each stage can be described by a 2 × 2 matrix relating the voltage and current at its input to those at its output. To get the whole chain, you multiply the matrices. The rule for multiplying them looks arbitrary at first, rows times columns, but it's forced by one requirement: the product must do what the two matrices do, one after the other.
- Matrix rotates the plane by ; matrix stretches it sideways by .
- The solid curve is the unit circle after (stretch first, then rotate). The dashed curve is after (rotate first, then stretch).
- Are they the same shape? Find settings where they match, and settings where they're far apart.
Predict
You stretch the plane sideways and then rotate it, or rotate first and then stretch. Do you get the same result?
Only in special cases. Stretching then rotating tilts the stretched direction; rotating then stretching always stretches along the axis. They agree when (no stretch) or is 0° or 180°. In general : the order of operations matters, and matrix multiplication keeps track of it.
Name it
The rule
If is and is , then is , and its entry in row , column is row of dotted with column of :
The inner sizes must match (), and the outer sizes give the shape of the result.
Why it's this rule
must equal : first apply , then . Column of is times column of , which is where the th basis vector ends up after both steps. Writing that out gives the row-times-column rule.
Properties
- Not commutative: usually . Read right to left: acts first.
- Associative: , so a chain of stages can be grouped any way.
- Identity: has ones on the diagonal; .
- Distributive: .
Cascading two-ports
A two-port network (a stage with an input and an output) has a transmission matrix relating input voltage and current to output voltage and current:
A series impedance is ; a shunt admittance is . A chain of stages has the product of their matrices, in order from input to output. With the output open (), the voltage gain is . S6 uses these for RF networks.
Worked example
Compute and for , .
Show the solution
- Row 1 of . Row 1 of times the columns of :
- Row 2 of .
- The two products. Different, as expected.
Answer and , which are different.
Worked example
A 1 kΩ series resistor is followed by a 1 kΩ shunt resistor. Find the chain's transmission matrix and its open-circuit voltage gain.
Show the solution
- Multiply the series and shunt matrices.
- Gain. The open-circuit gain is one over the top-left entry: an ordinary voltage divider, found by multiplying matrices.
Answer the chain's transmission matrix is , and its open-circuit gain is .
Worked example
Multiply the 30° rotation matrix by itself and show the product is the 60° rotation.
Show the solution
- The 30° rotation.
- Diagonal entries of .
- Off-diagonal entries. The bottom-left is and the top-right is .
- The product. That's and in the right places.
- The double-angle formulas. The entries are which matrix multiplication proves without any trigonometry.
Answer , the 60° rotation.
Check
For and , what is the top-left entry of ?
Check
For and , what is the bottom-left entry of ?
Check
is 3 × 2 and is 2 × 4. What is ?
Check
A series resistor = 1 kΩ is followed by a shunt = 2 kΩ. What is the top-left entry of the chain's transmission matrix?
Check
For and , what is the top-left entry of ? (Compare , whose top-left entry is 1.)
Check
What is the top-right entry of ?
Check
Take and .
(a)
What is the top-left entry of ?
(b)
What is the bottom-right entry of ?
Check
A series impedance is followed by a shunt admittance .
Step 1
What is the top-left entry of ?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
What is the open-circuit voltage gain?
Explain why
Why is usually different from ?
means "apply , then apply ", and means the reverse. Transformations generally don't commute: stretching sideways and then rotating tilts the stretch, while rotating first and then stretching stretches along the original axis. The two results are different shapes, so their matrices are different. Multiplication rules for numbers don't carry over, because a matrix is an action, and the order of actions matters.
Practice
Keep practicing
9 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.