Continuity

A function is continuous at a point if its graph has no holes, jumps, or vertical breaks there. Continuity is a powerful property: continuous functions on closed intervals attain maximum and minimum values, and they satisfy the Intermediate Value Theorem.

Concept Quick Reference
Continuous at a f ( a ) defined, lim x a f ( x ) exists, and lim x a f ( x ) = f ( a )
Discontinuous at a if any of the three conditions above fails
Removable discontinuity limit exists but f ( a ) is undefined or limit
Jump discontinuity left and right limits exist but differ
Infinite discontinuity one or both one-sided limits are ±
Oscillating discontinuity f ( x ) neither approaches a number nor ±

Intuitive Introduction

Consider a function f whose graph is shown below.

Graph of a function that is discontinuous at x=-3, -1, 3, and 6

Intuitively, f is discontinuous at x = 3 , 1 , 3 , and $6$, we must lift the pen to draw the graph at those points. At all other points, f is continuous.

Continuity at a Point

The function f is continuous at a if:

  1. f is defined at a , and
  2. lim x a f ( x ) = f ( a ) .

Condition (2) implicitly requires that the limit exists and equals the function value. So when f is continuous at a , all three of the following hold:

  1. f ( a ) exists.
  2. lim x a f ( x ) exists.
  3. lim x a f ( x ) = f ( a ) .
  • If any of these three conditions fails, then f is discontinuous at a .

Right and Left Continuity; Continuity on an Interval

  • Left-continuity: f is left-continuous at a if lim x a f ( x ) = f ( a ) .
  • Right-continuity: f is right-continuous at a if lim x a + f ( x ) = f ( a ) .
  • Continuity at an endpoint: Since two-sided limits do not exist at endpoints of an interval, continuity at an endpoint always means one-sided continuity.
  • Continuity on an open interval ( a , b ) : f is continuous at every point in ( a , b ) .
  • Continuity on a closed interval [ a , b ] : f is continuous on ( a , b ) , right-continuous at a , and left-continuous at b . The graph including endpoints can be drawn without lifting the pen.

Types of Discontinuity

1. Removable Discontinuity

If lim x a f ( x ) = L exists but either f ( a ) is not defined or f ( a ) L , the discontinuity is removable. There is a hole in the graph at x = a .

Graph showing a removable discontinuity (hole) at x=a

To remove this discontinuity: simply define (or redefine) f ( a ) = L .

2. Jump Discontinuity

f has a jump discontinuity at x = a if the right and left limits exist but are not equal:

lim x a f ( x ) lim x a + f ( x ) .
Graph showing a jump discontinuity at x=a

3. Infinite Discontinuity

f has an infinite discontinuity at x = a if one or both one-sided limits equal + or .

Graph showing an infinite discontinuity at x=a

4. Oscillating Discontinuity

This occurs when f ( x ) does not approach a number or infinity as x a . For example, f ( x ) = sin ( 1 / x ) oscillates between 1 and $1$ infinitely often as x 0 (the following figure), so its limit at $0$ does not exist.

Graph of y=sin(1/x) showing oscillating discontinuity at x=0
Read more **A function discontinuous everywhere: the Dirichlet function.** Consider the Dirichlet function: D(x) = \begin{cases} 1 & \text{if } x \text{ is rational} \\ 0 & \text{if } x \text{ is irrational} \end{cases} This function is discontinuous at every point. To see why: suppose D ( x ) had a limit L at some point a . Taking ϵ = 1 / 2 , there should exist δ > 0 such that 0 < | x a | < δ | D ( x ) L | < 1 / 2 . But every deleted neighborhood 0 < | x a | < δ contains a rational point x 1 and an irrational point x 2 . Then: | D ( x 1 ) L | = | 1 L | < 1 2 and | D ( x 2 ) L | = | 0 L | < 1 2 . Adding gives 1 = | 1 0 | | D ( x 1 ) L | + | D ( x 2 ) L | < 1 , a contradiction. So D ( x ) cannot have a limit anywhere.

Investigate the discontinuity of f ( x ) = 2 1 / x at x = 0 .

Solution As x 0 + , 1 x + , so f ( x ) = 2 1 / x increases without bound. As x 0 , 1 x , so f ( x ) = 2 1 / x 0 . There is an **infinite discontinuity** at x = 0 . Also, f is not defined at x = 0 .
Graph of f(x)=2^(1/x) showing infinite discontinuity at x=0

Elementary Continuous Functions

