IAE Academy

FOUNDATION · CHAPTER 4 OF 8

Block diagrams and signal-flow graphs are equations

A block diagram is a set of linear equations, one per block and summing point; a signal-flow graph is the same set written as a branch table. This chapter derives each reduction rule as algebra and checks Mason's formula against Cramer's rule. You need it to reduce a diagram without guessing.

Updated 13 Oct 2026

What you will be able to do

You will read a block diagram as a list of linear equations and reduce it by solving them. You will derive each rule for moving a take-off point or a summing point as one line of algebra. You will write a signal-flow graph as a branch table. You will check Mason's formula against Cramer's rule and see why products of non-touching loops appear.

Before you start

  1. Chapter 1, What one feedback loop does

  2. Chapter 2, The Laplace transform as a working tool

  3. Solving linear equations by substitution

  4. Writing linear equations in matrix form

  5. A 3 by 3 determinant as a sum of products (one entry from each row and each column) and by cofactor expansion

  6. Cramer's rule

A block diagram is a list of equations

Recap from Chapter 2: with the input applied at and zero initial conditions, a block obeys , with the transform of its impulse response. So every block gives one equation. Every summing point gives one more: its output is the sum of its inputs, each with its sign. A take-off point gives none; it only reuses a signal. Substituting the block equations into the summing-point equations leaves one equation per summing point. Eliminating the internal signals is reduction: blocks in series multiply, blocks in parallel add with their signs, and a negative-feedback loop closes to (Chapter 1).

EQUATIONS OF A DIAGRAM

