Continuity on an Interval: Endpoint Rules and Examples

#Calculus
TL;DR
Continuity on an interval means the function has no break at any point of that interval. Below: endpoint rules for open, closed and half-open intervals, six examples, and why IVT and EVT depend on it.
BT
Bhanzu TeamLast updated on October 9, 202617 min read

What Is Continuity On An Interval?

Continuity on an interval means a function is continuous at every point of that interval, with the endpoints judged only from the inside. On an open interval (a,b)(a, b) that is the whole story. On a closed interval [a,b][a, b] there are two extra checks: the function must approach f(a)f(a) from the right and approach f(b)f(b) from the left.

That answers one of the most-asked versions of the question, "What does it mean for a function to be continuous on an interval?" Continuity at a single point is the building block, covered in full on continuity of a function. Recall it briefly: ff is continuous at cc when f(c)f(c) is defined, the limit of a function at cc exists, and the two agree.

lim⁡x→cf(x)=f(c)\lim_{x \to c} f(x) = f(c)

Continuity on an interval stretches that idea across every point of a set. Formally, ff is continuous on the closed interval [a,b][a, b] when all three conditions hold:

(1)lim⁡x→cf(x)=f(c)for every c with a<c<b\text{(1)}\quad \lim_{x \to c} f(x) = f(c) \quad \text{for every } c \text{ with } a < c < b

(2)lim⁡x→a+f(x)=f(a)(right-continuous at a)\text{(2)}\quad \lim_{x \to a^{+}} f(x) = f(a) \quad \text{(right-continuous at } a\text{)}

(3)lim⁡x→b−f(x)=f(b)(left-continuous at b)\text{(3)}\quad \lim_{x \to b^{-}} f(x) = f(b) \quad \text{(left-continuous at } b\text{)}

Here aa and bb are the endpoints, the points strictly between them are the interior points, x→a+x \to a^{+} means xx approaches aa from values larger than aa, and x→b−x \to b^{-} means xx approaches bb from values smaller than bb. OpenStax states the same definition in Calculus Volume 1, Section 2.4. If the bracket notation itself is new, interval notation explains which brackets include an endpoint and which exclude it.

How Do Open, Closed And Half-Open Intervals Change The Check?

The interval type decides what you check at each end, and nothing else changes. Interior points always need the ordinary two-sided test. An endpoint only needs attention when the interval actually contains it.

Interval

Interior points (a,b)(a, b)

At aa

At bb

(a,b)(a, b) open

two-sided limit equals value

nothing to check

nothing to check

[a,b][a, b] closed

two-sided limit equals value

right-continuous

left-continuous

[a,b)[a, b) half-open

two-sided limit equals value

right-continuous

nothing to check

(a,b](a, b] half-open

two-sided limit equals value

nothing to check

left-continuous

[a,∞)[a, \infty)

two-sided limit equals value

right-continuous

no endpoint

A Quora reader asked why a function defined on something like [1,∞)[1, \infty) is sometimes described as continuous only on (1,∞)(1, \infty). Usually the book is being cautious, or it is using the stricter point-only definition, which needs a two-sided limit that an endpoint cannot have. Under the interval definition above, a function that is right-continuous at 1 and continuous everywhere after it is continuous on [1,∞)[1, \infty). The two statements do not conflict: being continuous on [1,∞)[1, \infty) automatically makes the function continuous on the smaller set (1,∞)(1, \infty) too.

Why Does A Closed Endpoint Need Only A One-Sided Limit?

A closed endpoint needs only a one-sided limit because the interval contains nothing on the other side. At the left endpoint aa, every point of [a,b][a, b] sits to the right of aa, so the only meaningful approach is x→a+x \to a^{+}. Asking for a left-hand limit there would drag in values of xx that the question never asked about, and often values where the function is not even defined.

The classic case is f(x)=xf(x) = \sqrt{x} at x=0x = 0. To the left of 0 the real square root does not exist, so a two-sided limit at 0 is impossible. Even so, x\sqrt{x} is continuous on [0,4][0, 4], because lim⁡x→0+x=0=0\lim_{x \to 0^{+}} \sqrt{x} = 0 = \sqrt{0}.

Textbooks disagree in their wording here, which is part of why this trips people up: some say x\sqrt{x} is "continuous at 0 from the right", others say "continuous on its domain", and both mean the same thing. On a closed, bounded interval, continuity also upgrades to uniform continuity, a stronger property that real analysis courses build on.

How Do You Check Whether A Function Is Continuous On An Interval?

To check continuity on an interval, test the interior first, then each included endpoint from the inside. A Quora thread asks this almost word for word: "How to know if a function is continuous on a closed interval". These four steps answer it:

  1. Find the domain. List every xx where the formula fails: a zero denominator, a negative number under an even root, a non-positive log argument. If any of these points lies in the interval, continuity on that interval already fails.

  2. Check the interior. For standard formulas, continuity on the domain is automatic (see the next section). For a piecewise formula, test each break point inside the interval with left and right limits.

  3. Check the left endpoint (if included). Confirm lim⁡x→a+f(x)=f(a)\lim_{x \to a^{+}} f(x) = f(a).

  4. Check the right endpoint (if included). Confirm lim⁡x→b−f(x)=f(b)\lim_{x \to b^{-}} f(x) = f(b).

If all four pass, the function is continuous on the interval. If one fails, name the point and the reason, because the types of discontinuity (removable, jump, infinite) behave very differently afterward.

Which Functions Are Continuous On Every Interval Inside Their Domain?

Most functions met in school are continuous at every point of their domain, so the real work is finding the domain. A function is continuous on any interval that sits completely inside its domain, with closed endpoints allowed wherever the function is defined and approaches its value from the inside.

Function family

Continuous on

Typical break points

Polynomials, such as x3−2x+1x^3 - 2x + 1

every interval of real numbers

none

Rational, p(x)q(x)\frac{p(x)}{q(x)}

every interval avoiding zeros of qq

zeros of the denominator

Even roots, such as g(x)\sqrt{g(x)}

where g(x)≥0g(x) \geq 0

outside that set

Logarithms, such as ln⁡g(x)\ln g(x)

where g(x)>0g(x) > 0

where g(x)≤0g(x) \leq 0

sin⁡x\sin x, cos⁡x\cos x, exe^{x}, ∣x∣\lvert x \rvert

every interval

none

tan⁡x\tan x

intervals avoiding odd multiples of π2\frac{\pi}{2}

x=π2+nπx = \frac{\pi}{2} + n\pi

Rational functions are the family that catches most people, because the formula looks harmless until the denominator hits zero. A careful look at domain and range of a function settles most continuity questions before any limit is taken.

Combinations keep continuity. If ff and gg are continuous on an interval, then so are:

  • Sums and differences: f+gf + g and f−gf - g

  • Products: f⋅gf \cdot g

  • Quotients: fg\frac{f}{g}, wherever g(x)≠0g(x) \neq 0

  • Compositions: f(g(x))f(g(x)), provided ff is continuous at the values gg produces

How Do You Find Intervals Of Continuity From A Graph?

On a graph, the intervals of continuity are the stretches you can trace without lifting your pencil, with the dots at each end deciding whether the endpoint is included. "What are the regions of continuity for the following function?" is one of the most common homework Q&A titles on the topic, and it is nearly always a graph-reading question.

Read the graph left to right and stop at every break:

  • A hole (hollow dot with no filled dot above or below it) splits the graph and is not included.

  • A jump splits the graph. The side with the filled dot gets the endpoint. For example, if a jump discontinuity at x=2x = 2 has its filled dot on the left piece, write [0,2][0, 2] and (2,5](2, 5].

  • A vertical asymptote splits the graph, and neither side includes it.

The pencil test is a good first read. Actually, "test" oversells it: a graph cannot prove continuity at a single point. Use the graph to locate the suspicious points, then confirm each one with limits.

Examples Of Continuity On An Interval

Example 1

Is f(x)=9−x2f(x) = \sqrt{9 - x^2} continuous on [−3,3][-3, 3]?

The domain is 9−x2≥09 - x^2 \geq 0, which is exactly −3≤x≤3-3 \leq x \leq 3.

Interior: a root of a polynomial is continuous wherever the radicand is positive, so every cc in (−3,3)(-3, 3) passes.

Left endpoint:

lim⁡x→−3+9−x2=0=f(−3)\lim_{x \to -3^{+}} \sqrt{9 - x^2} = 0 = f(-3)

Right endpoint:

lim⁡x→3−9−x2=0=f(3)\lim_{x \to 3^{-}} \sqrt{9 - x^2} = 0 = f(3)

Final answer: Yes. ff is continuous on [−3,3][-3, 3] (its graph is the upper half of a circle of radius 3).

Example 2

Is f(x)=xf(x) = \sqrt{x} continuous on [0,4][0, 4]?

The tempting route is to test x=0x = 0 the way you would test any point, with a two-sided limit.

lim⁡x→0−xdoes not exist (no real square roots of negatives)\lim_{x \to 0^{-}} \sqrt{x} \quad \text{does not exist (no real square roots of negatives)}

So the two-sided limit at 0 does not exist, and the conclusion seems to be "not continuous at 0, so not continuous on [0,4][0, 4]." That cannot be right: the graph of x\sqrt{x} starts at the origin and rises without a single gap. The error is the left-hand limit, which asks about x<0x < 0, a region outside the interval.

The correct check uses only the inside of the interval:

lim⁡x→0+x=0=f(0)\lim_{x \to 0^{+}} \sqrt{x} = 0 = f(0)

lim⁡x→4−x=2=f(4)\lim_{x \to 4^{-}} \sqrt{x} = 2 = f(4)

Every interior point passes because x\sqrt{x} is continuous for x>0x > 0.

Final answer: Yes. x\sqrt{x} is continuous on [0,4][0, 4].

Example 3

On which of [0,2)[0, 2) and [0,3][0, 3] is g(x)=1x−2g(x) = \frac{1}{x - 2} continuous?

The denominator is zero at x=2x = 2.

On [0,2)[0, 2), the point 2 is excluded. At the left endpoint:

lim⁡x→0+1x−2=−12=g(0)\lim_{x \to 0^{+}} \frac{1}{x - 2} = -\frac{1}{2} = g(0)

So gg is continuous on [0,2)[0, 2). The fact that g(x)→−∞g(x) \to -\infty as x→2−x \to 2^{-} does not matter, because 2 is not in the interval.

On [0,3][0, 3], the point x=2x = 2 is inside and g(2)g(2) is undefined.

Final answer: Continuous on [0,2)[0, 2), not continuous on [0,3][0, 3].

The first instinct on this problem is to check only the two endpoints, 0 and 3, find both values defined, and declare the function continuous. The break sits in the middle, which is why step 1 of the checklist is always the domain.

Example 4

Is h(x)=ln⁡(x−1)h(x) = \ln(x - 1) continuous on (1,5](1, 5]? On [1,5][1, 5]?

The log needs x−1>0x - 1 > 0, so the domain is x>1x > 1.

On (1,5](1, 5]: the left end is excluded, and at the right end

lim⁡x→5−ln⁡(x−1)=ln⁡4≈1.3863=h(5)\lim_{x \to 5^{-}} \ln(x - 1) = \ln 4 \approx 1.3863 = h(5)

On [1,5][1, 5]: h(1)=ln⁡0h(1) = \ln 0 is undefined, and

lim⁡x→1+ln⁡(x−1)=−∞\lim_{x \to 1^{+}} \ln(x - 1) = -\infty

Final answer: Continuous on (1,5](1, 5], not continuous on [1,5][1, 5].

Example 5

Find kk so that ff is continuous on [0,4][0, 4], where f(x)=x2+kf(x) = x^2 + k for 0≤x<20 \leq x < 2 and f(x)=3x−1f(x) = 3x - 1 for 2≤x≤42 \leq x \leq 4.

Each piece is a polynomial, so the only interior point in doubt is the break at x=2x = 2. The endpoints 0 and 4 each sit inside a single polynomial piece, so they pass automatically.

Left-hand limit at 2:

lim⁡x→2−(x2+k)=4+k\lim_{x \to 2^{-}} (x^2 + k) = 4 + k

Value (and right-hand limit) at 2:

f(2)=3(2)−1=5f(2) = 3(2) - 1 = 5

Set them equal:

4+k=54 + k = 5

k=1k = 1

Final answer: k=1k = 1. (For more problems that match pieces at a break point, see piecewise functions.)

Example 6

Can the Intermediate Value Theorem show that f(x)=x+1(x−3)(x+2)f(x) = \frac{x + 1}{(x - 3)(x + 2)} has a zero on [−3,4][-3, 4]? On [−32,2]\left[-\frac{3}{2}, 2\right]?

On [−3,4][-3, 4] the values at the ends are

f(−3)=−2(−6)(−1)=−13f(-3) = \frac{-2}{(-6)(-1)} = -\frac{1}{3}

f(4)=5(1)(6)=56f(4) = \frac{5}{(1)(6)} = \frac{5}{6}

The signs differ, but x=−2x = -2 and x=3x = 3 both lie inside [−3,4][-3, 4], where ff is undefined. The theorem's hypothesis fails, so it says nothing on this interval.

On [−32,2]\left[-\frac{3}{2}, 2\right], neither −2-2 nor 33 is inside, so ff is continuous there. The end values are

f(−32)=−12(−92)(12)=29f\left(-\tfrac{3}{2}\right) = \frac{-\frac{1}{2}}{\left(-\frac{9}{2}\right)\left(\frac{1}{2}\right)} = \frac{2}{9}

f(2)=3(−1)(4)=−34f(2) = \frac{3}{(-1)(4)} = -\frac{3}{4}

The signs differ and ff is continuous on the interval, so a zero exists between −32-\frac{3}{2} and 2. Solving x+1=0x + 1 = 0 confirms it is x=−1x = -1.

Final answer: Not on [−3,4][-3, 4] (hypothesis fails). Yes on [−32,2]\left[-\frac{3}{2}, 2\right], where the zero is x=−1x = -1.

Why Does Continuity On An Interval Matter?

Continuity on an interval matters because three of the most useful theorems in calculus guarantee their results only on a closed interval with no breaks. Each one says "something must happen somewhere in here", and each one fails the moment a single point breaks. This is the honest answer to the Quora question "Is it important to understand continuity of intervals in calculus?"

  • The Intermediate Value Theorem. If ff is continuous on [a,b][a, b], it takes every value between f(a)f(a) and f(b)f(b). This is how you prove that x3+x−1=0x^3 + x - 1 = 0 has a solution between 0 and 1: f(0)=−1f(0) = -1, f(1)=1f(1) = 1, and the root sits near x≈0.6823x \approx 0.6823.

  • The Extreme Value Theorem. If ff is continuous on [a,b][a, b], it reaches an absolute maximum and an absolute minimum there. Drop the closed interval and the promise disappears: 1x\frac{1}{x} on (0,1](0, 1] grows without bound, and f(x)=xf(x) = x on (0,1)(0, 1) has neither a largest nor a smallest value (see the extreme value theorem entry for the same pair). On [12,1]\left[\frac{1}{2}, 1\right], the same 1x\frac{1}{x} has maximum 2 and minimum 1.

  • The Mean Value Theorem. It needs continuity on [a,b][a, b] and differentiability on (a,b)(a, b).

That last pairing answers another Quora favourite: "Why do we talk about continuity of a real valued function in a closed interval and differentiability of the same function in an open interval?" Continuity at an endpoint needs only a one-sided limit, which is cheap. The theorem needs the endpoint values f(a)f(a) and f(b)f(b) to be tied to the curve, so it asks for continuity there, but it never needs a slope at the endpoints, so it asks for differentiability only inside.

The idea has a real origin story. In 1817 the Prague mathematician Bernard Bolzano published a "purely analytic proof" of the intermediate value property. Before that, the fact that a continuous curve crossing an axis must hit it was treated as geometrically obvious. Bolzano's insistence on a proof is a large part of why continuity is now defined with limits instead of with pictures.

Where Is Continuity On An Interval Used In Real Life?

Continuity on an interval is the hidden assumption behind any method that searches for a value between two known values. A few places it does real work:

  • Root-finding software. The bisection method keeps halving an interval where the function changes sign, which is only safe when the function is continuous on that interval.

  • Measured quantities. Temperature, altitude and position change without teleporting, so if a reading goes from 18 degrees to 26 degrees between morning and afternoon, it passed through 22 degrees at some moment.

  • Optimisation on a fixed range. When a cost or profit model is continuous on a closed production range, the Extreme Value Theorem guarantees a best and a worst output level exist before you start hunting for them with derivatives.

Where Do Students Trip Up On Continuity On An Interval?

Most lost marks on this topic come from the endpoints, not the interior. The three mistakes below are the ones that show up again and again.

Mistake 1: Demanding A Two-Sided Limit At A Closed Endpoint

Where it slips in:

Checking x\sqrt{x} on [0,4][0, 4], or any function whose domain starts exactly at the interval's left end.

Don't do this:

Do not test lim⁡x→0x\lim_{x \to 0} \sqrt{x} as a two-sided limit and conclude "discontinuous at 0".

The correct way:

At a left endpoint use only x→a+x \to a^{+}; at a right endpoint use only x→b−x \to b^{-}.

The rusher makes this mistake most often: they apply the three-part point test on autopilot and never ask which side of the endpoint the interval actually lives on.

Mistake 2: Swapping Which One-Sided Limit Goes With Which Endpoint

Where it slips in:

Writing the closed-interval definition from memory under time pressure.

Don't do this:

Do not write "left-continuous at aa, right-continuous at bb". The left endpoint is approached from the right, and the right endpoint from the left.

The correct way:

Picture standing inside the interval and walking toward each end. At aa you arrive from the right (x→a+x \to a^{+}), and at bb you arrive from the left (x→b−x \to b^{-}).

The memorizer is most exposed here. They can recite "left and right" but cannot rebuild which goes where, so the fix is the walking picture, not a better mnemonic. Students who sketch a two-arrow number line before writing any limit almost never swap them.

Mistake 3: Checking Only The End Values Before Using A Theorem

Where it slips in:

Intermediate Value Theorem problems, where f(a)f(a) and f(b)f(b) have opposite signs and the conclusion feels automatic.

Don't do this:

Do not claim a root of tan⁡x\tan x in [1,2][1, 2] just because tan⁡1>0\tan 1 > 0 and tan⁡2<0\tan 2 < 0.

The correct way:

Confirm continuity on the whole interval first. Here tan⁡x\tan x breaks at x=π2≈1.5708x = \frac{\pi}{2} \approx 1.5708, so the theorem does not apply, and in fact there is no root.

Here is what this mistake looks like outside a classroom. The bisection method requires a continuous function with opposite signs at the two ends. Feed it tan⁡x\tan x on [1,2][1, 2] anyway, and after 40 halvings it settles on x≈1.5707963x \approx 1.5707963, which is π2\frac{\pi}{2}, the asymptote and not a root.

At that point tan⁡x\tan x is about −6×1012-6 \times 10^{12}, nowhere near zero. A program that skips the continuity check can report that point as a "root" with full confidence.

Practice Problems On Continuity On An Interval

  1. Is f(x)=x−3f(x) = \sqrt{x - 3} continuous on [3,7][3, 7]?

  2. Is g(x)=1x2−1g(x) = \frac{1}{x^2 - 1} continuous on [0,1][0, 1]? On [0,1)[0, 1)?

  3. Find kk so that h(x)=kx+1h(x) = kx + 1 for x<1x < 1 and h(x)=x2+2h(x) = x^2 + 2 for x≥1x \geq 1 is continuous on [−2,3][-2, 3].

  4. Use continuity on an interval to show that x3−3x+1=0x^3 - 3x + 1 = 0 has a root in (0,1)(0, 1).

  5. On which interval is f(x)=ln⁡(4−x2)f(x) = \ln(4 - x^2) continuous? Is it continuous on [−2,2][-2, 2]?

Answer to Problem 1: Yes. lim⁡x→3+x−3=0=f(3)\lim_{x \to 3^{+}} \sqrt{x - 3} = 0 = f(3), the interior is fine, and f(7)=2f(7) = 2 matches the left-hand limit.

Answer to Problem 2: Not on [0,1][0, 1], because g(1)g(1) is undefined and g(x)→−∞g(x) \to -\infty as x→1−x \to 1^{-}. Yes on [0,1)[0, 1), with g(0)=−1g(0) = -1.

Answer to Problem 3: k=2k = 2, since k+1=12+2=3k + 1 = 1^2 + 2 = 3.

Answer to Problem 4: The polynomial is continuous on [0,1][0, 1], f(0)=1f(0) = 1 and f(1)=−1f(1) = -1, so a root exists (it is near x≈0.3473x \approx 0.3473).

Answer to Problem 5: The domain is −2<x<2-2 < x < 2, so ff is continuous on (−2,2)(-2, 2) but not on [−2,2][-2, 2], because ln⁡0\ln 0 is undefined.

Wrapping Up

  • Continuity on an interval means continuity at every interior point plus one-sided continuity at each endpoint the interval includes.

  • At a left endpoint the check is x→a+x \to a^{+}, and at a right endpoint it is x→b−x \to b^{-}, because the interval has nothing on the far side.

  • The domain decides most cases: polynomials, roots, logs, trig and rational functions are continuous on any interval inside their domains.

  • The Intermediate Value Theorem and Extreme Value Theorem need continuity on a closed interval, and a single break makes their guarantee disappear.

  • The most costly mistake is checking only the end values, as the tan⁡x\tan x example on [1,2][1, 2] shows.

Your Next Move

Work through practice problems 1 to 5 in order; if Problem 2 or Problem 5 trips you up, return to the section on open, closed and half-open intervals and the endpoint table.

Want a live Bhanzu trainer to walk through more continuity problems with you? Book a free demo class

Read More

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

Can a function be continuous on a closed interval?
Yes. Most continuous functions you meet are continuous on many closed intervals. The function needs to be continuous at every interior point, right-continuous at the left endpoint and left-continuous at the right endpoint.
Is it important to understand continuity on an interval in calculus?
Very. It is the hypothesis behind the Intermediate Value Theorem, the Extreme Value Theorem, Rolle's Theorem and the Mean Value Theorem, and those four results power root-finding, optimisation and much of integration theory.
Is the interval [0, 1] itself continuous, or does continuity on an interval describe the function?
Continuity on an interval describes a function, not the set. The phrase "f is continuous on [0,1][0, 1]" means the function behaves well at every point of that set. (The interval does have its own properties, such as being connected, and that is exactly why continuous functions on it obey the Intermediate Value Theorem.)
Why is it that, at the endpoints of intervals, we can tell the continuity of a function but nothing about its differentiability?
Continuity at an endpoint only needs the one-sided limit of ff to match f(a)f(a). A derivative at a point needs the difference quotient to settle from both sides, and an endpoint offers only one side. Some books define one-sided derivatives at endpoints, but the standard theorems do not need them.
What does it mean for a function to be continuous?
At a point, it means the function's value matches the limit there. On an interval, it means that holds at every interior point and, for included endpoints, from the inside. We covered both above; the fully rigorous version swaps limits for an epsilon-delta argument.
How can one determine intervals on which a function is continuous?
Start from the domain, remove every point where the formula breaks, and split the real line at those points. Then test any piecewise break points with one-sided limits, and include an endpoint only when the function is defined there and matches its inside limit.
✍️ Written By
BT
Bhanzu Team
Content Creator and Editor
Bhanzu’s editorial team, known as Team Bhanzu, is made up of experienced educators, curriculum experts, content strategists, and fact-checkers dedicated to making math simple and engaging for learners worldwide. Every article and resource is carefully researched, thoughtfully structured, and rigorously reviewed to ensure accuracy, clarity, and real-world relevance. We understand that building strong math foundations can raise questions for students and parents alike. That’s why Team Bhanzu focuses on delivering practical insights, concept-driven explanations, and trustworthy guidance-empowering learners to develop confidence, speed, and a lifelong love for mathematics.
Related Articles
Book a FREE Demo ClassBook Now →