Continuous Functions
Site: | Saylor Academy |
Course: | MA005: Calculus I |
Book: | Continuous Functions |
Printed by: | Guest user |
Date: | Saturday, April 27, 2024, 5:54 PM |
Description
Read this section for an introduction to what we mean when we say a function is continuous. Work through practice problems 1 and 2.
Table of contents
- Introduction
- Definition and Meaning of Continuous
- Graphic Meaning of Continuity
- Why Do We Care Whether a Function Is Continuous?
- Combinations of Continuous Functions
- Which Functions Are Continuous?
- Intermediate Value Property of Continuous Functions
- Bisection Algorithm for Approximating Roots
- Practice Problem Answers
Introduction
We saw a few "nice" functions whose limits as simply involved substituting into the function: . Functions whose limits have this substitution
property are called continuous functions, and they have a number of other useful properties and are very common in applications. We will examine what it means graphically for a function to be continuous or not continuous. Some properties
of continuous functions will be given, and we will look at a few applications of these properties including a way to solve horrible equations such as .
Source: Dave Hoffman, https://s3.amazonaws.com/saylordotorg-resources/wwwresources/site/wp-content/uploads/2012/12/MA005-2.4-Continuous-Functions.pdf
This work is licensed under a Creative Commons Attribution 3.0 License.
Definition and Meaning of Continuous
Definition of Continuity at a Point
The graph in Fig. 1 illustrates some of the different ways a function can behave at and near a point, and Table 1 contains some numerical information about the function and its behavior. the information in the table, we can conclude that
is continuous at 1 since .
does not exist |
||
undefined |
We can also conclude from the information in the table that is not continuous at 2 or 3 or 4 , because , and .
Graphic Meaning of Continuity
When is close to 1, the values of are close to the value and the graph of in Fig. 1 does not have a hole or break at . The graph of is connected at and can be drawn without lifting your pencil. At and the graph of has holes, and at the graph has a break. The function is also continuous at (why?), and at every point shown except at 2, 3, and 4.
A function is not continuous at a point if its graph has a hole or break at that point.
Sometimes the definition of continuous (the substitution condition for limits) is easier to use if we break it into several smaller pieces and then check whether or not our function satisfies each piece.
is continuous at if and only if if and only if
(ii) the limit of , as , exists (so the left limit and right limits exist and are equal)
and (iii) the value of at equals the value of the limit as : .
If satisfies conditions (i), (ii) and (iii), then is continuous at . If does not satisfy one or more of the three conditionsat , then is not continuous at .
For the function in Fig. 1, at , all 3 conditions are satisfied, and is continuous at At conditions (i) and (ii) are satisfied but not (iii), so is not continuous at At , condition (i) is satisfied but (ii) is violated, so is not continuous at At , condition (i) is violated, so is not continuous at 4.
A function is continuous on an interval if it is continuous at every point in the interval. A function is continuous from the left at if , and is continuous from the right if .
Solution: We could answer these questions by examining the graph of , but lets try them without the graph. At and the left and right limits are equal, and , so is continuous at
At , but the left and right limits are not equal,
and , so fails condition (ii) and is not continuous at 2. is continuous from the left at , but not from the right.
At which is undefined so is not continuous at because it fails condition (i).
Example 2: Where is continuous?
Solution: At every point. By the Substitution Theorem for Polynomials, every polynomial is continuous everywhere.
Example 3: Where are and continuous?
Solution: is a rational function so by the Substitution Theorem for Polynomials and Rational Functions it is continuous everywhere except where its denominator is is continuous everywhere except The graph of g (Fig. 2) is connected everywhere except at 3 where it has a vertical asymptote. is also continuous everywhere except where its denominator is is continuous everywhere except 3 and The graph of (Fig.3) is connected everywhere except at 3 where it has a vertical asymptote and at 1 where it has a hole: is undefined.
Example 4: Where is continuous?
Solution: The graph of seems to be connected except at each integer, and at each integer there is a "jump" (Fig.4).
If is an integer, then , and , so is undefined, and is not continuous.
If is not an integer, then the left and right limits of , as , both equal so
and is continuous. is continuous except at the integers.
In fact, is continuous from the right everywhere and is continuous from the left everywhere except at the integers.
Why Do We Care Whether a Function Is Continuous?
There are several reasons for us to examine continuous functions and their properties:
- Most of the applications in engineering, the sciences, and business are continuous and are modeled by continuous functions or by pieces of continuous functions.
- Continuous functions have a number of useful properties which are not necessarily true if the function is not continuous. If a result is true of all continuous functions and we have a continuous function, then the result is true for our function. This can save us from having to show, one by one, that each result is true for each particular function we use. Some of these properties are given in the rest of this section.
- Differential calculus has been called the study of continuous change, and many of the results of calculus are guaranteed to be true only for continuous functions. If you look ahead into Chapters 2 and 3, you will see that many of the theorems have the form "If is continuous and (some additional hypothesis), then (some conclusion)".
Combinations of Continuous Functions
The continuity of a function is defined in terms of limits, and all of these results about simple combinations of continuous functions follow from the results about simple combinations of limits in the Main Limit Theorem. Our hypothesis is that and are both continuous at a, so we can assume that and and then use the appropriate part of the Main Limit Theorem. For example, , so is continuous at .
Practice 2: Prove: If and are continuous at , then and are continuous at . (\ a constant.)
Composition of Continuous Functions
This result will not be proved here, but the proof just formalizes the following line of reasoning:
The hypothesis that " is continuous at " means that if is close to then will be close to . Similarly, " is continuous at " means that if is close to then will be close to . Finally, we can conclude that if is close to then is close to so is close to , and therefore is continuous at .
The next theorem presents an alternate version of the limit condition for continuity, and we will use this alternate version occasionally in the future.
Proof: Let's define a new variable by so
(Fig. 5). Then if and only if , so , and if and only if .
Which Functions Are Continuous?
Fortunately, the situations which we encounter most often in applications and the functions which model those situations are either continuous everywhere or continuous everywhere except at a few places, so any result which is true of all continuous functions will be true of most of the functions we commonly use.
Theorem: The following functions are continuous everywhere, at every value of :
(a) polynomials, (b) and and (c) .
Proof: (a) This follows from the
Substitution Theorem for Polynomials and the definition of continuity.
(b) The graph of (Fig. 6) clearly indicates that does not have any holes or breaks so is continuous everywhere. Or we could justify that result analytically:
(recall from section that and )
so is continuous at every point. The justification of is similar.
(c) . When , then and its graph (Fig. 7) is a straight line and is continuous since is a polynomial function. When , then and it is also continuous. The only questionable point is the "corner" on the graph when , but the graph there is only bent, not broken:
A continuous function can have corners but not holes or breaks (jumps).
Several results about limits of functions can be written in terms of continuity of those functions. Even
functions which fail to be continuous at some points are often continuous most places.
Theorem: (a) A rational function is continuous except where the denominator is .
(b) Tangent, cotangent, secant and cosecant are continuous except where they are undefined.
(c) The greatest integer function is continuous except at each integer.
Intermediate Value Property of Continuous Functions
Since the graph of a continuous function is connected and does not have any holes or breaks in it, the values of the function can not "skip" or "jump over" a horizontal line (Fig. 8). If one value of the continuous function is below the line and another value of the function is above the line, then somewhere the graph will cross the line. The next theorem makes this statement more precise. The result seems obvious, but its proof is technically difficult and is not given here.
Intermediate Value Theorem for Continuous Functions
If the graph of connects the points and and is any number between and , then the graph of must cross the horizontal line somewhere between and (Fig.9). Since is continuous, its graph cannot "hop" over the line .
Most people take this theorem for granted in some common situations:
- If a child's temperature rose from to , then there was an instant when the child's temperature was exactly . In fact, every temperature between and occurred at some instant.
- If you dove to pick up a shell 25 feet below the surface of a lagoon, then at some instant in time you were 17 feet below the surface. (Actually, you want to be at 17 feet twice. Why?)
- If you started driving from a stop (velocity ) and accelerated to a velocity of 30 kilometers per hour, then there was an instant when your velocity was exactly 10 kilometers per hour.
But we cannot apply the Intermediate Value Theorem if the function is not continuous:
- In 1987 it cost to mail a letter first class inside the United States, and in 1990 it cost to mail the same letter, but we cannot conclude that there was a time when it cost or to send the letter. Postal rates did not increase in a continuous fashion. They jumped directly from to .
- Prices, taxes, and rates of pay change in jumps, discrete steps, without taking on the intermediate values.
The Intermediate Value Property can help us finds roots of functions and solve equations. If is continuous on and and have opposite signs (one is positive and one is negative), then is an intermediate value between and so will have a root between and .
Bisection Algorithm for Approximating Roots
The Intermediate Value Theorem is an example of an "existence theorem" because it concludes that something exists: a number so that . Many existence theorems do not tell us how to find the number or object which exists and are of no use in actually finding those numbers or objects. However, the Intermediate Value is the basis for a method commonly used to approximate the roots of continuous functions, the Bisection Algorithm.
Bisection Algorithm for Finding a Root of f(x)
(i) Find two values of , say a and , so that and have opposite signs (then has a root between a and , a root in the interval ).
(ii) Calculate the midpoint (bisection point) of the interval , and evaluate .
(iii) (a) If , then is a root of , and we are done.
(b) If , then has the sign opposite one of or :
if and have opposite signs, then has a root in so put
if and have opposite signs, then has a root in so put
(iv) Repeat steps (ii) and (iii) until a root is found exactly or is approximated closely enough.
The length of the interval known to contain a root is cut in half each time through steps (ii) and (iii) so the Bisection Algorithm quickly "squeezes" in on a root (Fig. 10).
The steps of the Bisection Algorithm can be done "by hand", but it is tedious to do very many of them that way. Computers are very good with this type of tedious repetition, and the algorithm is simple to program.
Solution: and so we cannot conclude that has a root between 0 and 1. and have opposite signs, so by the Intermediate Value Property of continuous functions (this function is a polynomial so it is continuous everywhere) we know that there is a number between 1 and 2 such that (Fig. 11). The midpoint of the interval is , and so changes sign between 1 and and we can be sure that there is a root between 1 and . If we repeat the operation for the interval , the midpoint is , and so changes sign between and and we know has a root between and .
Repeating this procedure a few more times, we get that
a |
b |
root between |
|||||
1 |
2 |
|
1 |
−5 |
|
1 |
2 |
1 |
2 |
1.5 |
1 |
−5 |
–0.875 |
1 |
1.5 |
1 |
1.5 |
1.25 |
1 |
−0.875 |
0.2969 |
1.25 |
1.5 |
1.25 |
1.5 |
1.375 |
0.2969 |
−0.875 |
–0.2246 |
1.25 |
1.375 |
1.25 |
1.375 |
1.3125 |
0.2969 |
−0.2246 |
0.0515 |
1.3125 |
1.375 |
1.3125 |
1.375 |
1.34375 |
|
If we continue the table, the interval containing the root will squeeze around the value .
The Bisection Algorithm has one major drawback - there are some roots it does not find. The algorithm requires that the function be both positive and negative near the root so that the graph actually crosses the -axis. The function has the root but is never negative (Fig. 12).
We cannot find two starting points a and so that and have opposite signs, and we cannot use the Bisection Algorithm to find the root . In Chapter 2 we will see another method, Newton's Method, which does find roots of this type.
The Bisection Algorithm requires that we supply two starting points and , two -values at which the function has opposite signs. These values can often be found with a little "trial and error", or we can examine the graph of the function and use it to help pick the two values.
Finally, the Bisection Algorithm can also be used to solve equations because the solution of any equation can always be transformed into an equivalent problem of finding roots by moving everything to one side of the equal sign. For example, the problem of solving the equation can be transformed into the equivalent problem of solving or of finding the roots of which we did in the previous example.
Example 8: Find all of the solutions of . ( is in radians).
Solution: We can convert this problem of solving an equation to the problem of finding the roots of . The function is continuous everywhere except at , and the graph of in Fig. 13 can help us find two starting values for the Bisection Algorithm. The graph shows that is negative and is positive, and we know is continuous on the interval . Using the algorithm with the starting interval , we get that the root is contained in the shrinking intervals:
so the root is approximately .
We might also notice that is positive and is negative. Why is it wrong to conclude that has another root between and
Practice Problem Answers
Practice 1: (Fig. 23) is continuous everywhere except at where this function is not defined.
If , then so is continuous at . If , then so is continuous at .
is not defined., and so does not exist.
Practice 2: (a) To prove that is continuous at , we need to prove that satisfies the definition of continuity at : .
Using results about limits, we know
(since is assumed to be continuous at ) so is continuous at .(b) To prove that is continuous at , we need to prove that satisfies the definition of continuity at :
Again using information about limits,