Chapter 3

# 3.2 Signal Flow Graphs

3.2.1 Introduction

We have just demonstrated that transfer functions of systems represented by block diagrams can be found by applying the rules of block diagram algebra and their reduction. A simpler approach referred to as “Signal Flow Graphs” will be now introduced. The theory of flow graphs follows the theory of solutions of sets of algebraic simultaneous equations – both the block diagrams and signal flow graphs are graphical representations of algebraic equations. In 1953 Samuel J. Mason (1921-1974), working at M.I.T., published a paper in which he stated the gain formula now used to determine transfer functions from signal flow graphs.

Mason’s Gain formula is basically a short-hand representation of the Cramer’s Rule that is used to solve sets of algebraic equations. Block diagrams consist of blocks, summers, take-off points and signals with arrows indicating a direction of a signal flow. Signal flow graphs are much more succinct and only include nodes for signals and branches for gains. Any signals entering a node are assumed to be added or subtracted, as indicated by the polarity of the branch gain – thus for the incoming signals, the node acts as a summer. Any signal leaving the node is assumed to carry the value of the signal represented by that node – thus the node also acts as a take-off point, for all outgoing signals. Figure 3‑6 shows basic equivalencies between a block diagram and a signal flow graph. Using these basic definitions, the block diagram shown in Figure 3‑1 can be re-drawn as a signal flow graph shown in Figure 3‑7.

3.2.2 Introduction

Consider again the block diagram example shown in Figure 3‑1, where we want to calculate the I/O relationship, the transfer function $G(s) = \frac{Y(s)}{R(s)}$. An alternative to a tedious block diagram reduction is to consider algebraic equations that are represented by this block diagram, and to apply the Cramer’s rule of solving sets of simultaneous algebraic equations. Recall that the Cramer’s Rule is as follows:

 Equation 3‑1 Equation 3‑2

In Equation 3‑2, $\Delta$ is defined as the Main Determinant of the set of linear equations shown in Equation 3‑1 and $\Delta_{i}$ is defined as a co-factor of the variable $x_{i}$. Algebraic equations describing the block diagram in Figure 3‑1, or its equivalent signal flow graph in Figure 3‑7, can be written up as:

$E = R - H_{3}Y$

$X_{1}= G_{1}E - H_{2}X_{3}$

$X_{2} = X_{1}G_{2} + H_{1}Y$

$X_{3} = X_{2}G_{3}$

$Y = G_{4}X_{3}$

They can be re-written in a matrix form as:

The solution for the output signal, Y, can be then found, according to Equation 3‑2.

 Equation 3‑3

In Equation 3‑3, the Main Determinant of the equation set, and also of the system represented by the block diagram, can be found, following the rules of matrix algebra:

Similarly, the Co-factor for variable Y can be found as:

Finally, the transfer function of the system can be found:

$Y = \frac{\Delta_{\gamma}}{\Delta} = \frac{RG_{1}G_{2}G_{3}G_{4}}{1+G_{1}G_{2}G_{3}G_{4}H_{3} - G_{2}G_{4}H_{3} + G_{2}G_{3}H_{2}}$

$Y = \frac{Y}{R} = \frac{G_{1}G_{2}G_{3}G_{4}}{1+G_{1}G_{2}G_{3}G_{4}H_{3} - G_{3}G_{4}H_{3} + G_{2}G_{3}H_{2}}$

This is of course identical with the solution derived through the block diagram reduction. What follows is called the Mason’s Gain formula, and it is a short-hand notation of the Cramer’s Rule result. The Mason’s Gain formula defines a few simple-to-follow rules that allow us to write the transfer function of the system by inspection, without going through solving the algebraic equations describing the signal flow (or block diagram).

### 3.2.3 Mason’s Gain Formula

The Mason’s gain formula is written as:

 $G(s) = \frac{\sum_{i}P_{i}\cdot \Delta_{i}}{\Delta}$ Equation 3‑4

where $\Delta$ is the Main Determinant of the system described by a signal flow graph. The system characteristic equation is then $\Delta (s) = 0$. The Main Determinant is defined as:

 $\Delta = 1 - \bigg( \sum_{k} L_{k} \bigg) + \bigg( \sum_{k} L_{i}L_{j} \bigg) - \bigg( \sum_{k} L_{l}L_{n}L_{m} \bigg) + ...$ Equation 3‑5

Note that the Main determinant always starts with a 1, and the signs in front of all the remaining terms follow a checker-board pattern, starting with a negative sign (i.e., -, +, -, +, etc.)

Other terms appearing in the formula are defined as forward paths $P_{i}$ and their Co-factors $\Delta_{i}$, and loops $L_{i}$.

A Loop is defined as any closed signal path within the signal flow graph, as long as none of the loop components (neither a node nor a branch) is traversed twice.

$\sum L_{k}$– this expression corresponds to a sum of all loops in the signal flow;

$\sum L_{i}L_{j}$ – this expression corresponds to a sum of products of all non-touching loops taken two at a time;

$\sum L_{l}L_{m}L_{n}$ – this expression corresponds to a sum of products of all non-touching loops taken three at a time, etc., etc…..

$P_{i}$ – this expression corresponds to a path in the signal flow, defined as any way through the signal flow graph from the input to the output which does not go through any nodes or branches twice.

$\Delta_{i}$ – this expression corresponds to a cofactor of a given path – it is created from the main determinant by dropping from it all expressions containing loops touching the given path.

When the Mason’s gain formula is applied to the signal flow graph from our example in Figure 3‑7, the result is as follows:

$L_{1} = G_{3}G_{4}H_{1}$

$L_{2} = -G_{2}G_{3}H_{2}$

$L_{3} = -G_{1}G_{2}G_{3}G_{4}H_{3}$

$\Delta = 1 - ( L_{1} + L_{2} + L_{3})$

$P_{1} = G_{1}G_{2}G_{3}G_{4}$

$\Delta_{1} = 1$

$G(s) = \frac{P_{1} \cdot \Delta_{1}}{\Delta} = \frac{G_{1}G_{2}G_{3}G_{4}}{1+G_{1}G_{2}G_{3}G_{4}H_{3} - G_{3}G{4}H_{1} + G_{2}G_{3}H_{2} }$

Of course, this result is identical with the ones obtained before, through block diagram reduction, and through Cramer’s Rule.