Differential Calculus
Continuity and the Intermediate Value Theorem
Continuity is the bridge between limits and everything that follows them. A derivative can only exist where a function is already well behaved, and the great existence theorems of calculus — the Intermediate Value Theorem here, the Extreme Value Theorem and the Mean Value Theorem later — all take continuity as a hypothesis. Informally, a continuous graph has no holes, jumps or blow-ups; the job of this topic is to replace that picture with a test you can actually apply, and then to cash it in for a theorem that proves equations have solutions.
Continuity at a point
Definition. A function is continuous at if
That one equation hides three separate requirements. Check them in this order:
- is defined — that is, lies in the domain of ;
- exists as a finite number (equivalently, both one-sided limits exist, are finite, and agree);
- the two numbers are equal.
If any one fails, is discontinuous at . Continuity is always a statement about one point at a time; " is continuous" is shorthand for "continuous at every point of some stated set".
Convention. We call a discontinuity of when is defined on a punctured neighbourhood of (near , though possibly not at ) yet fails to be continuous there. A point far outside the domain, such as for , is not classified at all.
One-sided continuity and intervals
is right-continuous at if , and left-continuous at if . A function is continuous at exactly when it is both left-continuous and right-continuous at .
is continuous on the open interval if it is continuous at every point of . is continuous on the closed interval if it is continuous at every in , right-continuous at , and left-continuous at . Endpoints only ever carry the one-sided requirement — that is exactly why counts as continuous on even though the two-sided limit is meaningless.
Types of discontinuity
| Type | Diagnostic at | Example | Fixable by redefining ? |
|---|---|---|---|
| Removable | exists and is finite, but is undefined or | at , where | Yes — set |
| Jump | both one-sided limits exist and are finite, but they differ | the step function for , for , at | No |
| Infinite | at least one one-sided limit is or (vertical asymptote) | at ; at | No |
| Oscillatory (essential) | a one-sided limit fails to exist for a reason other than blowing up | at | No |
The jump size at a jump discontinuity is . Only the removable case admits a continuous extension: the new function that agrees with away from and takes the value at .
Which functions are continuous
Algebra of continuous functions. If and are continuous at , then so are , , (for any constant ) and ; and is continuous at provided .
Composition. If is continuous at and is continuous at , then the composite is continuous at .
Limit swap. If and is continuous at , then
The continuity hypothesis is not decoration; without it the swap is false (see Common mistakes).
| Family | Continuous on |
|---|---|
| polynomials | |
| rational functions | every with |
| , one-sided at | |
| , , , , absolute value | |
| , | all with , i.e. |
| , | all with , i.e. |
| , | , one-sided at |
Anything built from these by sums, differences, products, quotients and compositions is continuous on its natural domain. The only candidate trouble spots are therefore: a vanishing denominator, a square root whose argument turns negative, a logarithm whose argument reaches , and the switch points of a piecewise definition.
Worked example 1 — choosing parameters
Find and making continuous on :
Each piece is a polynomial, hence continuous on the open interval where it applies; only and can fail.
At : the middle line gives the value, , which is also , while . Continuity needs
At : , and . Continuity needs
Subtracting the first equation from the second gives , so and then . Check: and . Answer: , .
The Intermediate Value Theorem
Hypotheses. is continuous on the closed, bounded interval (so and are defined and finite), and is a number strictly between and .
Conclusion. There exists at least one in the open interval with .
Root form (Bolzano). If is continuous on and , then has at least one zero in .
What the IVT does not give: uniqueness of ; any formula or algorithm for ; any conclusion when continuity fails anywhere in ; and no conclusion about roots when and share a sign. Careful: sharing a sign kills only the root argument. If and the IVT still delivers every value strictly between and . It is the case that leaves no admissible at all, and there the theorem says nothing. Its converse is also false: a function can take every intermediate value and still be discontinuous.
Worked example 2 — bracketing a root
Show that has a solution, and trap one inside an interval of length .
Let , a polynomial, hence continuous on every closed interval. Then
Since is continuous on and lies strictly between and , the IVT gives some in with .
Bisect once:
so the sign change now sits between and : a root lies in . Bisect again:
so the sign change sits between and . Hence a root lies in , an interval of length . (In fact .)
Common mistakes
| Wrong | Right |
|---|---|
| " exists, so is continuous at ." | Existence of the limit is only condition 2. You still need to exist and to equal that limit. |
| Cancelling and declaring victory: , "so is continuous at ". | The identity holds only for . The original is undefined at : a removable discontinuity. It is the extension that is continuous, not . |
| Matching only the two one-sided limits in a piecewise problem. | If a separate line of the definition assigns , the common one-sided value must equal that too. Three conditions, not two. |
| " is discontinuous at because the two-sided limit fails." | At a domain endpoint only the one-sided condition applies: , so is continuous on . |
| Applying the IVT to on : ", so there is a root." | is not continuous on (infinite discontinuity at ), so the IVT says nothing — and indeed is never . |
| ", so there is exactly one root." | The IVT gives at least one. has and three roots in . Uniqueness needs a separate argument on top of the IVT; strict monotonicity on is the usual one, and it is sufficient but not necessary. |
| " and , so by the IVT never takes the value ." | The IVT produces values; it forbids nothing. is continuous with , yet , so at . |
| , always. | Only when is continuous at . With for and otherwise, and : but . |
Key terms
- continuity at a point
- three conditions for continuity
- one-sided continuity
- left-continuous and right-continuous
- continuous on a closed interval
- removable discontinuity
- continuous extension
- jump discontinuity
- jump size
- infinite discontinuity
- oscillatory (essential) discontinuity
- algebra of continuous functions
- continuity of compositions
- limit-swap rule
- piecewise-defined function
- parameter matching
- Intermediate Value Theorem
- Bolzano root theorem
- sign change
- bracketing a root by bisection
- existence versus uniqueness
- fixed point
Practice Problems
Let
Check the three conditions for continuity at one at a time. Is continuous at ? If not, name the type of discontinuity and say how, or whether, it can be repaired.
Show hint
Do not just stare at the formula: evaluate from the definition and compute separately, then compare the two numbers.
Show answer
Condition 1: is defined? Yes. The second line of the definition gives .
Condition 2: does exist? For we may cancel, because :
A limit as only uses values with , so
Both one-sided limits equal , so the limit exists and is finite.
Condition 3: are the two numbers equal? but , and . Condition 3 fails.
Conclusion. is not continuous at . Because the limit exists and is finite while the assigned value is the wrong one, this is a removable discontinuity. It is repaired by a single redefinition: setting , which amounts to using for all , makes the function continuous at and hence continuous on all of .
Find every discontinuity of
classify each one, and state the largest set on which is continuous.
Show hint
Factor the numerator and the denominator first; a zero of the denominator behaves very differently depending on whether the numerator vanishes there too.
Show answer
Factor.
The denominator vanishes at and , so the domain is all with and . Everywhere else is a rational function with nonzero denominator, hence continuous by the quotient rule. So the only candidates are and .
At . For we may cancel the factor :
Therefore
a finite limit, while is undefined (condition 1 fails). This is a removable discontinuity; defining repairs it.
At . Using the same cancelled form, as the numerator tends to while the denominator tends to . Checking signs:
- as : , so ;
- as : , so .
(Numerical check: and .) This is an infinite discontinuity, with the vertical asymptote . It cannot be removed by redefining a single value.
Conclusion. has a removable discontinuity at and an infinite discontinuity at , and it is continuous on
Let
Compute both one-sided limits at . Is left-continuous at ? Right-continuous? Continuous? Classify the discontinuity and state its jump size.
Show hint
Split the absolute value into its two cases according to the sign of , and simplify the formula separately on each side of .
Show answer
Remove the absolute value. By definition when , and when . Hence for ,
One-sided limits. is constantly just to the left of and constantly just to the right, so
One-sided continuity. The definition gives .
- Right-continuity: , so yes, is right-continuous at .
- Left-continuity: , so no, is not left-continuous at .
Continuity. Continuity at requires both one-sided conditions, so is not continuous at . Equivalently, the two-sided limit does not exist, so condition 2 of the definition fails.
Classification. Both one-sided limits exist and are finite but are unequal, so this is a jump discontinuity, with jump size
No choice of can repair a jump: whatever value is assigned, it can match at most one of the two one-sided limits. Away from the function is locally constant, so is continuous on .
Find the value of the constant that makes
continuous at . With that value of , on what set is continuous?
Show hint
Compute the left-hand limit by factoring, work out from the second line, and force the two to agree.
Show answer
Left-hand limit. For we certainly have , so we may cancel:
Hence
Value and right-hand limit. The second line applies at and to its right, and is a polynomial, so
Impose continuity. All three of , and must coincide, so
Check. With we get , which matches the left-hand limit . Continuity holds.
Where is continuous? For , agrees with the polynomial (the cancellation is valid there), so it is continuous on . For it is the polynomial , also continuous. With the switch point is fine as well, so is continuous on all of . For any other value of , has a jump discontinuity at of size .
Determine the largest set on which
is continuous. Justify your answer by naming the continuity theorems you use, and describe the behaviour of at .
Show hint
Build up from standard functions: first ask where the composition in the numerator is even defined, then apply the quotient rule for continuity.
Show answer
Step 1: the numerator. Let , a polynomial, hence continuous on , and recall that is continuous on . By the composition theorem (if is continuous at and is continuous at , then is continuous at ), the numerator is continuous at every for which
Outside the numerator is undefined, and at the argument of equals , which is also outside the domain of .
Step 2: the denominator. is a polynomial, continuous everywhere, and it vanishes only at .
Step 3: the quotient. By the quotient rule for continuity, a quotient of functions continuous at is continuous at provided the denominator is nonzero there. Combining Steps 1 and 2, is continuous at every with and , that is, on
This is also exactly the domain of , so is continuous at every point of its domain — as any elementary function is.
Behaviour at . There the numerator tends to while the denominator tends to :
- as : , so ;
- as : , so .
So is an infinite discontinuity with vertical asymptote , and it is not removable.
A remark on . These are not classified as discontinuities, because is undefined on a whole one-sided neighbourhood there ( does not exist for ); they are domain endpoints. For the record, as while , so ; and as the denominator tends to , so .
Find constants and so that
is continuous on .
Show hint
Only the two switch points can cause trouble. Each one gives a linear equation in and ; solve the resulting system of two equations.
Show answer
Where can continuity fail? On , on and on the function agrees with a polynomial, and polynomials are continuous. So the only possible discontinuities are the switch points and .
Condition at . The middle line covers , so
while from the left
Continuity at therefore requires
Condition at . The middle line also covers , so , while from the right
Continuity at therefore requires
Solve the system. Subtract from :
Then from ,
Check both equations. , which matches . And , which matches . Both hold.
Answer. and , so the middle piece is . With these values is continuous on all of ; for any other pair, has a jump discontinuity at , or at , or at both.
Let
Does have a removable discontinuity at ? If so, give the value that must be assigned to to make the extended function continuous at , and state the interval on which the extension is continuous.
Show hint
Substituting gives the indeterminate form , so the formula must be rewritten. Multiply numerator and denominator by the conjugate of the numerator.
Show answer
Identify the form. As , the numerator and the denominator : the indeterminate form . So the limit may still exist, but algebra is needed to find it.
Rationalise the numerator. For with , multiply above and below by , which is never (indeed ):
Cancelling is legitimate precisely because throughout the limit process.
Take the limit. The function is continuous at — it is a quotient of continuous functions whose denominator there equals — so we may substitute:
Numerical check: at the original quotient is , and at it is . Both sit next to .
Conclusion. The limit exists and is finite while is undefined, so is a removable discontinuity and the repairing value is
The extension. Define for and . The computation above shows that in fact
and is continuous with value at least , hence never , so this quotient is continuous at every . Therefore is continuous on , which is the domain of together with the single repaired point .
(Strictly, is not continuous at , because is not in its domain. The formula does make sense there, with value , so one may extend once more to a function continuous on — right-continuity being all that is required at that endpoint. But that is a second extension, beyond the one the question asks for.)
Show that the equation has a solution in the interval . Then use two bisection steps to locate a solution inside an interval of length . State clearly which hypotheses of the Intermediate Value Theorem you are using at each stage.
Show hint
Name the function, say why it satisfies the hypotheses on the closed interval, then evaluate at the endpoints and look for a sign change.
Show answer
Set up. Let .
Hypothesis check. is a polynomial, and every polynomial is continuous on ; in particular is continuous on the closed, bounded interval .
Endpoint values.
The target value lies strictly between and . By the Intermediate Value Theorem there exists in with , that is, solves .
Bisection step 1. Evaluate at the midpoint :
Now and , and is continuous on , so the IVT gives a root in . On the other half both endpoint values are negative, so the IVT gives no information there and we discard it.
Bisection step 2. Evaluate at the midpoint :
Now and , with continuous on . By the IVT there is a root
an interval of length , as required.
Verification. Numerically the root is , which indeed lies in . Note that has two further real roots, near and , both outside — the IVT never claimed uniqueness.
Prove that the equation has a solution in the interval . Then explain why the Intermediate Value Theorem alone does not show that the solution is unique, and give a separate argument that it is.
Show hint
The IVT is about one function attaining one value, so first rearrange the equation into the form "some continuous function equals ".
Show answer
Rearrange. A solution of is exactly a zero of
Hypothesis check. is continuous on and is a polynomial, hence continuous; a difference of continuous functions is continuous. So is continuous on the closed, bounded interval .
Endpoint values.
Apply the IVT. The value lies strictly between and , and is continuous on . Hence there is some in with , that is,
Why the IVT does not give uniqueness. Its conclusion is literally "there exists at least one ". Nothing in the hypotheses — continuity, plus a value lying between the endpoint values — restricts how many such points there are. For example is continuous on with
so lies strictly between the endpoint values and the IVT applies word for word — yet has three zeros in , namely , and . Nor may you upgrade the conclusion to "an odd number of crossings": a continuous function can vanish on an entire subinterval, so its zero set need not even be finite. A sign change buys existence and nothing else.
A separate uniqueness argument. On the function is strictly decreasing while the function is strictly increasing. So if then
using in the first inequality and in the second. Hence is strictly decreasing on , and a strictly decreasing function takes each value at most once. So has at most one zero there; combined with the IVT, which gave at least one, the solution is exactly one.
Numerical check. (the Dottie number), and .
(a) Let
Prove that is continuous at .
(b) Let for . Show that no choice of makes continuous at , and classify the discontinuity.
Show hint
For (a), bound the oscillating factor and squeeze. For (b), it is enough to exhibit two sequences of inputs approaching along which takes different constant values.
Show answer
(a) Continuity at by squeezing.
Condition 1 holds: is defined. We must show that .
For every real we have , so in particular for every . (The inner expression is a perfectly good real number for each ; we never need it to converge.) Multiplying through by , which is and so preserves the inequalities,
Since and , the Squeeze Theorem gives
So the limit exists and equals (condition 2), and it agrees with (condition 3). Therefore is continuous at .
Notice what was not used: the limit , which does not exist by part (b). The limit-swap rule and the product rule for limits are both unavailable here, and the squeeze does the work instead.
(b) No value of can work.
Suppose, for contradiction, that for some number . Consider two sequences of inputs tending to . For every positive integer put
Both and as , yet the corresponding function values are constantly along the first sequence and constantly along the second. If the limit existed, every sequence of inputs approaching would force the values to approach that same , giving and at once — a contradiction. Hence
and the same sequences show the right-hand limit fails; mirror sequences with negative terms do the same on the left. Condition 2 of the definition of continuity fails no matter what number is assigned to , so no choice of makes continuous at .
Classification. The one-sided limits fail to exist, but not by tending to or (indeed is bounded, since ). So the discontinuity is neither removable, nor a jump, nor infinite: it is an oscillatory (essential) discontinuity.
Three students misuse the Intermediate Value Theorem. In each case decide whether the conclusion is true or false, and identify precisely which hypothesis, or which part of the statement, is being abused.
(a) " satisfies , so by the IVT there is in with ."
(b) " is continuous on with . Since both endpoint values are , the IVT tells us that never takes the value on ."
(c) " is defined on and takes every value between and somewhere on that interval. Therefore is continuous on ."
Show hint
For each claim, write out the exact hypotheses and the exact conclusion of the IVT and compare them line by line with what is asserted; then look for an explicit counterexample.
Show answer
Recall the theorem exactly. Hypotheses: is continuous on the closed, bounded interval , and lies strictly between and . Conclusion: there exists at least one in with .
(a) False — the continuity hypothesis fails.
is not even defined at , let alone continuous there, so is not continuous on the closed interval : it has an infinite discontinuity at , with as and as . The IVT therefore says nothing at all. And the asserted conclusion is genuinely false: has no solution, since for every . This is the single most common IVT error — checking the sign change and forgetting to check continuity on the whole closed interval.
(b) False — the IVT is an existence theorem, never an exclusion theorem.
The IVT produces values; it never forbids any. Values outside the range between and are entirely possible. Concrete counterexample: take
a polynomial, hence continuous on , with
So the endpoint values are both , yet reaches . Applying the IVT correctly on , where and and lies strictly between them, we even get a guaranteed point with . Solving exactly:
Both and lie in , so takes the value twice. The correct reading of equal endpoint values: the IVT gives no information whatsoever.
(c) False — this is the converse of the IVT, and the converse is not a theorem.
The property described is called the intermediate value property. Continuity implies it; it does not imply continuity. Counterexample on :
This has an oscillatory discontinuity at , so it is not continuous on . Yet on every interval with it already attains every value in : as runs through , the quantity runs through , an interval longer than , over which sweeps its full range. In particular attains every value between and . So the intermediate value property is strictly weaker than continuity.
Summary. (a) false — continuity on all of is required; (b) false — the IVT asserts existence and never non-existence; (c) false — the converse of the IVT does not hold.
Let be continuous on with for every in , so that maps into itself. Prove that has a fixed point: there exists in with .
Then give an explicit example showing that the conclusion can fail if is replaced throughout by the open interval , and say which hypothesis is lost.
Show hint
The IVT is about zeros of a function, so manufacture one: consider the difference between and , and evaluate it at the two endpoints.
Show answer
Set up an auxiliary function. Define
is continuous on by hypothesis and is continuous everywhere, so , a difference of continuous functions, is continuous on the closed, bounded interval . A fixed point of is exactly a zero of , since says precisely that .
Evaluate at the endpoints, using the range hypothesis.
Dispose of the boundary cases first. This matters, because the IVT needs to lie strictly between the endpoint values.
- If , then and is a fixed point. Done.
- If , then and is a fixed point. Done.
Main case. Otherwise the inequalities above are strict: and . Then lies strictly between and , and is continuous on , so the Intermediate Value Theorem yields some in with
In every case has a fixed point in , which is what we had to prove.
(This is the one-dimensional Brouwer fixed point theorem. The proof supplies no formula for and gives no uniqueness: for every point of is a fixed point.)
Failure on the open interval. Take
is continuous, being a polynomial, and it does map into itself: if then , so , and every such value lies in . But solving for a fixed point,
and each step is reversible, so is the only solution — and is not in . Hence has no fixed point in .
Which hypothesis is lost. Closedness of the interval. The proof must evaluate at the endpoints and to obtain and , and the IVT itself demands a closed, bounded interval on which is continuous. On the endpoints are unavailable: here for every in , so there is no sign change at all inside the interval — it would only occur in the limit at , which the open interval excludes.