Holds for linear time-invariant blocks, zero initial conditions and no loading (a block's equation does not change with what its output drives). Y_i, U_i: output and input of block i; G_i(s): its transfer function, in units of Y_i over U_i; X_k: output of summing point k; S_j: its input signals, each with its sign. All are functions of s.

A move of a take-off point or summing point is allowed when every signal the rest of the diagram uses keeps its value; signals inside the moved part may change. Take the take-off point first. A block gives . A branch that leaves after the block carries . Drawn from before the block instead, the branch must still carry , so it needs a copy of the block.

MOVING A TAKE-OFF POINT PAST A BLOCK

After to before: the branch needs a block G, since Y = G U. Before to after: it needs a block 1/G, since U = Y/G, which needs G(s) not identically zero. U and Y are the signals before and after the block.

MOVING A SUMMING POINT PAST A BLOCK

First line: B enters after the block; the same Y results if B enters before it through a block 1/G (needs G not identically zero). Second line: B enters before the block; the same Y results if it enters after through a block G. A, B: inputs; Y: output.

WATCH OUT FOR

Moving a take-off point past a summing point as if nothing changed. Before it the branch carries A; after it, A + B. Test: write the branch's equation before and after. If they differ, pass the branch through a new summing point that subtracts B.

WORKED EXAMPLE

A diagram has these equations. Summing point 1 forms the error: . Block 1: with . Summing point 2: , where the feedback block takes and its output is already written in. Block 2: with . All gains are constants without units. Find .

Solution
  1. List the equations: , , , . The feedback block's equation is already inside the third, so these are four equations for the four signals , , , , with as the input.

  2. Eliminate by substitution: . Substituting one block's equation into the next is the series rule.

  3. Eliminate : . So and . The inner loop closes to because , and in series with 10 that gives 25.

  4. Eliminate : , so .

  5. Divide by . This is Chapter 1's with and : for any finite positive , is below 1, and it approaches 1 as grows.

Answer: (dimensionless)

A signal-flow graph is the same equations

A signal-flow graph writes the same equations without blocks. Each signal is a node. Each block becomes a directed branch, with the block's gain, from its input node to its output node. A summing point needs no symbol: a node's value is the sum of what arrives on its incoming branches, and a minus sign goes into the branch gain. A take-off needs none either: any number of branches may leave a node, each carrying its full value. The first example becomes the branches (R, E, 1), (C, E, ), (E, W, 10), (W, V, 1), (C, V, ) and (V, C, 5), written as (from, to, gain).

NODE EQUATION

Holds at every node except the source (the input node, which has no incoming branch), under the same conditions as before. The sum runs over the branches entering node j. x_j: value of node j (a function of s); t_ij: gain of the branch from node i to node j, in units of x_j over x_i, zero if there is none; t_jj is a self-loop.

Take a graph with an input and three nodes , , . The table lists every branch as (from node, to node, gain). The gains are dimensionless constants or functions of .

From node

To node

Gain

R

x1

1

x2

x1

a

x1

x2

b

x2

x3

c

x3

x3

d

NODE EQUATIONS AS A MATRIX EQUATION

Each equation is read from the table; the unknowns move to the left and R stays on the right. The entry 1 - d comes from x3 - d x3.

WATCH OUT FOR

Reading an arrow backwards. Node 2 sends values to nodes 1 and 3, but its own equation holds only the branches that enter it. Test: x2 = b x1 has one term because exactly one arrow ends at node 2.

Mason's formula from Cramer's rule

Cramer's rule gives any unknown as a ratio of two determinants, and the denominator is the determinant of the matrix above. Mason's formula is that ratio read off the graph, so you never write the matrix. Three words first. A loop is a closed path along the arrows that passes through no node twice. Two loops touch if they share a node. A forward path runs along the arrows from the input to the output, through no node twice.

THE DETERMINANT OF THE EXAMPLE

The third column has one nonzero entry, 1 - d, so expanding along it gives (1 - d) times the 2 by 2 determinant 1 - ab. The graph has two loops: x1 to x2 and back, with gain ab, and the self-loop at x3, with gain d. They share no node, so they do not touch.

Read the expansion term by term. The 1 is the empty product, and are single loops, and is a product of two loops. Why only non-touching ones? Row is node 's equation and column holds the coefficients of . So the entry in row , column is , the branch from into , and a diagonal entry is . Each term of a determinant uses one entry from every row and every column. Follow one term:

  1. Say it uses the entry in row , column : a branch from into .

  2. Row needs an entry too. Column is taken, so that entry lies off the diagonal, in some column : a branch from into .

  3. Repeat. Each step reaches a new node or column , the only free column among the nodes visited. The nodes are finite, so the chain closes at : its branches form a loop.

  4. An entry with no branch is 0, so a nonzero term holds only real loops. Loops in one term use different rows and columns, so they share no node.

  5. That each loop enters with a minus sign, and a pair of loops with a plus, is the general rule, stated here without proof; the expansion above shows it.

THE OUTPUT BY CRAMER'S RULE

Replace the third column, that of x3, by the right-hand side and divide by Δ. Expanding the numerator along that column leaves R times the 2 by 2 determinant of rows 2 and 3, columns 1 and 2, which is bc (position 1,3 carries a plus sign). Needs Δ ≠ 0. Also bc is the gain of the only forward path: 1 · b · c.

MASON'S GAIN FORMULA

Holds for a linear graph with Δ ≠ 0. P_k: gain of forward path k. L_i: gain of loop i, self-loops included. Second sum: pairs of loops with no common node; third: triples, no two touching. Δ_k: Δ with every loop that touches path k removed (here Δ_1 = 1). Matches the Cramer result above.

WORKED EXAMPLE

In the three-node graph take , , , , all dimensionless. Find by Cramer's rule and by Mason's formula, and compare.

Solution
  1. Find the loops. passes through and ; is the self-loop at . They share no node, so they are non-touching.

  2. Cramer, using the results above: and the numerator is . So .

  3. Mason, denominator: . The same number. Without the cross term 0.2 you would get 0.1 and a wrong answer of 80.

  4. Mason, numerator: one forward path, . It passes through , and , so it touches both loops and . Then .

Answer: (dimensionless), the same by both methods

Check yourself

CHECK YOURSELF 1

A block has output . A branch is taken off at , after the block. It is moved to a take-off at , before the block, while still carrying . What must the branch contain?

  1. (A)

    A block 1/G

  2. (B)

    A block G

  3. (C)

    A block

  4. (D)

    A block

Answer and solution

Answer: (B)

  1. The branch must still carry .

  2. From , the signal is obtained as .

  3. So the branch needs a copy of the block G.

CHECK YOURSELF 2

A block with has input . A summing point after it adds an input , so . The input is moved to a summing point before the block, and must not change. What gain must the branch that carries contain?

Answer and solution

Answer: (accepted range )

  1. Write .

  2. So must enter the new summing point through a gain .

  3. The gain is 0.25.

CHECK YOURSELF 3One or more options are correct

Which statements about a signal-flow graph of a linear system with zero initial conditions are correct?

  1. (A)

    The value of a node other than the input node is the sum, over the branches entering it, of each branch gain times the value of the node the branch starts from.

  2. (B)

    A node with two branches leaving it splits its value between them.

  3. (C)

    A minus sign at a summing point of a block diagram appears as a negative branch gain.

  4. (D)

    Two loops that share a node are non-touching.

Answer and solution

Answer: (A), (C)

  1. A is the node equation, so it is correct.

  2. B is wrong: every branch leaving a node carries the node's full value.

  3. C is correct: the sign is absorbed into the branch gain, for example .

  4. D is wrong: loops that share a node touch.

CHECK YOURSELF 4

A graph has one forward path of gain 6. It has two loops, of gains and . The two loops share no node with each other, and each shares a node with the forward path. Find by Mason's formula.

Answer and solution

Answer: (accepted range )

  1. The loops are non-touching, so .

  2. The path touches both loops, so .

  3. .

Used in these GATE topics