The following functions are continuous on their domains:

  1. Polynomial functions are continuous everywhere: for any a , lim x a P ( x ) = P ( a ) .
  2. Rational functions R ( x ) = P ( x ) / Q ( x ) are continuous at every a where Q ( a ) 0 .
  3. f ( x ) = x n with n a positive odd integer is continuous everywhere.
  4. f ( x ) = x n with n a positive even integer is continuous on [ 0 , ) .
  5. Sine and cosine are continuous everywhere.
  6. Tangent, cotangent, secant, cosecant are continuous on their domains. For example, y = tan x is continuous everywhere except where cos x = 0 , i.e., when x = π 2 + k π for integer k .
    Graph of y=tan(x) showing continuity on its domain
  7. Inverse trigonometric functions are continuous on their domains. For example, y = arcsin x and y = arccos x are continuous on [ 1 , 1 ] , and y = arctan x is continuous on ( , + ) .
  8. f ( x ) = e x is continuous on ( , + ) .
  9. f ( x ) = ln x is continuous on ( 0 , + ) .
  • The floor function f ( x ) = x is an example of a function that is not continuous on its domain: it is discontinuous at every integer.
    Graph of the floor function showing jump discontinuities at every integer
  • The sign function \text{sgn}(x) = \begin{cases} 1 & x > 0 \\ 0 & x = 0 \\ -1 & x < 0 \end{cases} is defined at $0$ but is discontinuous there.
    Graph of y=sgn(x) showing jump discontinuity at x=0

Algebraic Operations on Continuous Functions

If f and g are continuous at x = a , then the following functions are also continuous at x = a :

  • (a) f ( x ) + g ( x )
  • (b) f ( x ) g ( x )
  • (c) f ( x ) g ( x )
  • (d) f ( x ) / g ( x ) , provided g ( a ) 0
  • In (d), g ( a ) 0 prevents division by zero.

It follows that functions such as F ( x ) = ln x + cos 2 x 3 x 2 + 1 and G ( x ) = tan x 3 x 2 + 2 x 1 x 2 1 are continuous on their domains.

A Useful Theorem for Calculating Limits

If lim x a g ( x ) = b and f is continuous at the point b , then

lim x a f ( g ( x ) ) = f ( lim x a g ( x ) ) = f ( b ) .

This theorem says: if f is continuous, you can move the limit inside f .

Properties of Continuous Functions

Read more Continuous functions on closed intervals have important structural properties. **Bolzano's Theorem (special case of the Intermediate Value Theorem).**
If f is continuous on [ a , b ] and f ( a ) and f ( b ) have opposite signs, then there exists a point c in [ a , b ] such that f ( c ) = 0 .
Geometrically: a continuous curve that starts below the x -axis and ends above it must cross the x -axis somewhere.
  • Bolzano's Theorem guarantees at least one zero, but there may be more.
  • If f ( a ) f ( b ) > 0 (same sign), the equation f ( x ) = 0 may still have a solution in [ a , b ] .
  • If f is discontinuous even at one point in [ a , b ] , the theorem may fail.
**The Intermediate Value Theorem.**
Let f be continuous on the closed interval [ a , b ] . If k is any number between f ( a ) and f ( b ) , then there exists a point c in [ a , b ] such that f ( c ) = k .
In other words, a continuous function takes on every value between its values at the endpoints. Example application: a moving vehicle that goes from speed $0$ to speed $100$ km/h must at some moment have been going at exactly $50$ km/h (or any other speed in between). **The Extreme Value Theorem.**
If f is continuous on a closed interval [ a , b ] , then f attains both an absolute maximum and an absolute minimum on [ a , b ] .
  • Both conditions, closed interval and continuity, are needed. If either fails, the theorem may not hold.
  • The theorem guarantees the existence of extreme values but does not tell us how to find them (those methods come in the differentiation chapter).

Frequently Asked Questions

How do I check whether a piecewise function is continuous? Check continuity at the "break points" where the formula changes. At each break point x = c , verify: (1) both one-sided limits exist, (2) they are equal, and (3) f ( c ) equals that common value. The function is continuous on the rest of its domain by whatever continuity properties the individual formulas have.

What is the difference between a removable and a jump discontinuity? In a **removable discontinuity**, the two-sided limit exists (both one-sided limits agree), but either the function is undefined or takes a different value at that point. In a **jump discontinuity**, the left and right limits both exist but are different, so the function "jumps" between two values.

Is the composition of continuous functions always continuous? Yes. If g is continuous at a and f is continuous at g ( a ) , then the composite function f g is continuous at a . This follows from the Composite Function Limit Theorem.