As we have studied limits, we have gained the intuition that limits measure “where a function is heading.” That is, if , then as is close to , is close to . We have seen, though, that this is not necessarily a good indicator of what actually is. This can be problematic; functions can tend to one value but attain another. This section focuses on functions that do not exhibit such behavior.
is continuous on the open interval if is continuous at for all values of in . If is continuous on , we say is continuous everywhere (or everywhere continuous).
The graph of a piecewise-defined function is shown, for from to . For the graph looks like a parabola opening downward. This part of the graph approaches, but does not reach, the point . There is a hollow dot at , indicating that is undefined. For the graph is a horizontal line segment, with . For the graph again has the appearance of a downward-facing parabola that begins at and ends at .
The floor function, , returns the largest integer smaller than, or equal to, the input . (For example, .) The graph of in Figure 1.5.6 demonstrates why this is often called a “step function.”
Shows the graph of the greatest integer function, for from to . There are five horizontal line segments in a “staircase” configuration, ascending from left to right. Each segment is one unit in length and includes its left endpoint, but the right endpoint of each segment is not included. The first segment is from to , the second from to , the third from to , the fourth from to , and the fifth from to .
Figure1.5.6.A graph of the step function in Example 1.5.5
Solution.
We examine the three criteria for continuity.
The limits do not exist at the jumps from one “step” to the next, which occur at all integer values of . Therefore the limits exist for all except when is an integer.
The function is defined for all values of .
The limit for all values of where the limit exist, since each step consists of just a line.
We conclude that is continuous everywhere except at integer values of . So the intervals on which is continuous are
.
We could also say that is continuous on all intervals of the form where is an integer.
Our definition of continuity on an interval specifies the interval is an open interval. We can extend the definition of continuity to closed intervals of the form by considering the appropriate one-sided limits at the endpoints.
If the domain of includes values less than , we say that Item 2 in Definition 1.5.7 indicates that is continuous from the right at . But if is undefined for , we can say that is continuous at without ambiguity.
For example, it makes sense to say that the function is continuous at and , while the floor function in Example 1.5.5 is continuous from the left at and , but is not continuous at these points.
Using this new definition, we can adjust our answer in Example 1.5.3 by stating that is continuous on and , as mentioned in that example. We can also revisit Example 1.5.5 and state that the floor function is continuous on the following half-open intervals
This can tempt us to conclude that is continuous everywhere; after all, if is continuous on and , isn’t also continuous on ? Of course, the answer is no, and the graph of the floor function immediately confirms this.
Continuous functions are important as they behave in a predictable fashion: functions attain the value they approach. Because continuity is so important, most of the functions you have likely seen in the past are continuous on their domains. This is demonstrated in the following example where we examine the intervals of continuity of a variety of common functions.
The domain of is . As it is a rational function, we apply Theorem 1.3.4 to recognize that is continuous on all of its domain.
The domain of is all real numbers, or . Applying Theorem 1.3.7 shows that is continuous everywhere.
The domain of is . Applying Theorem 1.3.7 shows that is continuous on its domain of .
The domain of is . Applying Theorems 1.3.1 and 1.3.7 shows that is continuous on all of its domain, .
The domain of is . We can define the absolute value function as
.
Each “piece” of this piecewise defined function is continuous on all of its domain, giving that is continuous on and . We cannot assume this implies that is continuous on ; we need to check that , as is the point where transitions from one “piece” of its definition to the other. It is easy to verify that this is indeed true, hence we conclude that is continuous everywhere.
Continuity is inherently tied to the properties of limits. Because of this, the properties of limits found in Theorems 1.3.1 and 1.3.4 apply to continuity as well. Further, now knowing the definition of continuity we can re-read Theorem 1.3.7 as giving a list of functions that are continuous on their domains. The following theorem states how continuous functions can be combined to form other continuous functions, followed by a theorem which formally lists functions that we know are continuous on their domains.
Shows the graph of on its domain . The graph looks somewhat like the top of a slice of bread, rising from the point to it highest point near , and then falling to the point .
Figure1.5.15.A graph of
The square root terms are continuous on the intervals and , respectively. As is continuous only where each term is continuous, is continuous on , the intersection of these two intervals. A graph of is given in Figure 1.5.15.
The functions and are each continuous everywhere, hence their product is, too.
Theorem 1.5.12 states that is continuous on its domain. Its domain includes all real numbers except odd multiples of . Thus the intervals on which is continuous are
.
Here, is the composition , where and . The domain of is , while the range of is . If we restrict the domain to , then the output from is restricted to , on which is defined. Thus the domain of is .
We now know what it means for a function to be continuous, so of course we can easily say what it means for a function to be discontinuous; namely, not continuous. However, to better understand continuity, it is worth our time to discuss the different ways in which a function can fail to be discontinuous. By definition, a function is continuous at a point in its domain if . If this equality fails to hold, then is not continuous. We note, however, that there are a number of different things that can go wrong with this equality.
exists, but , or is undefined. Such a discontinuity is called a removable discontinuity .
A removable discontinuity can be pictured as a “hole” in the graph of . The term “removable” refers to the fact that by simply redefining to equal (that is, changing the value of at a single point), we can create a new function that is continuous at , and agrees with at all .
and exist, but . In this case the left and right hand limits both exist, but since they are not equal, the limit of as does not exist. Such a discontinuity is called a jump discontinuity.
The phrase “jump discontinuity” is meant to represent the fact that visually, the graph of “jumps” from one value to another as we cross the value .
The function is unbounded near . This means that the value of becomes arbitrarily large (or large and negative) as approaches . Such a discontinuity is called an infinite discontinuity.
Infinite discontinuities are most easily understood in terms of infinite limits, which are discussed in Section 1.6.
A portion of the graph of a function is shown, for from to . The graph has the shape of a parabola opening downward, but at there is a hole in the graph, and instead the point (which is not on the graph) is plotted. The graph of this function illustrates a removable discontinuity because exists, but does not equal .
(a)The graph of a function with a removable discontinuity at
The graph of a function is shown for from to . As approaches from the left, the graph of approaches a point that is not part of the graph, as indicated by a hollow dot. As approaches from the right, the graph of approaches a point that is part of the graph, as indicated by a solid dot. The point marked by the solid dot lies below the point marked by the hollow dot, illustrating that the left and right hand limits are different as .
On the interval the graph is curved downward and on the interval the graph is a straight line with a positive slope.
(b)The graph of a function with a jump discontinuity at
The graph of a function is shown for from to . There is a vertical dotted line at illustrating a vertical asymptote. As approaches from either side, the graph of extends upward along the asymptote, indicating that the value of is increasing without bound.
(c)The graph of a function with an infinite discontinuity at
Figure1.5.17.Illustrating three common types of discontinuity
A common way of thinking of a continuous function is that “its graph can be sketched without lifting your pencil.” That is, its graph forms a “continuous” curve, without holes, breaks or jumps. This pseudo-definition glosses over some of the finer points of continuity. There are some very strange continuous functions that one would be hard pressed to actually sketch by hand.
However, this intuitive notion of continuity does help us understand another important concept as follows. Suppose is defined on , and and . If is continuous on (i.e., its graph can be sketched as a continuous curve from to ) then we know intuitively that somewhere on the interval must be equal to , and , and , etc. In short, takes on all intermediate values between and . It may take on more values; may actually equal at some time, for instance, but we are guaranteed all values between and .
The image shows the graph of three functions defined on the interval . One function is plotted in blue, using a solid line style. Two other functions are plotted in red, with a dash-dot line style. All three functions are continuous, and satisfy , and .
There are other lines marking certain values on the graphs. A horizontal line at indicates that all graphs start at the point . Another horizontal line at indicates that all graphs end at the point . A third horizontal line indicates the value , which is a value between and . There are also three shorter vertical lines, marking an value on each of the three graphs where .
Figure1.5.18.Illustration of the Intermediate Value Theorem: the output is in between and , and therefore any continuous function on with and will achieve the output somewhere in
While this notion seems intuitive, it is not trivial to prove and its importance is profound. Therefore the concept is stated in the form of a theorem.
One important application of the Intermediate Value Theorem is root finding. Given a function , we are often interested in finding values of where . These roots may be very difficult to find exactly. Good approximations can be found through successive applications of this theorem. Suppose through direct computation we find that and , where . The Intermediate Value Theorem states that there is at least one in such that . The theorem does not give us any clue as to where to find such a value in the interval , just that at least one such value exists.
There is a technique that produces a good approximation of . Let be the midpoint of the interval , with and and consider . There are three possibilities:
: We got lucky and stumbled on the actual value. We stop as we found a root.
: Then we know there is a root of on the interval — we have halved the size of our interval, hence are closer to a good approximation of the root.
: Then we know there is a root of on the interval — again,we have halved the size of our interval, hence are closer to a good approximation of the root.
Successively applying this technique is called the Bisection Method of root finding. We continue until the interval is sufficiently small. We demonstrate this in the following example.
Consider the graph of , shown in Figure 1.5.22. It is clear that the graph crosses the -axis somewhere near . To start the Bisection Method, pick an interval that contains . We choose . Note that all we care about are signs of , not their actual value, so this is all we display.
Graph of the function on . The graph has an upward curve and intersects the axis around . There are two vertical guide lines, one at , the other at . The guide lines mark the interval in which the intercept occurs.
Figure1.5.22.Graphing a root of
Iteration 1:
,, and . So replace with and repeat.
Iteration 2:
,, and at the midpoint, , we have . So replace with and repeat. Note that we don’t need to continue to check the endpoints, just the midpoint. Thus we put the rest of the iterations in Table 1.5.23.
Table1.5.23.Iterations of the Bisection Method of Root Finding
Iteration #
Interval
Midpoint Sign
Notice that in the 12th iteration we have the endpoints of the interval each starting with . Thus we have narrowed the zero down to an accuracy of the first three places after the decimal. Using a computer, we have
.
Either endpoint of the interval gives a good approximation of where is . The Theorem 1.5.19 states that the actual zero is still within this interval. While we do not know its exact value, we know it starts with .
This type of exercise is rarely done by hand. Rather, it is simple to program a computer to run such an algorithm and stop when the endpoints differ by a preset small amount. One of the authors did write such a program and found the zero of to be , accurate to places after the decimal. While it took a few minutes to write the program, it took less than a thousandth of a second for the program to run the necessary iterations. In less than hundredths of a second, the zero was calculated to decimal places (with less than iterations).
It is a simple matter to extend the Bisection Method to solve problems similar to “Find , where .” For instance, we can find , where . It actually works very well to define a new function where . Then use the Bisection Method to solve .
In Section 4.1 another equation solving method will be introduced, called Newton’s Method. In many cases, Newton’s Method is much faster. It relies on more advanced mathematics, though, so we will wait before introducing it.
This section formally defined what it means to be a continuous function. “Most” functions that we deal with are continuous, so often it feels odd to have to formally define this concept. Regardless, it is important, and forms the basis of the next chapter.