Continuity
A function is continuous at if three things hold: (1) is defined at ; (2) the limit exists; and (3) the limit equals the function value: . Intuitively, continuity means you can draw the graph without lifting your pen.
Continuity fails in three ways: a removable discontinuity (limit exists but is wrong), a jump discontinuity (left and right limits exist but differ), or an infinite/oscillating discontinuity (limit does not exist). A function is continuous on an interval if it is continuous at every point in that interval.
The class of continuous functions is called (or ). It is the most basic regularity class — functions "nice enough" for optimization at least need to be continuous.
Formal View
Polynomials, , , , (for ) are all continuous on their natural domains.
Interactive Visualization
Secant → Tangent Line
Why This Matters
Continuity is the minimum regularity needed for optimization — discontinuous functions can have minimizers that are impossible to find by descent methods.
- Extreme Value Theorem: a continuous function on a closed bounded interval always attains its minimum and maximum.
- Neural network activations must be continuous to allow gradient-based training (mostly — ReLU has a single discontinuity in derivative, not the function itself).
- Physical models: conservation laws ensure physical quantities are continuous in space and time.
Quiz
Which condition is NOT required for to be continuous at ?
Every polynomial is a continuous function.
Common Mistakes
- Thinking differentiability implies continuity — it does! But continuity does NOT imply differentiability.
- Confusing a removable discontinuity (limit exists, value is wrong) with a jump discontinuity (one-sided limits differ).