Lite / Engineering Complex Systems / Week 2
Continuity, switches and saturation
Flip a switch and the voltage leaps from 0 to 5 V in an instant. Or does it? Some quantities in a circuit are forbidden from jumping at all.
Why should I care?
Engineering signals are full of switching, clipping and saturation. Knowing exactly where a signal is discontinuous, or merely has a corner, tells you where derivatives blow up, where controllers misbehave and where real hardware must absorb a spike.
- Test continuity at a point with the three conditions: defined, limit exists, limit equals value.
- Compute one-sided limits for switching signals.
- Distinguish a discontinuity from a corner (continuous but not smooth), as in saturation.
Predict
An amplifier output is 2x, but it clips at ±1 V. Is its output a continuous function of the input at x = 0.5 (where clipping starts)?
- No: there is a sudden change there
- Yes: it is continuous, but it has a corner
- It is not defined at 0.5
Guess first, then reveal
Both sides approach 1 V and the output at 0.5 is 1 V, so it is continuous. What changes suddenly is the slope (from 2 to 0). A corner is continuous but not differentiable.
Discover
Choose 'Switch closes at t = 0'. Compare the f(a − h) and f(a + h) columns: they never agree. Then choose the saturating amplifier and zoom in as far as you can: the two sides meet, but the graph never straightens into one line. Write down which is a jump and which is a corner.
What the interactive shows (text version)
For the switch, the zoom lab's table shows 0 on the left side and 5 on the right side at every h, so the limit does not exist. For the saturating amplifier both sides approach 1 and the function equals 1 there, so it is continuous, but zooming in always shows a bend from slope 2 to slope 0.
Understand
Continuity in three checks
f is continuous at a when: (1) f(a) is defined, (2) lim (x→a) f(x) exists, and (3) the limit equals f(a). Fail any one and the function is discontinuous there. Polynomials, exponentials, sines and cosines are continuous everywhere; trouble comes from division by zero, switching and piecewise rules.
One-sided limits for switching
A switch closing at t = 0 gives v = 0 V for t < 0 and 5 V for t ≥ 0. The left limit is 0 V and the right limit 5 V. They differ, so there is a jump discontinuity. Real switches are not quite instant, but on a millisecond scale the jump model is excellent.
Physics forbids some jumps
A capacitor's voltage cannot jump, because that would need infinite current (I = C·dV/dt). An inductor's current cannot jump, because that would need infinite voltage. Continuity is a physical law there. Break an inductor's current suddenly with a switch and the voltage spike can destroy the switch, which is why motor drivers have flyback diodes.
Explain it another way
Intuitive
A continuous function can be drawn without lifting your pen. A jump makes you lift it. A corner lets you keep the pen down but makes you change direction sharply.
Technical
Jump discontinuity: both one-sided limits exist but differ. Removable discontinuity: the limit exists but f(a) is missing or different. Infinite discontinuity: a one-sided limit is ±∞. A corner is continuous with unequal one-sided slopes.
Mathematical
Piecewise f(x) = g(x) for x < a, h(x) for x ≥ a is continuous at a iff lim (x→a⁻) g(x) = h(a). Choosing a parameter to make that true is called matching.
Applied
Controllers saturate: a motor can only take so much voltage. The output becomes clamp(u, −u_max, u_max), continuous but with corners. Integral action that keeps growing while the output is clamped causes windup, a problem you will meet in term 2.
Worked example 1
f(x) = 2x for x < 1 and f(x) = a·x + 1 for x ≥ 1. Which a makes f continuous at 1?
Left limit: 2 × 1 = 2. Value and right limit: a + 1. Continuity needs a + 1 = 2, so a = 1.
Common mix-ups
Continuous means smooth.
✓ Continuous only means no jumps or gaps. A corner is continuous but not smooth.Switching signals are just 'fast continuous' signals, so continuity never matters.
✓ Treating switching as a jump is exactly what reveals the current or voltage spikes hardware must survive.
Practice
Practice, not a test. Answers are checked on our server; a wrong answer gets a hint and another try. Nothing is saved.
Apply it
In a robot or appliance you know, find one signal that switches (a relay, a PWM output) and one that saturates (a motor at full power, a sensor at full scale). Sketch each against time and mark jumps and corners.
Reflect
Why does a motor driver need a flyback diode? Explain using the idea that an inductor's current must be continuous.
Write your answer on paper or in your own notes. Lite never stores what you write.
Go further
- OpenStax Calculus Volume 1 (free, open textbook)
A complete first-year calculus text with worked examples and exercises, free to read online.