Continuity, Differentiability and the Mean Value Theorems
Continuity at a point and on an interval, the kinds of discontinuity, the intermediate and extreme value theorems, the derivative as a limit, differentiability vs continuity, derivative rules (product, quotient, chain, implicit, logarithmic), derivatives of the functions used in ML, Rolle's theorem and the mean value theorem.
Continuity
is continuous at if
which packs three conditions: is defined, the limit exists, and they are equal. is continuous on an interval if it is continuous at every point (one-sided at closed endpoints).
Polynomials, , , are continuous everywhere; rational functions, , and are continuous on their domains. Sums, products, quotients (where the denominator ) and compositions of continuous functions are continuous.
Types of discontinuity
| Type | Behaviour | Example |
|---|---|---|
| Removable | limit exists but or undefined | at |
| Jump | both one-sided limits exist but differ | at integers; the step function |
| Infinite | a one-sided limit is | at 0 |
| Oscillating | no limit | at 0 |
Two theorems about continuous functions on
- Intermediate value theorem: takes every value between and . In particular, if and have opposite signs, has a root in — the basis of the bisection method.
- Extreme value theorem: attains a maximum and a minimum on . (Fails on open intervals: on .)
The derivative
the slope of the tangent line and the instantaneous rate of change. is differentiable at if this limit exists (left and right derivatives exist and agree).
Differentiable ⇒ continuous, never the reverse. Places where a continuous function fails to be differentiable: corners (, ReLU at 0), cusps (), vertical tangents ().
Differentiation rules
| Rule | Formula |
|---|---|
| Linearity | |
| Product | |
| Quotient | |
| Chain | |
| Inverse function | where |
| Logarithmic | for : |
| , | , |
| , | , |
| , , | , , |
| (softplus) | |
| (ReLU) | for , for |
The chain rule is the mathematical core of backpropagation: the gradient of a composition is the product of local derivatives along the path — see neural networks.
Implicit differentiation: differentiate both sides of treating as . For : .
Higher derivatives , , … describe curvature and appear in Taylor series and the second-derivative test.
Rolle's theorem and the mean value theorem
Rolle: if is continuous on , differentiable on and , then for some .
Mean value theorem (Lagrange): under the same smoothness conditions,
Somewhere the instantaneous slope equals the average slope. Consequences:
- on an interval ⇒ is constant; ⇒ strictly increasing; ⇒ strictly decreasing.
- if (Lipschitz bounds, used in convergence proofs for gradient descent).
Cauchy's MVT: — the theorem behind L'Hôpital's rule.
Quick revision
Practice questions
GATE-style questions: 3 one-mark and 7 two-mark. Wrong MCQs cost ⅓ of their marks in the real exam; MSQ and NAT have no negative marking. Attempt each before opening the solution.
The function at is
for and for . The value of that makes continuous at is ______.
for and for . If is differentiable at , then ______.
The derivative of at is ______.
For on , the point guaranteed by the mean value theorem is ______.
Which statements are true?
One or more options are correct.
The derivative of the sigmoid function at is ______.
is continuous on with and . Which conclusion is guaranteed?
For on , the point given by Rolle's theorem is ______.
The derivative of at is ______ (round to one decimal).