In calculus, we mostly study continuous functions. Intuitively, a function is continuous if its graph can be drawn without lifting your pencil from the paper. In this section, we provide the formal mathematical definition of continuity and classify types of discontinuities.
Quick Reference
| Concept | Mathematical Condition | Description |
|---|---|---|
| Continuity at a Point | exists, limit as exists, and they are equal. | |
| One-Sided Continuity | (Right), (Left) | Continuous from right or left at a boundary point. |
| Continuity on | for all | Continuous at every point in the open interval. |
| Continuity on | Continuous on , , | Continuous on , right-continuous at , and left-continuous at . |
| Removable Discontinuity | exists, but or is undefined | A single "hole" in the graph. |
| Jump Discontinuity | Both one-sided limits exist, but | Graph jumps vertically at . |
| Infinite Discontinuity | At least one one-sided limit is | Vertical asymptote at . |
| Oscillating Discontinuity | Limit fails to exist due to infinite oscillations near | Example: near . |
Consider a function f whose graph is shown below. We can intuitively say that f is discontinuous at , and , and is continuous at any other points; we don't have to lift the pen to draw the graph of f except when .

Continuity at a Point
Here is the definition of continuity:
Definition of Continuity: The function f is continuous at a if:
- f is defined at a, and
- .
It follows from the above definition that when the function f is continuous at a then:
- exists,
- exists,
- is equal to the value of f at a.
If any of these three conditions is not met, then f is discontinuous at a.
Right and Left Continuity; Continuity on an Interval
- Right and Left Continuity: Let's go back to the figure above. We can say that f is left-continuous (or is continuous from the left) at as . Similarly, we say that f is right-continuous (or is continuous from the right) at as .
- Continuity at an Endpoint: Since two-sided limits do not exist at the endpoints, continuity at an endpoint always means one-sided continuity. So instead of saying that f is right-continuous at , we simply may say that f is continuous at .
- Continuity on an Interval: We say that f is continuous on an open interval if it is continuous at every point x in this interval. Continuity on the closed interval means that f is continuous on , and it is right-continuous at a and left-continuous at b. If f is continuous on , we can draw its graph including the endpoints without raising the pen.
Types of Discontinuity
The most common types of discontinuity are:
- Removable Discontinuity: If exists but either is not defined or . In this case, there is a hole in the graph of f. We can easily remove this type of discontinuity and make the function continuous if L is assumed as the value of . In other words, to remove the discontinuity, we simply add a point to the graph of the function.

- Jump Discontinuity: The function f has a jump discontinuity at if the right and left limits exist but have different values: .

- Infinite Discontinuity: The function f has an infinite discontinuity at if one of the one-sided limits or both of them are or .

- Oscillating Discontinuity: This occurs when does not approach a number or infinity as . For example, oscillates between and infinitely often as . Therefore, its limit as does not exist and f has an oscillating discontinuity at .
.png)
A function that is discontinuous at every point of its domain
Consider the Dirichlet function defined as:
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; fails to have a limit at any point.
Suppose has a limit L at a point a. Given , we should be able to find a such that:
Because each deleted neighborhood contains a rational point and an irrational point , we should have:
and
and hence:
Because is impossible, cannot have a limit at any point.
Investigate the discontinuity of at .
Solution
As x approaches through positive values (), and increases without bound:
As x approaches through negative values (), , and approaches :
There is an infinite discontinuity at . Notice that f is not defined at .

Elementary Continuous Functions
Here are some elementary continuous functions:
- Polynomial functions: A function of the form (where is an integer and are constants) is continuous everywhere because for any a, .
- Rational functions: Let and be two polynomials. The rational function is continuous at if . In other words, a rational function is continuous on its domain, and is discontinuous at the points where the denominator is zero.
- Odd Root functions: where n is a positive odd integer is continuous everywhere.
- Even Root functions: where n is a positive even integer is continuous on its domain .
- Sine and Cosine functions: The sine and cosine functions are continuous everywhere.
- Other Trigonometric functions: The tangent, cotangent, secant, and cosecant functions are continuous where they are defined; that is, on their domains. Specifically, is continuous everywhere except where ; that is, when for all integers k. Therefore, is continuous on:
.png)
is continuous on its domain. - Inverse Trigonometric functions: Inverse trigonometric functions are continuous on their domains. For example, and are continuous on , and is continuous on .
- Exponential functions: (also written as ) is continuous on its domain .
- Logarithmic functions: is continuous on its domain .
- One example of functions that are not continuous on their domains is the greatest integer function (also known as the floor function and denoted by ). This function takes a real number x as input and gives the greatest integer less than or equal to x. Therefore, its domain is the entire set of real numbers, but as seen from its graph below, it is discontinuous at every integer. Notice that this function is continuous from the right at each integer.

- Another example is the sign function defined by:\text{sgn}(x) = \begin{cases} 1 & \text{if } x > 0 \\ 0 & \text{if } x = 0 \\ -1 & \text{if } x < 0 \end{cases}Although is defined, this function is discontinuous at . More generally, functions defined in pieces by different formulas in different parts of their domains (piecewise defined functions) may or may not be continuous at the points where their formulas change.

