Block diagrams
About this lesson
A block diagram draws a system as boxes and arrows: each box holds a transfer function, each arrow carries a signal, circles add signals and dots copy them. Learn the four pieces, then turn the cart's equation of motion m·ẍ + b·ẋ + k·x = F into a diagram with a gain, two integrators and two feedback paths, step it in Python and check it against its transfer function 1/(2s² + 4s + 50).
A block multiplies
A block is a box holding a transfer function. What leaves it is what enters it times that function. The damper block b turns velocity into force: with b = 4 N·s/m, 0.5 m/s in gives 2 N out.
a block: input → [ G(s) ] → output
Y(s) = G(s) · U(s)
damper block G(s) = b = 4 N·s/m
in V = 0.5 m/s
out bV = 4 × 0.5 = 2 N
Signals are written by their Laplace
transforms, like V(s), so every block
just multiplies.Read the lesson step by step
A block multiplies
A block is a box holding a transfer function. What leaves it is what enters it times that function. The damper block b turns velocity into force: with b = 4 N·s/m, 0.5 m/s in gives 2 N out.
a block: input → [ G(s) ] → output Y(s) = G(s) · U(s) damper block G(s) = b = 4 N·s/m in V = 0.5 m/s out bV = 4 × 0.5 = 2 N Signals are written by their Laplace transforms, like V(s), so every block just multiplies.Arrows carry signals
Each arrow carries one signal, one way: a quantity that changes with time, written by its Laplace transform. This arrow carries the push on the cart, F(s). An arrow only reports a value; it never changes it.
signal a quantity that changes with time force F(t), speed v(t), position x(t) written by its Laplace transform: F(s) An arrow has one direction. It only carries information: it does not load or change what it reports.The summing junction
The circle is a summing junction. It adds the signals arriving at it, each with the sign drawn beside its arrow. Ours has one plus and two minus inputs, so what leaves it is F − bV − kX.
summing junction inputs +F −bV −kX output Fnet = F − bV − kX The signs are part of the drawing. A missing sign means +. The output is the net force on the cart.A pickoff point copies
A dot on an arrow is a pickoff point, also called a takeoff point. The signal is copied into two branches, and each carries exactly the same signal. Reading a signal never uses it up.
pickoff (takeoff) point X(s) ──●──→ X(s) (on to the output) │ └──→ X(s) (down to the k block) Unlike water splitting in a pipe, both branches get the whole signal.Start from the equation
Now build the cart from its equation, m·ẍ = F − b·ẋ − k·x. Solve for the highest derivative: ẍ = (F − b·ẋ − k·x)/m. The summing junction builds the bracket from the push F. We want position x out.
cart m = 2 kg, b = 4 N·s/m, k = 50 N/m m·ẍ + b·ẋ + k·x = F m·ẍ = F − b·ẋ − k·x ẍ = (F − b·ẋ − k·x) / m Recipe: solve for the highest derivative, then build it from the signals you have.Divide by the mass
The net force flows into the 1/m block and acceleration comes out: A(s) = Fnet(s)/m. With m = 2 kg the block is just the number 0.5. A block that only scales its signal is called a gain.
1/m gain G(s) = 1/m = 1/2 = 0.5 at t = 0: v = 0, x = 0 Fnet = 10 − 0 − 0 = 10 N a = 10 / 2 = 5 m/s² Newton's law is now one block.Integrate to get velocity
Velocity is the running total of acceleration: v is the integral of a. Integrating from rest divides a Laplace transform by s, so the integrator block is 1/s, and V(s) = A(s)/s.
v(t) = ∫₀ᵗ a(τ) dτ Laplace: ∫₀ᵗ f dτ → F(s) / s integrator G(s) = 1/s V(s) = A(s) / s Transfer functions start from rest (zero initial conditions).Integrate again for position
Integrate once more and velocity becomes position: X(s) = V(s)/s. The forward path now has three blocks in a row, 1/m, 1/s and 1/s. X(s), the cart's position, is the output.
x(t) = ∫₀ᵗ v(τ) dτ X(s) = V(s) / s forward path Fnet → 1/m → 1/s → 1/s → X A = Fnet/m, V = A/s, X = V/s Still missing: the damper and the spring. They depend on V and X.Feed back the damper
The damper force depends on velocity. So pick V(s) off the forward path, pass it through the b block, and bring bV(s) back into the summing junction with a minus sign. That loop is the damper.
pickoff V(s) → [ b = 4 ] → bV(s) → junction, sign − The arrow runs backwards, from a later signal to an earlier point: a feedback path inside the cart itself.Feed back the spring
The spring force depends on position. Pick X(s) off at the output, multiply by k = 50 N/m, and subtract it at the junction. Every term of m·ẍ = F − b·ẋ − k·x now has its own arrow.
pickoff X(s) → [ k = 50 ] → kX(s) → junction, sign − equation diagram F arrow in, sign + −b·ẋ V → b, sign − −k·x X → k, sign − ÷ m, ∫, ∫ 1/m, 1/s, 1/sPush and let it run
Apply a steady 10 N push and let the signals run round both loops. The position overshoots to 0.305 m at 0.64 s, then settles at F/k = 0.2 m. The curve comes from stepping the diagram itself, block by block.
# the block diagram, stepped block by block m, b, k, F = 2.0, 4.0, 50.0, 10.0 v = x = peak = 0.0 dt = 0.0001 for n in range(50000): # 5 s fnet = F - b*v - k*x # summing junction a = fnet / m # 1/m gain v = v + a*dt # integrator 1/s x = x + v*dt # integrator 1/s peak = max(peak, x) print(round(peak, 3), round(x, 3)) # 0.305 0.199One block from outside
From outside, the whole diagram acts like one block: X(s)/F(s) = 1/(ms² + bs + k) = 1/(2s² + 4s + 50). Its exact step response lies on top of the simulated one. Reducing diagrams by rule comes next.
X(s) / F(s) = 1 / (m·s² + b·s + k) = 1 / (2s² + 4s + 50) diagram, simulated peak 0.305 m exact formula peak 0.305 m largest gap 0.05 mm # exact step response of 1/(2s² + 4s + 50) import math m, b, k, F = 2.0, 4.0, 50.0, 10.0 wn = math.sqrt(k/m) # 5 rad/s z = b / (2*math.sqrt(k*m)) # 0.2 wd = wn * math.sqrt(1 - z*z) def x(t): e = math.exp(-z*wn*t) r = z / math.sqrt(1 - z*z) return F/k * (1 - e*(math.cos(wd*t) + r*math.sin(wd*t))) print(round(x(math.pi/wd), 3)) # 0.305
5 quick questions
Choose one answer per question. You can change your choices before checking them.
01A block holds G(s) = 3/(s + 1) and its input is U(s). What is its output?
A block multiplies its input by its transfer function: Y(s) = G(s)·U(s). That is why signals are written as Laplace transforms.
02Three arrows meet a summing junction: R(s) with a +, Y(s) with a −, and D(s) with no sign. What leaves the junction?
A junction adds its inputs with the sign drawn beside each arrow, and a missing sign means +.
03Why is an integrator drawn as a block holding 1/s?
Integration from rest divides the transform by s. Differentiation multiplies by s, so an integrator undoes one s.
04In the cart's diagram, which signal is picked off and fed through the k block back to the junction?
The spring force is k·x, so it depends on position: X(s) is picked off, multiplied by k and subtracted at the junction. The damper does the same with V(s).
05The cart has m = 2 kg, b = 4 N·s/m and k = 50 N/m. What single transfer function X(s)/F(s) does its diagram equal?
X(s)/F(s) = 1/(ms² + bs + k) = 1/(2s² + 4s + 50). Stepping the diagram block by block gives the same response as this formula, to within 0.05 mm.
Glossary
- Block diagram
- A drawing of a system as blocks joined by arrows. It shows which signal feeds which part, and how.
- Block
- A box holding a transfer function. Its output signal is the transfer function times its input signal.
- Signal
- A quantity that changes with time, such as force, velocity or position, written by its Laplace transform: F(s), V(s), X(s).
- Summing junction
- A circle that adds the signals arriving at it, each with the sign drawn beside its arrow (no sign means +).
- Pickoff point (takeoff or branch point)
- A dot where a signal is copied into two branches. Both branches carry the whole signal.
- Gain
- A block that only multiplies its signal by a number, such as the 1/m block.
- Integrator
- A block holding 1/s. Its output is the running integral of its input, starting from rest.
- Feedback path
- An arrow that carries a later signal back to an earlier point, like V(s) through b back to the junction.
Notes and sources
- The cart is the one from the lesson on writing the equation of motion: m = 2 kg, b = 4 N·s/m, k = 50 N/m, pushed by 10 N from t = 0. The numbers are illustrative; every curve and value in the figure is computed from this model.
- An integrator is 1/s because the Laplace transform of the integral of f from 0 to t is F(s)/s. Transfer functions assume the system starts from rest, so no initial-condition terms appear. The Circuits lesson on Laplace analysis covers the transform itself.
- The Python on the last two steps is plain Python 3. The first steps the diagram block by block every 0.1 ms; the second evaluates the exact step response. They agree to within 0.05 mm.
- Books differ on names: Nise calls the dot a pickoff point, Ogata a branch point, and others a takeoff point. Some draw the summing junction as a plain circle with signs, others put a cross or a Σ inside.
- N. S. Nise, Control Systems Engineering, 8th ed., Wiley (ch. 2 modelling; ch. 5 block diagrams)
- K. Ogata, Modern Control Engineering, 5th ed., Pearson (ch. 2 and §3-2)
- G. F. Franklin, J. D. Powell, A. Emami-Naeini, Feedback Control of Dynamic Systems, 8th ed., Pearson (ch. 2 and 3)
- MIT OpenCourseWare 16.06 Principles of Automatic Control (S. Hall)
- MIT OpenCourseWare 6.302 Feedback Systems (Roberge, Dawson, Lundberg)
- python-control documentation: linear system models and block diagram algebra
- python-control documentation: control.feedback(sys1, sys2=1, sign=-1)
- Wikibooks, Control Systems: Block Diagrams
- Laplace transform: integration and differentiation properties
Quiz Unlocks after the last step.