Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Steady State Error Equation: How to Calculate It

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

The steady state error equation gives the residual error of a closed-loop control system after transients have died out. For a unity feedback system, the three working formulas are: step input e_ss = 1/(1+K_p), ramp input e_ss = 1/K_v, and parabolic input e_ss = 1/K_a, where K_p = lim(s→0) G(s), K_v = lim(s→0) sG(s), and K_a = lim(s→0) s²G(s). If the feedback path is not unity, first convert the system to an equivalent unity-feedback form or use the general error transfer function E(s)/R(s) = 1/(1+G(s)H(s)). You need the open-loop transfer function, the input type, and a basic ability to take limits at s = 0.

What You'll Need

  • The open-loop transfer function G(s) (and H(s) if feedback is non-unity), in factored or polynomial form.
  • The reference input type: step, ramp, or parabolic, and its magnitude.
  • Paper or a scratchpad for limit calculations, or access to a computer algebra tool if the algebra is heavy.
  • Familiarity with the final value theorem: e_ss = lim(s→0) sE(s), valid only when all closed-loop poles are in the left half-plane.

Step-by-Step

  1. Confirm the system is stable. The steady state error formulas only apply to a stable closed-loop system. Check the closed-loop characteristic equation 1 + G(s)H(s) = 0, for example with the Routh-Hurwitz criterion. If any closed-loop pole is in the right half-plane or on the imaginary axis (other than a single pole at the origin for type-1 systems tracking a step), the error is unbounded or undefined, and the formulas below do not apply.
  2. Write the open-loop transfer function in standard form. Factor numerator and denominator so the denominator has the form s^N (τ₁s+1)(τ₂s+1)…, where N is the system type. For example, G(s) = 10/(s(s+2)) becomes G(s) = 5/(s(0.5s+1)). The exponent N tells you the system type: type 0 means no integrator, type 1 means one integrator, type 2 means two integrators.
  3. Identify the input. A step has R(s) = A/s, a ramp has R(s) = A/s², and a parabolic input has R(s) = A/s³. Here A is the magnitude. If the problem gives a time-domain input like r(t) = 3t, that is a ramp with A = 3.
  4. Compute the relevant error constant. For a step input, calculate the position error constant K_p = lim(s→0) G(s). For a ramp, calculate the velocity error constant K_v = lim(s→0) sG(s). For a parabolic input, calculate the acceleration error constant K_a = lim(s→0) s²G(s). Work through the limit by cancelling s terms before substituting s = 0; otherwise you get 0/0 and lose the answer.
  5. Apply the matching steady state error equation. Step: e_ss = A/(1+K_p). Ramp: e_ss = A/K_v. Parabolic: e_ss = A/K_a. For unity feedback, A is usually 1, so the formulas reduce to 1/(1+K_p), 1/K_v, and 1/K_a. If you are working with non-unity feedback, use the general form e_ss = lim(s→0) sR(s)/(1+G(s)H(s)) instead, and evaluate it the same way.
  6. Handle zero and infinite constants correctly. If K_p is finite and nonzero, a type-0 system gives a finite step error. If K_v is zero (type-0 system with a ramp), the error is infinite. If K_v is infinite (type-2 or higher with a ramp), the error is zero. These three cases are the standard exam and design outcomes, so state them explicitly rather than writing “1/0”.
  7. Check the result for plausibility. A larger open-loop gain generally reduces steady state error but can destabilise the loop, so confirm stability again after any gain change. A negative error means the output overshoots the reference in the steady state; report the sign if the problem asks for it.
  8. Verify with the final value theorem when in doubt. Compute E(s) = R(s)/(1+G(s)H(s)), multiply by s, and take the limit as s→0. This is the same calculation in a different order and catches algebra slips in the error-constant method.

Common Mistakes

  • Applying the formulas to an unstable closed-loop system. The final value theorem fails and the number you get is meaningless.
  • Forgetting to cancel s before taking the limit, which produces 0/0 and a wrong constant.
  • Using G(s) when the feedback is H(s) ≠ 1. The correct denominator is 1 + G(s)H(s), not 1 + G(s).
  • Mixing up system type with the number of poles in the full transfer function. Only poles at the origin count toward the type.
  • Reporting “zero error” for a type-1 system tracking a step without noting that the error is zero only in the steady state; the transient error is not zero.
  • Dropping the input magnitude A. A ramp of 5t has five times the steady state error of a unit ramp.

Tips

  • Memorise the type-versus-input table: type 0 gives finite step error and infinite ramp error; type 1 gives zero step error, finite ramp error, infinite parabolic error; type 2 gives zero step and ramp error and finite parabolic error.
  • Keep the transfer function in time-constant form; the limit is easier to see and the error constants fall out cleanly.
  • When a design problem asks for a maximum steady state error, invert the equation to find the required gain. For a ramp, K_v ≥ A/e_ss,max.
  • Use a computer algebra tool only to check hand work; the exam and design intuition comes from doing the limits yourself.

Troubleshooting

If the limit gives 0/0, factor the denominator fully and cancel the s terms before substituting. If the error comes out negative, check the sign convention in your error definition; e = r − y is standard, but some texts use the opposite. If the result disagrees with a simulation, confirm the simulation has run long enough for transients to decay and that the loop is stable. If the system is unstable, no steady state error exists; fix the stability problem first, usually by reducing gain or adding compensation. If the feedback is non-unity and the algebra becomes messy, convert to an equivalent unity-feedback system using G_eq(s) = G(s)/(1 + G(s)H(s) − G(s)), or simply evaluate the general error transfer function directly.

Frequently Asked Questions

What is the steady state error equation for a step input?

For unity feedback, e_ss = 1/(1+K_p) with K_p = lim(s→0) G(s). For a step of magnitude A, multiply by A.

Does a type-1 system have zero steady state error for a ramp?

No. A type-1 system has zero step error but a finite ramp error equal to 1/K_v, where K_v is the velocity error constant.

Can I use the final value theorem on any system?

Only if all closed-loop poles lie strictly in the left half-plane. Otherwise the limit does not represent a steady state.

What if the feedback transfer function is not 1?

Use e_ss = lim(s→0) sR(s)/(1+G(s)H(s)), or convert the loop to an equivalent unity-feedback system first.

Why is my calculated error infinite?

The system type is too low for the input. A type-0 system tracking a ramp, or a type-1 system tracking a parabola, gives infinite steady state error.

Does increasing gain always reduce steady state error?

It reduces error in the standard configurations, but too much gain can destabilise the loop, so stability must be rechecked after any gain change.