Skip to content
Tutorials Center
My learning

Topics

Lesson 10 of 39 · Limits and Continuity

Continuity

Understand continuity with the three-part test, the types of discontinuity, and the Intermediate Value Theorem, with a bisection root finder to try.

A function is continuous if you can draw its graph without lifting your pencil. Calculus needs a precise version, and it is built with limits.

The three-part test

A function f is continuous at x = a if all three hold:

  1. f(a) is defined.
  2. lim(x→a) f(x) exists.
  3. lim(x→a) f(x) = f(a).

A function is continuous on an interval if it is continuous at every point there. Polynomials, sin, cos, eˣ are continuous everywhere. Rational functions are continuous wherever the denominator is not zero. √x is continuous for x ≥ 0.

Types of discontinuity

Type What happens Example at the trouble spot
Removable limit exists, but f(a) missing or wrong (x² - 1)/(x - 1) at 1
Jump one-sided limits differ ⌊x⌋ (floor) at integers
Infinite function grows without bound 1/x at 0

A removable discontinuity can be repaired by defining f(a) to equal the limit.

Python Test the three conditions

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

This checker is a numerical stand-in, not a proof, but it shows how the three conditions fit together.

Making a function continuous

Suppose f(x) = x² for x < 1 and f(x) = a x + 3 for x ≥ 1. For continuity at 1 the left limit 1 must equal f(1) = a + 3, so a = -2.

The Intermediate Value Theorem

If f is continuous on [a, b] and N is any number between f(a) and f(b), then some c in [a, b] has f(c) = N. In words: a continuous function cannot skip values. A common use is showing an equation has a solution. For f(x) = x³ + x - 1, f(0) = -1 and f(1) = 1, so there is a root between 0 and 1.

Python Bisection finds the root

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Bisection works because of the Intermediate Value Theorem: at each step the root stays trapped in the interval.

Continuity fails the theorem's hypothesis at a jump: f(x) = -1 for x < 0 and 1 for x ≥ 0 changes sign without ever being 0.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. Which is NOT part of the continuity test at x = a?

    Continuity concerns f(a) and the limit only; the derivative is a separate matter.
  2. 2. (x² - 1)/(x - 1) at x = 1 has a

    The limit is 2 but f(1) is undefined; defining f(1) = 2 repairs it.
  3. 3. What value of a makes f continuous at 1 if f(x) = x² for x < 1 and ax + 3 for x ≥ 1?

    Need 1 = a + 3, so a = -2.
  4. 4. The Intermediate Value Theorem guarantees

    Continuous functions cannot skip values on a closed interval.

Summary

  • Continuous at a: f(a) exists, the limit exists, and they are equal.
  • Discontinuities are removable, jump or infinite.
  • The Intermediate Value Theorem guarantees intermediate values and supports root finding.

Next: The Definition of the Derivative