Learning Objectives
By the end of this section you will be able to:
- Describe continuity at a point in everyday language — "no breaks, no jumps, no holes" — and translate it into a picture of a pencil tracing a graph.
- Recognise continuous curves and spot the four canonical failures: jumps, removable holes, infinite poles, and essential oscillations.
- State the three demands a function must satisfy at a point to be continuous there, and connect them to the limit machinery from Chapter 2.
- Diagnose continuity numerically by comparing, , and .
- Connect continuity to real phenomena — from a ball in flight to the ReLU inside a neural network — and see why it is the gateway assumption for every theorem in the rest of the book.
The Big Picture
Limits tell us where a function wants to go. Continuity is the statement that a function actually arrives. When the limit and the function agree at every point — when the target a curve is aiming at is the same point it reaches — the curve is seamless. No jumps, no holes, no leaps into infinity.
Core idea
A function is continuous at when you can plug straight into the formula and get the same answer that the graph is clearly heading toward from both sides. In symbols,
A function is continuous on an interval when every point of that interval satisfies the equation above.
Continuity is not a bonus feature — it is the gateway assumption for most of calculus. The Intermediate Value Theorem, the Extreme Value Theorem, the Fundamental Theorem of Calculus, every convergence result for numerical methods: all of them begin with the words "let f be continuous on [a, b]". Before we meet those giants, we need a rock-solid mental model of what continuity actually feels like.
Intuition: The Pencil Test
Here is the image every calculus student should carry in their head. Put the tip of a pencil on a curve, then drag it along the graph from left to right. Ask one simple question:
Did I have to lift the pencil? If the answer is no on an interval — the tip stayed on the paper the whole way — the function is continuous on that interval. Every lift is a discontinuity, and every kind of lift corresponds to a different failure mode.
The mental test is surprisingly accurate. A smooth parabola, a sine wave, a growing exponential — none of them ever force you to lift the pencil. A staircase, a signum function, a graph with a tiny hole drilled at one point — all of them do.
Four ways to be forced to lift the pencil
- Jump. The curve suddenly leaps to a new height. Example: at 0 or the floor function at any integer.
- Removable hole. The curve looks continuous except for a single missing point. Example: at .
- Infinite discontinuity. The graph shoots off to . Example: at 0 (recall §2.4).
- Essential (oscillatory). The curve wiggles infinitely fast near the bad point. Example: as .
Gallery: Four Kinds of Curves
Press play and watch a virtual pencil trace each graph below. The red dot is the pencil tip. Count how many times the tip has to leave the paper:
The polynomial needs zero lifts — it is continuous everywhere. Each of the other three requires exactly one lift, and the kind of lift tells you which family of discontinuity you are dealing with. A calculus textbook can feel abstract, but the pencil test keeps the whole chapter grounded in a physical action you could perform with a crayon on graph paper.
“Continuous” means continuous at every point
When we say f is continuous without a qualifier, we mean continuous at every point of its domain — no lifts anywhere. A single bad point is enough to disqualify the function from the label "continuous" on an interval that contains that point. That is why mathematicians are careful to say is continuous on — the interval matters.
The Three Demands of Continuity
The pencil test is great for intuition, but mathematics needs a check that works even when there is no picture in front of us. Turning the picture into a checklist gives the classical three-condition definition: a function is continuous at iff all three of the following hold:
You can actually plug into the formula. If makes a denominator zero or sits outside the domain, this demand fails before we even start.
Both one-sided limits must exist and agree on a single real number. No jumps, no infinite escape, no oscillatory tantrum.
The value the function is heading to equals the value it actually takes. This is the demand a removable hole violates even when 1 and 2 might otherwise be satisfiable.
Each of the four failure modes in the gallery corresponds to a specific demand collapsing. The table below shows which one breaks where:
| Failure | Demand 1: f(a) defined? | Demand 2: limit exists? | Demand 3: limit = f(a)? |
|---|---|---|---|
| Continuous | Yes | Yes | Yes |
| Jump | Usually yes | No — two sides disagree | — |
| Removable hole | No | Yes | — (can't compare) |
| Infinite pole | No | No (limit is ±∞, not a real number) | — |
| Oscillatory | Sometimes | No — no single limit | — |
Equivalent one-line slogan
The three demands compress into a single equation that you should memorise for life:
Every time this equality holds, the pencil never left the paper at . Every time it fails, you can classify the failure by examining which of the three demands broke.
Interactive: The Continuity Microscope
Pick a function below. A green dot probes from the left, an orange dot from the right, and the red dot marks itself. Shrink and watch the three values race toward (or refuse to race toward) the same height:
Things to try
- Start with the polynomial and shrink . All three numbers converge on 3 — every demand satisfied.
- Switch to . The green dot sits at −1, the orange at +1, and the red at 0. No matter how small you make , the gap never closes: Demand 2 fails.
- Try . Green and orange both converge to 6, but the red "f(a)" badge reads undefined — Demand 1 fails. Plugging the hole with would fix it.
- Compare the floor function with sign(x). Floor is right-continuous at every integer but not two-sided continuous: its left-hand limit disagrees, just like sign(x).
Worked Example — Three Functions at a Glance
Let us apply the three demands by hand to three functions at three different points. Try it yourself before expanding the walkthrough.
Expand step-by-step walkthrough
Function f — the smooth polynomial.
- Demand 1. . Defined ✅.
- Demand 2. Limit laws (sum, product of continuous pieces) give . Exists ✅.
- Demand 3. . Matches ✅.
Verdict: continuous at . In fact, every polynomial is continuous on all of .
Function g — the sign function.
- Demand 1. . Defined ✅.
- Demand 2. , . The two sides disagree, so the two-sided limit does not exist. Demand 2 fails ❌.
- Demand 3. Irrelevant once Demand 2 is broken.
Verdict: jump discontinuity at . No plug-in value of can repair it — the two sides will never meet.
Function h — the removable hole. First simplify: whenever .
- Demand 1. requires 0/0 — undefined. Demand 1 fails ❌.
- Demand 2. . Exists ✅.
- Demand 3. There is no to compare against.
Verdict: removable discontinuity at . Define a patched function that agrees with everywhere except , and becomes continuous everywhere.
Sanity check. Using a calculator with :
| Function | f(a−h) | f(a) | f(a+h) |
|---|---|---|---|
| x² − 3x + 5 at a=2 | +2.9999 | 3 | +3.0001 |
| sign(x) at a=0 | −1 | 0 | +1 |
| (x² − 9)/(x − 3) at a=3 | +5.9999 | undefined | +6.0001 |
The numbers match our three verdicts exactly.
Python: A Hand-Made Continuity Tester
The three demands translate into a tiny Python script. Instead of reaching for SymPy or NumPy, we'll build the tester ourselves so every line is transparent. Click any line in the editor to see what the variables hold on that line across all three experiments.
Running the script produces three reports. The polynomial report prints continuous? True. The sign report prints limit exists? False and continuous? False. The removable report prints limit exists? True but matches f(a)? False — and therefore continuous? False. Each failure mode lights up a different part of the checklist.
PyTorch: Why Networks Love Continuous Activations
Continuity is not a mathematical nicety — it is a hard requirement for gradient-based learning. Every time a neural network trains, the chain rule multiplies derivatives through the computation graph. If one link in that chain is discontinuous, the derivative blows up or collapses to zero, and learning stops.
Compare two activations side by side. is continuous everywhere (the two halves meet smoothly at the origin). is the textbook jump: it leaps from to at . Let autograd reveal the difference.
The lesson the gradient is teaching
ReLU's gradient is — a mix of "dead" and "alive" units that can still update the live half. Sign's gradient is — completely silent. Gradient descent cannot escape a flat landscape, so a network with hard-threshold activations cannot learn. This is why the field replaced step functions with sigmoids in the 1980s, and sigmoids with ReLUs in the 2010s: each step moved the network toward more usable continuity.
Where Continuity Shows Up in the Real World
🚀 Physics — trajectories
Newton's laws forbid teleportation. Position, velocity, and acceleration are all continuous in time for any mass moving under bounded forces. Any model that predicts a jump in position is a bug — usually a sign of missing impulse or a misplaced boundary condition.
📈 Finance — price vs cash flow
Stock prices are continuous during trading hours (modulo bid-ask spread). A dividend payment, however, creates a genuine jump: the stock re-opens lower by exactly the dividend. Continuity tells quant models where to apply the no-arbitrage "jump correction".
⚡ Engineering — signals and circuits
Real voltages rise continuously; an ideal step function is an engineering fiction. The rise time of a signal — the short window in which it climbs from 10% to 90% — is the concrete measurement of how continuous the signal actually is. Faster rise time = closer to a discontinuity = harder EMI problems.
🤖 Machine learning — the chain rule
Every differentiable activation is continuous, but not every continuous activation is differentiable (ReLU has a corner at 0). Training relies on both properties: continuity for the forward pass to be well-defined, differentiability (almost everywhere) for the backward pass.
Common Pitfalls
“The graph has no jumps” is not enough
A function can fail Demand 1 (undefined) while the pencil-test picture looks seamless on either side. The removable hole at above is exactly that case: the left and right pieces line up perfectly at height 6, but does not exist, so the function is not continuous at 3. Always check that is in the domain.
Continuous vs differentiable
Continuity is a weaker condition than differentiability. ReLU is continuous everywhere but not differentiable at 0. The absolute value is continuous on all of but has a corner at 0. Weierstrass' nowhere-differentiable function is continuous everywhere and differentiable nowhere. Never equate the two.
One-sided continuity is a thing
A function can be right-continuous at — meaning — without being left-continuous. The floor function is right-continuous at every integer but not left-continuous. Two-sided continuity requires both sides to agree.
Summary
| Idea | Formula / Description |
|---|---|
| Pencil test | Draw the graph without lifting the pencil on the interval |
| Equation form | lim_{x→a} f(x) = f(a) |
| Demand 1 | f(a) is defined |
| Demand 2 | lim_{x→a} f(x) exists |
| Demand 3 | The limit equals f(a) |
| Jump | Demand 2 fails — two one-sided limits disagree |
| Removable | Demand 1 fails — limit exists but f(a) undefined |
| Infinite | Demand 2 fails — limit is ±∞ |
| Essential / oscillatory | Demand 2 fails — no single limit |
Key Takeaways
- A function is continuous at iff . Everything else in this chapter is an unpacking of that single equation.
- The pencil test is the gold standard for intuition: "did I have to lift the pencil?" The answer immediately tells you whether a point is continuous or which kind of failure you are looking at.
- Four canonical failures — jump, removable, infinite, essential — each break a specific demand of the three-condition definition.
- Numerical testers, pencil traces, and graphs are all views of the same object. Switching between them is the single most useful habit in this chapter.
- Continuity is the admission ticket for the Intermediate Value Theorem, the Extreme Value Theorem, and every major calculus result. Without it, the machinery ahead cannot start.
Coming next: §3.2 turns the pencil test into the rigorous three-condition definition and shows how to prove continuity using limit laws instead of pictures. You will see that every result from Chapter 2 was secretly preparing you to check Demand 2.