Continuity in an Interval
Continuity in an Open Interval
A function \( f(x) \) is said to be continuous on an open interval \( (a, b) \) if it is continuous at every point \( x \) in \( (a, b) \). This means that for every \( x \in (a, b) \), the limit
exists and equals \( f(c) \) for all \( c \in (a, b) \).
Since the interval \( (a, b) \) does not include its endpoints, continuity is only required for points strictly inside the interval. There is no need to check left or right continuity at \( x = a \) or \( x = b \), as these points do not belong to the domain under consideration.
For example, the function
is continuous on \( (-1,1) \) because the polynomial \( x^2 \) is continuous for all real numbers, and in particular, for every \( x \) in \( (-1,1) \), the limit \( \lim\limits_{x \to c} f(x) = f(c) \) holds.
However, consider the function
on the interval \( (-1,1) \). At \( x = 0 \), the function is not defined, and the limit as \( x \to 0 \) does not exist since \( f(x) \to \infty \) from one side and \( f(x) \to -\infty \) from the other. Hence, \( f(x) \) is not continuous on \( (-1,1) \) because it fails to be continuous at \( x = 0 \), even though it is continuous at every other point in the interval.
Continuity in a Closed Interval
A function \( f(x) \) is said to be continuous on a closed interval \( [a, b] \) if it is continuous at every point inside \( (a, b) \) and satisfies one-sided continuity at the endpoints. This requires:
-
Continuity at interior points: For every \( x \in (a, b) \),
\[ \lim\limits_{x \to c} f(x) = f(c). \] -
Right continuity at \( x = a \): The function must satisfy
\[ \lim\limits_{x \to a^+} f(x) = f(a). \] -
Left continuity at \( x = b \): The function must satisfy
\[ \lim\limits_{x \to b^-} f(x) = f(b). \]
A function that is continuous on a closed interval must not have any jumps, missing points, or infinite oscillations inside the interval, and it must not have any discontinuities at the endpoints.
Consider the function
For every \( x \) in \( (-1,1) \), the function is continuous because polynomials are continuous everywhere. Checking the endpoints:
-
At \( x = -1 \): The right-hand limit is
\[ \lim\limits_{x \to -1^+} x^3 = (-1)^3 = -1 = f(-1). \] -
At \( x = 1 \): The left-hand limit is
\[ \lim\limits_{x \to 1^-} x^3 = 1^3 = 1 = f(1). \]
Since both one-sided limits match the function values, \( f(x) = x^3 \) is continuous on \( [-1,1] \).
Now consider the function
For \( x \in (1,2) \), the function takes constant values. Specifically,
Checking continuity at \( x = 2 \):
-
Left-hand limit:
\[ \lim\limits_{x \to 2^-} \lfloor x \rfloor = 1. \] -
Function value:
\[ f(2) = 2. \]
Since \( \lim\limits_{x \to 2^-} f(x) \neq f(2) \), the function has a jump discontinuity at \( x = 2 \).
However, at \( x = 1 \), the right-hand limit is
so \( f(x) \) is right-continuous at \( x = 1 \) but not continuous at \( x = 2 \).
Thus, \( f(x) = \lfloor x \rfloor \) is not continuous on \( [1,2] \) because of the discontinuity at \( x = 2 \), even though it satisfies right-continuity at \( x = 1 \).
Finding All Points of Discontinuity
To determine all points of discontinuity of a function in an interval, it is not feasible to test the function at every point, as there are infinitely many. Instead, a systematic approach is required, analyzing the function’s structure to identify locations where discontinuities may occur.
First, we analyze where elementary functions can be discontinuous. Polynomials, exponential functions, logarithmic functions, trigonometric functions, and rational functions are all continuous on their domains, meaning any discontinuity must arise from restrictions on their definition. For example, a rational function is continuous except where its denominator becomes zero. The function
is continuous everywhere except at \( x = 0 \), where the denominator vanishes, causing an infinite discontinuity.
Discontinuities in a function do not always come from the elementary functions themselves but can also appear because of how the function is built. A piecewise function can have a jump discontinuity at a point where two different expressions meet if the left-hand and right-hand limits are not the same.
Dividing by a function can also create discontinuities. If the denominator becomes zero at some point, the function is undefined there, unless the numerator also becomes zero in a way that allows the fraction to be simplified.
To find all discontinuities in a function, we must carefully examine both the elementary functions it is made of and how they are combined.
Elementary functions and their Continuity
Let us analyze the continuity of some fundamental functions commonly used in mathematics. Understanding where these functions are continuous and where they exhibit discontinuities helps in identifying points of discontinuity in more complex functions.
1. Polynomial Functions
-
Polynomial functions are continuous everywhere in \( \mathbb{R} \). That is, if \( f(x) \) is a polynomial, then
\[ \lim\limits_{x \to a} f(x) = f(a) \quad \text{for all } a \in \mathbb{R}. \]Since polynomials are composed of sums, differences, and products of powers of \( x \), they have no points of discontinuity.
2. Exponential and Logarithmic Functions
- The exponential function \( e^x \) is also continuous for all \( x \in \mathbb{R} \).
- The natural logarithm function \( \ln x \) is continuous on its domain \( (0, \infty) \).
3. Trigonometric Functions
-
All trigonometric functions are continuous on their domains. However, some have points of discontinuity where their denominators become zero:
-
The tangent function \( \tan x \) is discontinuous at points where \( \cos x = 0 \), which occurs at
\[ x = \frac{(2n+1)\pi}{2}, \quad n \in \mathbb{Z}. \] -
The cotangent function \( \cot x \) is discontinuous at points where \( \sin x = 0 \), which occurs at
\[ x = n\pi, \quad n \in \mathbb{Z}. \] -
The secant function \( \sec x \) is discontinuous at the same points as \( \tan x \), namely
\[ x = \frac{(2n+1)\pi}{2}, \quad n \in \mathbb{Z}. \] -
The cosecant function \( \csc x \) is discontinuous at the same points as \( \cot x \), namely
\[ x = n\pi, \quad n \in \mathbb{Z}. \]
-
4. Inverse Trigonometric Functions
-
All inverse trigonometric functions are continuous on their respective domains:
- \( \sin^{-1} x \) and \( \cos^{-1} x \) are continuous on \( [-1,1] \).
- \( \tan^{-1} x \) and \( \cot^{-1} x \) are continuous on \( \mathbb{R} \).
- \( \sec^{-1} x \) and \( \csc^{-1} x \) are continuous on \( (-\infty, -1] \cup [1, \infty] \).
5. Greatest Integer and Fractional Part Functions
-
The greatest integer function (or floor function) \( f(x) = \lfloor x \rfloor \) is discontinuous at all integer points, i.e., at
\[ x = n, \quad n \in \mathbb{Z}. \]At these points, the function exhibits a jump discontinuity, where the left-hand limit is \( n-1 \) and the right-hand limit is \( n \).
-
The fractional part function \( f(x) = \{ x \} = x - \lfloor x \rfloor \) is also discontinuous at all integer points \( n \in \mathbb{Z} \) since the left-hand limit at \( x = n \) is 1 while the right-hand limit is 0.
6. Signum Function
-
The signum function, defined as
\[ \text{sgn}(x) = \begin{cases} 1, & x > 0, \\ 0, & x = 0, \\ -1, & x < 0, \end{cases} \]is discontinuous at \( x = 0 \) because the left-hand limit is \( -1 \), the right-hand limit is \( 1 \), and \( f(0) = 0 \), meaning the function exhibits a jump discontinuity at \( x = 0 \).
Discontinuity due to Division
Discontinuities can arise in a function of the form
whenever the denominator \( q(x) \) is zero. If \( p(x) \) is nonzero at those points, the function exhibits infinite discontinuities, as the function value tends to \( \infty \) or \( -\infty \).
However, in some cases where both the numerator \( p(x) \) and denominator \( q(x) \) vanish at the same point, the function may instead have a missing point discontinuity. Whether the discontinuity is removable depends on whether the limit of the function exists at that point after simplification.
For example, consider
Factoring the denominator,
shows that the function is undefined at \( x = 1 \) and \( x = 2 \). Examining the numerator,
reveals that both \( p(x) \) and \( q(x) \) vanish at \( x = 1 \), allowing simplification:
Since the simplified function has a well-defined limit at \( x = 1 \),
but \( f(x) \) is not defined at \( x = 1 \), this is a missing point discontinuity. On the other hand, at \( x = 2 \), the denominator still vanishes but the numerator does not, leading to an infinite discontinuity at \( x = 2 \).
Discontinuities in Piecewise-Defined Functions at Transition Points
A piecewise-defined function is a function that is defined by different expressions over different intervals. Discontinuities in such functions often occur at the transition points, which are the points where the function changes from one expression to another.
For a piecewise function to be continuous at a transition point \( x = a \), the left-hand limit, right-hand limit, and function value must all be equal, that is:
If this condition fails, the function is discontinuous at \( x = a \). The type of discontinuity depends on how the function behaves at that point.
Consider the piecewise function
To check continuity at \( x = 2 \), we compute the left-hand and right-hand limits:
-
Left-hand limit:
\[ \lim\limits_{x \to 2^-} f(x) = \lim\limits_{x \to 2^-} (x+1) = 2+1 = 3. \] -
Right-hand limit:
\[ \lim\limits_{x \to 2^+} f(x) = \lim\limits_{x \to 2^+} (x-1) = 2-1 = 1. \]
Since
the function has a jump discontinuity at \( x = 2 \). Even though \( f(2) = 3 \) is defined, the discontinuity cannot be removed because the left-hand and right-hand limits are not equal.
Composition of greatest integer function with other functions
The composition of the greatest integer function with other functions, written as \( \lfloor f(x) \rfloor \), is a common type of function that may introduce discontinuities. Discontinuities in such functions typically occur wherever \( f(x) \) crosses an integer value, but not necessarily at every such point. This is why we say the function may be discontinuous, rather than always being so.
For example, consider the function
Since the greatest integer function \( \lfloor x \rfloor \) is discontinuous at integer values of \( x \), the composition \( \lfloor x/2 \rfloor \) may be discontinuous at points where
This happens when
To determine whether the function is actually discontinuous at these points, we check the left-hand and right-hand limits at \( x = 2n \).
-
Left-hand limit:
\[ \lim\limits_{x \to 2n^-} \lfloor x/2 \rfloor = n - 1. \] -
Right-hand limit:
\[ \lim\limits_{x \to 2n^+} \lfloor x/2 \rfloor = n. \]
Since the left-hand and right-hand limits are not equal, \( f(x) = \lfloor x/2 \rfloor \) is indeed discontinuous at \( x = 2n \), for all \( n \in \mathbb{Z} \).
On the other hand, consider the function
A natural question is whether this function is discontinuous at \( x = 0 \). Since the greatest integer function \( \lfloor x^2 \rfloor \) may introduce discontinuities at points where \( x^2 \) is an integer, we check whether such a discontinuity occurs at \( x = 0 \).
First, compute the left-hand and right-hand limits.
-
Right-hand limit: For \( x \to 0^+ \), we have \( x^2 \to 0^+ \), meaning
\[ \lim\limits_{x \to 0^+} \lfloor x^2 \rfloor = 0. \] -
Left-hand limit: Similarly, for \( x \to 0^- \), we still have \( x^2 \to 0^+ \) (since squaring eliminates the sign), so
\[ \lim\limits_{x \to 0^-} \lfloor x^2 \rfloor = 0. \]
Since both one-sided limits are equal and also equal to \( f(0) = \lfloor 0^2 \rfloor = 0 \), the function is continuous at \( x = 0 \).
This example illustrates that while functions of the form \( \lfloor f(x) \rfloor \) may be discontinuous at points where \( f(x) \) is an integer, they are not necessarily discontinuous at every such point. In this case, \( x^2 \) smoothly approaches 0 from both sides, so no jump occurs, making the function continuous at \( x = 0 \).
Quick Test
To quickly test whether a function of the form \( \lfloor f(x) \rfloor \) is discontinuous at some point \( x = a \) where \( f(x) \) takes an integer value, we analyze how \( f(x) \) approaches and crosses the integer. The key observation is how \( f(x) \) behaves as \( x \) crosses \( a \) from left to right.
-
If \( f(x) \) crosses an integer \( n \) from below to above (i.e., \( f(x) \to n^- \) from the left and \( f(x) \to n^+ \) from the right), or from above to below (i.e., \( f(x) \to n^+ \) from the left and \( f(x) \to n^- \) from the right), then \( \lfloor f(x) \rfloor \) will have a jump discontinuity at \( x = a \).
-
If \( f(x) \) touches the integer \( n \) from below (i.e., \( f(x) \to n^- \) but does not exceed \( n \)), then \( \lfloor f(x) \rfloor \) must also be discontinuous at \( x = a \) because both the left-hand limit and the right-hand limit will be \( n-1 \), while the value of the function at \(a\) is \(n\)
-
However, if \( f(x) \) touches the integer \( n \) from above (i.e., \( f(x) \to n^+ \) but does not go below \( n \)), then \( \lfloor f(x) \rfloor \) remains continuous at \( x = a \), because in this case, both the left-hand limit and the function value remain equal to \( n \).
This explains why \( f(x) = \lfloor x/2 \rfloor \) is discontinuous at \( x = 2n \) for \( n \in \mathbb{Z} \) (as \( x/2 \) crosses an integer from below to above), but \( f(x) = \lfloor x^2 \rfloor \) remains continuous at \( x = 0 \) (as \( x^2 \) only touches 0 from above but never crosses it).
Thus, a quick test to determine whether \( \lfloor f(x) \rfloor \) has a discontinuity at \( x = a \) is to check whether \( f(x) \) crosses or touches an integer at \( x = a \) and, if so, whether it does so from below, from above, or both.
The function \( f(x) = \lfloor 2\sin x \rfloor \) exhibits discontinuities where \( 2\sin x \) crosses an integer from below to above or where it touches an integer from below. However, the function remains continuous where \( 2\sin x \) touches an integer from above.
Composition of Signum Function with any other Function
If \( f(x) \) is not a constant function, then \( \text{sgn}(f(x)) \) is always discontinuous at \( x \) whenever \( f(x) = 0 \). If \( f(x) \) crosses 0 at \( x = a \), then on one side of \( x = a \), \( f(x) \) is positive, and on the other side, it is negative. This implies that \( \text{sgn}(f(x)) \) takes the value \( +1 \) on one side and \( -1 \) on the other. Since at \( x = a \), \( f(a) = 0 \), we have \( \text{sgn}(f(a)) = 0 \). Clearly, there is a discontinuity at \( x = a \) because the left-hand limit and right-hand limit are not equal.
If \( f(x) \) is such that it is positive before it becomes zero at \( x = a \) and positive again after \( x = a \), then
Again, we get a discontinuity at \( x = a \). Thus, in any case where \( f(x) = 0 \) at some point and \( f(x) \) is not constant, there is a discontinuity in \( \text{sgn}(f(x)) \) at that point.
Now, if \( f(x) \) is constant, the behavior of \( \text{sgn}(f(x)) \) depends on whether \( f(x) \) is positive, negative, or zero:
- If \( f(x) = c \) is positive, then \( \text{sgn}(f(x)) = 1 \) for all \( x \), which is clearly continuous.
- If \( f(x) = c \) is negative, then \( \text{sgn}(f(x)) = -1 \) for all \( x \), which is also continuous.
- If \( f(x) = 0 \) for all \( x \), then \( \text{sgn}(f(x)) = 0 \) everywhere, which is again continuous.
Thus, the signum function is always discontinuous at points where \( f(x) \) changes sign, but remains continuous when \( f(x) \) is a nonzero constant or identically zero. For example,
consider the function
Since \( \sin x \) is positive for \( x \in (0, \pi) \) and negative for \( x \in (\pi, 2\pi) \), the signum function takes values:
At \( x = 0, \pi, 2\pi \), \( \sin x = 0 \), so \( \text{sgn}(\sin x) = 0 \), represented by filled circles at these points. The function exhibits jump discontinuities at \( x = \pi \) and \( x = 2\pi \), as shown by the hollow circles at the left endpoints of each step. The underlying dashed curve represents \( \sin x \), helping visualize where \( \text{sgn}(\sin x) \) transitions.
Algebra of Continuity
When functions are combined using basic operations such as addition, subtraction, multiplication, division, or composition, the continuity or discontinuity of the resulting function depends on the continuity of the original functions. Understanding these properties allows for quick conclusions about the continuity or discontinuity of functions, helping to efficiently identify all points of discontinuity while avoiding unnecessary computations.
I: Continous with Continuous
Let \( f(x) \) and \( g(x) \) be functions that are continuous at \( x = a \). Then, the following functions are also continuous at \( x = a \):
- \( f(x) + g(x) \),
- \( f(x) - g(x) \),
- \( f(x) g(x) \),
- \( \frac{f(x)}{g(x)} \), provided that \( g(a) \neq 0 \).
Each of these results follows from the fundamental limit properties and is straightforward to prove, so we proceed without proof. These properties form the basis of algebraic continuity rules, allowing for quick determination of whether a function remains continuous after basic operations.
II. Continuous and Discontinuous
Sum and Difference
If \( f(x) \) is continuous at \( x = a \) and \( g(x) \) is discontinuous at \( x = a \), then the sum \( f(x) + g(x) \) inherits the discontinuity from \( g(x) \). Since \( f(x) \) behaves smoothly at \( x = a \), any discontinuity in \( g(x) \) will be present in their sum, making \( f + g \) discontinuous at \( x = a \).
For example, consider the function
The function \( x \) is continuous everywhere, while \( \lfloor x \rfloor \) has jump discontinuities at every integer point. To analyze the continuity of \( f(x) \), consider the behavior at an integer \( x = n \):
For \( x \to n^- \),
For \( x \to n^+ \),
Since \( \lim\limits_{x \to n^-} f(x) \neq \lim\limits_{x \to n^+} f(x) \), the function \( f(x) = x + \lfloor x \rfloor \) has a jump discontinuity at every integer \( x = n \).
Product
If \( f(x) \) is continuous at \( x = a \) and \( g(x) \) is discontinuous at \( x = a \), then the product \( f(x) g(x) \) may be either continuous or discontinuous at \( x = a \). The behavior depends on how \( f(x) \) interacts with the discontinuity of \( g(x) \). To illustrate this, we examine two cases.
Consider the functions
The function \( f(x) = x \) is continuous everywhere, while \( g(x) = \lfloor x \rfloor \) is discontinuous at every integer.
At \( x = 1 \), the function \( f(x) \) is continuous, but \( g(x) \) has a jump discontinuity. Checking the limits of their product:
For \( x \to 1^- \),
For \( x \to 1^+ \),
Since \( \lim\limits_{x \to 1^-} f(x) g(x) \neq \lim\limits_{x \to 1^+} f(x) g(x) \), the function \( f(x) g(x) \) is discontinuous at \( x = 1 \).
Now, consider the same functions at \( x = 0 \). The function \( g(x) = \lfloor x \rfloor \) is discontinuous at \( x = 0 \), but computing the limits of \( f(x) g(x) \):
For \( x \to 0^- \),
For \( x \to 0^+ \),
Since both one-sided limits agree and are equal to \( f(0) g(0) = 0 \), the function \( f(x) g(x) \) is continuous at \( x = 0 \) despite \( g(x) \) being discontinuous there.
Thus, the product of a continuous function and a discontinuous function may or may not be discontinuous, depending on how the continuous function behaves at the point of discontinuity of the other function.
The conclusion from the previous discussion is that we cannot make a general statement about the continuity of \( f(x) g(x) \) at \( x = a \) when \( f(x) \) is continuous at \( x = a \) and \( g(x) \) is discontinuous at \( x = a \). Each case must be checked individually using the basic method of evaluating left-hand and right-hand limits.
However, there is one particular case where we can make a definite conclusion:
If \( f(x) \) is continuous at \( x = a \) and \( f(a) = 0 \), and \( g(x) \) has an isolated point discontinuity or a jump discontinuity at \( x = a \), then \( f(x) g(x) \) is always continuous at \( x = a \).
To see why, let \( g(x) \) have a jump discontinuity at \( x = a \), meaning that the left-hand and right-hand limits of \( g(x) \) exist but are not equal:
Since \( f(x) \) is continuous at \( x = a \), we have
Given that \( f(a) = 0 \), we compute the left and right limits of \( f(x) g(x) \):
Since both left-hand and right-hand limits exist and are equal to \( 0 \), we conclude that
Thus, \( f(x) g(x) \) is continuous at \( x = a \).
For example, consider
At \( x = 1 \), the function \( f(x) \) is continuous and \( f(1) = 0 \), while \( g(x) \) has a jump discontinuity at \( x = 1 \). Computing the limits:
For \( x \to 1^- \),
For \( x \to 1^+ \),
Since both limits are equal to \( 0 \), \( f(x) g(x) \) is continuous at \( x = 1 \), demonstrating the special case.
Division
If \( f(x) \) is continuous at \( x = a \) and \( g(x) \) is discontinuous at \( x = a \), then the quotient \( f(x)/g(x) \) may or may not be continuous at \( x = a \). Unlike sum and difference, where discontinuity is guaranteed, or the product, where certain cases allow direct conclusions, the quotient function requires careful case-by-case analysis. No general conclusion can be drawn without explicitly checking the limits.
Discontinuous and Discontinuous
If both \( f(x) \) and \( g(x) \) are discontinuous at \( x = a \), then no general conclusion can be drawn about the continuity of their sum \( f + g \), difference \( f - g \), product \( fg \), or quotient \( f/g \) at \( x = a \). Each case must be analyzed separately, as different types of discontinuities may interact in different ways.
Summary Table for all cases:
Case | \( f \pm g \) | \( f \cdot g \) | \( \frac{f}{g} \) |
---|---|---|---|
\( f \) continuous, \( g \) continuous | Continuous | Continuous | Continuous (if \( g \neq 0 \)) |
\( f \) continuous, \( g \) discontinuous | Discontinuous | May or may not be continuous | May or may not be continuous |
\( f \) discontinuous, \( g \) discontinuous | May or may not be continuous | May or may not be continuous | May or may not be continuous |
Example
Consider the function
Both \( \lfloor x/2 \rfloor \) and \( \lfloor x/3 \rfloor \) are discontinuous at \( x = 6 \), as the floor function is discontinuous whenever its argument is an integer. We examine whether their sum is also discontinuous at \( x = 6 \).
First, compute the right-hand limit:
For \( x \to 6^+ \), since \( x > 6 \), we have
Similarly,
Thus,
Now, compute the left-hand limit:
For \( x \to 6^- \), since \( x < 6 \), we have
Similarly,
Thus,
To determine \( f(6) \), we evaluate the function directly:
Since
we obtain
Since
it follows that \( f(x) \) is continuous at \( x = 6 \).
This example demonstrates that even when both \( f(x) \) and \( g(x) \) are discontinuous at a point, their sum may still be continuous if their discontinuities cancel out.
In general, consider the function
The function \( \lfloor x/m \rfloor \) is discontinuous at points where \( x/m \) is an integer, which occurs at
Similarly, the function \( \lfloor x/n \rfloor \) is discontinuous at points where \( x/n \) is an integer, which occurs at
Since \( f(x) \) is the difference of these two functions, it is generally discontinuous at all such points \( x = km \) and \( x = jn \). However, there are specific values where the discontinuities cancel out.
At \( x = i \operatorname{lcm}(m,n) \), where \( i \in \mathbb{Z} \), both floor functions jump simultaneously by the same integer value, ensuring that their difference remains constant across the jump. This results in continuity at all integer multiples of \( \operatorname{lcm}(m,n) \).