A function is continuous at a point when its limit there equals its actual value. No gap, no jump, no missing point—the function does exactly what its nearby behavior predicts.
This simple requirement has profound consequences. Continuous functions behave predictably: you can evaluate limits by direct substitution, the graph has no breaks, and values change gradually rather than abruptly.
Discontinuities occur when something fails. The function might be undefined at the point, the limit might not exist, or the limit might exist but differ from the function value. Classifying what goes wrong reveals the nature of the break and whether it can be repaired.
Key Terms
Continuity— limx→af(x)=f(a), three conditions in one equation
Discontinuity— removable, jump, infinite, or oscillating
Limit— the two-sided limit must exist for continuity to hold
One-Sided Limit— one-sided continuity at endpoints of closed intervals
Asymptote— infinite discontinuities produce vertical asymptotes
Four graphs, each looked at around one marked point — which of them is continuous there?
Away from their marked points all four behave alike: the graph is one unbroken curve. At the marked point they differ. Before giving the property a name, look at what each graph does exactly there.
A · smooth
B · hole
C · jump
D · asymptote
A: x2, smooth everywhere. B: a point missing at x=1. C: a step at x=0. D: a vertical asymptote. These are frozen states of the continuity explorer.
Only A passes; B, C and D each break at the point.
Ask the same three questions of every graph at its marked point.
graph
a value at the point?
values nearby settle?
do they match?
A · smooth
yes
yes
yes
B · hole
no
yes
—
C · jump
yes
no: two different levels
—
D · asymptote
no
no: they run off to infinity
—
Only A answers yes three times. Each of the others fails at least one question, and which one it fails is what tells them apart.
Each failure is at one exact place, and the near-misses do not fail at all.
B fails because the point itself is missing — the curve on both sides heads for one height, but nothing sits there. C fails because the two sides head for two different heights. D fails because the values near the point do not settle at all. One more case looks harmless but also fails: a curve whose nearby values head for one height while the dot at the point sits somewhere else, a wrong value. The near-misses pass. ∣x∣ has a sharp corner at 0, but nothing is missing or misplaced, so it is continuous there — a corner is not a break. And a curve can be continuous at a point however steep it is, as long as it arrives.
The rule: the value at the point is what the nearby values approach.
A function is continuous at a point when the function value at each point matches what the surrounding values predict: nearby inputs give outputs closing in on a height, and the point sits exactly at that height. Informally, you can trace the curve without lifting your pen. That picture works for whole stretches of a graph, but it breaks down for strange functions and says nothing about a single point — which is why the rule is stated with a limit, one point at a time.
The definition
A function f is continuous at x=a if its limit as x approaches a exists and equals its value there: limx→af(x)=f(a).
The next section takes this one equation apart into the three conditions it contains.
Continuity is a property of a function at a point; on an interval, it holds at every point.
It is a yes-or-no question about one point. A function continuous at every point of an interval is continuous on that interval, and that is the everyday sense of the word: small changes in input produce small changes in output. Temperature varies continuously throughout the day. Position changes continuously as you walk. Discontinuities—sudden jumps or gaps—signal something unusual: a switch being flipped, a boundary being crossed.
Some rejected graphs can be repaired with a single value; others cannot.
Whether one changed value would fix the failure sorts the discontinuities into kinds.
failed at the point
can one value fix it?
hole, or a wrong value
yes: set f(a) to the value nearby points approach
jump
no: the two sides approach different levels
asymptote
no: there is no level to fill in
B is repaired by giving the function the value 2 at x=1; C and D stay broken whatever value is chosen.
The rest of the page states the definition formally, then goes through each kind of discontinuity — removable, jump, infinite, oscillating — one-sided continuity, continuity on intervals, the functions that are continuous everywhere, and the theorems that continuity guarantees.
The Formal Definition
A function f is continuous at x=a if three conditions hold:
encapsulates all three: the right side requires f(a) to exist, the left side requires the limit to exist, and the equality requires them to match.
Pitfall: Stopping after two conditions
Seeing that f(1) is defined and limx→1f(x) exists, and calling f continuous, skips condition 3. For f(x)=x2 when x=1 and f(1)=3, the limit is 1=3, so f is not continuous at 1.
In practice the conditions are checked in this order, at one specific point a. The first is about the single number f(a), the second about the values of f at points near a, and the third compares the two numbers these steps produce. The second condition deliberately ignores f(a): the limit is built from values near a, never from the value at a itself.
Condition 3 fails: lim f(x) ≠ f(1)
The checker tests the three conditions in order: here f(1) is defined and the two-sided limit exists, but the marked point sits away from the limit, so the equality in condition 3 fails and the verdict is discontinuous. One relocated point would make the function continuous. Run the three-step check on any example on the continuity checker.
Each way the three conditions can fail has a name, and the next sections take them in turn.
Continuity at a point is one equation, limit equals value, and it fails when either side is missing or the two disagree.
Three claims in one equation — f(a) exists, the two-sided limit exists, they match. Fail any one and the equation is false or meaningless.
CasesInterior point — as written. Open interval (a,b) — the equation at every point. Closed [a,b] — endpoints switch to the one-sided form below.
Also writtenEpsilon-delta: ∣x−a∣<δ⇒∣f(x)−f(a)∣<ε. Note the missing 0< — unlike a limit's punctured 0<∣x−a∣, continuity lets x=a in.
Do not confuseA computation rule. “Evaluate by substitution” is what continuity licenses, not what defines it — quoting substitution to prove continuity runs in a circle.
x→a+limf(x)=f(a)
f is right-continuous at a
The continuity equation restricted to one side. The superscript machinery belongs to one-sided limits; this page adds the equality with f(a).
CasesLeft endpoint of [a,b] — right-continuity is all that is asked; the right endpoint mirrors it with b−. Every cumulative distribution function is right-continuous by convention — this equation is its defining property.
Also writtenf(a+)=f(a), in the one-sided value shorthand.
Do not confuseFull continuity. At an interior point one-sided continuity is strictly weaker — the floor function is right-continuous everywhere yet jumps at every integer, as in Jump Discontinuity below.
f∈C[a,b]
f is in C of a, b
Class membership: C[a,b] is the set of all functions continuous on [a,b], C(I) on an interval I. Theorem hypotheses shrink to f∈C[a,b] instead of a sentence.
CasesC0 — the same class with its ladder rung showing; the ladder C1,C2,…,C∞ counts continuous derivatives and is climbed on higher-order derivatives.
Also writtenC0[a,b]; C(X) in topology, for continuous functions on a space X.
Do not confuseFunction arguments. The brackets are the interval's own — C[a,b] is not C evaluated at a and b.
Same glyph elsewhereRoman C also counts combinationsC(n,r), and blackboard C names the complex numbers — unrelated jobs for one letter.
A function is continuous on an open interval (a,b) if it is continuous at every point in that interval.
For closed intervals [a,b], the definition adjusts at endpoints where only one direction of approach is available:
Continuous on (a,b)
Right-continuous at a: limx→a+f(x)=f(a)
Left-continuous at b: limx→b−f(x)=f(b)
Pitfall: Asking for a two-sided limit at an endpoint
Rejecting x on [0,4] because there are no values left of 0, and so no two-sided limit there, asks too much. At a left endpoint only the right side counts: limx→0+x=0=0, and x is continuous on [0,4].
One-sided continuity handles the boundaries where the domain restricts approach to a single direction.
Root functions are where this comes up most often. The domain of x ends at 0, so on an interval such as [0,4] the left endpoint can be approached only from the right. The same happens at the right endpoint of [−3,1] for 1−x, whose domain ends at 1 and which can be approached there only from the left.
Types of Discontinuities
Discontinuities are classified by which condition fails and how.
Removable discontinuity: The limit exists, but f(a) is undefined or f(a)=limx→af(x)
Jump discontinuity: Both one-sided limits exist but differ
Infinite discontinuity: At least one one-sided limit is ±∞
Oscillating discontinuity: The limit fails to exist due to oscillation
Each type reveals different information about the function's behavior and determines whether the discontinuity can be "fixed."
The four types sort into two groups by one question: does the limit at the point exist? If it does, the fault is confined to a single value and can be repaired by redefining f(a). If it does not, no choice of f(a) can help, and the three ways the limit can fail give the three remaining types.
The group is settled before f(a) is even looked at: compute the two one-sided limits. If they agree and are finite, the discontinuity is removable and only f(a) needs checking. If they disagree, it is a jump; if one of them is infinite, it is infinite; if neither settles on a value, it is oscillating. Each type is taken up in its own section below.
Removable Discontinuity
A removable discontinuity occurs when the limit exists but differs from the function value (or the function is undefined).
Consider:
Removable Discontinuity
f(x)=x−1x2−1
For x=1, this simplifies to x+1. The limit as x→1 is 2. But f(1) is undefined—division by zero.
Pitfall: Reading the value off the simplified formula
Cancelling to x+1 and then setting f(1)=1+1=2 treats f as x+1 at x=1 as well, and calls it continuous. The original formula gives 00 at 1, so f(1) is undefined and f is discontinuous there.
The graph shows a hole at (1,2). The discontinuity is removable because redefining f(1)=2 fills the hole and makes the function continuous.
Removable discontinuities are "accidents" that can be repaired with a single point adjustment.
Hole at x = 1: removable
The limit at 1 exists and equals 2, but the function has no value there; filling the single missing point would make the curve continuous, which is why the discontinuity is called removable. The simplified formula x + 1 is exactly that repaired function. Compare the hole with the repaired curve on the continuity checker.
Removable discontinuities are the mild case: the function is continuous except for a bookkeeping error at one point.
A jump discontinuity occurs when both one-sided limits exist but are unequal:
Jump Discontinuity
x→a−limf(x)=x→a+limf(x)
The function "jumps" from one value to another at x=a.
The floor function ⌊x⌋ jumps at every integer. At x=2:
Jump Discontinuity
x→2−lim⌊x⌋=1x→2+lim⌊x⌋=2
Did you know: Increasing functions can only jump
A function that never decreases has both one-sided limits at every point, so each of its discontinuities is a jump. It can jump at every fraction, but never at uncountably many points: each jump skips an interval of heights, the skipped intervals never overlap, and each contains a fraction of its own.
No single value of f(2) can equal both one-sided limits. The discontinuity cannot be removed—the gap is intrinsic to the function's definition.
The floor function never decreases: as x moves to the right, ⌊x⌋ either stays where it is or steps up. Many step functions met in practice behave the same way, such as a parking fee charged for each started hour, or the number of people who have entered a building by time t. For any function of this kind, the values just to the left of a point can never lie above the values just to its right.
Jump at x = 0: left limit 0, right limit 1
From the left the function approaches 0, from the right it approaches 1, and no single value could bridge the gap: the two-sided limit does not exist, so condition 2 fails. The size of the jump is the difference of the two one-sided limits. Read the two one-sided values on the continuity checker.
Jumps are the natural discontinuities of piecewise definitions and of the floor and ceiling functions.
Infinite Discontinuity
An infinite discontinuity occurs when the function blows up—at least one one-sided limit equals ±∞.
For f(x)=x1 at x=0:
Infinite Discontinuity
x→0−limx1=−∞x→0+limx1=+∞
Pitfall: Calling every zero of the denominator an asymptote
Taking x=1 as a vertical asymptote of x−1x2−1 because its denominator is 0 there misses the cancellation: near 1 the function equals x+1, which tends to 2, so the graph has a hole. Cancel common factors first; a zero left in the denominator, as with x1 at 0, gives the asymptote.
The graph has a vertical asymptote at x=0. No finite value can serve as f(0) because the function escapes to infinity from both sides.
Infinite discontinuities mark points where the function is fundamentally unbounded.
Asymptote at x = 0: the limit is infinite
Approaching 0 the function runs off the top or bottom of the picture: at least one one-sided limit is infinite, so there is no finite limit and no value that could be assigned. The vertical line x = 0 is the asymptote the curve hugs. Watch the readings blow up on the continuity checker.
Infinite discontinuities mark the vertical asymptotes of rational functions.
Oscillating Discontinuity
An oscillating discontinuity occurs when the function oscillates without settling, preventing the limit from existing.
The classic example is f(x)=sin(1/x) at x=0. As x→0, the argument 1/x→±∞, causing sine to oscillate between −1 and 1 infinitely often.
No single value L works because the function repeatedly swings away from any candidate. The limit does not exist—not because of a jump or blowup, but because of uncontrolled oscillation.
function oscillates without settling — limit fails to exist
infinitely many swings as x → a (e.g. sin(1/x))
✕
Oscillating DiscontinuityLearn Math Class
sin(1/x) near 0: no limit at all
The probes at ±0.5 read sin 2 ≈ 0.91, but moving them inward the readings swing between −1 and 1 faster and faster, never settling: the limit fails to exist not by running away but by refusing to choose. No value of f(0) could make this continuous. Squeeze the probes and watch the readings swing on the limit explorer.
Oscillating discontinuities are rare in practice but show that the limit can fail without any value being infinite.
Continuous Functions — The Standard Library
Many familiar functions are continuous on their entire domains:
Polynomials: continuous everywhere
Rational functions: continuous except where the denominator is zero
Trigonometric functions:sinx, cosx continuous everywhere; tanx, secx, etc. continuous where defined
For f(x)=x2 on [−1,1], f(−1)=f(1)=1, and concluding from this that f never takes the value 0 reverses the theorem. It speaks only about values between f(a) and f(b); here f(0)=0.
Continuous functions hit every intermediate value—no skipping. The graph cannot jump from f(a) to f(b) without passing through every height in between.
This theorem guarantees existence. It says a c exists but does not tell you where or whether it is unique.
Every height in between is reached
f(x) = x³ − 3x is continuous on [−2, 2.2], starts at f(−2) = −2 and ends at about 4.05. Any level between those two heights, such as the dashed k = 1, must be crossed: the unbroken curve cannot get from below the line to above it without meeting it. Here it meets it three times. The theorem only promises at least one such c, not where it is or how many there are.
Without continuity the guarantee fails: a jump can skip a level entirely.
Did you know: Two opposite points, one temperature
At any moment some pair of opposite points on the equator has exactly the same temperature. Let g be the temperature at a point minus the temperature at the point opposite; going halfway round turns g into −g, so the continuous g cannot keep one sign and is 0 somewhere.
The theorem is often applied to a function built for the purpose rather than to the one in the question. To show that two continuous quantities p and q are equal somewhere on [a,b], apply it to their difference g=p−q, which is continuous too. If g is negative at one end and positive at the other, then g(c)=0 for some c, and so p(c)=q(c). Nothing more about p and q needs to be known than their continuity and the two signs.
A continuous function cannot skip a value on its way, so solutions exist even when no one can say where.
The theorem only goes one way. The card separates what it says from what it does not.
A c exists when k lies between f(a) and f(b); when it does not, the theorem is silent.
Using IVT to Locate Roots
A sign change guarantees a root. If f is continuous on [a,b] with:
Using IVT to Locate Roots
f(a)<0andf(b)>0
then f(c)=0 for some c∈(a,b).
Example
Show that x3−x−1=0 has a solution in (1,2).
Let f(x)=x3−x−1.
f(1)=1−1−1=−1<0
f(2)=8−2−1=5>0
Since f is continuous and changes sign, IVT guarantees a root between 1 and 2.
Pitfall: Skipping the continuity check
Citing only the sign change of f(x)=x1, f(−1)=−1<0<1=f(1), predicts a root in (−1,1), yet x1=0 has no solution. f is not continuous at 0, so the theorem does not apply on [−1,1].
The argument rests on two separate facts about f. The signs at the endpoints come from evaluating f(1) and f(2); continuity on the whole of [1,2] comes from knowing that x3−x−1 is a polynomial. Only together do they force the graph to meet the x-axis somewhere between 1 and 2.
The bisection method refines this: repeatedly halve the interval, keeping the half where the sign change occurs, to approximate the root to any desired precision.
Trapping a root by halving
The section’s f(x) = x³ − x − 1 is negative at 1 and positive at 2, so a root lies between. f(1.5) ≈ 0.875 is positive, so the root is in [1, 1.5]; f(1.25) ≈ −0.30 is negative, so it is in [1.25, 1.5], between the dashed lines. Each step halves the interval that must contain the root; the root itself is about 1.3247.
Ten halvings shrink [1, 2] to an interval shorter than 0.001.
A sign change in a continuous function proves a root exists, and repeated halving pins it down to any accuracy.
Summary: Where Continuity Is the Hypothesis
Continuity isn't just a property a function might happen to have; it's a hypothesis that unlocks a long list of useful results across the limits subtree and beyond. The table below collects five places where this page's definition of continuity does the work — from the everyday move of direct substitution for limits, through the algebraic and composition rules, to the Intermediate Value Theorem. In each row, the required form of continuity is the condition that turns the right-hand result into a guarantee.
the function is well-behaved across the full closed interval — endpoints included
Intermediate Value Theorem
continuous on [a, b]
f attains every value between f(a) and f(b) — guarantees roots when the sign changes
Summary: Where Continuity Is the HypothesisLearn Math Class
Common Pitfalls
Six mistakes cause most wrong answers about continuity. Each one is marked where it happens in the sections above; here each is worked through in full, with the wrong and the right working side by side.
The function has a value at the point and a limit there, and it is declared continuous without the two numbers being compared. This happens most often with functions defined piecewise, where the value at the point is assigned separately from the formula around it.
Start
Let f(x)=x2 for x=1 and f(1)=3.
Wrong turn
Error here
Then f(1)=3 is defined, and limx→1f(x)=12=1 exists, so f is continuous at 1.
Right path
Condition 3 asks whether the limit equals the value. Here limx→1f(x)=1 and f(1)=3, and 1=3, so f is not continuous at 1. The discontinuity is removable: redefining f(1)=1 repairs it.
Why it happensConditions 1 and 2 are the ones that take work, the evaluation and the limit. Once both have succeeded, the comparison looks automatic and is left out.
How to checkWrite the equation limx→af(x)=f(a) with both sides filled in by numbers. Here it reads 1=3, which is false.
2Asking for a two-sided limit at an endpoint
At the endpoint of a closed interval, the two-sided limit is demanded, as at an interior point. When the function is not defined on one side, the limit seems not to exist and the function is declared discontinuous.
Wrong turn
Error here
On [0,4], the function x has no values for x<0, so limx→0−x does not exist, so there is no two-sided limit at 0, so x is not continuous on [0,4].
Right path
On a closed interval, only right-continuity is required at the left endpoint and only left-continuity at the right endpoint. Here limx→0+x=0=0 and limx→4−x=2=4, and x is continuous at every point of (0,4). So x is continuous on [0,4].
Why it happensContinuity at a point is learned with the two-sided limit, and that version is then applied at endpoints unchanged.
How to checkAsk whether the interval, or the domain, contains points on both sides of the point. If it contains points on one side only, the one-sided limit from that side is the one to compute.
3Reading the value off the simplified formula
A formula that gives 0/0 at a point is simplified, and the simplified formula is then used to supply the missing value, as if the two formulas were the same function.
Wrong turn
Error here
f(x)=x−1x2−1=x−1(x−1)(x+1)=x+1, so f(1)=2=limx→1f(x), and f is continuous at 1.
Right path
The cancellation holds only for x=1. At x=1 the original formula gives 1−11−1=00, so f(1) is undefined and condition 1 fails. The limit is 2, so the discontinuity is removable. The function x+1 is the repaired function, a different function from f.
Why it happensIn algebra, simplifying an expression is treated as producing an equal expression, and the restriction x=1 disappears from view once the factor has been cancelled.
How to checkSubstitute the point into the original formula, never into the simplified one. If the original gives 0/0, the function has no value there.
4Calling every zero of the denominator an asymptote
For a rational function, every zero of the denominator is taken to be a vertical asymptote, and so an infinite discontinuity.
Wrong turn
Error here
The denominator of x−1x2−1 is 0 at x=1, so the graph has a vertical asymptote at x=1 and the discontinuity is infinite.
Right path
The numerator is also 0 at x=1, and the two share the factor x−1. For x=1 the function equals x+1, which tends to 2 as x→1. The limit exists, so the discontinuity is removable: a hole at (1,2). Compare x1 at 0: nothing cancels, the numerator stays 1, and the one-sided limits are −∞ and +∞.
Why it happensDivision by zero is associated with blowing up, and for the first examples met, such as x1, it does.
How to checkSubstitute the point into the numerator as well. A nonzero number over 0 gives an infinite discontinuity. If both are 0, cancel the common factor and look again. Values near the point show it too: x−1x2−1 gives 2.01 at x=1.01 and 1.99 at x=0.99, with no sign of blowing up.
5Reading the theorem backwards
When the value k does not lie between f(a) and f(b), for instance when f(a) and f(b) have the same sign and k=0, the theorem is taken to say that f never reaches k on [a,b].
Start
f(x)=x2 on [−1,1] has f(−1)=1 and f(1)=1.
Wrong turn
Error here
There is no sign change, so x2=0 has no solution in (−1,1).
Right path
The theorem only goes one way. If f is continuous and k lies between f(a) and f(b), then f(c)=k for some c; if k does not lie between them, the theorem says nothing. Here f(0)=0, so the equation has the solution x=0.
Why it happensThe theorem is used as a test for roots, and a test is expected to answer both yes and no.
How to checkRead a missing sign change as "no conclusion", not as "no root". Evaluating at an interior point settles it here: f(0)=0.
6Skipping the continuity check
A sign change of f at the two endpoints is taken as enough to guarantee a root, without checking that f is continuous on the whole interval.
Wrong turn
Error here
f(x)=x1 has f(−1)=−1<0 and f(1)=1>0, so by the theorem c1=0 for some c in (−1,1).
Right path
x1 is undefined at 0, which lies in [−1,1], so f is not continuous on [−1,1] and the theorem does not apply. In fact c1 is never 0: the sign changes across the vertical asymptote at x=0, not through a root.
Why it happensIn most exercises the function is a polynomial, continuity holds automatically, and checking it becomes a step that is easy to skip.
How to checkList the points of [a,b] where f is undefined or changes formula, such as zeros of a denominator or the break points of a piecewise definition. If there are any, continuity on [a,b] has to be settled before the theorem is used.
Each slip checks continuity, or uses the intermediate value theorem, with a condition missing. Continuity needs the limit to equal f(a), not just both to exist; at an endpoint only a one-sided limit is asked for; the value comes from the original formula, not the simplified one; a zero of the denominator is an asymptote only when the numerator is not 0 there; a missing sign change proves nothing about roots; and the theorem needs a function continuous on the whole interval. Writing out limx→af(x)=f(a) with numbers, or listing the points where f is undefined, catches each slip.
Skills You Should Learn
Each skill opens its step-by-step method page. Skills marked "On this page" are taught above.
It says f belongs to C[a,b], the set of all functions continuous on the closed interval [a,b]. The brackets are the interval’s own, not arguments to C. Writing it this way shrinks a theorem hypothesis from a sentence to one symbol. The same class is also written C0 — the bottom rung of the ladder C1,C2,…,C∞, which counts continuous derivatives.Read more →
How does the epsilon-delta definition of continuity differ from the one for limits?
+
By a single missing condition. A limit requires 0 < |x − a| < δ, deliberately puncturing the point so that x never equals a. Continuity drops the 0 <, writing |x − a| < δ implies |f(x) − f(a)| < ε, which lets x = a into the argument. That inclusion is exactly what forces the value at a to agree with the surrounding behavior.Read more →
Can you prove a function is continuous by substitution?
+
No — that reasoning runs in a circle. Evaluating a limit by substituting the point is something continuity licenses, not something that establishes it; substitution works precisely because the function is already known to be continuous there. To prove continuity, check the three conditions directly or cite a theorem, such as the continuity of polynomials or of sums and products of continuous functions.Read more →
Are there always two opposite points on the equator with the same temperature?
+
Yes, at any moment, by the Intermediate Value Theorem. Let g be the temperature at a point minus the temperature at the point opposite it. Going halfway round the equator swaps the two points, so g turns into −g. A continuous function that is positive at one place and negative at another must be 0 somewhere in between, and there the two opposite temperatures are equal.Read more →
What kinds of discontinuity can an increasing function have?
+
Only jumps. A function that never decreases has both one-sided limits at every point, so it cannot have an oscillating, infinite or removable discontinuity. It can jump at every fraction, but never at uncountably many points: each jump skips an interval of heights, the skipped intervals never overlap, and each one contains a fraction of its own. The floor function, which steps up at every integer, is the familiar example.Read more →