Control Engineering 1: cram pack

Formula sheets, the key method steps for every topic and 12 practice problems, with full solutions at the back.

New problemsBack to the course

In the print window, choose “Save as PDF” to keep a copy on your device.

1Formulas and methods

Stability: Routh–Hurwitz & root locus

Stability
all roots of the characteristic polynomial in the left half-plane
Routh array, s¹ entry of a cubic
b1 = (a2a1 − a3a0)/a2
Right half-plane roots
number of sign changes in the first column
Cubic s³ + a₂s² + a₁s + a₀
stable when all a > 0 and a₂·a₁ > a₀
K/(s(s + a)(s + b))
Kmax = ab(a + b), ω = √(ab)
Characteristic equation
1 + K·G(s) = 0
Asymptotes
σa = (Σp − Σz)/(n − m), θ = (2q + 1)·180°/(n − m)
Break-away and break-in points
dK/ds = 0
Magnitude condition
K = 1/|G(s)|
Angle of departure
θd = 180° − Σ∠(from other poles) + Σ∠(from zeros)

Method

  1. Write the closed-loop characteristic polynomial: the denominator of 1 + K·G(s) = 0, multiplied out.
  2. Put the coefficients alternately into the first two rows of the Routh array and build the remaining rows.
  3. Count the sign changes in the first column: each one is a pole in the right half-plane. With K in the array, demand that every first-column entry stays positive.
  4. For a root locus, mark the poles and zeros, the real-axis segments, the asymptotes from the centroid and the break points where dK/ds = 0. Use K = 1/|G(s)| for the gain at a point.

Steady-state error & PID control

System type
number of poles of G(s) at s = 0
Error constants
Kp = lim G(s), Kv = lim s·G(s), Ka = lim s²·G(s) (s → 0)
Step A
ess = A/(1 + Kp)
Ramp A·t
ess = A/Kv
Parabola A·t²/2
ess = A/Ka
PID controller
C(s) = Kp + Ki/s + Kd·s
Second-order target
s² + 2ζωns + ωn²
Overshoot and timing
%OS = 100·e−ζπ/√(1−ζ²), tp = π/ωd, ts ≈ 4/(ζωn)

Method

  1. Count the poles of the open loop C(s)·G(s) at s = 0: that is the system type.
  2. Work out the error constant that matches the input: Kp for a step, Kv for a ramp, Ka for a parabola.
  3. Apply ess = A/(1 + Kp), A/Kv or A/Ka, or solve it for the gain you need.
  4. For a damping or speed specification, write the closed-loop characteristic polynomial and match it with s² + 2ζω_n·s + ω_n².

2Practice problems

1.Laplace transformsMedium
ReIm−5−10−15−20

F(s) = (s + 21)/(s² + 6s + 8). Its inverse transform has the form f(t) = A·e−2t + B·e−4t. Find the coefficient A by partial fractions.

F(s) = (s + 21)/(s² + 6s + 8)
A =
2.Laplace transformsHard
t (s)y(t)t = 0.4y(0.4) = ?

A system obeys y″ + 7y′ + 6y = 24·u(t), with y(0) = 2 and y′(0) = 0. At t = 0 a step input u(t) = 2 is applied. Use the Laplace transform to find y(0.4).

y″ + 7y′ + 6y = 24·u(t)y(0) = 2y′(0) = 0u(t) = 2t = 0.4 s
y(0.4) =
3.Block diagramsMedium
R(s)+12s + 6G(s)C(s)0.25H−

A plant G(s) = 12/(s + 6) is controlled in a negative feedback loop whose sensor has the gain H = 0.25. A step of size 1 is applied at R. Find the steady-state output css.

G(s) = 12/(s + 6)H = 0.25R = 1
css =
4.Block diagramsHard
R(s)+Ks(s + 4)(s + 8)G(s)C(s)−

The plant G(s) = K/(s(s + 4)(s + 8)) is in a unity negative feedback loop. At the largest stable gain the loop oscillates. Find the frequency of oscillation ω in rad/s.

G(s) = K/(s(s + 4)(s + 8))unity negative feedback
ω = rad/s
5.Step responseMedium
t (s)y(t)3tp​ = ?

