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.
and \begin{align*} \lim _{x\to 0^+} f(x) &= \lim _{x\to 0^+}\left (e^{-x}+c\right )\\ &= e^{\answer [given]{0}} + c\\ &= \answer [given]{1+ c} \end{align*}
In order for \(f\) to be continuous, the limit \( \lim _{x\to 0} f(x)\) has to exist. This means that
Consider the next, more challenging example.
Looking at the limit from the right, we have \begin{align*} \lim _{x\to 1^+} f(x) &= \lim _{x\to 1^+} \left (ax^2+bx+2\right ) \\ &= \answer [given]{a+b+2}. \end{align*}
Hence, for the limit \(\lim _{x\to 1} f(x)\) to exist, we must have that \begin{align*} 5 &= a+b+2\\ or\\ a+b &= \answer [given]{3}. \end{align*}
Also, Hmmmm. More work needs to be done.
To find \(a\) and \(b\) that make \(f\) is continuous at \(x=3\), we need to find \(a\) and \(b\) such that
Looking at the limit from the right, we have \begin{align*} \lim _{x\to 3^+} f(x) &= \lim _{x\to 3^+} \left (6x+a-b\right ) \\ &= \answer [given]{18+a-b}. \end{align*}
Hence \begin{align*} 9a + 3b + 2 &= 18+a-b\\ 8a + 4b -16 &= 0\\ 2a + b -4 &= 0 \end{align*}
So now we have two equations and two unknowns:
hence