Continuity at a Point
Textbook Reference
| Primary source | OpenStax Calculus Volume 1, Section 2.4: “Continuity” |
| Direct link | https://openstax.org/books/calculus-volume-1/pages/2-4-continuity |
| Supplementary | OpenStax Calculus Volume 1, Section 2.3: “The Limit Laws” |
| Supplementary link | https://openstax.org/books/calculus-volume-1/pages/2-3-the-limit-laws |
| Textbook used in class | Stewart, Calculus, Section 1.8: “Continuity” (Examples 1, 2, 5, 9) |
Both OpenStax sources are free and openly licensed.
What Continuity Means
A function is continuous at a point if its graph has no break there: you could draw through that point without lifting your pen. That is the picture. The precise version turns the picture into one equation.
A function $f$ is continuous at $a$ when \[ \lim_{x \to a} f(x) = f(a). \] Read it carefully. The left side is where the function is heading as $x$ approaches $a$. The right side is the actual value at $a$. Continuity says these agree: the place the curve is aiming for is exactly the place it lands. No hole (where the curve aims somewhere the value is not), no jump (where the two sides aim at different places), no blow-up.
One equation is doing the work of three separate requirements. For $f$ to be continuous at $a$, all three must hold: the value $f(a)$ must exist, the limit must exist, and the two must be equal. Every discontinuity is one of these three failing, and naming which one fails is how you classify the break.
This pays off right away. For the functions you already know, polynomials and rational functions, continuity is automatic on their domains. That promotes the Direct Substitution Property from a convenient trick into a theorem: for a continuous function you find the limit by plugging in. Continuity is the property that makes “just substitute” a legitimate move.
Prerequisite Check
Before this lesson, make sure you can do all of the following:
If “the limit exists” versus “the function is defined” feels like the same thing, slow down. The entire topic is about cases where one holds and the other fails.
Quick Reference
Definition (continuity at a point). A function $f$ is continuous at $a$ if \[ \lim_{x \to a} f(x) = f(a). \]
The three conditions packed inside it. $f$ is continuous at $a$ exactly when all three hold:
- $f(a)$ is defined ($a$ is in the domain).
- $\lim_{x \to a} f(x)$ exists (both one-sided limits agree).
- $\lim_{x \to a} f(x) = f(a)$.
If any one fails, $f$ is discontinuous at $a$.
Three kinds of discontinuity.
| Type | What fails | Picture |
|---|---|---|
| Removable | limit exists but does not equal $f(a)$ (or $f(a)$ undefined) | a single hole |
| Jump | both one-sided limits exist but differ | a step |
| Infinite | the function grows without bound near $a$ | a vertical asymptote |
Which functions are continuous on their domains. Polynomials, rational functions, root functions, and trigonometric functions are all continuous at every point of their domains. Sums, differences, products, quotients (nonzero denominator), and compositions of continuous functions are continuous.
Direct Substitution Property. If $f$ is continuous at $a$, then $\lim_{x\to a} f(x) = f(a)$: find the limit by plugging in.
Key Concepts
1. The Definition and Its Three Conditions
The single equation $\lim_{x \to a} f(x) = f(a)$ demands three separate things, and pulling them apart is what makes continuity precise.
Definition. $f$ is continuous at $a$ if $\lim_{x \to a} f(x) = f(a)$. (Plain gloss: the value the curve approaches at $a$ equals the value it actually takes at $a$.)
For that equation to even make sense and then be true, all three of the following must hold:
- $f(a)$ is defined. If $a$ is not in the domain, the right side is meaningless and continuity fails immediately.
- $\lim_{x\to a} f(x)$ exists. The left side must be a single number, which requires the left-hand and right-hand limits to agree.
- The two are equal. Even if both sides exist, they might be different numbers.
A continuous function has the property that a small change in $x$ produces only a small change in $f(x)$. That is the analytic meaning behind “no break in the graph.”
2. Reading Discontinuities Off a Graph
Each of the three conditions, when it fails, produces a recognizable break.
Example 1. A graph shows breaks at $x = 1$, $x = 3$, and $x = 5$. Identify which condition fails at each. (This is Stewart 1.8, Example 1.)
- At $x = 1$: the graph has a hole and $f(1)$ is not defined. Condition 1 fails.
- At $x = 3$: the value $f(3)$ is defined, but the left and right limits disagree, so the limit does not exist. Condition 2 fails.
- At $x = 5$: the value $f(5)$ is defined and the limit exists, but $\lim_{x\to 5} f(x) \neq f(5)$. Condition 3 fails.
Recap. Three different breaks, three different broken conditions. When you spot a discontinuity, the diagnostic question is always: is the value missing, is the limit missing, or do they simply disagree?
3. Classifying Discontinuities From a Formula
The same three failures have standard names. Knowing the name tells you the shape of the break and whether it can be repaired.
Example 2. Find and classify the discontinuities of each function. (This is Stewart 1.8, Example 2.)
(a) $\;f(x) = \dfrac{x^2 - x - 2}{x - 2}$
Here $f(2)$ is undefined (zero denominator). But factoring shows \[ \frac{x^2 - x - 2}{x - 2} = \frac{(x-2)(x+1)}{x-2} = x + 1 \quad (x \neq 2), \] so $\lim_{x\to 2} f(x) = 3$ exists. The limit exists but $f(2)$ does not. This is a removable discontinuity, a single hole at $(2, 3)$; defining $f(2) = 3$ would patch it.
(b) $\;f(x) = \dfrac{1}{x^2}$, with $f(0) = 1$ assigned
Now $f(0) = 1$ is defined, but $\lim_{x\to 0}\dfrac{1}{x^2} = +\infty$ does not exist (the values grow without bound). This is an infinite discontinuity, a vertical asymptote at $x = 0$.
(c) $\;f(x) = \lfloor x \rfloor$ (the greatest integer function)
At each integer $n$, the left limit is $n - 1$ and the right limit is $n$, so the one-sided limits disagree. These are jump discontinuities, one at every integer.
Recap. Removable means the limit exists and only the value is wrong (or missing); the graph has a single hole you could fill. Jump means the two sides head to different heights. Infinite means the function blows up. The classification is exactly which of the three conditions broke.
Important: a removable discontinuity still makes the function discontinuous. “Removable” describes a hole that could be patched by redefining one point, not a function that is already continuous. Until you actually redefine $f(2) = 3$ in part (a), the function is discontinuous at $2$. The word names the repair that is possible, not a repair already done.
4. Continuity From One Side
At an endpoint of a domain, or at a jump, it helps to talk about continuity from a single direction.
Definition. $f$ is continuous from the right at $a$ if $\lim_{x\to a^+} f(x) = f(a)$, and continuous from the left at $a$ if $\lim_{x\to a^-} f(x) = f(a)$.
A function is continuous at $a$ in the full sense exactly when it is continuous from both sides.
Example 3. Show that $f(x) = \lfloor x \rfloor$ is continuous from the right but not from the left at each integer $n$. (This is Stewart 1.8, Example 3.)
From the right, $\lfloor x \rfloor = n$ for $n \leq x < n+1$, so $\lim_{x\to n^+}\lfloor x\rfloor = n = f(n)$: continuous from the right. From the left, $\lfloor x \rfloor = n - 1$ for $n-1 \leq x < n$, so $\lim_{x\to n^-}\lfloor x\rfloor = n - 1 \neq f(n)$: not continuous from the left.
Recap. One-sided continuity is the right tool at a step or a domain edge. The greatest-integer function steps up exactly at each integer, so it catches the value from the right but not from the left.
5. The Functions That Are Always Continuous
Verifying continuity from the definition every time would be tedious. The good news is that the standard functions are continuous wherever they are defined, and continuity is preserved by every basic combination.
Theorem. If $f$ and $g$ are continuous at $a$, then so are $f + g$, $f - g$, $cf$, $fg$, and $f/g$ (provided $g(a) \neq 0$). Each follows from the matching limit law.
Theorem. Polynomials are continuous on all of $\mathbb{R}$. Rational functions, root functions, and trigonometric functions are continuous at every point of their domains.
Theorem (composition). If $g$ is continuous at $a$ and $f$ is continuous at $g(a)$, then $f \circ g$ is continuous at $a$: a continuous function of a continuous function is continuous.
Together these let you certify continuity by inspection. They also justify the Direct Substitution Property: for a function built from continuous pieces, $\lim_{x\to a} f(x) = f(a)$.
Example 4. Evaluate $\displaystyle\lim_{x\to \pi}\frac{\sin x}{2 + \cos x}$. (This is Stewart 1.8, Example 7.)
Goal. Show the function is continuous at $\pi$, then substitute.
The numerator $\sin x$ is continuous. The denominator $2 + \cos x$ is a sum of continuous functions and is never zero (since $\cos x \geq -1$, so $2 + \cos x \geq 1 > 0$). By the quotient theorem the whole function is continuous everywhere, so substitution is valid: \[ \lim_{x\to \pi}\frac{\sin x}{2 + \cos x} = \frac{\sin \pi}{2 + \cos \pi} = \frac{0}{2 - 1} = 0. \]
Boxed answer: $0$.
Recap. Once you recognize a function as a combination of continuous pieces with a nonzero denominator, the limit is just the value. That recognition is faster than any algebraic technique and is the everyday use of continuity.
6. The Intermediate Value Theorem
Continuity on a whole interval has a consequence: a continuous function cannot skip values.
The Intermediate Value Theorem. If $f$ is continuous on $[a, b]$ and $N$ is any number between $f(a)$ and $f(b)$, then there is a number $c$ in $(a, b)$ with $f(c) = N$. (Plain gloss: a graph drawn without lifting the pen cannot jump over a horizontal line between its endpoints; it must cross.)
The standard use is to prove an equation has a solution.
Example 5. Show that $4x^3 - 6x^2 + 3x - 2 = 0$ has a solution between $1$ and $2$. (This is Stewart 1.8, Example 9.)
Goal. Find a sign change, then invoke the theorem with $N = 0$.
Let $f(x) = 4x^3 - 6x^2 + 3x - 2$, a polynomial, hence continuous. Evaluate the endpoints: \[ f(1) = 4 - 6 + 3 - 2 = -1 < 0, \qquad f(2) = 32 - 24 + 6 - 2 = 12 > 0. \] Since $0$ lies between $f(1)$ and $f(2)$, the Intermediate Value Theorem guarantees a $c$ in $(1, 2)$ with $f(c) = 0$.
Boxed answer: a solution exists in $(1, 2)$. Narrowing further, $f(1.2) = -0.128 < 0$ and $f(1.3) = 0.548 > 0$, so a root lies in $(1.2, 1.3)$.
Recap. A sign change in a continuous function forces a root between. This is exactly how a computer finds roots by bisection: check the midpoint’s sign and keep the half that still straddles zero. Continuity is the guarantee that the method works.
Common Errors Summary
| Error | Example | Correction |
|---|---|---|
| Confusing “limit exists” with “function defined” | calling $\frac{x^2-1}{x-1}$ continuous at $1$ because the limit is $2$ | $f(1)$ is undefined; the limit existing is not enough |
| Treating a removable discontinuity as continuity | “the hole is removable, so $f$ is continuous” | It is discontinuous until you actually redefine the point |
| Forgetting to check both one-sided limits at a jump | declaring a limit exists at a step | A jump means the one-sided limits differ; the limit does not exist |
| Substituting where the function is not continuous | plugging $x = 2$ into $\frac{1}{x-2}$ | The function is discontinuous at $2$; substitution is invalid there |
| Applying the IVT without continuity | using it on a function with a jump | The Intermediate Value Theorem requires continuity on the whole closed interval |
| Misclassifying an infinite discontinuity as a jump | calling $\frac{1}{x^2}$ at $0$ a jump | The function grows without bound; it is an infinite discontinuity |
Leveled Practice
Level 1 -- Direct Application
Problem 1. Use the three-condition test to decide whether $f(x) = \dfrac{x^2 + 2x + 17}{x^2 - 1}$ is continuous at $x = 0$.
Show answer
Check the three conditions. The function is rational, and at $x = 0$ the denominator is $0^2 - 1 = -1 \neq 0$, so $0$ is in the domain. A rational function is continuous on its domain, so the limit exists and equals the value: \[ f(0) = \frac{0 + 0 + 17}{0 - 1} = -17, \qquad \lim_{x\to 0} f(x) = -17. \] All three conditions hold.
Boxed answer: $f$ is continuous at $x = 0$.
Problem 2. Classify the discontinuity of $f(x) = \dfrac{x^2 - 7x + 12}{x - 3}$ at $x = 3$, and state the value that would remove it.
Show answer
At $x = 3$ the denominator is zero, so $f(3)$ is undefined. Factor: \[ \frac{x^2 - 7x + 12}{x - 3} = \frac{(x-3)(x-4)}{x-3} = x - 4 \quad (x \neq 3). \] The limit is $\lim_{x\to 3}(x - 4) = -1$, which exists. Limit exists, value missing: this is a removable discontinuity.
Boxed answer: removable; defining $f(3) = -1$ makes $f$ continuous at $3$. (This is the form of Stewart 1.8, Exercise 26.)
Problem 3. Classify the discontinuity of $f(x) = \dfrac{1}{x + 2}$ at $x = -2$.
Show answer
At $x = -2$ the denominator is zero and $f(-2)$ is undefined. As $x \to -2$, the values of $\dfrac{1}{x+2}$ grow without bound in magnitude (the limit does not exist).
Boxed answer: an infinite discontinuity (a vertical asymptote at $x = -2$). (This is Stewart 1.8, Exercise 19.)
Level 2 -- Multiple Steps
Problem 4. State the intervals on which $g(x) = \dfrac{x^2 + 2x + 17}{x^2 - 1}$ is continuous.
Show answer
$g$ is rational, so it is continuous everywhere except where the denominator is zero. Solve $x^2 - 1 = 0$: \[ x^2 - 1 = (x-1)(x+1) = 0 \implies x = \pm 1. \]
Boxed answer: $g$ is continuous on $(-\infty, -1)$, $(-1, 1)$, and $(1, \infty)$. (This is Stewart 1.8, Example 6(b).)
Problem 5. Determine whether $f(x) = \begin{cases} 1 - x^2 & \text{if } x \leq 1 \\ \sqrt{x - 1} & \text{if } x > 1 \end{cases}$ is continuous at $x = 1$.
Show answer
Check the three conditions at $x = 1$.
Value: $f(1) = 1 - 1^2 = 0$ (the top rule applies at $x = 1$).
Left limit: $\lim_{x\to 1^-}(1 - x^2) = 1 - 1 = 0$.
Right limit: $\lim_{x\to 1^+}\sqrt{x - 1} = \sqrt{0} = 0$.
Both one-sided limits equal $0$, so $\lim_{x\to 1} f(x) = 0$, which equals $f(1)$.
Boxed answer: $f$ is continuous at $x = 1$. (This is the form of Stewart 1.8, Exercise 41.)
Problem 6. For what value of the constant $c$ is $f(x) = \begin{cases} cx^2 + 2 & \text{if } x < 2 \\ x^3 - cx & \text{if } x \geq 2 \end{cases}$ continuous at $x = 2$?
Show answer
Continuity at $x = 2$ requires the two one-sided limits to agree (and to equal $f(2)$, which uses the bottom rule).
Left limit: $\lim_{x\to 2^-}(cx^2 + 2) = 4c + 2$.
Right limit and value: $\lim_{x\to 2^+}(x^3 - cx) = 8 - 2c = f(2)$.
Set them equal: \[ 4c + 2 = 8 - 2c \implies 6c = 6 \implies c = 1. \]
Boxed answer: $c = 1$. (This is the form of Stewart 1.8, Exercise 47.)
Level 3 -- Deeper Problems
Problem 7. Use the Intermediate Value Theorem to show that the equation $\cos x = x$ has a solution in $(0, 1)$.
Show answer
Let $h(x) = \cos x - x$, which is continuous (a difference of continuous functions). Evaluate the endpoints: \[ h(0) = \cos 0 - 0 = 1 > 0, \qquad h(1) = \cos 1 - 1 \approx 0.540 - 1 = -0.460 < 0. \] Since $0$ lies between $h(0)$ and $h(1)$, the Intermediate Value Theorem gives a $c$ in $(0, 1)$ with $h(c) = 0$, that is, $\cos c = c$.
Boxed answer: a solution exists in $(0, 1)$. (This is Stewart 1.8, Exercise 57.) The trick is to move everything to one side, forming a function whose root is the solution, then look for a sign change.
Problem 8. Where is $h(x) = \sin(x^2)$ continuous, and why?
Show answer
Write $h = f \circ g$ with $g(x) = x^2$ and $f(u) = \sin u$. The inner function $g$ is a polynomial, continuous on $\mathbb{R}$. The outer function $f$ is trigonometric, continuous everywhere. By the composition theorem, a continuous function of a continuous function is continuous.
Boxed answer: $h(x) = \sin(x^2)$ is continuous on all of $\mathbb{R}$. (This is Stewart 1.8, Example 8(a).)
Problem 9. A Tibetan monk leaves the monastery at 7:00 AM and reaches the mountaintop at 7:00 PM. The next morning he leaves the top at 7:00 AM along the same path and reaches the monastery at 7:00 PM. Use the Intermediate Value Theorem to show there is a point on the path he passes at exactly the same time of day on both trips.
Show answer
Let $u(t)$ be his position (as distance up the path) on the way up and $d(t)$ his position on the way down, both as functions of time of day $t$ over $[7\text{ AM}, 7\text{ PM}]$. Define \[ f(t) = u(t) - d(t). \] At the start, $u$ is at the bottom and $d$ is at the top, so $f(7\text{ AM}) < 0$. At the end, $u$ is at the top and $d$ is at the bottom, so $f(7\text{ PM}) > 0$. Both position functions are continuous (the monk moves without teleporting), so $f$ is continuous.
Since $f$ changes sign, the Intermediate Value Theorem gives a time $c$ with $f(c) = 0$, that is, $u(c) = d(c)$.
Conclusion: at time $c$ he is at the same point on the path on both days. (This is Stewart 1.8, Exercise 75.) Studying the difference of the two position functions turns a puzzle into a sign-change argument.
Common Misconceptions
if $\lim_{x \to a} f(x)$ exists, then $f$ is continuous at $a$.
This is the continuity-vs-limit-existence error. Continuity requires three conditions simultaneously: $f(a)$ is defined, the limit exists, and the two are equal. Consider $f(x) = \frac{x^2 - 1}{x - 1}$: the limit as $x \to 1$ equals $2$, yet $f(1)$ is undefined because the denominator is zero. The limit exists but continuity fails. A limit that exists at a point does not guarantee the function is defined there, let alone that the value matches the limit.
$\lim_{x \to a} f(x)$ always equals $f(a)$.
This is the limit-equals-function-value error. For the piecewise function $f(x) = x + 1$ for $x \neq 2$ and $f(2) = 10$, the limit as $x \to 2$ is $3$ while $f(2) = 10$. The limit describes what the function approaches as $x$ gets near $a$, ignoring the actual value at $a$. These two quantities agree only when $f$ is continuous at $a$, which is a special condition, not a universal truth.
Mastery Checklist
You have mastered this skill when you can do all of the following without referring to notes:
Mental Model
Think of continuity as the curve landing where it was aiming.
As $x$ approaches $a$, the function is heading somewhere; that destination is the limit. The function also has an actual value at $a$. Continuity is the statement that these coincide: the curve aims at $f(a)$ and lands on $f(a)$, with no hole, no jump, no blow-up.
Three things follow from the picture:
- A break is one of three failures. Either there is no value to land on (a hole, condition 1), or there is no single destination because the two sides aim differently (a jump, condition 2), or the value and the destination disagree (condition 3). Naming the failure names the discontinuity.
- “No break” means you can substitute. For a function built from continuous pieces, the destination is the value, so evaluating a limit is just plugging in. This is why the Direct Substitution Property works and why continuity is the property that makes calculus computable.
- Continuity forbids skipping. A curve you can draw without lifting your pen cannot hop over a horizontal line strung between its endpoints; it must cross. That is the Intermediate Value Theorem, and it is why a sign change guarantees a root.
Connections
Within Functions and Limits (Chapter 1)
- Properties of limits: Continuity is built directly on the limit laws; each continuity-of-combinations theorem is the matching limit law restated. The Direct Substitution Property is continuity in one sentence.
- One-sided limits: Jump discontinuities and continuity at an endpoint are diagnosed with one-sided limits. A point is continuous exactly when it is continuous from both sides.
- Continuity on an interval and the Intermediate Value Theorem: Continuity at every point of an interval is continuity on the interval, and that is the hypothesis the Intermediate Value Theorem needs. Both have their own nodes that build on this one.
Toward later calculus (MATH161 and beyond)
- Differentiability: Differentiable implies continuous; a function with a corner or a break cannot have a derivative there. Continuity is the weaker, prior condition every differentiable function satisfies.
- The Extreme Value Theorem and the Mean Value Theorem: Both require continuity on a closed interval. The guarantee that a continuous function on $[a, b]$ attains a maximum and minimum, used inside Rolle’s Theorem, rests on the continuity developed here.
- Integrability: Every continuous function on a closed interval is integrable, so the definite integral of a continuous function always exists. Continuity is the standard sufficient condition that makes the limit of Riemann sums converge.
Audience Notes
For students who find math intimidating: You can answer almost every continuity question with one checklist. At the point in question, ask: (1) does the function have a value there, (2) does the limit exist there, (3) do they match? If all three are yes, it is continuous; if any is no, that is your discontinuity, and which one failed names the type. For familiar functions like polynomials, the answer is simply yes everywhere.
For career-focused students: The Intermediate Value Theorem is the mathematical license for root-finding by bisection, a method used in every numerical library: bracket a sign change, repeatedly halve the interval, and the root is trapped. Continuity is also what lets a graphics program “connect the dots” between computed points, assuming the curve takes every value in between.
For gifted and curious students: Investigate the function that equals $0$ at every rational number and $1$ at every irrational number. It is discontinuous everywhere, yet a close cousin (the Thomae function) is continuous at every irrational and discontinuous at every rational. These examples show how much subtler continuity becomes once you leave the familiar formula-defined functions.
For PhD-track students: The Intermediate Value Theorem is equivalent to the completeness of the real numbers; it fails over the rationals (where $x^2 = 2$ has no solution despite a sign change). The “small change in input gives small change in output” phrasing is pointwise continuity, which is weaker than uniform continuity, and the distinction, invisible on a closed bounded interval by the Heine-Cantor theorem, becomes essential on open or unbounded domains.
Back to Functions and Limits | Related: Properties of Limits | Next: The Intermediate Value Theorem