From first principles
Eliminate the feedback signal to find a closed-loop transfer
A linear transfer function relates an input perturbation to an output perturbation with zero initial deviations. For example, a first-order balance \(\tau\dot y+y=Ku\) transforms to \((\tau s+1)Y=KU\) because the time derivative transforms to \(sY\) under that initial condition. Thus the plant transfer \(P\) is
Add a controller \(C\) acting on negative feedback from a sensor with transfer \(H\). The error compares reference \(R\) with measured output \(HY\). Write each intermediate relation before eliminating it; feedback makes the command depend on the very output being solved for.
Collect the terms containing \(Y\) and divide by the reference. The common denominator is the characteristic factor of the connected loop.
This signal algebra assumes the subsystems' transfers remain valid after connection. In an actual mechanical or hydraulic interconnection, loading may change the plant equations themselves and must be included before forming the blocks.
Background · Transfer function
State the input, output and zero initial condition. Interconnection signs and unmodelled dynamics affect what a measured closed-loop response represents.
Open full-size diagram
Derivation and applications
Eliminate the states of a motor with electrical back reaction
A voltage-controlled motor resembles a circuit followed by a mechanical stage until the rotor is allowed to generate a back voltage. Consider a rigid rotor with inertia \(J\), viscous drag \(b\), winding resistance \(R\) and inductance \(L\). With constant torque and back-emf coefficients \(k_t,k_e\), use positive armature current for positive torque. Ignore load torque for the voltage-to-speed transfer and start with zero perturbations about a steady operating point. The transformed balances are
Multiply the second balance by the electrical impedance and substitute the first. The back voltage is proportional to the output and opposes the applied voltage. It therefore contributes a positive constant to the denominator.
If the electrical time \(L/R\) is short relative to the mechanical transient of interest, current approximately follows its instantaneous resistive balance. The resulting speed gain and time constant both reflect extra damping supplied by current flowing in response to a speed change.
The reduced model has one state fewer and retains the exact DC speed gain. It predicts an instantaneous current change at a voltage step, so estimates of the initial current derivative still require the full electrical state.
Worked example
Predict the unloaded speed and rise time
Take \(R=2.00\) Ω, \(L=10.0\) mH, \(J=0.0100\) kg m², \(b=0.0200\) N m s/rad and \(k_t=k_e=0.200\) in consistent SI units. The feedback adds \(0.200^2/2=0.0200\) N m s/rad. The mechanical time becomes 0.250 s against an electrical time of 0.00500 s. The gain is 2.50 rad/s/V, so a 4.00 V step produces a final 10.0 rad/s.
Change the inputs and inspect this calculation below
Second application
Infer viscous drag from a DC test
A second motor has \(R=4.00\) Ω and \(k_t=k_e=0.100\) in SI units. A steady 6.00 V produces 30.0 rad/s with no external load. Back voltage consumes 3.00 V, leaving 0.750 A of current and 0.0750 N m torque. Balancing viscous drag gives \(b=0.0750/30.0=0.00250\) N m s/rad. The exact transfer expression then gives \(K_\omega=5.00\) rad/s/V, consistent with the measured voltage and speed.
Interactive calculation · Change the inputs of this example
Use the adjustable quantities to test the two worked calculations above. The plot recomputes this derivation’s balance or constitutive relation; its numerical readout reports the quantities needed for the forward calculation and the inverse or design question. Keep the fixed assumptions stated in the readout when comparing with the example values.
OneSimulation laboratory
Predict the settling time and offset of a feedback loop
Start from this chapter. Eliminate the error and actuator signals algebraically. Compare the static gain of the resulting closed loop with the final value sampled by the OneSimulation signal graph.
Compare recorded OneSimulation runs on this page. To test your own inputs, download the notebook and model files and run the model in an activated OneSimulation environment.
The OneSimulation signal graph connects a setpoint, error junction, controller and first-order plant. Start with plant_gain = 2.0 and setpoint = 1.0. Change proportional_gain or time_constant, keeping the other parameters fixed. Before comparing, decide which change affects the asymptotic error.
| Controller gain and plant time constant | Fitted time (s) | Sampled error |
|---|---|---|
| Gain 4 · plant 20 s | 2.22222 | 0.11331 |
| Gain 2 · plant 20 s | 4.00000 | 0.20198 |
| Gain 4 · plant 40 s | 4.44444 | 0.11331 |