Algebraic Operations on Continuous Functions
Theorem (Algebra of Continuous Functions): If f and g are continuous at , then the following functions are continuous at :
- provided that
In (d), the condition prevents division by zero. It follows from the above theorem that functions such as and are continuous on their domains.
A Useful Theorem for Calculating Limits
The following theorem tells us how we can calculate the limit of a composite function:
Theorem (Limit of a Composite Function): If and f is continuous at the point b, then:
Proof
Let be given. We need to show that there exists a such that for all x:
Step 1: Use the continuity of f at b.
Since f is continuous at b, by definition of continuity, for the given , there exists a number such that for all u in the domain of f:
Step 2: Use the limit of g at a.
Since , we can use as an error tolerance. There exists a number such that for all x:
Step 3: Combine both steps.
If , then . Setting in Step 1 yields: Thus, by the – definition of a limit:
It follows from this theorem that whenever the outer function f is continuous, we can "pass the limit inside" the function. That is, we evaluate the limit of the inner function first, and then apply the outer function f to the result:
For example, because the cube root function is continuous everywhere on , we can pass the limit inside the radical:
provided exists. Similarly
provided .
Exercises
Let
For what value of the constant m is the function f continuous at ?
Answer
Solution
The function f is right-continuous at :
\begin{aligned} \lim_{x\to 3^+} f(x) &= \lim_{x\to 3^+} (x^2 + 3) \\ &= 3^2 + 3 = 12 = f(3). \end{aligned}Therefore, f must be made left-continuous at to be continuous at . That is, we must have , or:
which gives:
For what values of x is there a discontinuity in the graph of:
Answer
and
Solution
f is a rational function, so it is discontinuous at the points where the denominator is zero:
Therefore, f is discontinuous at and . However, f has a removable discontinuity at , because for :
and:
That is, if we define a new function:
g(x) = \begin{cases} \frac{x^2 - 4}{x^2 - 3x + 2} & \text{if } x \neq 2 \\ 4 & \text{if } x = 2 \end{cases}then g is continuous at , and its graph does not have a hole at .

Is continuous on its domain?
Answer
No, f is discontinuous at .
Solution
First, let's determine the domain of f. Because when or , the domain of f is:
We can consider an open interval containing (for example, the interval ) on which the domain of f contains no point other than . Therefore, does not exist, and f is not continuous at . Because f is discontinuous at , it is not continuous on its entire domain.
The function is continuous on , because for every :
The function f is right-continuous at , because:
Therefore, f is continuous on .

Where are the following functions continuous?
Answer
(a) Continuous on (b) Continuous on (c) Continuous on
Solution
(a) We have where and . Because both f and g (which is a polynomial) are continuous on , it follows from the Composite Function Limit Theorem that is also continuous on .
(b) Notice that , where and . Obviously f is continuous on . We can write where , , and . Because u, v, and w are continuous functions on and , g is continuous on too. Because f and g are both continuous on and , is also continuous on .
(c) We have where and . The square root function is continuous on its domain , and g, which is a polynomial, is continuous on . So is continuous on its domain, which is:
We can determine where by finding its roots:
\begin{aligned} x^2 + 2x - 2 = 0 \implies x &= \frac{-2 \pm \sqrt{2^2 - 4(1)(-2)}}{2(1)} \\ &= \frac{-2 \pm \sqrt{12}}{2} = -1 \pm \sqrt{3}. \end{aligned}So we can write .

Therefore, G is continuous on .
Determine whether the piecewise function:
is continuous at . If discontinuous, classify the type of discontinuity.
Answer
Discontinuous at (jump discontinuity).
Solution
Evaluating :
Evaluating the one-sided limits as :
- Left-hand limit: .
- Right-hand limit: .
Since , the two-sided limit does not exist. Because both one-sided limits exist as finite numbers but are unequal, f has a jump discontinuity at .
Find the values of the constants a and b such that the function is continuous everywhere on :
Answer
and
Solution
For and , is defined by linear and quadratic polynomials, which are continuous everywhere.
For f to be continuous at the boundary point , we must have:
Evaluating the one-sided limits:
- Left-hand limit: .
- Right-hand limit: .
Setting both one-sided limits equal to : - .
- .
Thus, and .
Consider the function for .
- Show that f has a removable discontinuity at .
- How should be defined so that f becomes continuous at ?
Answer
(a) exists, but is undefined. (b) Define .
Solution
(a) Note that is currently undefined. Evaluating the limit as using the trigonometric limit rule :
Since the limit exists as a finite number () but is undefined, f has a removable discontinuity at .
(b) To make f continuous at , we must define .
Evaluate the limit using the Composite Function Limit Theorem:
Answer
Solution
Let and .
First, evaluate the limit of the inner function as :
Since the outer function is continuous at , by the Composite Function Limit Theorem:
Determine the interval of continuity for , and verify one-sided continuity at the endpoints.
Answer
Continuous on the closed interval .
Solution
The function is defined when .
- On the open interval , . Since polynomials and root functions are continuous on their domains, f is continuous at every point in .
- At the left endpoint :Thus, f is continuous from the right at .
- At the right endpoint :Thus, f is continuous from the left at .
Therefore, f is continuous on the closed interval .