Here we use limits to check whether piecewise functions are continuous.
Before we start talking about continuity of piecewise functions, let’s remind ourselves of all famous functions that are continuous on their domains.
- Constant functions
- Polynomials
- Rational functions
- Power functions
- Exponential functions
- Logarithmic functions
- Trigonometric functions
- Inverse trigonometric functions
In essence, we are saying that the functions listed above are continuous wherever they are defined.
We proved continuity of polynomials earlier using the Sum Law, Product Law and continuity of power functions.
We proved continuity of rational functions earlier using the Quotient Law and continuity of polynomials.
We can prove continuity of the remaining four trig functions using the Quotient Law and continuity of sine and cosine functions.
Since a continuous function and its inverse have “unbroken” graphs, it follows that an inverse of a continuous function is continuous on its domain.
This implies that inverse trig functions are continuous on their domains.
Using the Limit Laws we can prove that given two functions, both continuous on the same interval, then their sum, difference, product, and quotient (where defined) are also continuous on the same interval (where defined).
In this section we will work a couple of examples involving limits, continuity and piecewise functions. Recall that a function \(f\) is continuous at a point \(a\) if \(\displaystyle \lim _{x\to a}f(x) = f(a)\). This gave the continuity checklist. To determine whether a function \(f\) is continuous at a point \(a\), we must check that:
- (a)
- \(f(a)\) is defined,
- (b)
- \(\lim _{x\to a} f(x)\) exists, and then
- (c)
- \(\lim _{x\to a} f(x) = f(a)\).
In this section, since we are dealing with piecewise-defined functions, we may have to consider one-sided limits when determining if item cc:lim holds for our function. However, item cc:lim does not mention one-sided limits. When using the checklist to justify the continuity of a function, take care to mention the specific conditions that are required.
For item cc:lim, in order to compute the limit we will have to compute two one-sided limits (since the expression for \(f(x)\) if \(x<0\) is different from the expression for \(f(x)\) if \(x>0\)).
and
In order for \(\displaystyle \lim _{x\to 0} f(x)\) to exist,
For item cc:conc we need to check that the value we found for \(f(0)\) is the same as the value we found for \(\displaystyle \lim _{x\to 0}f(x)\). These values agree, so item cc:conc is satisfied. This proves that \(f\) is continuous at \(x=0\).
Consider the next, more challenging example.
We now check item cc:lim of the checklist by verifying that \(\displaystyle \lim _{x\to 1}f(x)\) exists. In order to calculate \(\lim _{x\to 1}f(x)\), we have to compute two one-sided limits (since the expression for \(f(x)\) if \(x<1\) is different from the expression for \(f(x)\) if \(x>1\)). Looking at the limit from the left, we have
Looking at the limit from the right, we have
Hence, for the limit \(\lim _{x\to 1} f(x)\) to exist, we must have that
Item cc:conc is then satisfied at the point \(x=1\) whenever \(a+b=3\).
To find \(a\) and \(b\) that make \(f\) is continuous at \(x=3\), we need to find \(a\) and \(b\) such that
To verify item cc:lim we must check that \(\lim _{x\to 3}f(x)\) exists. Again, the formula for \(f(x)\) changes around \(x=3\) so we check the one-sided limits. From the left:
Looking at the limit from the right, we have
In order for \(\lim _{x\to 3}f(x)\) to exist, these must be equal.
This means item cc:lim is satisfied for \(a\) and \(b\) with \(2a+b=4\).
Item cc:conc is then satisfied for all \(a\) and \(b\) with \(2a+b=4\), since this gives \(f(3) = 18+a+b\) and \(\lim _{x\to 3}f(x)=18+a+b = 9a+3b+2\).
So in order to be continuous at BOTH \(x=1\) AND \(x=3\), we have two equations and two unknowns:
hence