All courses › Control Engineering

Control Engineering: free practice, theory and problems

In control engineering we describe how a system (a motor, a temperature process, a robot arm) responds to an input by transforming the differential equation into the Laplace domain. There, differential equations become algebra, and the system can be described by one compact fraction: the transfer function . The poles and zeros of tell you almost everything you need to know about the system's behavior – whether it is stable, how fast it responds, and whether it oscillates.

4 parts66 problems12 concepts explainedPractice examFree
Start practising for free →

Contents

  1. Laplace and transfer functions
  2. PID control
  3. Frequency analysis
  4. Step response and first-order systems

1. Laplace and transfer functions

What is it about?

In control engineering we describe how a system (a motor, a temperature process, a robot arm) responds to an input by transforming the differential equation into the Laplace domain. There, differential equations become algebra, and the system can be described by one compact fraction: the transfer function G(s)G(s). The poles and zeros of G(s)G(s) tell you almost everything you need to know about the system's behavior – whether it is stable, how fast it responds, and whether it oscillates.

The goal of this unit is to be able to read a transfer function and say something qualitative and quantitative about the step response without solving the differential equation in the time domain every time.

Concepts and formulas

How to solve the problems

  1. Identify whether the system is first- or second-order, and read off KK, τ\tau (or ωn\omega_n, ζ\zeta) directly from the form of G(s)G(s).
  2. Find the poles by setting the denominator to zero, and check the sign of the real part for stability.
  3. Find the final value for a unit step using G(0)G(0) (set s=0s=0).
  4. Use the standard formulas for overshoot, peak time and settling time for second-order systems instead of solving the differential equation.
  5. Check the answer against the physics: a system without an integrator and with positive KK should go to a finite, positive final value.

Example

A system has the transfer function G(s)=36s2+3.6s+36G(s) = \dfrac{36}{s^2+3.6s+36}. Find the damping ratio, the final value for a unit step, and the overshoot.

  1. Compare with the standard form: ωn2=36\omega_n^2=36, so ωn=6\omega_n=6 rad/s.
  2. 2ζωn=3.62\zeta\omega_n=3.6 gives ζ=3.6/(2⋅6)=0.3\zeta = 3.6/(2\cdot6) = 0.3.
  3. Final value: G(0)=36/36=1G(0)=36/36=1.
  4. Overshoot: Mp=e−π⋅0.3/1−0.32≈e−0.988≈0.372M_p=e^{-\pi\cdot0.3/\sqrt{1-0.3^2}}\approx e^{-0.988}\approx0.372, i.e. about 37%.

Answer: ζ=0.3\zeta=0.3, final value =1=1, overshoot ≈37\approx37%.

Common mistakes

The poles determine stability and dynamics, the zeros only shape the response. The left half-plane is safe, the right half-plane is unstable.

Concepts in this part

Practise laplace and transfer functions in the app →

2. PID control

What is it about?

A PID controller is the most widely used control algorithm in industry: it compares a measured value with a reference and computes an actuator signal from the error. The three terms – proportional (P), integral (I) and derivative (D) – each have their own job, and good control is about balancing them against each other: fast response, little overshoot, zero steady-state error and robustness to noise.

This unit is about understanding what each term does, how they combine in a feedback loop, and how to find reasonable starting values for the gains.

Concepts and formulas

How to solve the problems

  1. Identify which term (P, I or D) the question is about, and what kind of error or effect it produces.
  2. For steady-state error: check whether the loop has an I term (type 1) – the error is then zero for a step, but can be finite for a ramp.
  3. For closed-loop expressions: set up G/(1+GH)G/(1+GH) and simplify before finding poles or the final value.
  4. For Ziegler–Nichols: plug KuK_u and TuT_u directly into the table formulas – do not mix up KpK_p, TiT_i and TdT_d.
  5. Check whether the answer makes sense: increasing KpK_p should give a faster but more unsettled response; an I term should remove the steady-state error for a step.

Example

A process G(s)=2s+1G(s) = \dfrac{2}{s+1} is controlled by a PI controller with Kp=3K_p=3 and Ti=0.5T_i=0.5 s. The reference is a ramp with slope 1 (unit/s). Find the steady-state error.

  1. Velocity constant: Kv=KpK/Ti=3⋅2/0.5=12K_v = K_pK/T_i = 3\cdot2/0.5 = 12.
  2. Steady-state error: e∞=1/Kv=1/12≈0.0833e_\infty = 1/K_v = 1/12 \approx 0.0833.

Answer: e∞≈0.083e_\infty \approx 0.083 (units).

Common mistakes

P gives speed, I removes steady-state error (but can cause overshoot and windup), D damps oscillations (but amplifies noise). A good controller balances all three.

Concepts in this part

Practise pID control in the app →

3. Frequency analysis

What is it about?

