Example 7: Is a continuous function?
Is the function defined by , a continuous function?
Let be any real number.
Case 1: . Then and
So , and is continuous at .
Case 2: . Then and
So , and is continuous at .
Case 3: . Then and
So , and is continuous at 0.
Yes. is continuous at every real number, so is a continuous function.
Want the reason behind every step, the basics and the checks?
Away from 0, is a single simple formula in a whole neighbourhood of the point: near a negative number every is negative, so there; near a positive number . Only at 0 do the two formulas meet, and Example 3 has already handled 0. So we split the real line into three cases: , , .
- Given
- , that is if and if .
- To find
- Whether is continuous at every point of its domain (Definition 2).
- Plan
- Domain is . Case : Example 3. Case : show only the formula is used near , then compare limits with . Case : the same with the formula . Answer the textbook's two "(Why?)" questions on the way.
Basics you need
when and when . It is the distance from to 0. Basics: piecewise functions
depends only on the values of at points close to . If agrees with a simpler formula on a small interval around , the limit can be computed with that formula. Basics: what a limit is
The limit at exists when the left-hand and right-hand limits exist and agree. Basics: left-hand and right-hand limits
Continuous at : left-hand limit = right-hand limit = . Continuous function: continuous at every point of the domain. Lesson: continuity at a point
Solution
Domain, and the three cases
is defined for every real number, so the domain is . We rewrite as
and examine an arbitrary real number in three cases: , and . Every real number falls in exactly one case.
Definition 2 asks for continuity at every point of the domain. The formula changes at 0, so 0 behaves differently from the other points and must be treated on its own; the negative and positive points each have a single formula nearby.Splitting into cases is a valid proof as long as the cases together cover every possibility. Basics: piecewise functionsCase : already done
By Example 3, , and . So is continuous at .
This is the one point where the left and right formulas differ, so the one-sided limits had to be computed separately with and ; Example 3 did exactly that.Case : only the formula is used near
Let . Then . Now take any with , that is, any between and 0. Every such is negative, so there. Hence
Both one-sided limits equal , so is continuous at , for every .
This answers the textbook's first "(Why?)": the limit is computed with because, close to a negative number , every is negative as well, and for negative the rule is . For , every in is negative, and in particular every in the gold strip of the figure. Then .Case : only the formula is used near
Let . Then . Every with , that is every between 0 and , is positive, so there. Hence
Both equal , so is continuous at every .
This answers the second "(Why?)": near a positive number every is positive, so there, and (as in Example 6).The window is chosen so that it never reaches 0, the only place where the formula changes. Basics: one-sided limitsPut the three cases together
is continuous at every (Step 3), at (Step 2) and at every (Step 4). These cases cover all of , the domain. By Definition 2, is a continuous function.
Definition 2 needs continuity at every point of the domain, and the three cases leave no real number out.
Yes. is continuous at every negative number, at 0 and at every positive number, so it is continuous at every point of its domain : is a continuous function. This is the textbook's conclusion.
At : and , each from . At : and , each from . The table below repeats this with three distances.
| near | ||
|---|---|---|
- Checking only . "A continuous function" means continuous at every point of the domain, so the negative and positive points need an argument too.
- Writing for . For negative , , which is positive.
- Not justifying the formula near . Saying "" needs the reason: all near a negative are negative.
- For a piecewise function, points strictly inside a piece are tested with that piece's formula; only the junction points need separate left and right calculations.
- To justify using one formula near , name an interval around that stays inside one piece (here ).
- is continuous everywhere, even though its graph has a corner at 0.
Every fact used, and where it comes from
| Fact | Used in | Source |
|---|---|---|
| for , for | Steps 1, 3, 4 | Definition of absolute value (Basics: piecewise functions) |
| is continuous at 0 | Step 2 | Example 3, Section 5.2 |
| Limit depends only on values near | Steps 3, 4 | Meaning of a limit (Basics: what a limit is) |
| , | Steps 3, 4 | Algebra of limits, Class XI; Example 6 |
| Continuous at ; continuous function | Steps 3–5 | Definitions 1 and 2, Section 5.2 (Lesson: continuity at a point) |
Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →