Mason's gain formula explained

Mason's gain formula (MGF) is a method for finding the transfer function of a linear signal-flow graph (SFG). The formula was derived by Samuel Jefferson Mason,[1] for whom it is named. MGF is an alternate method to finding the transfer function algebraically by labeling each signal, writing down the equation for how that signal depends on other signals, and then solving the multiple equations for the output signal in terms of the input signal. MGF provides a step by step method to obtain the transfer function from a SFG. Often, MGF can be determined by inspection of the SFG. The method can easily handle SFGs with many variables and loops including loops with inner loops. MGF comes up often in the context of control systems, microwave circuits and digital filters because these are often represented by SFGs.

Formula

The gain formula is as follows:

G=

yout
yin

=

N
\sum
k=1
{Gk\Deltak
}{

\Delta}

\Delta=1-\sumLi+\sumLiLj-\sumLiLjLk++(-1)m\sum+ …

where:

Definitions[2]

Procedure to find the solution

  1. Make a list of all forward paths, and their gains, and label these Gk.
  2. Make a list of all the loops and their gains, and label these Li (for i loops). Make a list of all pairs of non-touching loops, and the products of their gains (LiLj). Make a list of all pairwise non-touching loops taken three at a time (LiLjLk), then four at a time, and so forth, until there are no more.
  3. Compute the determinant Δ and cofactors Δk.
  4. Apply the formula.

Examples

Circuit containing two-port

The transfer function from Vin to V2 is desired.

There is only one forward path:

G1=-y21RL

There are three loops:

L1=-Riny11

L2=-RLy22

L3=y21RLy12Rin

\Delta=1-(L1+L2+L3)+(L1L2)

note: L1 and L2 do not touch each other whereas L3 touches both of the other loops.

\Delta1=1

note: the forward path touches all the loops so all that is left is 1.

G=

G1\Delta1
\Delta

=

-y21RL
1+Riny11+RLy22-y21RLy12Rin+Riny11RLy22

Digital IIR biquad filter

Digital filters are often diagramed as signal flow graphs.

There are two loops

L1=-a1Z-1

L2=-a2Z-2

\Delta=1-(L1+L2)

Note, the two loops touch so there is no term for their product.

There are three forward paths

G0=b0

G1=b1Z-1

G2=b2Z-2

All the forward paths touch all the loops so

\Delta0=\Delta1=\Delta2=1

G=

G0\Delta0+G1\Delta1+G2\Delta2
\Delta

G=

b0+b1Z-1+b2Z-2
1+a1Z-1+a2Z-2

Servo

The signal flow graph has six loops. They are:

L0=-

\beta
sM

L1=

-(RM+RS)
sLM

L2=

-GMKM
s2LMM

L3=

-KCRS
sLM

L4=

-KVKCKMGT
s2LMM

L5=

-KPKVKCKM
s3LMM

\Delta=1-(L0+L1+L2+L3+L4+L5)+(L0L1+L0L3)

There is one forward path:

g0=

KPKVKCKM
s3LMM

The forward path touches all the loops therefore the co-factor

\Delta0=1

And the gain from input to output is

\thetaL
\thetaC

=

g0\Delta0
\Delta

Equivalent matrix form

Mason's rule can be stated in a simple matrix form. Assume

T

is the transient matrix of the graph where

tnm=\left[T\right]nm

is the sum transmittance of branches from node m toward node n. Then, the gain from node m to node n of the graph is equal to

unm=\left[U\right]nm

, where

U=\left(I-T\right)-1

,

and

I

is the identity matrix.

Mason's Rule is also particularly useful for deriving the z-domain transfer function of discrete networks that have inner feedback loops embedded within outer feedback loops (nested loops). If the discrete network can be drawn as a signal flow graph, then the application of Mason's Rule will give that network's z-domain H(z) transfer function.

Complexity and computational applications

Mason's Rule can grow factorially, because the enumeration of paths in a directed graph grows dramatically. To see this consider the complete directed graph on

n

vertices, having an edge between every pair of vertices. There is a path form

yin

to

yout

for each of the

(n-2)!

permutations of the intermediate vertices. Thus Gaussian elimination is more efficient in the general case.

Yet Mason's rule characterizes the transfer functions of interconnected systems in a way which is simultaneously algebraic and combinatorial, allowing for general statements and other computations in algebraic systems theory. While numerous inverses occur during Gaussian elimination, Mason's rule naturally collects these into a single quasi-inverse. General form is

p
1-q

,

Where as described above,

q

is a sum of cycle products, each of which typically falls into an ideal (for example, the strictly causal operators). Fractions of this form make a subring

R(1+\langle

-1
L
i\rangle)
of the rational function field. This observation carries over to the noncommutative case,[3] even though Mason's rule itself must then be replaced by Riegle's rule.

See also

References

Notes and References

  1. Mason. Samuel J. . July 1956. Feedback Theory - Further Properties of Signal Flow Graphs. Proceedings of the IRE. 920–926. 10.1109/jrproc.1956.275147. 44. 7 . 1721.1/4778 . 18184015 . free.
  2. Book: Kuo, Benjamin C. . 1967 . Automatic Control Systems . 2nd . Prentice-Hall . 59–60.
  3. Pliam, J.O. . Lee, E.B. . 1995. On the global properties of interconnected systems. IEEE Trans. Circuits and Syst. I. 1013–1017. 10.1109/81.481196. 42. 12.