A system has the transfer function G(s) = 111/(s² + 2s + 37) and receives a unit step input. Find the peak time tp of the step response.

G(s) = 111/(s² + 2s + 37)
tp = s
6.Step responseHard
k = 800 N/mc = 45 N·s/mm = 4 kgF = 10 Nx(t)

A mass m = 4 kg hangs on a spring k = 800 N/m with a viscous damper c = 45 N·s/m (m·x″ + c·x′ + k·x = F). At rest in equilibrium, a constant force F = 10 N is suddenly applied. Find the time tp at which the displacement is largest.

m = 4 kgk = 800 N/mc = 45 N·s/mF = 10 N
tp = s
7.Stability: Routh–Hurwitz & root locusMedium
R(s)+K1(s + 1)(s + 4)(s + 5)C(s)−

A unity-feedback loop has L(s) = K/((s + 1)(s + 4)(s + 5)), with K > 0. Find the largest gain Kmax for which the closed loop is stable.

L(s) = K/((s + 1)(s + 4)(s + 5))
Kmax =
8.Stability: Routh–Hurwitz & root locusHard
ReIm−2−4−6j2j4

The root locus of L(s) = K/((s + 1)(s + 2)(s + 6)) is sketched. Find the frequency ω at which the locus crosses the imaginary axis.

L(s) = K/((s + 1)(s + 2)(s + 6))
ω = rad/s
9.Steady-state error & PID controlMedium
r(t) = 10·t²/2+4(s + 1)s²(s + 5)C(s)−

The parabolic input r(t) = 10·t²/2 is applied to a unity-feedback loop with G(s) = 4(s + 1)/(s²(s + 5)). Find the steady-state error ess.

G(s) = 4(s + 1)/(s²(s + 5))r(t) = 10·t²/2
ess =
10.Steady-state error & PID controlHard
R(s)+K = 161s(s + 2)C(s)−

A proportional controller K = 16 drives the plant G(s) = 1/(s(s + 2)) in a unity-feedback loop. Find the percent overshoot %OS of the step response.

G(s) = 1/(s(s + 2))K = 16
%OS = %
11.Bode plots & marginsMedium
|H| (dB)0.11101001000−80−60−40−20020ω (rad/s)ω = 4

Find the exact magnitude |G(jω)| of G(s) = 525/((s + 5)(s + 15)) at ω = 4 rad/s, in dB.

G(s) = 525/((s + 5)(s + 15))ω = 4 rad/s
|G(jω)| = dB
12.Bode plots & marginsHard
|H| (dB)11101010010010001000−80−60−40−2002040ω (rad/s)φ (°)ω (rad/s)−180−135−90−450ωc​

A unity-feedback loop has the open-loop transfer function L(s) = 240/(s(s + 10)). Find the phase margin PM in degrees.

L(s) = 240/(s(s + 10))
PM = °

3Solutions

1.Laplace transforms

Answer: A = 9.5

Laplace transform: F(s) = ∫₀∞ f(t)·e−st dt turns derivatives into multiplications by s: ℒ{f′} = sF(s) − f(0), ℒ{f″} = s²F(s) − s·f(0) − f′(0). Standard pairs: 1 ↔ 1/s, e−at ↔ 1/(s + a), t·e−at ↔ 1/(s + a)², sin ωt ↔ ω/(s² + ω²), cos ωt ↔ s/(s² + ω²), and a shift s → s + σ multiplies the time function by e−σt. To invert a rational F(s), split it into partial fractions: the residue of a simple pole p is A = [(s − p)·F(s)] at s = p. Final value theorem: f(∞) = lims→0 s·F(s), valid only when all poles of s·F(s) lie in the left half-plane. Initial value theorem: f(0⁺) = lims→∞ s·F(s).

Factor the denominator

s² + 6s + 8 = (s + 2)(s + 4)
F(s) = A/(s + 2) + B/(s + 4)

Cover-up rule

Multiply by (s + 2) and set s = −2: the B-term vanishes.

A = (s + 21)/(s + 4) |s = −2 = 19/2 = 9.5

Answer

A = 9.5
(B = −8.5, so f(t) = 9.5·e−2t − 8.5·e−4t)
2.Laplace transforms