Try \(K_p=9.5\) in the download. Compare the recorded final error against \(e_\infty=0.05\). To explain the difference, evaluate the exponential at the actual last sample time. Inspect the signal graph and its time histories.
Download experiment files (ZIP) Extract the files together and open first_order_plant_p_control.ipynb in a local OneSimulation environment.
Interactive reference for the OneSimulation laboratory
Change gain and plant lag independently. The browser evaluates the unsaturated analytical reference for the linked OneSimulation signal graph.
Problem sheet 2 · Identify a controller from a finite-time observation
Eliminate a state in the transform domain
Chapter 1 gave a differential equation and an initial condition for a single energy store. Cascading several components leads to simultaneous equations. The Laplace transform changes the time derivative into \(sY(s)-y(0)\). Applied to \(\tau\dot y+y=Kv\), this gives
With zero initial deviation the ratio \(G(s)=Y/V=K/(\tau s+1)\) describes the forced response. For nonzero initial state the extra term predicts free decay. This is why an experimental transfer function should identify a particular operating point and initialisation procedure.
The pole at \(s=-1/\tau\) locates the decaying exponential. The DC gain is \(G(0)=K\). The high-frequency magnitude of this model tends to zero because the energy store cannot change its state instantaneously in response to bounded power. A transfer function can thus be assessed from dimensions, a static balance and a short-time thought experiment before any curve fitting.
Connect the sensor and plant
A sensor may have its own lag. Let the actual plant output be \(y\) and the indicated value \(z\). With plant \(G_p=1/(4s+1)\) and sensor \(G_s=1/(s+1)\), the individual relations \(Y=G_p U\) and \(Z=G_s Y\) give
For a unit step divide by \(s\); partial fractions or substitution in the differential equation gives
Check \(z(0)=0\), \(z(\infty)=1\) and \(\dot z(0)=0\). The actual plant slope begins at \(1/4\) per second, but the indicated output starts with a horizontal tangent. At 4 s the plant has reached 0.632 and the indicator only 0.516. A designer who assigns the entire delay to the plant may demand an unnecessarily powerful actuator. A designer who ignores the sensor will underestimate the phase lag in feedback.
Close a loop algebraically
Let \(C(s)\) be a controller and use the indicated output in negative feedback, so \(U=C(R-G_sY)\). Substitute this in \(Y=G_pU\) and collect all terms multiplying \(Y\). The result is
The same denominator occurs in other responses, but the numerator depends on where the signal enters. A disturbance \(D\) added at the plant input gives \(Y/D=G_p/(1+G_pCG_s)\) with zero reference. Measurement noise added to the feedback signal gives
Forcing every disturbance to enter at the reference would predict the wrong amplitudes.
Recognise an invisible mode
A rational expression may simplify by cancellation. Consider a cascade of an integrator-like unstable stage \(1/(s-1)\) and a downstream stage \((s-1)/(s+2)\). The algebraic transfer from external input to final output is \(1/(s+2)\) at zero initial conditions. The state between stages can still grow as \(e^t\). A small mismatch in either factor also leaves an unstable component in the observed output. Physically realising two factors gives internal variables that still need checking even when their product has a well-behaved step response.
For a stable example, the measured lag above can be estimated with a first-order fit from late observations alone. The resulting single pole describes the slow tail but loses the zero initial slope. Choosing the level of model detail therefore requires stating the quantity of interest: a long-time energy estimate and a rapid feedback correction need different bandwidths. The next chapter uses the true characteristic polynomial to determine stability before assessing accuracy of tracking.
Derive two interacting liquid levels before drawing blocks
It is tempting to represent every pair of connected tanks as a cascade of two independent first-order blocks. If the pipe between the tanks is submerged at both ends, the downstream level applies a back pressure to the upstream tank. Consider small deviations \(h_1,h_2\) from equilibrium, with positive forward intertank flow \(q_{12}=(h_1-h_2)/R_1\) and outlet flow \(q_o=h_2/R_2\). The incremental hydraulic resistances measure level difference per flow and have units s/m². They can represent local tangent slopes of nonlinear valve characteristics. Take constant tank areas \(A_1,A_2\) and a perturbation \(u\) of inlet flow.
The two balances are \(A_1\dot h_1=u-q_{12}\) and \(A_2\dot h_2=q_{12}-q_o\). For zero initial deviations, write \(H_1=(1+R_1/R_2+A_2R_1s)H_2\) from the second balance and substitute it into the first. Collecting equal powers of \(s\) leads to
The static gain equals \(R_2\), since at equilibrium all three volume rates are equal and \(h_2=R_2u\). The coefficient of \(s\) contains an interaction term absent if tank 1 drains freely to atmosphere. It describes the return action of the downstream level on intertank flow. An individual transfer block measured with downstream level fixed does not capture this additional path unless it is reconnected explicitly.
Distinguish a loaded connection from a cascade in a step test
Use \(A_1=A_2=0.10\,\mathrm{m^2}\) and \(R_1=R_2=100\,\mathrm{s/m^2}\). Each isolated area–resistance product is 10 s. The interacting transfer function is \(100/(100s^2+30s+1)\). Its decay rates are \((-30\pm\sqrt{900-400})/200=-0.0382\) and \(-0.2618\,\mathrm{s^{-1}}\), giving time constants 26.18 and 3.82 s. Two independent identical drains would instead give \(100/(10s+1)^2\), with repeated time constant 10 s. Both have the same final gain and initial zero slope at the downstream tank.
For a sustained flow increase of \(0.00050\,\mathrm{m^3/s}\), both models predict a 0.050 m final rise. Using the two interacting time constants, the normalised step value at 20 s is \(1-[26.18e^{-20/26.18}-3.82e^{-20/3.82}]/(26.18-3.82)\simeq0.455\), giving 22.8 mm. The independent cascade predicts \(1-(1+2)e^{-2}=0.594\), or 29.7 mm. Recording intermediate levels therefore distinguishes two plant structures that an equilibrium calibration cannot separate. As \(R_1\) approaches zero the two levels equalise rapidly; the limiting first-order time constant becomes \((A_1+A_2)R_2\), consistent with a single tank of combined storage area.
There is also a check that uses both level sensors without differentiating noisy data. Add the original tank balances and integrate over the first 20 s:
The intertank flow disappears identically. In this experiment the added inlet volume is 10.0 litres, so added liquid stored plus additional outlet delivery must equal that quantity. If the two measured storage changes already exceed 10 litres, no passive choice of intertank resistance can explain the data. Conversely, outlet and storage agreement validates the external balance but leaves the internal connection undetermined. The intermediate time reading and knowledge of whether the interconnecting pipe is submerged provide the extra evidence needed for choosing the internal transfer model.