Calculus I Limits, Derivatives, and Integrals

1.7 Continuity

A function is continuous when its values behave predictably as we approach a point. In this lesson, we will learn how to test continuity, recognize discontinuities, and analyze piecewise functions.

Understanding Continuity

Intuitively, a function is continuous if its graph has no breaks, holes, or jumps. We can often imagine drawing the graph without lifting our pencil.

However, this is only an informal way of understanding continuity. To determine whether a function is continuous mathematically, we use limits.

Definition: Continuity at a Point

A function is continuous at x = a if

This means the value that the function approaches as x approaches a must equal the actual function value at a.

-4 -2 0 2 4 -1 0.5 2 3.5 5

The graph above is continuous everywhere because there are no breaks, holes, or jumps.

The Three Conditions for Continuity

A function is continuous at x = a only if all three conditions are satisfied.

Condition 1: The Function Value Exists

The function must have an actual value at x = a.

Condition 2: The Limit Exists

The left-hand and right-hand limits must exist and be equal.

Condition 3: The Limit Equals the Function Value

The function must approach the same value that it actually has at x = a.

Important

If even one of these three conditions fails, the function is discontinuous at that point.

Three Ways Continuity Can Fail

A function is continuous at x = a only when all three conditions are satisfied. The following graphs show what happens when each condition fails.

Condition 1 Fails: f(a) Is Not Defined

-3 -1.25 0.5 2.25 4 -2 0 2 4 6

Why continuity fails: The graph approaches the same value from both sides, but there is no filled point at x = 1. Therefore, f(1) is not defined.

Condition 2 Fails: The Limit Does Not Exist

-3 -1.25 0.5 2.25 4 -2 0.25 2.5 4.75 7

Why continuity fails: The left-hand limit is 2 and the right-hand limit is 4. Because they disagree, the two-sided limit does not exist, even though f(1) is defined.

Condition 3 Fails: The Limit Does Not Equal f(a)

-2 -0.75 0.5 1.75 3 -1 0.75 2.5 4.25 6

Why continuity fails: The graph approaches 1 from both directions, but the filled point is at (1, 3). The limit and function value are different.

Checking Continuity at a Point

Example 1: A Continuous Function

Determine whether the following function is continuous at x = 2.

Show solution

Find f(2)

Evaluate the limit

Since this is a polynomial, we can use direct substitution.

Compare

Answer:

When Continuity Fails

A function can fail to be continuous for several reasons. Each failure corresponds to one or more of the three continuity conditions.

Condition What Can Go Wrong?
1. f(a) is defined The function has no value at x = a.
2. The limit exists The one-sided limits disagree, become unbounded, or oscillate.
3. The limit equals f(a) The function approaches one value but is assigned a different value.

One-Sided Continuity

Sometimes a function is continuous when approached from one direction but not the other.

Continuity from the Left

A function is continuous from the left at x = a if

Continuity from the Right

A function is continuous from the right at x = a if

At an interior point of the domain, a function must be continuous from both sides to be continuous at that point.

Example 2: One-Sided Continuity

Determine whether the following function is continuous at x = 1.

Show solution

Evaluate the left-hand limit

Evaluate the right-hand limit

Find the function value

Compare the results

The two-sided limit does not exist because the one-sided limits are unequal.

However, the right-hand limit equals the function value.

Answer:
The function is continuous from the right, but not from the left, at x = 1.

Continuity of Piecewise Functions

A piecewise function uses different formulas over different intervals of its domain.

Each formula may be continuous on its own interval, but we must check the points where the formula changes. These are called boundary points.

Checking Continuity at a Boundary

At a boundary x = a, evaluate:

The function is continuous at the boundary if all three values exist and are equal.

Open and Closed Endpoints

The inequalities in a piecewise definition tell us whether a boundary point belongs to a particular piece.

Inequality Graph
x < a Open circle at x = a
x ≤ a Closed circle at x = a
x > a Open circle at x = a
x ≥ a Closed circle at x = a

Example 3: Checking a Piecewise Function

Determine whether the following function is continuous at x = 2.

Show solution

Evaluate from the left

Evaluate from the right

Evaluate the function value

The second piece includes x = 2.

Compare

Answer:

Example 4: Finding a Constant for Continuity

Find k so that the function is continuous at x = 2.

Show solution

Evaluate the left-hand limit

Evaluate the right-hand limit

Set the limits equal

Solve

Since the second piece includes x = 2, this also gives f(2) = 5.

Answer:

Types of Discontinuities

Discontinuities can occur in several different ways. The four common types are removable, jump, infinite, and oscillating discontinuities.

Removable Discontinuity

A removable discontinuity occurs when the limit exists, but the function is undefined or has the wrong value at that point.

This creates a hole in the graph.

-2 0 2 4 6 -1 1.25 3.5 5.75 8

Jump Discontinuity

A jump discontinuity occurs when the left-hand and right-hand limits exist but are not equal.

The graph jumps from one value to another.

-3 -1 1 3 5 -2 0.5 3 5.5 8

Infinite Discontinuity

An infinite discontinuity occurs when the function becomes unbounded near a point.

This often produces a vertical asymptote.

-5 -2.5 0 2.5 5 -6 -3 0 3 6

Oscillating Discontinuity

An oscillating discontinuity occurs when a function oscillates infinitely often near a point without approaching one particular value.

The function keeps moving up and down, so the limit does not exist.

-1 -0.5 0 0.5 1 -1.5 -0.75 0 0.75 1.5

Worked Examples

Example 5: Removable Discontinuity

Determine whether the function is continuous at x = 2.

Show solution

Evaluate f(2)

The first continuity condition fails.

Factor the numerator

For x not equal to 2, the expression simplifies to x + 2.

Evaluate the one-sided limits

The two-sided limit exists and equals 4, but f(2) is undefined.

Answer:

Example 6: Infinite Discontinuity

Classify the discontinuity at x = 0.

Show solution

Evaluate from the left

Evaluate from the right

The function becomes unbounded near x = 0.

Answer:

Example 7: Jump Discontinuity

Determine whether the following function is continuous at x = 1.

Show solution

Evaluate from the left

Evaluate from the right

Evaluate the function value

Since the one-sided limits are unequal, the two-sided limit does not exist.

Answer:

Continuity on an Interval

A function is continuous on an open interval if it is continuous at every point in that interval.

On a closed interval [a, b], the function must be continuous at every interior point, continuous from the right at a, and continuous from the left at b.

Common Continuous Functions

Summary

Concept What to Check
Continuity at a point The limit exists and equals the function value.
One-sided continuity The one-sided limit equals the function value.
Piecewise continuity Left limit = right limit = function value at the boundary.
Removable discontinuity The limit exists, but the function value is missing or incorrect.
Jump discontinuity The one-sided limits are different.
Infinite discontinuity The function becomes unbounded near the point.
Oscillating discontinuity The function does not approach a single value.

Key Takeaways