Answer: y(0.4) = 3.283

Laplace transform: F(s) = ∫₀∞ f(t)·e−st dt turns derivatives into multiplications by s: ℒ{f′} = sF(s) − f(0), ℒ{f″} = s²F(s) − s·f(0) − f′(0). Standard pairs: 1 ↔ 1/s, e−at ↔ 1/(s + a), t·e−at ↔ 1/(s + a)², sin ωt ↔ ω/(s² + ω²), cos ωt ↔ s/(s² + ω²), and a shift s → s + σ multiplies the time function by e−σt. To invert a rational F(s), split it into partial fractions: the residue of a simple pole p is A = [(s − p)·F(s)] at s = p. Final value theorem: f(∞) = lims→0 s·F(s), valid only when all poles of s·F(s) lie in the left half-plane. Initial value theorem: f(0⁺) = lims→∞ s·F(s).

Transform the equation

(s² + 7s + 6)·Y(s) = 2s + 14 + 48/s
Y(s) = (2s² + 14s + 48)/(s(s + 1)(s + 6))

Partial fractions

A = 48/(1·6) = 8
B = 36/((−1)·5) = −7.2
C = 36/((−6)·(−5)) = 1.2

Result

y(t) = 8 − 7.2·e−t + 1.2·e−6t
y(0.4) = 3.283

Answer

y(0.4) = 3.283

Check: y(0) = A + B + C = 2.

3.Block diagrams

Answer: css = 1.333

Block-diagram algebra: blocks in series multiply (G₁·G₂), blocks in parallel add (G₁ + G₂), and a loop with forward path G and feedback path H reduces to T = G/(1 + G·H) for negative feedback and G/(1 − G·H) for positive feedback. Reduce inner loops first, then work outwards. The closed-loop poles are the roots of the characteristic equation 1 + G(s)H(s) = 0. For a stable loop, a step input of size A gives the steady-state output A·T(0); with unity feedback the steady-state error to a step is A/(1 + Kp) with Kp = G(0).

Closed-loop transfer function

T(s) = G/(1 + G·H) = 12/(s + 6 + 3) = 12/(s + 9)

Result

css = R·T(0) = 1·12/9 = 1.333

Answer

css = 1.333
4.Block diagrams

Answer: ω = 5.657 rad/s

Block-diagram algebra: blocks in series multiply (G₁·G₂), blocks in parallel add (G₁ + G₂), and a loop with forward path G and feedback path H reduces to T = G/(1 + G·H) for negative feedback and G/(1 − G·H) for positive feedback. Reduce inner loops first, then work outwards. The closed-loop poles are the roots of the characteristic equation 1 + G(s)H(s) = 0. For a stable loop, a step input of size A gives the steady-state output A·T(0); with unity feedback the steady-state error to a step is A/(1 + Kp) with Kp = G(0).

Characteristic equation

s³ + 12s² + 32s + K = 0

Routh array

s³ | 1 32
s² | 12 K
s¹ | (12·32 − K)/12
s⁰ | K

Stability limit

All entries of the first column must be positive.

Kmax = 12·32 = 384

Frequency of oscillation

12·(jω)² + 384 = 0 → ω² = 384/12 = 32
ω = 5.657 rad/s

Answer

ω = 5.657 rad/s
5.Step response

Answer: tp = 0.5236 s

Step response: a first-order system G(s) = K/(τs + 1) answers a step of size U with y(t) = K·U·(1 − e−t/τ): it reaches 63.2 % of the final value K·U after one time constant τ and 98 % after 4τ. A second-order system G(s) = K·ωₙ²/(s² + 2ζωₙs + ωₙ²) has the poles s = −ζωₙ ± jωd with ωd = ωₙ√(1 − ζ²). For 0 < ζ < 1 the step response overshoots: percent overshoot %OS = 100·e−ζπ/√(1−ζ²), peak time tp = π/ωd, and the 2 % settling time ts ≈ 4/(ζωₙ). Compare the denominator with s² + 2ζωₙs + ωₙ² to read off ωₙ and ζ. For a mass–spring–damper ωₙ = √(k/m) and ζ = c/(2√(km)); for a series RLC circuit ωₙ = 1/√(LC) and ζ = (R/2)·√(C/L).

