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.
Contents
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 . 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.
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
- Transfer function: , the ratio of the Laplace-transformed output to the input with zero initial conditions.
- Poles: the values of that make the denominator (the characteristic equation) zero. Zeros: the values that make the numerator zero.
- Stability: the system is stable if and only if all poles have negative real part (lie in the left half-plane).
- First-order system: , with a pole at . Final value for a unit step: . After one time constant , the response is at 63% of the final value.
- Second-order standard form: , with natural frequency and damping ratio .
- Overshoot (for ): . Peak time and settling time (2%) , where is the damped (oscillation) frequency.
- Dead time adds an extra factor to the transfer function: a pure delay before the output reacts.
How to solve the problems
- Identify whether the system is first- or second-order, and read off , (or , ) directly from the form of .
- Find the poles by setting the denominator to zero, and check the sign of the real part for stability.
- Find the final value for a unit step using (set ).
- Use the standard formulas for overshoot, peak time and settling time for second-order systems instead of solving the differential equation.
- Check the answer against the physics: a system without an integrator and with positive should go to a finite, positive final value.
Example
A system has the transfer function . Find the damping ratio, the final value for a unit step, and the overshoot.
- Compare with the standard form: , so rad/s.
- gives .
- Final value: .
- Overshoot: , i.e. about 37%.
Answer: , final value , overshoot %.
Common mistakes
- Thinking that zeros determine stability – it is the poles that determine stability, not the zeros.
- Forgetting to set correctly when finding the final value (only valid for stable systems without an integrator).
- Confusing with the damped frequency – they are not the same when .
- Thinking dead time is the same as a pole – it changes the phase, not the number of poles in a rational approximation.
Concepts in this part
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
- Ideal PID controller: , where and ( = integral time, = derivative time).
- The P term gives a fast response, but leaves a steady-state error for most processes.
- The I term integrates the error over time and removes steady-state error, but can make the system slower and more oscillatory.
- The D term reacts to how fast the error is changing and damps overshoot, but amplifies measurement noise and is therefore often filtered.
- Closed loop with forward gain and feedback : (negative feedback).
- Steady-state error for a step: for pure P control; with an I term, for a step.
- Steady-state error for a ramp (type-1 system, PI control of ): the velocity constant , and .
- Ziegler–Nichols (ultimate gain method): find the ultimate gain and period (pure P control until sustained oscillation). PID table: , , .
- Integrator windup: the I term keeps growing while the actuator is saturated, causing large overshoot once the error reverses.
How to solve the problems
- Identify which term (P, I or D) the question is about, and what kind of error or effect it produces.
- 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.
- For closed-loop expressions: set up and simplify before finding poles or the final value.
- For Ziegler–Nichols: plug and directly into the table formulas – do not mix up , and .
- Check whether the answer makes sense: increasing should give a faster but more unsettled response; an I term should remove the steady-state error for a step.
Example
A process is controlled by a PI controller with and s. The reference is a ramp with slope 1 (unit/s). Find the steady-state error.
- Velocity constant: .
- Steady-state error: .
Answer: (units).
Common mistakes
- Thinking an I term removes steady-state error for *all* types of references – it removes the error for a step, but not necessarily for a ramp.
- Increasing a lot to get rid of steady-state error instead of adding an I term – that causes more overshoot and can make the system unstable.
- Confusing (integral time, a large means weak I action) with (where a large means strong I action) – they are each other's inverse, scaled by .
- Forgetting anti-windup in a controller with actuator saturation, so the I term "locks up" and causes large overshoot.
Concepts in this part
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
- Gain in decibels: . Inverse: .
- A single pole () gives an asymptotic dB/decade above the corner frequency ; a single zero gives dB/decade.
- The phase contribution from a single pole goes gradually from to around the corner frequency; from a zero, from to .
- A pure dead time does not change the magnitude, but gives a phase lag (radians) that grows linearly with frequency.
- Crossover frequency : where (0 dB), with the loop gain .
- Phase margin: at the crossover frequency. A common target is 45–60°.
- Gain margin: how many dB can be increased before the system becomes unstable, read where the phase is .
- Bandwidth: the frequency where the closed-loop magnitude has dropped 3 dB from its low-frequency value.
How to solve the problems
- Find the corner frequency of each pole/zero () and reason your way to the asymptotes.
- Add the magnitude and phase contributions from each term (poles, zeros, any dead time) to get the total magnitude and phase.
- Find the crossover frequency where , and read the phase there to compute the phase margin.
- For dead time: compute the phase contribution as in radians, and convert to degrees by multiplying by .
- Check that the answer is reasonable: a stable loop should have a positive phase margin and a positive gain margin.
Example
A loop has with dead time s. Find the phase margin.
- Crossover frequency: gives rad/s.
- Phase from the integrator: .
- Phase from the dead time: .
- Total phase: .
- Phase margin: .
Answer: (a good margin).
Common mistakes
- Thinking dead time changes the magnitude – it only changes the phase, never .
- Reading the gain margin at the crossover frequency instead of where the phase is (and vice versa for the phase margin).
- Forgetting to convert the dead-time phase contribution from radians to degrees.
- Thinking a higher bandwidth is always better – it gives a faster response, but also more sensitivity to noise.
Concepts in this part
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 and the time constant .
Concepts and formulas
- Transfer function:
- Step response: when the input jumps by at , the output becomes
- Final value: . The gain is the change in output divided by the change in input once everything has settled.
- The time constant is the time it takes to reach 63.2 % of the change. After you are at 95 %, after at 98 % and after at 99.3 %.
- Rise time (from 10 % to 90 %): .
- RC circuit: . A thermal process: = thermal capacitance times thermal resistance.
- Time to reach a fraction of the final value: .
How to solve the problems
- Read and from . Make sure the denominator has the form (divide by the constant term if needed).
- Final value: . Value at time : .
- Time to a given fraction: .
Example
, and the input jumps from 0 to 3.
- and s.
- The final value is .
- After 2 s the output is , i.e. 63.2 % of the way.
- Settling time to 98 %: s.
Common mistakes
- Reading the wrong time constant when the denominator is not normalized: gives , not 4.
- Forgetting to multiply by the step size .
- Mixing up 63 % (one time constant) and 98 % (four time constants).
Concepts in this part
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:
Answer:
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 in decibels?
Answer: −20 dB
dB.
Step response and first-order systems: gets a step of 3 at . What is the final value of the output?
Answer: 15
, so .
Matches these university courses
The content covers the syllabus found in engineering degrees, for example:
- ELFT2400 (OsloMet)
- TTK4105 (NTNU)
- TEL240 (NMBU)