A function is continuous at a point when its graph passes through that point with no hole, jump, or break: formally, limx→x0f(x)=f(x0). Continuity turns out to guarantee two of the most useful facts in analysis — the Intermediate Value Theorem (a continuous function hits every value between f(a) and f(b), the basis of the bisection root-finding algorithm) and the Extreme Value Theorem (a continuous function on a closed interval always attains a maximum and a minimum).
IntuitionDrawing a curve without lifting the pen
Take a pencil and draw the graph of y=f(x) from left to right. If you never have to lift the pencil off the paper — no holes, no sudden jumps, no vertical asymptotes shooting off to infinity — the function is continuous on that stretch. The moment you must lift the pencil, the function has a discontinuity at that point. This picture is informal, but it points straight at the precise definition below: a function is continuous at x0 exactly when its value f(x0) and its limiting behavior as x→x0 agree.
A smooth cubic curve rising, dipping, and rising again with no holes or breaks, crossing the x-axis once near x=0.35 and once near x=1.53.
f(x)=x3−3x+1. This curve never lifts the pen: it is continuous everywhere. Because f(0)=1>0 and f(1)=−1<0, the curve must cross the x-axis somewhere between x=0 and x=1 — this is exactly the Intermediate Value Theorem in action, and it is the same cubic used throughout this page.
SchoolContinuity at a point
Definition: Continuity at a point
Let f be defined on an open interval containing x0. We say f is **continuous at x0** when three conditions all hold: (1) f(x0) is defined; (2) the limit limx→x0f(x) exists; (3) that limit equals f(x0). Combined, these three conditions are written as a single equation, limx→x0f(x)=f(x0). A function is continuous on an open interval(a;b) if it is continuous at every point of that interval, and continuous on a closed interval[a;b] if in addition the one-sided limits at the endpoints match the function's values there.
x→x0limf(x)=f(x0)
Every polynomial, and every function built from polynomials, sin, cos, exponentials and roots by addition, multiplication, division (away from zeros of the denominator) and composition, is continuous at every point of its domain — this is why continuity is "automatic" for almost every formula you write down in school mathematics. Discontinuities only appear at isolated exceptional points: division by zero, a piecewise definition that does not match up, or a genuinely pathological construction.
x→x0−limf(x)=x→x0+limf(x)
Three ways continuity can fail at x0
Type
Condition
Example at x0
Removable
limx→x0f(x) exists but limx→x0f(x)=f(x0), or f(x0) is undefined.
f(x)=x−1x2−1 at x0=1: the limit is 2 but f(1) is undefined.
Jump
Both one-sided limits are finite but limx→x0−f(x)=limx→x0+f(x).
f(x)=⌊x⌋ at x0=1: left limit 0, right limit 1.
Infinite
At least one one-sided limit is ±∞, so limx→x0f(x)=±∞ (no finite limit exists).
f(x)=x1 at x0=0: both one-sided limits are infinite.
UndergraduateTwo pillars of continuous functions on an interval
If f is continuous on [a,b] and k lies between f(a) and f(b), then ∃c∈(a,b) with f(c)=k. In particular, if f(a) and f(b) have opposite signs, then f(a)⋅f(b)<0⇒∃c∈(a,b):f(c)=0.
Why is it true?
Think of f as recording your altitude while hiking continuously from town a (altitude f(a)) to town b (altitude f(b)) along a trail with no teleporting. You cannot skip over any altitude strictly between the two towns' altitudes — at some instant you must have been at every intermediate height. A discontinuous function can skip values (think of a jump discontinuity), which is exactly why continuity is the essential hypothesis.
Proof
Assume without loss of generality the general case f(a)<k<f(b) (the case f(a)>k>f(b) is symmetric), and set g(x)=f(x)−k, so g is continuous, g(a)<0<g(b), and we must find c with g(c)=0. Set a0=a, b0=b.
Repeat the following bisection step for n=0,1,2,…: compute the midpoint m=2a+b of [an,bn]. If g(m)=0, stop — c=m is found. Otherwise g(m) has a definite sign; keep whichever half of [an,bn] has endpoints of opposite sign, i.e. set [an+1,bn+1]=[an,m] if g(an)g(m)<0, or [an+1,bn+1]=[m,bn] if g(m)g(bn)<0. In every case g(an+1) and g(bn+1) keep opposite signs, i.e. f(an)⋅f(bn)≤0 (with an,bn now roles of g), and the interval length halves: bn−an=2nb−a.
The sequence (an) is increasing and bounded above by b, and (bn) is decreasing and bounded below by a, so both converge; since bn−an→0, they converge to the same limit, an→c,bn→c, with c∈[a,b].
By continuity of g, g(an)→g(c) and g(bn)→g(c). Because g(an) and g(bn) have opposite signs at every stage (or one is already 0), g(an)g(bn)≤0 for all n; passing to the limit gives g(c)2≤0, i.e. f(c)2≤0⇒f(c)=0 (applied to g). Hence f(c)=g(c)+k=k, and c∈(a,b) since an<c<bn strictly as soon as bisection has run at least one step without landing on an endpoint (and if it lands on m at some step, that m is the sought c).
If f is continuous on the closed, bounded interval [a,b], then ∃c,d∈[a,b]:f(c)≤f(x)≤f(d)∀x∈[a,b]: that is, f attains a maximum value f(d) and a minimum value f(c) somewhere on [a,b].
Why is it true?
A continuous function on a closed interval cannot "run away" to infinity (the interval is bounded and closed, so there is nowhere to escape to), and it cannot approach a highest value without ever quite reaching it either — an open interval like (0,1) lets f(x)=x get arbitrarily close to 1 without ever attaining it, but including the endpoint x=1 in [0,1] closes that loophole. Both the boundedness of the interval and its closedness (including endpoints) are essential.
Proof
**Step 1 — f is bounded above on [a,b].** Suppose not: for every n∈N there is xn∈[a,b] with f(xn)>n. The sequence (xn) lies in the bounded interval [a,b], so by the Bolzano–Weierstrass theorem it has a subsequence xnk→c∈[a,b]. Continuity of f gives f(xnk)→f(c), a single finite number, contradicting f(xnk)>nk→∞. Hence f is bounded above; the symmetric argument (applied to −f) shows f is bounded below.
Step 2 — the supremum is attained. By Step 1, M=sup[a,b]f is a finite number. By definition of supremum, for every n there is yn∈[a,b] with M−n1<f(yn)≤M. Again by Bolzano–Weierstrass, (yn) has a subsequence ynk→d∈[a,b]. Squeezing M−nk1<f(ynk)≤M as k→∞ gives f(ynk)→M; but continuity also gives f(ynk)→f(d), so f(d)=M. Thus the maximum value M is attained at x=d.
Step 3 — the minimum is attained. Apply Steps 1–2 to −f (also continuous on [a,b]): −f attains a maximum at some c∈[a,b], which means f attains its minimum at that same c. This gives both c and d as required.
UndergraduateReal-World Applications and Worked Examples
The Intermediate Value Theorem is not just an existence statement — it is the mathematical backbone of the bisection method, one of the oldest and most reliable numerical root-finding algorithms in engineering and computer science: given f(a) and f(b) of opposite sign, repeatedly halving the interval (exactly as in the proof above) traps a root to any desired precision, and every step is guaranteed to succeed because f never "jumps over" zero. The same theorem also justifies equilibrium arguments in physics: whenever a continuous quantity (temperature, pressure, concentration) is compared between two states or two locations, IVT guarantees an intermediate state or location where the two sides balance exactly.
Example: Locating a root with the bisection method
Show that f(x)=x3−3x+1 has a root in (0,1), then use the bisection method to locate it to two decimal places.
Solution
Since f is a polynomial it is continuous everywhere, and f(0)=1>0 while f(1)=−1<0, so f(0)f(1)<0; by IVT there is a root c∈(0,1).
Bisect: m=0.5, f(0.5)=0.125−1.5+1=−0.375<0. Since f(0)>0>f(0.5), the root lies in (0,0.5).
Bisect again: m=0.25, f(0.25)=0.015625−0.75+1=0.265625>0. Since f(0.25)>0>f(0.5), the root lies in (0.25,0.5).
Continuing — m=0.375 gives f(0.375)≈−0.072<0 (root in (0.25,0.375)), then m=0.3125 gives f(0.3125)≈0.093>0 (root in (0.3125,0.375)), then m=0.34375 gives f(0.34375)≈0.009>0 (root in (0.34375,0.375)) — the interval has shrunk to length under 0.031 and both endpoints round to 0.34–0.38; one more step confirms the root rounds to c≈0,35, matching the widget's marked crossing near x≈0.35.
Example: Two antipodal points at the same temperature
Around a circular running track of circumference 2π, the ground temperature T(θ) (as a function of the angle θ) varies continuously. Show that at some instant there are two diametrically opposite points on the track with exactly the same temperature.
Solution
Define g(x)=T(x)−T(x+π) for x∈[0,π], comparing the temperature at angle x with the temperature at the diametrically opposite angle x+π. Since T is continuous, g is continuous on [0,π].
Evaluate at the endpoints: g(0)=T(0)−T(π), and g(π)=T(π)−T(2π)=T(π)−T(0)=−g(0) — that is, g(π)=−g(0).
If g(0)=0, then T(0)=T(π) already, and x=0,π are the two antipodal points sought. Otherwise g(0) and g(π)=−g(0) have strictly opposite signs, so g(0)g(π)<0; by the Intermediate Value Theorem there is c∈(0,π) with g(c)=0, i.e. T(c)=T(c+π). In either case, the points at angles c and c+π have identical temperature — this is exactly the "thermal equilibrium" flavor of the theorem: continuity forces two opposing readings to cross.
ResearchContinuity at the research frontier
Let f(x)=x−3x2−9 for x=3 and f(3)=5. Is f continuous at x0=3?
f(x)=⌊x⌋ has, at every integer x0, a discontinuity of which type?
Does f(x)=x3−3x+1 have a root in the interval (1,2)?
Applying the bisection method to f(x)=x3−3x+1 starting from [0,1], what is the new bracketing interval after the first step?