Compare with the standard form

The denominator must match s² + 2ζωₙs + ωₙ².

ωₙ² = 37 → ωₙ = 6.083 rad/s
2ζωₙ = 2 → ζ = 2/(2·6.083) = 0.1644

Result

ωd = 6.083·√(1 − 0.1644²) = 6 rad/s → tp = π/ωd = 0.5236 s

Answer

tp = 0.5236 s
6.Step response

Answer: tp = 0.2421 s

Step response: a first-order system G(s) = K/(τs + 1) answers a step of size U with y(t) = K·U·(1 − e−t/τ): it reaches 63.2 % of the final value K·U after one time constant τ and 98 % after 4τ. A second-order system G(s) = K·ωₙ²/(s² + 2ζωₙs + ωₙ²) has the poles s = −ζωₙ ± jωd with ωd = ωₙ√(1 − ζ²). For 0 < ζ < 1 the step response overshoots: percent overshoot %OS = 100·e−ζπ/√(1−ζ²), peak time tp = π/ωd, and the 2 % settling time ts ≈ 4/(ζωₙ). Compare the denominator with s² + 2ζωₙs + ωₙ² to read off ωₙ and ζ. For a mass–spring–damper ωₙ = √(k/m) and ζ = c/(2√(km)); for a series RLC circuit ωₙ = 1/√(LC) and ζ = (R/2)·√(C/L).

Natural frequency and damping ratio

ωₙ = √(k/m) = √(800/4) = 14.14 rad/s
ζ = c/(2√(km)) = 45/(2·√(800·4)) = 0.3977

Result

ωd = 12.98 rad/s
tp = π/ωd = 0.2421 s

Answer

tp = 0.2421 s
7.Stability: Routh–Hurwitz & root locus

Answer: Kmax = 270

Routh–Hurwitz criterion: a linear system is stable when every root of its characteristic polynomial lies in the left half of the s-plane. Write the coefficients alternately into the first two rows of the Routh array. Each entry of a new row comes from the two rows above it; for a cubic a₃s³ + a₂s² + a₁s + a₀ the s¹ entry is b₁ = (a₂·a₁ − a₃·a₀)/a₂. The number of sign changes in the first column equals the number of roots in the right half-plane. With a gain K in the coefficients, every first-column entry must stay positive: the gain that makes the s¹ entry zero is the stability limit, and the s² row then gives the frequency of the sustained oscillation.

Characteristic polynomial

s³ + 10s² + 29s + 20 + K = 0

Routh array

s³: 1, 29
s²: 10, 20 + K
s¹: (10·29 − 20 − K)/10
s⁰: 20 + K

Condition

The s¹ entry must stay positive.

K < 10·29 − 20 = 270

Answer

Kmax = 270

At the limit the loop oscillates at ω = √29 = 5.385 rad/s.

8.Stability: Routh–Hurwitz & root locus

Answer: ω = 4.472 rad/s

Root locus: as the gain K goes from 0 to ∞, the closed-loop poles, the roots of 1 + K·G(s) = 0, move from the open-loop poles to the open-loop zeros or to infinity. A point on the real axis belongs to the locus when the number of real poles and zeros to its right is odd. The n − m branches that go to infinity follow asymptotes at the angles (2q + 1)·180°/(n − m), which start from the centroid σₐ = (Σ poles − Σ zeros)/(n − m). Branches leave or join the real axis where dK/ds = 0. The angle condition ∠G(s) = 180° fixes the shape, and the magnitude condition K = 1/|G(s)| gives the gain at any point of the locus.

Critical gain

s³ + 9s² + 20s + 12 + K = 0
s¹: (9·20 − 12 − K)/9 = 0 → K = 168

Crossing frequency

9s² + 12 + 168 = 9s² + 180 = 0 → s² = −20
ω = √20 = 4.472 rad/s

Answer

ω = 4.472 rad/s
9.Steady-state error & PID control

Answer: ess = 12.5

Steady-state error: in a unity-feedback loop with open-loop transfer function G(s) the error is E(s) = R(s)/(1 + G(s)), and by the final value theorem ess = lims→0 s·E(s). The system type is the number of poles of G(s) at s = 0. The error constants are Kp = lim G(s), Kv = lim s·G(s) and Ka = lim s²·G(s), all for s → 0. A step of size A gives ess = A/(1 + Kp), a ramp A·t gives A/Kv and a parabola A·t²/2 gives A/Ka. A type-0 loop follows a step with a finite error, a type-1 loop follows it exactly and a ramp with a finite error.

Acceleration constant

Ka = 4·1/5 = 0.8

Parabola error

ess = 10/0.8 = 12.5

Answer

ess = 12.5
10.Steady-state error & PID control

Answer: %OS = 44.43 %

P, PI and PID control: the controller C(s) = Kp + Ki/s + Kd·s acts on the error. A proportional gain makes the loop faster and reduces the error of a type-0 plant, but never removes it. The integral term adds a pole at s = 0: the system type rises by one, and a step is followed without error. The derivative term adds damping. To choose gains, write the closed-loop characteristic polynomial and compare it with s² + 2ζωns + ωn². Then %OS = 100·e−ζπ/√(1−ζ²), tp = π/ωd with ωd = ωn√(1 − ζ²), and ts ≈ 4/(ζωn).

Characteristic polynomial

s(s + 2) + 16·1 = s² + 2s + 16

ωₙ and ζ

ωₙ = √16 = 4 rad/s
ζ = 2/(2·4) = 0.25

Overshoot

%OS = 100·e−0.25π/√(1 − 0.25²) = 44.43 %

Answer

%OS = 44.43 %
11.Bode plots & margins

Answer: |G(jω)| = 14.46 dB

Frequency response: substitute s = jω in the transfer function. The magnitude in decibels is 20·log₁₀|H(jω)| and the phase is the sum of the angles of the numerator factors minus those of the denominator factors. A first-order RC or RL filter has its corner (−3 dB) frequency at ωc = 1/(RC) or R/L, and fc = ωc/(2π); a low-pass filter gives |H| = 1/√(1 + (ω/ωc)²) and φ = −atan(ω/ωc). In the asymptotic (straight-line) Bode plot each pole bends the magnitude down by 20 dB/decade at its corner frequency, each zero bends it up by 20 dB/decade, and an integrator 1/s gives −20 dB/decade at all frequencies. Gain crossover ωc: |L(jω)| = 1 (0 dB); phase margin PM = 180° + ∠L(jωc). Phase crossover ω180: ∠L(jω) = −180°; gain margin GM = −20·log₁₀|L(jω180)| dB. The closed loop is stable when both margins are positive.

Multiply the magnitudes

|G(j4)| = 525/(√(4² + 5²)·√(4² + 15²)) = 525/(6.403·15.52) = 5.282

Result

20·log₁₀(5.282) = 14.46 dB

Answer

|G(jω)| = 14.46 dB
12.Bode plots & margins

Answer: PM = 35.6 °

Frequency response: substitute s = jω in the transfer function. The magnitude in decibels is 20·log₁₀|H(jω)| and the phase is the sum of the angles of the numerator factors minus those of the denominator factors. A first-order RC or RL filter has its corner (−3 dB) frequency at ωc = 1/(RC) or R/L, and fc = ωc/(2π); a low-pass filter gives |H| = 1/√(1 + (ω/ωc)²) and φ = −atan(ω/ωc). In the asymptotic (straight-line) Bode plot each pole bends the magnitude down by 20 dB/decade at its corner frequency, each zero bends it up by 20 dB/decade, and an integrator 1/s gives −20 dB/decade at all frequencies. Gain crossover ωc: |L(jω)| = 1 (0 dB); phase margin PM = 180° + ∠L(jωc). Phase crossover ω180: ∠L(jω) = −180°; gain margin GM = −20·log₁₀|L(jω180)| dB. The closed loop is stable when both margins are positive.

Gain crossover

ω⁴ + 100ω² − 57600 = 0
ω² = (−100 + √(10000 + 4·57600))/2 = 195.2
ωc = 13.97 rad/s

Phase margin

∠L(jωc) = −90° − atan(13.97/10) = −144.4°
PM = 180° + ∠L = 35.6°

Answer

PM = 35.6°

ExamProblems · examproblems.com/courses/control-engineering-1