Difference between revisions of "Continuity"
(Created page and added 2 links) |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | ==Defining Continuity== | ||
+ | We are now ready to define the concept of a function being '''continuous'''. The idea is that we want to say that a function is continuous if you can draw its graph without taking your pencil off the page. But sometimes this will be true for some parts of a graph but not for others. Therefore, we want to start by defining what it means for a function to be continuous at ''one point''. The definition is simple, now that we have the concept of limits: | ||
+ | |||
+ | ===Definition: Continuity at a Point=== | ||
+ | : If <math>f(x)</math> is defined on an open interval containing <math>c</math> , then <math>f(x)</math> is said to be '''continuous at <math>c</math>''' if and only if | ||
+ | <math>\lim_{x\to c}f(x)=f(c)</math>. | ||
+ | |||
+ | Note that for <math>f</math> to be continuous at <math>c</math>, the definition in effect requires three conditions: | ||
+ | #that <math>f</math> is defined at <math>c</math> , so <math>f(c)</math> exists, | ||
+ | #the limit as <math>x</math> approaches <math>c</math> exists, and | ||
+ | #the limit and <math>f(c)</math> are equal. | ||
+ | |||
+ | If any of these do not hold then <math>f</math> is not continuous at <math>c</math> . | ||
+ | |||
+ | The idea of the definition is that the point of the graph corresponding to <math>c</math> will be close to the points of the graph corresponding to nearby <math>x</math>-values. Now we can define what it means for a function to be continuous in general, not just at one point. | ||
+ | |||
+ | ===Definition: Continuity on an Open Interval=== | ||
+ | : A function is said to be '''continuous on''' <math>(a,b)</math> if it is continuous at every point of the interval <math>(a,b)</math>. | ||
+ | |||
+ | We often use the phrase "the function is continuous" to mean that the function is continuous at every real number. This would be the same as saying the function was continuous on <math>(-\infty,\infty)</math>, but it is a bit more convenient to simply say "continuous". | ||
+ | |||
+ | Note that, by what we already know, the limit of a rational, exponential, trigonometric or logarithmic function at a point is just its value at that point, so long as it's defined there. So, all such functions are continuous wherever they're defined. (Of course, they can't be continuous where they're ''not'' defined!) | ||
+ | |||
+ | ==Discontinuities== | ||
+ | A '''discontinuity''' is a point where a function is not continuous. There are lots of possible ways this could happen, of course. Here we'll just discuss two simple ways. | ||
+ | |||
+ | ===Removable discontinuities=== | ||
+ | The function <math>f(x)=\frac{x^2-9}{x-3}</math> is not continuous at <math>x=3</math> . It is discontinuous at that point because the fraction then becomes <math>\frac00</math> , which is undefined. Therefore the function fails the first of our three conditions for continuity at the point 3; 3 is just not in its domain. | ||
+ | |||
+ | However, we say that this discontinuity is '''removable'''. This is because, if we modify the function at that point, we can eliminate the discontinuity and make the function continuous. To see how to make the function <math>f(x)</math> continuous, we have to simplify <math>f(x)</math> , getting <math>f(x)=\frac{x^2-9}{x-3}=\frac{(x+3)(x-3)}{(x-3)}=\frac{x+3}{1}\cdot\frac{x-3}{x-3}</math> . We can define a new function <math>g(x)</math> where <math>g(x)=x+3</math> . Note that the function <math>g(x)</math> is not the same as the original function <math>f(x)</math> , because <math>g(x)</math> is defined at <math>x=3</math> , while <math>f(x)</math> is not. Thus, <math>g(x)</math> is continuous at <math>x=3</math> , since <math>\lim_{x\to3}(x+3)=6=g(3)</math> . However, whenever <math>x\ne3</math> , <math>f(x)=g(x)</math> ; all we did to <math>f</math> to get <math>g</math> was to make it defined at <math>x=3</math> . | ||
+ | |||
+ | In fact, this kind of simplification is often possible with a discontinuity in a rational function. We can divide the numerator and the denominator by a common factor (in our example <math>x-3</math>) to get a function which is the same except where that common factor was 0 (in our example at <math>x=3</math>). This new function will be identical to the old except for being defined at new points where previously we had division by 0. | ||
+ | |||
+ | However, this is not possible in every case. For example, the function <math>f(x)=\frac{x-3}{x^2-6x+9}</math> has a common factor of <math>x-3</math> in both the numerator and denominator, but when you simplify you are left with <math>g(x)=\frac{1}{x-3}</math> , which is still not defined at <math>x=3</math> . In this case the domain of <math>f(x)</math> and <math>g(x)</math> are the same, and they are equal everywhere they are defined, so they are in fact the same function. The reason that <math>g(x)</math> differed from <math>f(x)</math> in the first example was because we could take it to have a larger domain and not simply that the formulas defining <math>f(x)</math> and <math>g(x)</math> were different. | ||
+ | |||
+ | ===Jump discontinuities=== | ||
+ | [[Image:Step function, 1 if x less than 0, -1 if x less than or equal to 0.svg|300px|Illustration of a jump discontinuity]] | ||
+ | |||
+ | Not all discontinuities can be removed from a function. Consider this function: | ||
+ | :<math>k(x)=\begin{cases}1&\text{if }x>0\\-1&\text{if }x\le0\end{cases}</math> | ||
+ | Since <math>\lim_{x\to0}k(x)</math> does not exist, there is no way to redefine <math>k</math> at one point so that it will be continuous at 0. These sorts of discontinuities are called ''nonremovable'' discontinuities. | ||
+ | |||
+ | Note, however, that both one-sided limits exist; <math>\lim_{x\to0^-}k(x)=-1</math> and <math>\lim_{x\to0^+}k(x)=1</math> . The problem is that they are not equal, so the graph "jumps" from one side of 0 to the other. In such a case, we say the function has a ''jump'' discontinuity. (Note that a jump discontinuity is a kind of nonremovable discontinuity.) | ||
+ | |||
+ | ==One-Sided Continuity== | ||
+ | Just as a function can have a one-sided limit, a function can be continuous from a particular side. For a function to be continuous at a point from a given side, we need the following three conditions: | ||
+ | #the function is defined at the point. | ||
+ | #the function has a limit from that side at that point. | ||
+ | #the one-sided limit equals the value of the function at the point. | ||
+ | A function will be continuous at a point if and only if it is continuous from both sides at that point. Now we can define what it means for a function to be continuous on a closed interval. | ||
+ | |||
+ | ==Continuity on a Closed Interval== | ||
+ | A function is said to be '''continuous on''' <math>[a,b]</math> if and only if | ||
+ | #it is continuous on <math>(a,b)</math> . | ||
+ | #it is continuous from the right at <math>a</math> . | ||
+ | #it is continuous from the left at <math>b</math> . | ||
+ | |||
+ | Notice that, if a function is continuous, then it is continuous on every closed interval contained in its domain. | ||
+ | |||
+ | ==Intermediate Value Theorem== | ||
+ | A useful theorem regarding continuous functions is the following: | ||
+ | |||
+ | : If a function <math>f</math> is continuous on a closed interval <math>[a,b]</math> , then for every value <math>y</math> between <math>f(a)</math> and <math>f(b)</math> there is a value <math>c\in(a,b)</math> such that <math>f(c)=y</math>. | ||
+ | |||
+ | ===Application: bisection method=== | ||
+ | [[Image:Bisection method.png|250px|thumb|A few steps of the bisection method applied over the starting range <math>[a_1,b_1]</math> . The bigger red dot is the root of the function.]] | ||
+ | The bisection method is the simplest and most reliable algorithm to find zeros of a continuous function. | ||
+ | |||
+ | Suppose we want to solve the equation <math>f(x)=0</math> . Given two points <math>a</math> and <math>b</math> such that <math>f(a)</math> and <math>f(b)</math> have opposite signs, the intermediate value theorem tells us that <math>f</math> must have at least one root between <math>a</math> and <math>b</math> as long as <math>f</math> is continuous on the interval <math>[a,b]</math>. If we know <math>f</math> is continuous in general (say, because it's made out of rational, trigonometric, exponential and logarithmic functions), then this will work so long as <math>f</math> is defined at all points between <math>a</math> and <math>b</math> . So, let's divide the interval <math>[a,b]</math> in two by computing <math>c=\frac{a+b}{2}</math> . There are now three possibilities: | ||
+ | #<math>f(c)=0</math> , | ||
+ | #<math>f(a)</math> and <math>f(c)</math> have opposite signs, or | ||
+ | #<math>f(c)</math> and <math>f(b)</math> have opposite signs. | ||
+ | In the first case, we're done. In the second and third cases, we can repeat the process on the sub-interval where the sign change occurs. In this way we hone in to a small sub-interval containing the 0. The midpoint of that small sub-interval is usually taken as a good approximation to the 0. | ||
+ | |||
+ | Note that, unlike the methods you may have learned in algebra, this works for ''any'' continuous function that you (or your calculator) know how to compute. | ||
+ | |||
+ | |||
+ | |||
+ | ==Resources== | ||
* [https://mathresearch.utsa.edu/wikiFiles/MAT1214/Continuity/MAT1214-2.4ContinuityPwPt.pptx Continuity] PowerPoint file created by Dr. Sara Shirinkam, UTSA. | * [https://mathresearch.utsa.edu/wikiFiles/MAT1214/Continuity/MAT1214-2.4ContinuityPwPt.pptx Continuity] PowerPoint file created by Dr. Sara Shirinkam, UTSA. | ||
* [https://mathresearch.utsa.edu/wikiFiles/MAT1214/Continuity/MAT1214-2.4ContinuityWS1.pdf Continuity Worksheet 1] | * [https://mathresearch.utsa.edu/wikiFiles/MAT1214/Continuity/MAT1214-2.4ContinuityWS1.pdf Continuity Worksheet 1] | ||
+ | |||
+ | * [https://youtu.be/hlorAjS0xWE Continuity and Limits Made Easy - Part 1 of 2] by patrickJMT | ||
+ | |||
+ | * [https://youtu.be/VUEM6vWJvE4 Continuity - Part 2 of 2] by patrickJMT | ||
+ | |||
+ | * [https://youtu.be/9brk313DjV8 Limits and Continuity] by The Organic Chemistry Tutor | ||
+ | |||
+ | * [https://youtu.be/joewRl1CTL8 Continuity Basic Introduction, Point, Infinite, & Jump Discontinuity, Removable & Nonremovable] by The Organic Chemistry Tutor | ||
+ | |||
+ | ==Licensing== | ||
+ | Content obtained and/or adapted from: | ||
+ | * [https://en.wikibooks.org/wiki/Calculus/Continuity Continuity, Wikibooks: Calculus] under a CC BY-SA license |
Latest revision as of 14:36, 27 October 2021
Contents
Defining Continuity
We are now ready to define the concept of a function being continuous. The idea is that we want to say that a function is continuous if you can draw its graph without taking your pencil off the page. But sometimes this will be true for some parts of a graph but not for others. Therefore, we want to start by defining what it means for a function to be continuous at one point. The definition is simple, now that we have the concept of limits:
Definition: Continuity at a Point
- If is defined on an open interval containing , then is said to be continuous at if and only if
.
Note that for to be continuous at , the definition in effect requires three conditions:
- that is defined at , so Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle f(c)} exists,
- the limit as Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle x} approaches exists, and
- the limit and Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle f(c)} are equal.
If any of these do not hold then Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle f} is not continuous at .
The idea of the definition is that the point of the graph corresponding to Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle c} will be close to the points of the graph corresponding to nearby Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle x} -values. Now we can define what it means for a function to be continuous in general, not just at one point.
Definition: Continuity on an Open Interval
- A function is said to be continuous on if it is continuous at every point of the interval Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle (a,b)} .
We often use the phrase "the function is continuous" to mean that the function is continuous at every real number. This would be the same as saying the function was continuous on Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle (-\infty,\infty)} , but it is a bit more convenient to simply say "continuous".
Note that, by what we already know, the limit of a rational, exponential, trigonometric or logarithmic function at a point is just its value at that point, so long as it's defined there. So, all such functions are continuous wherever they're defined. (Of course, they can't be continuous where they're not defined!)
Discontinuities
A discontinuity is a point where a function is not continuous. There are lots of possible ways this could happen, of course. Here we'll just discuss two simple ways.
Removable discontinuities
The function is not continuous at Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle x=3} . It is discontinuous at that point because the fraction then becomes Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \frac00} , which is undefined. Therefore the function fails the first of our three conditions for continuity at the point 3; 3 is just not in its domain.
However, we say that this discontinuity is removable. This is because, if we modify the function at that point, we can eliminate the discontinuity and make the function continuous. To see how to make the function continuous, we have to simplify Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle f(x)} , getting Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle f(x)=\frac{x^2-9}{x-3}=\frac{(x+3)(x-3)}{(x-3)}=\frac{x+3}{1}\cdot\frac{x-3}{x-3}} . We can define a new function where Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle g(x)=x+3} . Note that the function Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle g(x)} is not the same as the original function Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle f(x)} , because Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle g(x)} is defined at , while Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle f(x)} is not. Thus, is continuous at Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle x=3} , since Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \lim_{x\to3}(x+3)=6=g(3)} . However, whenever Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle x\ne3} , Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle f(x)=g(x)} ; all we did to Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle f} to get Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle g} was to make it defined at Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle x=3} .
In fact, this kind of simplification is often possible with a discontinuity in a rational function. We can divide the numerator and the denominator by a common factor (in our example Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle x-3} ) to get a function which is the same except where that common factor was 0 (in our example at ). This new function will be identical to the old except for being defined at new points where previously we had division by 0.
However, this is not possible in every case. For example, the function Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle f(x)=\frac{x-3}{x^2-6x+9}} has a common factor of Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle x-3} in both the numerator and denominator, but when you simplify you are left with , which is still not defined at Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle x=3} . In this case the domain of Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle f(x)} and are the same, and they are equal everywhere they are defined, so they are in fact the same function. The reason that Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle g(x)} differed from in the first example was because we could take it to have a larger domain and not simply that the formulas defining and were different.
Jump discontinuities
Not all discontinuities can be removed from a function. Consider this function:
Since does not exist, there is no way to redefine at one point so that it will be continuous at 0. These sorts of discontinuities are called nonremovable discontinuities.
Note, however, that both one-sided limits exist; and . The problem is that they are not equal, so the graph "jumps" from one side of 0 to the other. In such a case, we say the function has a jump discontinuity. (Note that a jump discontinuity is a kind of nonremovable discontinuity.)
One-Sided Continuity
Just as a function can have a one-sided limit, a function can be continuous from a particular side. For a function to be continuous at a point from a given side, we need the following three conditions:
- the function is defined at the point.
- the function has a limit from that side at that point.
- the one-sided limit equals the value of the function at the point.
A function will be continuous at a point if and only if it is continuous from both sides at that point. Now we can define what it means for a function to be continuous on a closed interval.
Continuity on a Closed Interval
A function is said to be continuous on if and only if
- it is continuous on .
- it is continuous from the right at .
- it is continuous from the left at .
Notice that, if a function is continuous, then it is continuous on every closed interval contained in its domain.
Intermediate Value Theorem
A useful theorem regarding continuous functions is the following:
- If a function is continuous on a closed interval , then for every value between and there is a value such that .
Application: bisection method
The bisection method is the simplest and most reliable algorithm to find zeros of a continuous function.
Suppose we want to solve the equation . Given two points and such that and have opposite signs, the intermediate value theorem tells us that must have at least one root between and as long as is continuous on the interval . If we know is continuous in general (say, because it's made out of rational, trigonometric, exponential and logarithmic functions), then this will work so long as is defined at all points between and . So, let's divide the interval in two by computing . There are now three possibilities:
- ,
- and have opposite signs, or
- and have opposite signs.
In the first case, we're done. In the second and third cases, we can repeat the process on the sub-interval where the sign change occurs. In this way we hone in to a small sub-interval containing the 0. The midpoint of that small sub-interval is usually taken as a good approximation to the 0.
Note that, unlike the methods you may have learned in algebra, this works for any continuous function that you (or your calculator) know how to compute.
Resources
- Continuity PowerPoint file created by Dr. Sara Shirinkam, UTSA.
- Continuity and Limits Made Easy - Part 1 of 2 by patrickJMT
- Continuity - Part 2 of 2 by patrickJMT
- Limits and Continuity by The Organic Chemistry Tutor
- Continuity Basic Introduction, Point, Infinite, & Jump Discontinuity, Removable & Nonremovable by The Organic Chemistry Tutor
Licensing
Content obtained and/or adapted from:
- Continuity, Wikibooks: Calculus under a CC BY-SA license