Theoremcore
Mason's gain formula
Also called Mason's rule.
The gain of a signal-flow graph from a source to a node equals the sum over forward paths of the path gain times the determinant of the loops off the path, divided by the graph determinant.
Mason's gain formula gives the gain from an input to an output of a linear signal-flow graph directly from the drawing. One lists the forward paths from the input to the output, the loops, and which loops do not touch each other, and the formula combines their gains into one fraction. In control it turns a block diagram with several feedback loops into a transfer function in one step, and in circuit theory it gives transfer functions as formulas in the element values. The formula is a combinatorial form of Cramer's rule for the node equations of the graph.
Statement
Setting. A signal-flow graph has nodes , one source node with no incoming edges, and a gain on each edge, with parallel edges merged. The node equations are , where is the gain of the edge and the gain of the edge . A loop is a closed path with no repeated node, and two subgraphs touch if they have a common node. The determinant of a graph is
where is the gain of loop , and the -th sum runs over the sets of loops that touch none of each other.
Theorem (Mason, 1956). If , the gain from to a node is
where is the gain of the -th forward path from to , and is the determinant of the graph that is left when the nodes of the -th path are removed (so uses only the loops that do not touch that path). Moreover .
In plain words
Draw every route from the input to the output and multiply the gains along each route. Then look at the feedback loops. The bottom of the fraction starts at one, takes away each loop gain, adds back the product for each pair of loops that share no node, takes away the product for each such triple, and so on. Each route on top gets the same kind of correction, but only from the loops that do not cross that route. The answer is the corrected sum of the routes divided by the bottom. The bottom is the same for every output, and it is zero exactly when the equations of the graph have no unique solution.
Proof
The proof has two claims. The first shows that the determinant of the graph is the matrix determinant. The second gets the gain from the first claim, applied to a larger graph.
Claim 1. , where runs over the sets of pairwise disjoint loops, the empty set included. This sum is .
Proof. By the Leibniz formula, over the permutations of . For the factor is . For the factor is ; expand it as the choice of or . After the expansion, each term is fixed by and a set of fixed points at which was chosen. Let be the set of points moved by , together with , and . The term is
The cycles of on , with the points of as cycles of length one, are disjoint. A cycle uses the factors , which are the gains of the edges , , and so on. So the product is not zero exactly when every cycle is a loop of the graph (read backward), and then the product is the product of the loop gains. Conversely, a set of disjoint loops gives exactly one pair . If the term has loops, , because a cycle of length has sign and a cycle of length one has sign . The total sign is . Summing over all terms gives the claim.
Claim 2. .
Proof. Make an ordinary node and add one edge with a gain , a free element of the field. The new graph has no source, and its matrix is
where is the -th unit vector. Because is invertible, the Schur complement formula gives
since is the -th node value for .
Now compute the same determinant with Claim 1 on the new graph. The only edge into is . So a loop of the new graph either avoids , and then it is a loop of the old graph, or it passes through , and then it is a forward path from to closed by the edge , with gain . Two loops through touch, so a set of disjoint loops has at most one of them. The sets with none give . The sets with the loop add to it any set of disjoint old loops that do not touch , and they give . So
Both expressions are polynomials of degree at most one in , and they are equal as polynomials, so the coefficients of agree: .
With , Claim 2 gives the formula, and Claim 1 gives . This proves the theorem.
A worked example. Take the nodes , the source , and the edges , , , , , and , with the output . The loops are with gain and with gain . They do not touch, so
The forward path has gain and touches both loops, so . The forward path has gain and does not touch the first loop, so . Hence
With , , , , and , this gives , the numerator and . Solving the four node equations by Gaussian elimination gives for as well.
Consequences
- The block diagram rules. Each rule of block diagram reduction is a small case. Two blocks in series form one path with no loop, so . Two blocks in parallel form two paths, so . A negative feedback loop has the path and the loop , so .
- The closed-loop characteristic equation. For a graph whose gains are transfer functions, is the characteristic equation of the interconnection, and is the same for every input and output. So all closed-loop transfer functions of one diagram share the denominator , up to cancellations.
- Symbolic analysis. The formula gives the transfer function as an explicit sum of products of the gains. Symbolic circuit analysis uses this to show how each element value enters a circuit's response.
- Cost (a measurement of the count). The number of loops can grow exponentially with the number of nodes. In the complete directed graph on nodes, the number of loops of length at least 2 is , which is 84 for , 1,112,073 for and about for . Gaussian elimination solves the same node equations in arithmetic operations. So the formula is a tool for small graphs and for formulas, not a numeric algorithm for large ones.
Tightness
- The products of nontouching loops are needed. In the worked example, the sum of the single loops alone gives in place of , and then would be wrong. Only when every two loops touch is .
- The cofactor is needed. With in place of , the example gives , not 8. A path that misses a loop is still multiplied by that loop's factor.
- The hypothesis cannot be dropped. A node with a self-loop of gain 1 and an edge gives , which has no solution for . Here and the formula has no meaning.
- Linearity cannot be dropped. The proof uses the determinant of the node equations, so it fails for a graph with a product or a saturation at a node.
History
Samuel J. Mason, at the Research Laboratory of Electronics of MIT, introduced signal-flow graphs in a 1953 paper on feedback theory, with the node equations and rules to reduce a graph step by step. His 1956 paper, "Further properties of signal flow graphs", gave the general gain formula and its proof by the expansion of the determinant of the node equations; it also appeared in 1955 as an MIT Research Laboratory of Electronics technical report. Control textbooks teach the formula as "Mason's rule", as the hand method for diagrams with several loops.
References
- Samuel J. Mason, Feedback theory, further properties of signal flow graphs, Proceedings of the IRE 44(7), 1956, pp. 920 to 926 (the general gain formula and its proof by the expansion of a determinant)
- Samuel J. Mason, Feedback theory, some properties of signal flow graphs, Proceedings of the IRE 41(9), 1953, pp. 1144 to 1156 (the graphs, their node equations and their reduction rules)
- Gene F. Franklin, J. David Powell and Abbas Emami-Naeini, Feedback Control of Dynamic Systems, eighth edition, Pearson, 2019, Section 3.2.3, Mason's Rule and the Signal Flow Graph (an online section)
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag D9D5KK Edit this page History Report an error Markdown