The Bode plot shows how a system responds to sinusoidal input signals at different frequencies: how much the amplitude is boosted or attenuated (in decibels), and how much the phase is shifted. This frequency response is used to judge how stable a closed-loop control system will be – without having to find the poles explicitly – and to understand how far you can raise the gain before the system starts to oscillate uncontrollably.

Phase margin and gain margin are the most important "safety margins" a control engineer reads off a Bode plot before putting a controller into service.

Concepts and formulas

How to solve the problems

  1. Find the corner frequency of each pole/zero (ω=1/τ\omega=1/\tau) and reason your way to the asymptotes.
  2. Add the magnitude and phase contributions from each term (poles, zeros, any dead time) to get the total magnitude and phase.
  3. Find the crossover frequency ωc\omega_c where ∣L∣=1|L|=1, and read the phase there to compute the phase margin.
  4. For dead time: compute the phase contribution as −ωT-\omega T in radians, and convert to degrees by multiplying by 180/π180/\pi.
  5. Check that the answer is reasonable: a stable loop should have a positive phase margin and a positive gain margin.

Example

A loop has L(s)=4se−sTL(s) = \dfrac{4}{s}e^{-sT} with dead time T=0.05T = 0.05 s. Find the phase margin.

  1. Crossover frequency: ∣L(jω)∣=4/ω=1|L(j\omega)| = 4/\omega = 1 gives ωc=4\omega_c = 4 rad/s.
  2. Phase from the integrator: −90∘-90^\circ.
  3. Phase from the dead time: φT=−ωcT⋅(180/π)=−4⋅0.05⋅(180/π)≈−11.46∘\varphi_T = -\omega_cT\cdot(180/\pi) = -4\cdot0.05\cdot(180/\pi) \approx -11.46^\circ.
  4. Total phase: −90∘−11.46∘=−101.46∘-90^\circ - 11.46^\circ = -101.46^\circ.
  5. Phase margin: PM=180∘−101.46∘≈78.5∘PM = 180^\circ - 101.46^\circ \approx 78.5^\circ.

Answer: PM≈78.5∘PM \approx 78.5^\circ (a good margin).

Common mistakes

Bode plot: magnitude in dB, phase in degrees, both versus logarithmic frequency. Read the phase margin at 0 dB, the gain margin at −180∘-180^\circ.

Concepts in this part

Practise frequency analysis in the app →

4. Step response and first-order systems

What is it about?

Many processes react in the same way when you change the input abruptly: a kettle that is switched on, a tank that fills, a motor that gets voltage. The output rises quickly at first and then levels off towards a new value. This is a first-order system, and it is fully described by two numbers: the gain KK and the time constant τ\tau.

Concepts and formulas

G(s)=Kτs+1G(s) = \frac{K}{\tau s + 1}
y(t)=KA (1−e−t/τ)y(t) = K A\,\bigl(1 - e^{-t/\tau}\bigr)

How to solve the problems

  1. Read KK and τ\tau from G(s)G(s). Make sure the denominator has the form τs+1\tau s + 1 (divide by the constant term if needed).
  2. Final value: KAKA. Value at time tt: KA(1−e−t/τ)KA(1 - e^{-t/\tau}).
  3. Time to a given fraction: t=−τln⁡(1−p)t = -\tau\ln(1-p).

Example

G(s)=52s+1G(s) = \dfrac{5}{2s + 1}, and the input jumps from 0 to 3.

  1. K=5K = 5 and τ=2\tau = 2 s.
  2. The final value is 5⋅3=155\cdot 3 = 15.
  3. After 2 s the output is 15 (1−e−1)≈9.4815\,(1 - e^{-1}) \approx 9.48, i.e. 63.2 % of the way.
  4. Settling time to 98 %: 4τ=84\tau = 8 s.

Common mistakes

After one time constant: 63 %. After four: 98 %. Final value: KK times the step.

Concepts in this part

Practise step response and first-order systems in the app →

Example problems with solutions

Here are some of the problems in control Engineering. In the app, calculation problems get new numbers every time, so you can practise until it sticks – and take a graded practice exam before the real one.

Laplace and transfer functions: L{e−at}=\mathcal L\{e^{-at}\} =

Answer: 1s+a\dfrac{1}{s+a}

This is fundamental for first-order systems.

PID control: Which term of a PID controller removes steady-state error?

Answer: The I term

The integral keeps growing as long as there is an error.

Frequency analysis: What is ∣G∣=0.1|G| = 0.1 in decibels?

Answer: −20 dB

20log⁡10(0.1)=−2020\log_{10}(0.1) = -20 dB.

Step response and first-order systems: G(s)=52s+1G(s) = \dfrac{5}{2s + 1} gets a step of 3 at t=0t = 0. What is the final value of the output?

Answer: 15

K=5K = 5, so y(∞)=K⋅A=5⋅3=15y(\infty) = K\cdot A = 5\cdot 3 = 15.

Practise all the problems →

Matches these university courses

The content covers the syllabus found in engineering degrees, for example: