Tutorials › Calculus I › Continuity at Endpoints of Domains

Continuity and the Intermediate Value Theorem · Tutorial 272 of 1495

Continuity at Endpoints of Domains

Use the one-sided limit from inside a domain to decide whether a function is continuous at an included endpoint.

Beginner 9 min read

What You'll Learn

  • State the continuity condition at a left or right endpoint of an interval domain.
  • Choose the one-sided limit that approaches an endpoint from within the domain.
  • Check that the endpoint belongs to the domain before testing continuity there.
  • Distinguish endpoint continuity from continuity at an interior point.
  • Diagnose endpoint discontinuity by comparing the one-sided limit with the function value.

Why Endpoints Need a Different Test

A function whose domain begins at \(x=0\) has no domain values to the left of \(0\). To test continuity there, it would make no sense to require the function to approach its value from both sides using points in the domain. The relevant question is whether values of the function approach \(f(0)\) as inputs approach \(0\) from within the domain.

This is why continuity at an endpoint uses a one-sided limit. At an interior point, by contrast, inputs in the domain are available on both sides, so continuity requires the two-sided limit to equal the function value.

Key idea: At an included endpoint of an interval domain, test the limit from the side that lies inside the domain. At an interior point, test the two-sided limit.

One-Sided Continuity at an Endpoint

Suppose a function \(f\) is defined on an interval that includes its left endpoint \(a\), such as \([a,b]\) or \([a,\infty)\). Continuity at \(a\) is determined by the right-hand limit. If \(b\) is an included right endpoint, continuity at \(b\) is determined by the left-hand limit.

Definition: If \(a\) is an included left endpoint of an interval domain, \(f\) is continuous at \(a\) if $$ \lim_{x\to a^+} f(x)=f(a). $$ If \(b\) is an included right endpoint, \(f\) is continuous at \(b\) if $$ \lim_{x\to b^-} f(x)=f(b). $$ The limit is taken using inputs in the domain.

The superscript \(+\) means that \(x\) approaches \(a\) with \(x>a\); the superscript \(-\) means that \(x\) approaches \(b\) with \(x<b\). The endpoint must itself belong to the domain, because continuity at a point requires the function to have a value there. If an interval is open at an endpoint, that endpoint is not a point of the function's domain, so continuity of the function at that point is not defined.

The condition has the same three ingredients that occur in the definition of continuity at a point: the function value exists, the appropriate limit exists, and the limit equals the value. At an endpoint, the appropriate limit is one-sided rather than two-sided.

Why the One-Sided Limit Is the Right Test

For a left endpoint \(a\), the definition of the right-hand limit says that \(f(x)\) approaches a number \(L\) as \(x\) approaches \(a\) from the right if, for every \(\varepsilon>0\), there is a \(\delta>0\) such that \(x\) in the domain and \(0<x-a<\delta\) imply \(|f(x)-L|<\varepsilon\). Continuity at \(a\) asks for that limiting number to be \(f(a)\).

Endpoint test in precise form: At an included left endpoint \(a\), continuity means that for every \(\varepsilon>0\), there is a \(\delta>0\) such that $$ x\in\operatorname{dom}(f),\quad 0\le x-a<\delta \quad\Longrightarrow\quad |f(x)-f(a)|<\varepsilon. $$ At an included right endpoint \(b\), replace \(0\le x-a<\delta\) by \(0\le b-x<\delta\).

Here \(\operatorname{dom}(f)\) denotes the domain of \(f\). Including equality in the distance condition allows \(x=a\) (or \(x=b\)); at that input, the difference from the endpoint value is exactly zero. The one-sided limit and the endpoint condition are equivalent: the limit guarantees closeness to \(f(a)\) (or \(f(b)\)) for all sufficiently nearby domain inputs on the permitted side, and the displayed condition states precisely that guarantee.

At an interior point \(c\), there are domain inputs both below and above \(c\). Continuity there requires $$ \lim_{x\to c} f(x)=f(c), $$ so the values must approach \(f(c)\) from both sides. A right-hand limit alone is not enough at an interior point.

Worked Endpoint Tests

Worked Example: Continuity of a Square Root at Its Left Endpoint

Let \(f(x)=\sqrt{x}\) with domain \([0,\infty)\). Determine whether \(f\) is continuous at \(0\).

The point \(0\) is in the domain and is its left endpoint. We therefore use the right-hand limit. Since \(\sqrt{x}\) approaches \(0\) as \(x\) approaches \(0\) from above,

$$ \lim_{x\to 0^+}\sqrt{x}=0. $$

The endpoint value is

$$ f(0)=\sqrt{0}=0. $$

For a direct check, let \(\varepsilon>0\) and choose \(\delta=\varepsilon^2\). If \(x\in[0,\infty)\) and \(0\le x<\delta\), then \(0\le\sqrt{x}<\varepsilon\), so \(|f(x)-f(0)|=|\sqrt{x}-0|<\varepsilon\). Thus the right-hand limit equals the endpoint value, and \(f\) is continuous at \(0\).

Check: Substituting the endpoint into the function gives \(f(0)=0\), exactly the value of the right-hand limit.

Worked Example: Continuity at a Right Endpoint

Let \(g(x)=x^2+1\) on the domain \([1,3]\). Test continuity at the right endpoint \(3\).

Since \(3\) is the right endpoint, inputs approach it from the left. The polynomial expression has limit

$$ \lim_{x\to 3^-}(x^2+1)=3^2+1=10. $$

The value at the endpoint is

$$ g(3)=3^2+1=10. $$

Therefore \(\lim_{x\to 3^-}g(x)=g(3)\), and \(g\) is continuous at \(3\) relative to its domain \([1,3]\). No right-hand limit is needed for this endpoint test, because inputs greater than \(3\) are not in the domain.

Check: The left-hand limit gives \(10\), and substituting \(3\) into the formula also gives \(10\).

Worked Example: An Endpoint Where Continuity Fails

Define \(h\) on \([0,\infty)\) by \(h(0)=0\) and \(h(x)=1\) for \(x>0\). Decide whether \(h\) is continuous at \(0\).

The domain begins at \(0\), so calculate the right-hand limit. For every \(x>0\), \(h(x)=1\), hence

$$ \lim_{x\to 0^+}h(x)=1. $$

But the value assigned at the endpoint is \(h(0)=0\). Therefore

$$ \lim_{x\to 0^+}h(x)=1\ne 0=h(0), $$

so \(h\) is not continuous at \(0\). The mismatch is between the values approached from inside the domain and the value at the endpoint.

Check: Every positive input, however close to \(0\), gives output \(1\), while the endpoint itself gives output \(0\); the limit and endpoint value are indeed unequal.

Endpoint Versus Interior: A Worked Comparison

Worked Example: A One-Sided Match Is Not Enough at an Interior Point

Define \(q\) on \([-1,1]\) by \(q(x)=1\) when \(x<0\), and \(q(x)=2\) when \(x\ge 0\). Compare the test at \(0\) with an endpoint test.

First, \(0\) is an interior point of \([-1,1]\). The left-hand limit is \(1\), because \(q(x)=1\) for \(x<0\). The right-hand limit is \(2\), because \(q(x)=2\) for \(x>0\). Thus

$$ \lim_{x\to 0^-}q(x)=1,\qquad \lim_{x\to 0^+}q(x)=2. $$

These one-sided limits are unequal, so the two-sided limit at \(0\) does not exist. Although \(q(0)=2\), \(q\) is not continuous at this interior point.

Now test the left endpoint \(-1\). The appropriate limit is from the right. For \(x\) just greater than \(-1\), \(q(x)=1\), so

$$ \lim_{x\to -1^+}q(x)=1=q(-1). $$

Thus \(q\) is continuous at \(-1\) relative to \([-1,1]\). The calculation at the endpoint uses the side inside the domain; the calculation at \(0\) needs both sides.

Check: At \(-1\), the right-hand limit equals the endpoint value \(1\). At \(0\), the left and right limits are \(1\) and \(2\), so they cannot form a two-sided limit equal to \(q(0)=2\).

A Common Mistake: Requiring Two Sides at an Endpoint

A frequent error is to reject continuity at a domain endpoint because values on the other side do not approach the endpoint value—or because the function is not even defined there. For example, for \(f(x)=\sqrt{x}\) on \([0,\infty)\), one might write, “There is no real value of \(\sqrt{x}\) for \(x<0\), so the two-sided limit at \(0\) does not exist; therefore \(f\) is discontinuous at \(0\).” The conclusion is wrong: it applies a two-sided test that the endpoint does not require.

Correction: At \(0\), the domain provides inputs only from the right. The relevant calculation is $$ \lim_{x\to 0^+}\sqrt{x}=0=f(0), $$ so \(f\) is continuous at \(0\) on its domain.

The reverse mistake is just as important: using only a right-hand or left-hand limit at an interior point. The example \(q\) shows why that fails. At \(0\), the right-hand limit equals \(q(0)\), but the left-hand limit differs, so the two-sided limit does not exist.

A Reliable Endpoint Procedure

1
Check domain membership.
Continuity at a point is a question about a point in the domain. If the endpoint is excluded, the function has no value there to compare with a limit.
2
Identify which side is inside.
At a left endpoint, approach from the right; at a right endpoint, approach from the left.
3
Compute that one-sided limit.
Use the formula or definition that applies to domain inputs near the endpoint, without evaluating outside the domain.
4
Compare with the endpoint value.
The function is continuous there exactly when the one-sided limit exists and equals the function value.

This endpoint test lets us discuss continuity on domains such as \([a,b]\), \([a,\infty)\), and \((-\infty,b]\) without inventing function values outside those domains. The direction of approach is determined by the domain, not by a preference for left-hand or right-hand limits.

Check Your Understanding

For each question, identify the relevant limit before deciding whether continuity holds.

  1. For \(f(x)=x^3\) on \([0,4]\), which one-sided limit tests continuity at \(0\)?
  2. For \(g(x)=\sqrt{5-x}\) on \([1,5]\), write the continuity condition at the right endpoint.
  3. A function has domain \((2,6]\). Is continuity of that function at \(2\) defined? Explain.
  4. At an interior point \(c\), the right-hand limit equals \(f(c)\), but the left-hand limit is different. Is \(f\) continuous at \(c\)?
  5. For \(h(0)=3\) and \(h(x)=x+1\) for \(x>0\), with domain \([0,\infty)\), is \(h\) continuous at \(0\)? Compare the right-hand limit with \(h(0)\).

Test yourself: Calculus I final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon