Lite / Engineering Complex Systems / Term 2 worksheet
Worksheet: Engineering Complex Systems, term 2
Name: Date:
Week 10: Systems with memory
1. Which of these is best modelled as a dynamic system for a 1-minute experiment?
- A potentiometer's output voltage versus knob angle
- A kettle's water temperature versus heater power
- A light-dependent resistor's resistance versus light level
- A gear train's output angle versus input angle
2. Physically, why can't an oven's temperature jump when you switch it on?
- The thermostat is slow to read
- Heat must flow into the walls and air, and a finite power takes time to deliver a finite energy
- Electricity takes time to reach the heater
- Ovens are designed to be slow on purpose
3. Which description captures a dynamic system?
- y = 2u
- dy/dt = −0.5·y + u
- y = u²
- y = sin(u)
4. An engineer models a motor driver chip as static but the motor as dynamic. When is that justified?
- Never: everything is dynamic
- When the driver responds much faster than the motor, so its lag is negligible on the motor's timescale
- Only if the chip is cheap
- When the motor is small
5. A first-order system τ·dy/dt + y = K·u starts at rest (y = 0). Its parameters are K = 4 and τ = 0.4 s, and a step input u = 2 is applied at time zero. What is y at t = 0.6 s?
Answer:
Week 10: Inputs, outputs, states and parameters
1. A drone hovering in wind: which is a disturbance?
- Motor thrust command
- Gust of wind
- Drone altitude
- Propeller diameter
2. You change the time constant in the feedback lab between two runs. What have you done?
- Changed the state
- Simulated a different system
- Changed the input
- Added a disturbance
3. Why is the measured temperature an output and not simply the state?
- They are always identical
- The sensor adds noise, lag and resolution limits, so the measurement is the state seen through a sensor
- Outputs are always voltages
- States cannot be measured
4. In a block diagram, what does an arrow represent?
- A wire
- A signal: a quantity that varies with time
- A parameter
- The direction of energy flow only
5. A first-order system starts at 0 and settles towards a final value y∞ = 3.3. At t = 1.35 s the reading is y = 0.8553. What is the time constant τ in seconds?
Answer: s
Week 10: Is the code right? Is the model right?
1. You compare your cooling model with a thermometer log from a second cup. Which activity is that?
- Verification
- Validation
- Calibration of the thermometer
- Debugging
2. Why validate on data you did not fit to?
- It is quicker
- A model can match the data it was tuned on without capturing the physics; held-out data tests whether it generalises
- Fitted data is always wrong
- It is a legal requirement
3. Halving the simulation time step changes your answer by 15 %. What should you conclude?
- The model is invalid
- The simulation has not converged: reduce the step further before trusting it
- The physics is chaotic
- Nothing: 15 % is fine
4. Euler's error for a problem is 0.020 at dt = 0.1 s. Euler's error is proportional to dt. What error do you expect at dt = 0.025 s?
Answer:
5. You simulate τ·dy/dt + y = 0 with explicit Euler, τ = 1.5 s. Above what time step dt (in seconds) does the simulation become unstable?
Answer: s
Week 11: How many numbers does a system remember?
1. A car moving along a straight road, driven by an engine force against drag. You care about position and speed. How many states?
- 1
- 2
- 3
- 4
2. Which variable is the natural state for a resistor–capacitor circuit?
- Current through the resistor
- Voltage across the capacitor
- Supply voltage
- Resistance
3. Why can't two trajectories cross in a phase plane of a time-invariant system?
- They can, if the input changes
- At a crossing point the same state would have two different futures, which contradicts the state determining the future
- Because energy is conserved
- Because the plot would be confusing
4. In the phase plane, a trajectory spirals into the origin. What is the mass doing?
- Moving steadily in one direction
- Oscillating with decreasing amplitude
- Oscillating forever
- Speeding up
5. A mass–spring–damper has m = 12 kg and k = 200 N/m. What is its natural frequency ωn in rad/s?
Answer: rad/s
Week 11: From one second-order equation to two first-order ones
1. In A = [[0, 1], [−k/m, −c/m]], what does the entry −c/m in the bottom-right mean?
- How position affects velocity's rate
- How velocity affects its own rate of change: damping
- The input gain
- The spring stiffness
2. For m = 2 kg and k = 50 N/m, at what damping c (N·s/m) do the eigenvalues become real (critical damping)?
Answer: N·s/m
3. How many states does d³y/dt³ + 2ÿ + 3ẏ + y = u need?
- 1
- 2
- 3
- 4
4. In the mass–spring–damper, why is B = [0; 1/m]?
- The force changes position directly
- The force changes acceleration, so it enters the velocity equation only, scaled by 1/m
- Because m = 1
- B is always [0; 1]
5. A mass–spring–damper has m = 10 kg, c = 12.6 N·s/m and k = 400 N/m. What is its damping ratio ζ? (No unit.)
Answer:
Week 11: Updating every state, one step at a time
1. Which update correctly applies explicit Euler to x' = v, v' = −k·x/m?
- x = x + dt·v; then v = v − dt·k·x/m using the new x
- ax = v; av = −k·x/m; then x = x + dt·ax; v = v + dt·av
- v = v − dt·k·x/m; then x = x + dt·v using the new v
- Update x only; v follows automatically
2. Euler on τ·dy/dt = −y with τ = 0.4 s and dt = 0.6 s. By what factor is y multiplied each step?
Answer:
3. Your open-loop simulation was stable with dt = 50 ms. You add a strong P controller and it explodes. Most likely cause?
- The controller is unstable in reality
- The closed loop is faster (smaller τ), so dt now exceeds the numerical stability limit
- Floating-point overflow
- The plant changed
4. Explicit Euler on an undamped spring (no friction) for many periods. What happens to the amplitude?
- Stays exactly constant
- Slowly grows
- Slowly shrinks
- Drops to zero at once
5. You simulate τ·dy/dt + y = 0 with explicit Euler, τ = 1.5 s. Above what time step dt (in seconds) does the simulation become unstable?
Answer: s
6. A first-order system has time constant τ = 25 s. How long after a step does it take to get within band = 5 % of its final value?
Answer: s
Week 12: The time constant: 63 % and counting
1. K = 4, step u = 5 from rest, τ = 3 s. What is y at t = 3 s?
Answer:
2. A first-order system τ·dy/dt + y = K·u starts at rest (y = 0). Its parameters are K = 1.2 and τ = 0.8 s, and a step input u = 10 is applied at time zero. What is y at t = 0.4 s?
Answer:
3. A first-order system has time constant τ = 0.75 s. How long after a step does it take to get within band = 5 % of its final value?
Answer: s
4. You double K and keep τ. How does the time to reach 63 % of the final value change?
- Halves
- Doubles
- Stays the same
- Quadruples
5. If a first-order response kept its initial rate of rise, when would it reach the final value?
- At t = τ/2
- At t = τ
- At t = 4τ
- Never
6. An RC filter has R = 10 kΩ and C = 47 µF. What is its time constant, in seconds?
Answer: s
Week 12: Read the plant from its step response
1. A step test settles 40 units above where it started. It is 25.3 units above the start at t = 6 s. What is τ, in seconds?
Answer: s
2. A first-order system starts at 0 and settles towards a final value y∞ = 40. At t = 7.5 s the reading is y = 15.74. What is the time constant τ in seconds?
Answer: s
3. Raising a heater's power by 200 W raises its settled temperature by 30 °C. What is the static gain K in °C per watt?
Answer: °C/W
4. Which readings give the most noise-robust estimate of τ from a single point?
- The first 5 % of the rise
- Between about 30 % and 80 % of the rise
- The last 2 % of the rise
- Any point equally
5. You plot ln(1 − y/y∞) against t and it curves instead of being a straight line. What does that suggest?
- You made an arithmetic mistake
- The plant is not purely first-order (another store, a delay or a nonlinearity)
- τ is negative
- The test was perfect
Week 12: A greenhouse is a first-order system
1. A greenhouse has heat capacity C = 900 kJ/K and loss coefficient G = 500 W/K. What is τ, in minutes?
Answer: min
2. Same greenhouse (G = 500 W/K) with a 3 kW heater. What steady temperature rise above outside does it reach, in °C?
Answer: °C
3. Opening the door multiplies G by 5. What happens to τ?
- Multiplied by 5
- Divided by 5
- Unchanged
- Divided by 25
4. A first-order system τ·dy/dt + y = K·u starts at rest (y = 0). Its parameters are K = 2 and τ = 12 s, and a step input u = 5 is applied at time zero. What is y at t = 36 s?
Answer:
5. When is a one-temperature (lumped) greenhouse model likely to fail?
- When the air is well mixed by a fan
- When strong sunshine heats the soil and the soil's own slow heat store matters
- When the heater is small
- Never
Week 13: Mass, spring, damper: ωn and ζ
1. m = 2 kg, k = 200 N/m. What is ωn in rad/s?
Answer: rad/s
2. Same system with c = 8 N·s/m. What is ζ?
Answer:
3. A mass–spring–damper has m = 1 kg and k = 800 N/m. What is its natural frequency ωn in rad/s?
Answer: rad/s
4. A mass–spring–damper has m = 2 kg, c = 127 N·s/m and k = 900 N/m. What is its damping ratio ζ? (No unit.)
Answer:
5. You make the spring four times stiffer, keeping m and c. What happens?
- ωn doubles and ζ halves
- ωn quadruples, ζ unchanged
- ωn halves and ζ doubles
- Nothing changes
Week 13: Under, critical, over
1. m = 1 kg, k = 16 N/m, c = 8 N·s/m. Which regime?
- Underdamped
- Critically damped
- Overdamped
- Undamped
2. Which damping ratio gives the fastest step response that never overshoots?
- ζ = 0.5
- ζ = 1
- ζ = 2
- ζ = 0
3. A mass–spring–damper has m = 1 kg, c = 40 N·s/m and k = 400 N/m. What is its damping ratio ζ? (No unit.)
Answer:
4. An underdamped second-order system has damping ratio ζ = 0.37. What percent overshoot does its step response have?
Answer: %
5. Overshoot would crack the part being handled. The best design choice is…
- ζ ≈ 0.2 for speed
- ζ slightly above 1 for margin
- ζ = 10 to be extra safe
- ζ = 0
Week 13: Taming a shaking drum
1. A drum of 40 kg on springs of total stiffness 16,000 N/m. What is ωn in rad/s?
Answer: rad/s
2. Convert ωn = 20 rad/s to revolutions per minute.
Answer: rpm
3. Same drum with dampers c = 480 N·s/m. What is ζ?
Answer:
4. A mass–spring–damper has m = 1 kg and k = 2000 N/m. What is its natural frequency ωn in rad/s?
Answer: rad/s
5. Why do washing machines accelerate quickly through about 190 rpm?
- To save energy
- It is near the suspension's natural frequency, where vibration builds up; less time there means less build-up
- Because the motor is weakest there
- To dry the clothes faster
Week 14: Reading a step response like an engineer
1. A step response settles at 4.0 and peaks at 4.6. What is the percent overshoot?
Answer: %
2. A response with final value 10 passes 1.0 at t = 0.3 s and 9.0 at t = 1.1 s. What is the 10–90 % rise time, in seconds?
Answer: s
3. Design A settles in 2.1 s (5 % band). Design B settles in 2.6 s (2 % band). Which is faster?
- A
- B
- You can't tell without using the same band
- They are equal
4. A second-order system has ωn = 5 rad/s and ζ = 0.6. Estimate its 2 % settling time ts with the rule of thumb ts ≈ 4/(ζ·ωn).
Answer: s
5. A response settles at 0.95 when the set point is 1.0. What does that tell you?
- It has 5 % overshoot
- It has a steady-state error of 0.05
- It hasn't settled yet
- Its rise time is 0.95 s
Week 14: From overshoot to ζ and back
1. What is the percent overshoot for ζ = 0.5?
Answer: %
2. An underdamped second-order system has damping ratio ζ = 0.18. What percent overshoot does its step response have?
Answer: %
3. A step response peaks os = 8 % above its final value. Assuming a standard second-order system, what is its damping ratio ζ?
Answer:
4. A second-order system has ωn = 5 rad/s and ζ = 0.6. Estimate its 2 % settling time ts with the rule of thumb ts ≈ 4/(ζ·ωn).
Answer: s
5. What minimum damping ratio keeps overshoot at or below 5 %? Give ζ to two decimal places.
Answer:
6. When is ts ≈ 4/(ζωn) a poor estimate?
- When ζ = 0.2
- When ζ is close to or above 1
- When ωn is large
- Never
Week 14: Stop on the floor: specs in practice
1. 'The doors must open within 20 s of the call' is a limit on which metric?
- Overshoot
- Settling time (until the cabin is level and still)
- Steady-state error
- Rise time
2. A levelling loop behaves like a standard second-order system. Its approach is 100 mm and overshoot must be at most 5 mm. What is the minimum ζ? (Two decimal places.)
Answer:
3. A step response peaks os = 8 % above its final value. Assuming a standard second-order system, what is its damping ratio ζ?
Answer:
4. Why change one setting at a time when tuning against a spec?
- It's faster
- So each change in the metrics can be attributed to one cause
- The simulator only allows one
- Because specs say so
5. Your new design improves overshoot from 7 mm to 2 mm but doors now open at 22 s. How do you report it?
- 'Overshoot fixed'
- A table of all five checks for both designs, with the doors-open failure flagged
- Only report overshoot because that's what you worked on
- Round 22 s down to 20 s
Week 15: Stable means bounded
1. Which set of poles gives a stable system?
- −1, +0.5
- −2 ± 3j
- 0 ± 2j
- +1 ± j
2. Poles at −10 and −0.2. Which dominates the long-term response?
- −10, because it is bigger
- −0.2, because it decays more slowly
- Both equally
- Neither
3. A pole at σ = −0.35 s⁻¹. How long does its envelope take to halve, in seconds?
Answer: s
4. An undamped mass on a spring is pushed at exactly its natural frequency. What happens?
- It settles
- The amplitude grows steadily: a bounded input gave an unbounded output
- Nothing
- It stops
5. A second-order system has ωn = 20 rad/s and ζ = 0.3. At what time tp does its step response reach its first peak?
Answer: s
Week 15: Eigenvalues: stability from the A matrix
1. A has trace −3 and determinant 2. Stable?
- Yes
- No
- Marginal
- Can't tell
2. A = [[0, 1], [−4, −5]]. What is the slower (closer to zero) eigenvalue?
Answer:
3. A = [[0, 1], [−10, −2]]. What is the size of the imaginary part of its eigenvalues (rad/s)?
Answer: rad/s
4. A = [[2, 0], [0, −3]]. What happens to most starting states?
- They settle
- They grow without limit along one direction
- They oscillate
- They stay put
5. A mass–spring–damper has m = 10 kg, c = 12.6 N·s/m and k = 400 N/m. What is its damping ratio ζ? (No unit.)
Answer:
Week 15: When a computer makes a stable loop unstable
1. τ = 1 s, K = 1, sampling period T = 0.5 s. What is the largest stable Kp? (Two decimal places.)
Answer:
2. A digital P controller samples a first-order plant (τ = 0.5 s, K = 0.5) every T = 2 s and holds its output between samples. Above what gain Kp does the loop become unstable?
Answer:
3. You simulate a P-controlled loop τ·dy/dt + y = K·Kp·(r − y) with explicit Euler. τ = 0.2 s, K = 2, Kp = 4. Above what time step dt (in seconds) does the simulation become unstable?
Answer: s
4. Your digital P loop oscillates. Which change is most likely to fix it without slowing the response?
- Sample faster
- Use a slower processor
- Add more sensor noise
- Increase the gain
5. The per-sample multiplier p = −0.6. How does the error behave?
- Decays smoothly
- Flips sign each sample and shrinks
- Grows
- Stays constant
Week 16: Why P control never quite arrives
1. K = 2, Kp = 4, r = 10. What is the steady-state error?
Answer:
2. A first-order plant with static gain K = 0.5 is under proportional control with gain Kp = 9. The set point steps to r = 5. What steady-state error r − y∞ remains?
Answer:
3. K = 1. What is the smallest Kp that keeps the P-only steady-state error at or below 1 % of the set point?
Answer:
4. Why can't a P controller hold a heater at exactly the set point?
- The sensor is inaccurate
- At zero error its command would be zero, and with no heat the temperature would fall
- The heater is too weak
- Because of noise
5. A constant load pushes the lift cabin down. Under P control, the levelling error is…
- Zero
- Proportional to the load and divided by 1 + loop gain
- Growing over time
- Independent of the load
Week 16: Feedback makes it faster
1. τ = 6 s, K = 0.5, Kp = 10. What is τcl in seconds?
Answer: s
2. A plant τ·dy/dt + y = K·u has τ = 1 s and K = 4. It is put under proportional control u = Kp·(r − y) with Kp = 1. What is the closed-loop time constant in seconds?
Answer: s
3. τ = 12 s, K = 1. What Kp gives τcl = 1.5 s?
Answer:
4. Kp·r is three times the actuator limit. What does the early response look like?
- Exactly τcl as predicted
- Slower than predicted: the actuator runs at its limit until the error is small
- Faster than predicted
- Unstable
5. A first-order plant with static gain K = 4 is under proportional control with gain Kp = 3. The set point steps to r = 1. What steady-state error r − y∞ remains?
Answer:
Week 16: More gain, less damping
1. A second-order plant has ζ = 0.9 and K = 1. With Kp = 8, what is ζcl?
Answer:
2. With ζcl = 0.3, what overshoot do you expect, in percent?
Answer: %
3. An underdamped second-order system has damping ratio ζ = 0.32. What percent overshoot does its step response have?
Answer: %
4. When you raise Kp on a second-order plant, which stays the same?
- ωn,cl
- ζcl
- The decay rate ζcl·ωn,cl of the envelope
- The steady-state error
5. Your P-controlled joint overshoots 35 %. Which change reduces overshoot while keeping the gain?
- Add derivative action
- Add integral action
- Raise Kp
- Sample more slowly
Week 17: I removes the error, D adds the damping
1. What does integral action remove that P alone cannot?
- Overshoot
- Steady-state error to a step or constant load
- Sensor noise
- Saturation
2. Why is derivative action sensitive to sensor noise?
- Noise has a large average
- Noise changes quickly, so its rate of change is large
- D uses a different sensor
- It isn't
3. Why do many PID implementations differentiate the measurement instead of the error?
- It's cheaper
- A step in set point makes de/dt huge for one sample, giving a 'derivative kick'; the measurement doesn't jump
- The error can't be differentiated
- Tradition
4. A first-order plant with static gain K = 2 is under proportional control with gain Kp = 5. The set point steps to r = 50. What steady-state error r − y∞ remains?
Answer:
5. An underdamped second-order system has damping ratio ζ = 0.72. What percent overshoot does its step response have?
Answer: %
Week 17: Tuning to a written spec
1. You've set Kp. Overshoot is 18 % and the spec is 10 %. What next in the procedure?
- Add Ki
- Add Kd
- Lower Kp to zero
- Change the plant
2. Which tuning-log entry is most useful?
- 'Tried some gains, looks better'
- 'Kp 5, Ki 0, Kd 0.2; r = 1, no load; OS 6 %, ts 0.9 s, e∞ 0.04'
- 'Kd up'
- A screenshot with no numbers
3. You can't get settling under 1 s without the motor hitting its current limit. What is the right report?
- Hide the limit and report the best run
- State the spec is not achievable with this actuator, show the evidence, and propose options
- Raise the gains until it passes in simulation without limits
- Change the spec quietly
4. A second-order system has ωn = 5 rad/s and ζ = 0.6. Estimate its 2 % settling time ts with the rule of thumb ts ≈ 4/(ζ·ωn).
Answer: s
5. A step response peaks os = 50 % above its final value. Assuming a standard second-order system, what is its damping ratio ζ?
Answer:
Week 17: Hitting the wall: saturation and windup
1. What causes integrator windup?
- Too much derivative gain
- The integral accumulating error while the actuator is saturated and can't respond
- Sensor noise
- Sampling too fast
2. Which change directly prevents windup?
- Raise Ki
- Stop integrating while saturated (conditional integration)
- Remove the actuator limit in simulation
- Add more D
3. Can a pure P controller suffer integrator windup?
- Yes
- No: it has no integrator, though it still saturates
- Only with noise
- Only if sampled
4. An actuator is saturated for 4 s while the error is constant at 0.5. With Ki = 3, by how much does the integral term Ki·∫e grow?
Answer:
5. A plant τ·dy/dt + y = K·u has τ = 12 s and K = 1. It is put under proportional control u = Kp·(r − y) with Kp = 0.5. What is the closed-loop time constant in seconds?
Answer: s
Week 18: A fair fight between controllers
1. Which is a matched condition for a controller comparison?
- Each controller gets its own random noise
- All controllers face the same load step at the same time with the same noise seed
- The best controller gets the hardest test
- Each is tested on a different day's plant model
2. Why include a P-only controller in the comparison?
- Because it usually wins
- As a baseline: it shows how much the I and D terms actually add
- It is required by law
- To make the table longer
3. Settling times over four matched runs: 1.8, 2.0, 2.2, 2.0 s. What is the mean, in seconds?
Answer: s
4. Why write the specification before running any tests?
- It's faster
- So the metrics aren't chosen afterwards to favour one result
- Because tests are expensive
- It doesn't matter
5. A first-order plant with static gain K = 4 is under proportional control with gain Kp = 3. The set point steps to r = 1. What steady-state error r − y∞ remains?
Answer:
Week 18: Every load, every time
1. P-only levelling, stiffness Kp = 100,000 N/m. Going from 300 kg to 600 kg of passengers, how much further (in mm) does the cabin settle below the floor? Use g = 9.81 m/s².
Answer: mm
2. Which part of a design removes that load-dependent levelling error?
- More derivative gain
- Integral action
- A smaller motor
- A softer jerk limit
3. Your design passes at 450 kg. Why must you still test the empty and the full cabin?
- You don't: the middle load is representative
- Load changes both the disturbance the controller must reject and the moving mass, so ζ, ωn and the steady error all shift
- Only to check the doors
- Because the sensor changes with load
4. A first-order plant with static gain K = 2 is under proportional control with gain Kp = 5. The set point steps to r = 50. What steady-state error r − y∞ remains?
Answer:
5. A mass–spring–damper has m = 10 kg, c = 12.6 N·s/m and k = 400 N/m. What is its damping ratio ζ? (No unit.)
Answer:
Week 18: Writing up the trade-offs
1. Your PID loses to PI on peak motor current. Should that column appear in your table?
- No, it weakens the PID case
- Yes: every pre-specified metric is reported for every controller
- Only in an appendix nobody reads
- Only if asked
2. Which explanation of 'P-only stops 29 mm low with a full cabin' uses the term's theory?
- 'P control is bad'
- 'The extra 300 kg acts as a constant load; P control needs a steady error to hold it, e = Δm·g/Kp ≈ 29 mm'
- 'The simulator is wrong'
- 'The motor is too weak'
3. Which is a genuine limitation of a simulation-only controller comparison?
- The tables are long
- Real hardware adds friction, delay, noise and nonlinearities the model omits, so rankings may change
- Simulations are always wrong
- There were three controllers
4. A step response peaks os = 10 % above its final value. Assuming a standard second-order system, what is its damping ratio ζ?
Answer:
5. A second-order system has ωn = 20 rad/s and ζ = 0.3. At what time tp does its step response reach its first peak?
Answer: s