Transfer Function Workbench
Poles, zeros, closed-loop stability, gain and phase margins, steady-state error, Bode, Nyquist and root-locus plots and the step response, from one G(s). Free.
Transfer Function Workbench
Open-loop G(s) with unity negative feedback
Worked examples
Unity negative feedback. Margins checked against the python-control library.
| G(s) | Type | Closed loop | Gain margin | Phase margin |
|---|---|---|---|---|
| 10/(s(s+2)(s+5)) | 1 | Stable | 16.9 dB at 3.16 rad/s | 55.6° at 0.898 rad/s |
| 50/(s(s+1)(s+10)) | 1 | Stable | 6.85 dB at 3.16 rad/s | 13.6° at 2.10 rad/s |
| 100/((s+1)(s+10)²) | 0 | Stable | 27.7 dB at 10.95 rad/s | ∞ |
| 5(s+2)/(s²(s+10)) | 2 | Stable | ∞ | 21.9° at 1.06 rad/s |
| (s+1)/(s(s−2)) | 1 | Unstable | 6.02 dB at 1.41 rad/s | −45.8° (open loop has an unstable pole) |
| 6/((s+1)(s+2)(s+3)) | 0 | Stable | 20 dB at 3.32 rad/s | ∞ |
Common questions
What does the transfer function workbench calculate?
For an open-loop G(s) with unity negative feedback it finds the open-loop poles and zeros, the system type and error constants, the closed-loop poles and stability, the steady-state errors for step, ramp and parabola inputs, the gain and phase margins with their crossover frequencies, the Bode, Nyquist and root-locus plots, and the closed-loop step response, with every step.
How are the gain and phase margins found?
The gain margin is −20·log10|G(jω)| at the phase crossover, where the phase of G(jω) is −180°. The phase margin is 180° plus the phase at the gain crossover, where |G(jω)| = 1. LapCalc finds both crossovers to full precision. Our test systems match the python-control library.
Why does the steady-state error depend on the system type?
The type is the number of poles of G(s) at s = 0. A type 0 system has a finite step error 1/(1 + Kp); a type 1 system follows a step with zero error and a ramp with error 1/Kv; a type 2 system also follows a ramp exactly.
Are the margins always reliable?
They predict closed-loop stability reliably when G(s) has no poles in the right half-plane. If it does, use the closed-loop poles and the Nyquist plot, which LapCalc shows as well.
Is it free?
Yes. All results, plots and steps are free.
Roots & Stability · RLC Circuit Calculator · Partial Fraction Calculator · Laplace Transform Calculator