School/□ Systems Engineer/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.
About 35 min · 3 goals · Checked by automated tests
1.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.
2.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.
Loading the interactive…
Can't use the interactive? Read a description instead
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.
3.Checkpoint: guided practice
Check what you just discovered before going on. Hints appear after a wrong answer.
Practice 1
f(x) = 3x² for x < 2 and f(x) = 5x + b for x ≥ 2. What value of b makes f continuous at x = 2?
4.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)?
Guess first. Being wrong here is how the surprise works.
5.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
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.
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.
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.
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.
6.Practice on your own
Practice, not a test. Wrong answers get a hint and another try.
Practice 2
v(t) = 0 V for t < 0 and v(t) = 12·(1 − e^(−t)) V for t ≥ 0. What is the right-hand limit of v as t → 0⁺, in volts?
Practice 3
A logic signal is 0 V before t = 0 and 3.3 V from t = 0 on. What kind of point is t = 0?
Practice 4
Why can't the voltage across a real capacitor jump instantly?
Practice 5
Which of these is continuous at the point but not differentiable there?
7.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.
8.Reflect
9.Go further
- OpenStax Calculus Volume 1 (free, open textbook) ↗A complete first-year calculus text with worked examples and exercises, free to read online.
Concepts: Limits and continuity · Saturation and integrator windup