# 1.6 Continuity

As we have studied limits, we have gained the intuition that limits measure “where a function is heading.” That is, if $\displaystyle\lim_{x\to 1}f(x)=3$, then as $x$ is close to 1, $f(x)$ is close to 3. We have seen, though, that this is not necessarily a good indicator of what $f(1)$ actually is. This can be problematic; functions can tend to one value but attain another. This section focuses on functions that do not exhibit such behavior.

###### Definition 1.6.1 Continuous Function

Let $f$ be a function defined on an open interval $I$ containing $c$.

1. (a)

$f$ is continuous at $c$ if $\displaystyle\lim_{x\to c}f(x)=f(c)$.

2. (b)

$f$ is continuous on $I$ if $f$ is continuous at $c$ for all values of $c$ in $I$. If $f$ is continuous on $(-\infty,\infty)$, we say $f$ is continuous everywhere.

A useful way to establish whether or not a function $f$ is continuous at $c$ is to verify the following three things:

1. (a)

$\displaystyle\lim_{x\to c}f(x)$ exists,

2. (b)

$f(c)$ is defined, and

3. (c)

$\displaystyle\lim_{x\to c}f(x)=f(c)$.

If $f$ is defined near $c$ but is not continuous at $c$, then we say that $f$ is discontinuous at $\mathbf{c}$ or $f$ has a discontinuity at $\mathbf{c}$. We will discuss three types of discontinuities, as seen in Figure 1.6.1.

Removable Infinite Jump Figure 1.6.1: Three types of discontinuities
Removable discontinuity This type of discontinuity is called removable because we could remove the discontinuity by redefining the function at a single point. Infinite discontinuity The function is approaching $\pm\infty$ at some $x$ value. Jump discontinuity The function “jumps” from one value to another.
###### Example 1.6.1 Finding intervals of continuity

Let $f$ be defined as shown in Figure 1.6.2. Give the interval(s) on which $f$ is continuous. margin: Figure 1.6.2: A graph of $f$ in Example 1.6.1. Λ

SolutionWe proceed by examining the three criteria for continuity.

1. (a)

The limits $\displaystyle\lim_{x\to c}f(x)$ exists for all $c$ between 0 and 3.

2. (b)

$f(c)$ is defined for all $c$ between 0 and 3, except for $c=1$. We know immediately that $f$ cannot be continuous at $x=1$.

3. (c)

The limit $\displaystyle\lim_{x\to c}f(x)=f(c)$ for all $c$ between 0 and 3, except, of course, for $c=1$.

We conclude that $f$ is continuous at every point of $(0,3)$ except at $x=1$. Therefore $f$ is continuous on $(0,1)\cup(1,3)$.

margin: Figure 1.6.3: A graph of the step function in Example 1.6.2. Λ
###### Example 1.6.2 Finding intervals of continuity

The floor function, $f(x)=\lfloor x\rfloor$, returns the largest integer smaller than or equal to the input $x$. (For example, $f(\pi)=\lfloor\pi\rfloor=3$.) The graph of $f$ in Figure 1.6.3 demonstrates why this is often called a “step function.”
Give the intervals on which $f$ is continuous.

SolutionWe examine the three criteria for continuity.

1. (a)

The limits $\lim_{x\to c}f(x)$ do not exist at the jumps from one “step” to the next, which occur at all integer values of $c$. Therefore the limits exist for all $c$ except when $c$ is an integer.

2. (b)

The function is defined for all values of $c$.

3. (c)

The limit $\displaystyle\lim_{x\to c}f(x)=f(c)$ for all values of $c$ where the limit exist, since each step consists of just a line.

We conclude that $f$ is continuous everywhere except at integer values of $c$. So the intervals on which $f$ is continuous are

 $\dotsc,(-2,-1),(-1,0),(0,1),(1,2),\dotsc.$

Our definition of continuity on an interval specifies the interval is an open interval. At endpoints or points of discontinuity we may consider continuity from the right or left.

###### Definition 1.6.2 Right and Left Continuity

Right Continuous

Let $f$ be defined on a closed interval with left endpoint $a$. We say that $f$ is continuous from the right at $a$ (or right continuous at $a$) if

 $\lim_{x\to a^{+}}f(x)=f(a).\vspace{-\baselineskip}$

Left Continuous

Let $f$ be defined on a closed interval with right endpoint $b$. We say that $f$ is continuous from the left at $b$ (or left continuous at $b$) if

 $\lim_{x\to b^{-}}f(x)=f(b).\vspace{-\baselineskip}$

We can then extend the definition of continuity to closed intervals by considering the appropriate one-sided limits at the endpoints.

###### Definition 1.6.3 Continuity on Closed Intervals

Let $f$ be defined on the closed interval $[a,b]$ for some real numbers $a,b$. Then $f$ is continuous on $[a,b]$ if:

1. (a)

$f$ is continuous on $(a,b)$,

2. (b)

$f$ is right continuous at $a$ and

3. (c)

$f$ is left continuous at $b$.

We can make the appropriate adjustments to talk about continuity on half-open intervals such as $[a,b)$ or $(a,b]$ if necessary.

Continuity is inherently tied to the properties of limits. Because of this, the properties of limits found in Theorems 1.3.1 and 1.3.3 apply to continuity as well. We will utilize these properties in the following example.

###### Example 1.6.3 Determining intervals on which a function is continuous

For each of the following functions, give the domain of the function and the interval(s) on which it is continuous.

1. (a)

$f(x)=1/x$

2. (b)

$f(x)=\sin x$

3. (c)

$f(x)=\sqrt{x}$

4. (d)

$f(x)=\sqrt{1-x^{2}}$

5. (e)

$f(x)=\left\lvert x\right\rvert$

SolutionWe examine each in turn.

1. (a)

The domain of $f(x)=1/x$ is $(-\infty,0)\cup(0,\infty)$. As it is a rational function, we apply Theorem 1.3.3 to recognize that $f$ is continuous on all of its domain.

2. (b)

The domain of $f(x)=\sin x$ is all real numbers, or $(-\infty,\infty)$. Applying Theorem 1.3.4 shows that $\sin x$ is continuous everywhere.

3. (c)

The domain of $f(x)=\sqrt{x}$ is $[0,\infty)$. Applying Theorem 1.3.4 shows that $f(x)=\sqrt{x}$ is continuous on its domain of $[0,\infty)$.

4. (d)

The domain of $f(x)=\sqrt{1-x^{2}}$ is $[-1,1]$. Applying Theorems 1.3.1 and 1.3.4 shows that $f$ is continuous on all of its domain, $[-1,1]$.

5. (e)

The domain of $f(x)=\left\lvert x\right\rvert$ is $(-\infty,\infty)$. We can define the absolute value function as $\displaystyle f(x)=\begin{cases}-x&x<0\\ x&x\geq 0\end{cases}$. Each “piece” of this piecewise defined function is continuous on all of its domain, giving that $f$ is continuous on $(-\infty,0)$ and $[0,\infty)$. We cannot assume this implies that $f$ is continuous on $(-\infty,\infty)$; we need to check that $\displaystyle\lim_{x\to 0}f(x)=f(0)$, as $x=0$ is the point where $f$ transitions from one “piece” of its definition to the other. It is easy to verify that this is indeed true, hence we conclude that $f(x)=\left\lvert x\right\rvert$ is continuous everywhere.

The following theorem states how continuous functions can be combined to form other continuous functions.

###### Theorem 1.6.1 Properties of Continuous Functions

Let $f$ and $g$ be continuous functions on an interval $I$, let $c$ be a real number and let $n$ be a positive integer. The following functions are continuous on $I$.

1. (a)

Sums/Differences: $f\pm g$

2. (b)

Constant Multiples: $c\cdot f$

3. (c)

Products: $f\cdot g$

4. (d)

Quotients: $f/g$   (as long as $g\neq 0$ on $I$)

5. (e)

Powers: $f\,^{n}$

6. (f)

Roots: $\sqrt[n]{f}$   (if $f\geq 0$ on $I$ or $n$ is odd)

The proofs of each of the parts of Theorem 1.6.1 follow from the Basic Limit Properties given in Theorem 1.3.1. We will prove the product of two continuous functions is continuous now.

• Proof

We know that $f$ and $g$ are continuous at $c$ so by definition we have

 $\lim_{x\to c}f(x)=f(c)\quad\text{and}\quad\lim_{x\to c}g(x)=g(c).$

Therefore,

 $\displaystyle\lim_{x\to c}(f\cdot g)(x)$ $\displaystyle=\lim_{x\to c}f(x)\cdot g(x)$ $\displaystyle=\lim_{x\to c}f(x)\cdot\lim_{x\to c}g(x)$ $\displaystyle=f(c)\cdot g(c)$ $\displaystyle=(f\cdot g)(c).\qed$
###### Theorem 1.6.2 Continuity of Compositions

Let $f$ be continuous on $I$, where the range of $f$ on $I$ is $J$, and let $g$ be continuous on $J$. Then

 $(g\circ f)(x)=g(f(x))$

is continuous on $I$.

Now knowing the definition of continuity we can re-read Theorem 1.3.4 as giving a list of functions that are continuous on their domains.

###### Theorem 1.6.3 Continuous Functions

The following functions are continuous on their domains.

1. (a)

$\displaystyle f(x)=\sin x$

2. (b)

$\displaystyle f(x)=\cos x$

3. (c)

$\displaystyle f(x)=\tan x$

4. (d)

$\displaystyle f(x)=\cot x$

5. (e)

$\displaystyle f(x)=\sec x$

6. (f)

$\displaystyle f(x)=\csc x$

7. (g)

$\displaystyle f(x)=\ln x$

8. (h)

$\displaystyle f(x)=a^{x}$ ($a>0$)

In the following example, we will show how we apply the previous theorems.

###### Example 1.6.4 Determining intervals on which a function is continuous

State the interval(s) on which each of the following functions is continuous.

1. (a)

$\displaystyle f(x)=\sqrt{x-1}+\sqrt{5-x}$

2. (b)

$\displaystyle f(x)=x\sin x$

3. (c)

$\displaystyle f(x)=\tan x$

4. (d)

$\displaystyle f(x)=\sqrt{\ln x}$

SolutionWe examine each in turn, applying Theorems 1.6.1 and 1.6.3 as appropriate.

margin: Figure 1.6.4: A graph of $f$ inExample 1.6.4(1). Λ
1. (a)

The two square-root terms are continuous on the intervals $[1,\infty)$ and $(-\infty,5]$, respectively. As $f$ is continuous only where each term is continuous, $f$ is continuous on the intersection of these two intervals: $[1,5]$. A graph of $f$ is displayed in Figure 1.6.4.

2. (b)

The functions $y=x$ and $y=\sin x$ are each continuous everywhere, hence their product is, too.

3. (c)

Theorem 1.6.3 states that $f(x)=\tan x$ is continuous “on its domain.” Its domain includes all real numbers except odd multiples of $\pi/2$. Thus $f(x)=\tan x$ is continuous on

 $\dotsc,\left(-\frac{3\pi}{2},-\frac{\pi}{2}\right),\ \left(-\frac{\pi}{2},% \frac{\pi}{2}\right),\ \left(\frac{\pi}{2},\frac{3\pi}{2}\right),\dotsc$

or, equivalently, on $D=\{x\in\mathbb{R}\ |\ x\neq\frac{(2n+1)\pi}{2},\ n\in\mathbb{Z}\}$.

4. (d)

The domain of $y=\sqrt{x}$ is $[0,\infty)$. The range of $y=\ln x$ is $(-\infty,\infty)$, but if we restrict its domain to $[1,\infty)$ its range is $[0,\infty)$. So restricting $y=\ln x$ to the domain of $[1,\infty)$ restricts its output is $[0,\infty)$, on which $y=\sqrt{x}$ is defined. Thus the domain of $f(x)=\sqrt{\ln x}$ is $[1,\infty)$.

A common way of thinking of a continuous function is that “its graph can be sketched without lifting your pencil.” That is, its graph forms a “continuous” curve, without holes, breaks or jumps. While beyond the scope of this text, this pseudo-definition glosses over some of the finer points of continuity. Very strange functions are continuous that one would be hard pressed to actually sketch by hand.

This intuitive notion of continuity does help us understand another important concept as follows. Suppose $f$ is defined on $[1,2]$ and $f(1)=-10$ and $f(2)=5$. If $f$ is continuous on $[1,2]$ (i.e., its graph can be sketched as a continuous curve from $(1,-10)$ to $(2,5)$) then we know intuitively that somewhere on $[1,2]$ $f$ must be equal to $-9$, and $-8$, and $-7,\ -6,\ \dotsc,\ 0,\ 1/2,$ etc. In short, $f$ takes on all intermediate values between $-10$ and $5$. It may take on more values; $f$ may actually equal 6 at some time, for instance, but we are guaranteed all values between $-10$ and 5.

While this notion seems intuitive, it is not trivial to prove and its importance is profound. Therefore the concept is stated in the form of a theorem and illustrated in Figure 1.6.5.

margin: (a) (b) Figure 1.6.5: A situation where the Intermediate Value Theorem applies (top) and does not (bottom). Λ
###### Theorem 1.6.4 Intermediate Value Theorem

Let $f$ be a continuous function on $[a,b]$ and, without loss of generality, let $f(a). Then for every value $y$, where $f(a), there exists at least one value $c$ in $(a,b)$ such that $f(c)=y$

One important application of the Intermediate Value Theorem is root finding. Given a function $f$, we are often interested in finding values of $x$ where $f(x)=0$. These roots may be very difficult to find exactly. Good approximations can be found through successive applications of this theorem. Suppose through direct computation we find that $f(a)<0$ and $f(b)>0$, where $a. The Intermediate Value Theorem states that there exists at least one $c$ in $[a,b]$ such that $f(c)=0$. The theorem does not give us any clue as to where that value is in the interval $[a,b]$, just that it exists.

###### Example 1.6.5 Finding roots

Show that $f(x)=x^{3}+x+3$ has at least one real root.

SolutionWe must determine an interval on which the function changes from positive to negative values. We start by evaluating $f$ at different values. We see that $f(0)=3>0$ and $f(1)=5>0$. As we choose larger positive values of $x$, we can see that $f(x)$ values will continue to grow. Looking at negative $x$-values, $f(-1)=1>0$ and $f(-2)=-7<0$ so we know $f(x)$ must change sign in $[-2,-1]$. Because $f(x)$ is a polynomial, it is continuous on all real numbers so is continuous on $[-2,-1]$. By the Intermediate Value Theorem there is a $c$ in $(-2,-1)$ where $f(x)=0$. Thus $f(x)$ must have at least one real root on $(-2,-1)$.

Note that in the above example you were not asked to find the root, just to show that the function had a root.

There is a technique that produces a good approximation of $c$. Let $d$ be the midpoint of the interval $[a,b]$ and consider $f(d)$. There are three possibilities:

1. (a)

$f(d)=0$ — we got lucky and stumbled on the actual value. We stop as we found a root.

2. (b)

$f(d)<0$ Then we know there is a root of $f$ on the interval $[d,b]$ — we have halved the size of our interval, hence are closer to a good approximation of the root.

3. (c)

$f(d)>0$ Then we know there is a root of $f$ on the interval $[a,d]$ — again,we have halved the size of our interval, hence are closer to a good approximation of the root.

Successively applying this technique is called the Bisection Method of root finding. We continue until the interval is sufficiently small. We demonstrate this in the following example.

margin: Figure 1.6.6: Graphing a root of$f(x)=x-\cos x$. Λ
###### Example 1.6.6 Using the Bisection Method

Approximate the root of $f(x)=x-\cos x$, accurate to three places after the decimal.

SolutionConsider the graph of $f(x)=x-\cos x$, shown in Figure 1.6.6. It is clear that the graph crosses the $x$-axis somewhere near $x=0.8$. To start the Bisection Method, pick an interval that contains $0.8$. We choose $[0.7,0.9]$. Note that all we care about are signs of $f(x)$, not their actual value, so this is all we display.

Iteration 1:

$f(0.7)<0$, $f(0.9)>0$, and $f(0.8)>0$. So replace $0.9$ with $0.8$ and repeat.

Iteration 2:

$f(0.7)<0$, $f(0.8)>0$, and at the midpoint, $0.75$, we see that $f(0.75)>0$. So replace $0.8$ with $0.75$ and repeat. Note that we don’t need to continue to check the endpoints, just the midpoint. Thus we put the rest of the iterations in Figure 1.6.7.

margin: Itera- tion # Interval Midpoint Sign 1 $[0.7,0.9]$ $f(0.8)>0$ 2 $[0.7,0.8]$ $f(0.75)>0$ 3 $[0.7,0.75]$ $f(0.725)<0$ 4 $[0.725,0.75]$ $f(0.7375)<0$ 5 $[0.7375,0.75]$ $f(0.7438)>0$ 6 $[0.7375,0.7438]$ $f(0.7407)>0$ 7 $[0.7375,0.7407]$ $f(0.7391)>0$ 8 $[0.7375,0.7391]$ $f(0.7383)<0$ 9 $[0.7383,0.7391]$ $f(0.7387)<0$ 10 $[0.7387,0.7391]$ $f(0.7389)<0$ 11 $[0.7389,0.7391]$ $f(0.7390)<0$ 12 $[0.7390,0.7391]$ Figure 1.6.7: Iterations of the Bisection Method of Root Finding Λ

Notice that in the 12${}^{\text{th}}$ iteration we have the endpoints of the interval each starting with $0.739$. Thus we have narrowed the zero down to an accuracy of the first three places after the decimal. Using a computer, we have

 $f(0.7390)=-0.00014,\quad f(0.7391)=0.000024.$

Either endpoint of the interval gives a good approximation of where $f$ is 0. The Intermediate Value Theorem states that the actual zero is still within this interval. While we do not know its exact value, we know it starts with $0.739$.

This type of exercise is rarely done by hand. Rather, it is simple to program a computer to run such an algorithm and stop when the endpoints differ by a preset small amount. One of the authors did write such a program and found the zero of $f$, accurate to 10 places after the decimal, to be 0.7390851332. While it took a few minutes to write the program, it took less than a thousandth of a second for the program to run the necessary 35 iterations. In less than 8 hundredths of a second, the zero was calculated to 100 decimal places (with less than 200 iterations).

It is a simple matter to extend the Bisection Method to solve problems similar to “Find $x$, where $f(x)=0$.” For instance, we can find $x$, where $f(x)=1$. It actually works very well to define a new function $g$ where $g(x)=f(x)-1$. Then use the Bisection Method to solve $g(x)=0$.

Similarly, given two functions $f$ and $g$, we can use the Bisection Method to solve $f(x)=g(x)$. Once again, create a new function $h$ where $h(x)=f(x)-g(x)$ and solve $h(x)=0$.

In Section 4.4 another equation solving method will be introduced, called Newton’s Method. In many cases, Newton’s Method is much faster. It relies on more advanced mathematics, though, so we will wait before introducing it.

This section formally defined what it means to be a continuous function. “Most” functions that we deal with are continuous, so often it feels odd to have to formally define this concept. Regardless, it is important, and forms the basis of the next chapter.

## Exercises 1.6

### Terms and Concepts

1. 1.

In your own words, describe what it means for a function to be continuous.

2. 2.

In your own words, describe what the Intermediate Value Theorem states.

3. 3.

What is a “root” of a function?

4. 4.

Given functions $f$ and $g$ on an interval $I$, how can the Bisection Method be used to find a value $c$ where $f(c)=g(c)$?

5. 5.

T/F: If $f$ is defined on an open interval containing $c$, and $\displaystyle\lim_{x\to c}f(x)$ exists, then $f$ is continuous at $c$.

6. 6.

T/F: If $f$ is continuous at $c$, then $\displaystyle\lim_{x\to c}f(x)$ exists.

7. 7.

T/F: If $f$ is continuous at $c$, then $\displaystyle\lim_{x\to c^{+}}f(x)=f(c)$.

8. 8.

T/F: If $f$ is continuous on $[a,b]$, then $\displaystyle\lim_{x\to a^{-}}f(x)=f(a)$.

9. 9.

T/F: If $f$ is continuous on $[0,1)$ and $[1,2)$, then $f$ is continuous on $[0,2)$.

10. 10.

T/F: The sum of continuous functions is also continuous.

### Problems

In Exercises 11–18., a graph of a function $f$ is given along with a value $a$. Determine if $f$ is continuous at $a$; if it is not, state why it is not.

1. 11.
$a=1$
2. 12.
$a=1$
3. 13.
$a=1$
4. 14.
$a=1$
5. 15.
$a=1$
6. 16.
$a=2$
7. 17.
(a) $a=-2$ (b) $a=0$ (c) $a=2$
8. 18.
$a=3\pi/2$

In Exercises 19–22., determine if $f$ is continuous at the indicated values. If not, explain why.

1. 19.
$\displaystyle f(x)=\begin{cases}1&x=0\\ \frac{\sin x}{x}&x\neq 0\end{cases}$ (a) $x=0$ (b) $x=\pi$
2. 20.
$\displaystyle f(x)=\begin{cases}x^{3}-x&x<1\\ x-2&x\geq 1\end{cases}$ (a) $x=0$ (b) $x=1$
3. 21.
$\displaystyle f(x)=\begin{cases}\frac{x^{2}+5x+4}{x^{2}+3x+2}&x\neq-1\\ 3&x=-1\end{cases}$ (a) $x=-1$ (b) $x=10$
4. 22.
$\displaystyle f(x)=\begin{cases}\frac{x^{2}-64}{x^{2}-11x+24}&x\neq 8\\ 5&x=8\end{cases}$ (a) $x=0$ (b) $x=8$

In Exercises 23–36., give the intervals on which the given function is continuous.

1. 23.

$f(x)=x^{2}-3x+9$

2. 24.

$\displaystyle g(x)=\sqrt{x^{2}-4}$

3. 25.

$\displaystyle g(x)=\sqrt{4-x^{2}}$

4. 26.

$\displaystyle h(k)=\sqrt{1-k}+\sqrt{k+1}$

5. 27.

$\displaystyle f(t)=\sqrt{5t^{2}-30}$

6. 28.

$\displaystyle g(t)=\frac{1}{\sqrt{1-t^{2}}}$

7. 29.

$\displaystyle g(x)=\frac{1}{1+x^{2}}$

8. 30.

$\displaystyle f(x)=e^{x}$

9. 31.

$\displaystyle g(s)=\ln s$

10. 32.

$\displaystyle h(t)=\cos t$

11. 33.

$\displaystyle f(k)=\sqrt{1-e^{k}}$

12. 34.

$\displaystyle f(x)=\sin(e^{x}+x^{2})$

13. 35.

$\displaystyle f(x)=\begin{cases}\frac{x+1}{x+4}&x<2\\ x^{2}-3&2\leq x\leq 5\\ 6-2x&x>5\end{cases}$

14. 36.

$\displaystyle f(x)=\begin{cases}\frac{1}{x-1}&x<0\\ 2x^{2}-3x-1&0\leq x\leq 2\\ 5x^{2}-4x&x>2\end{cases}$

1. 37.
Let $\displaystyle f(x)=\begin{cases}x^{2}-1&x<3\\ x+5&x\geq 3\end{cases}$. Is $f$ continuous everywhere?
2. 38.
Let $\displaystyle f(x)=\begin{cases}x\sin(\frac{1}{x})&x\neq 0\\ 0&x=0\end{cases}$. Is $f$ continuous everywhere?

Exercises 39–42. test your understanding of the Intermediate Value Theorem.

1. 39.

Let $f$ be continuous on $[1,5]$ where $f(1)=-2$ and $f(5)=-10$. Does a value $1 exist such that $f(c)=-9$? Why/why not?

2. 40.

Let $g$ be continuous on $[-3,7]$ where $g(0)=0$ and $g(2)=25$. Does a value $-3 exist such that $g(c)=15$? Why/why not?

3. 41.

Let $f$ be continuous on $[-1,1]$ where $f(-1)=-10$ and $f(1)=10$. Does a value $-1 exist such that $f(c)=11$? Why/why not?

4. 42.

Let $h$ be a function on $[-1,1]$ where $h(-1)=-10$ and $h(1)=10$. Does a value $-1 exist such that $h(c)=0$? Why/why not?

In Exercises 43–46., find the value(s) of $a$ and $b$ so that the function is continuous on $\mathbb{R}$.

1. 43.

$\displaystyle g(x)=\begin{cases}ax^{2}+3x&x<2\\ x^{3}-ax&x\geq 2\end{cases}$

2. 44.

$\displaystyle f(x)=\begin{cases}a^{2}x-a&x>3\\ 4&x\leq 3\end{cases}$

3. 45.

$\displaystyle f(x)=\begin{cases}ax-b&x<-1\\ 2x^{2}+3ax+b&-1\leq x<1\\ 4&x\geq 1\end{cases}$

4. 46.

$\displaystyle f(x)=\begin{cases}x^{2}+2x&x\leq a\\ -1&x>a\end{cases}$

In Exercises 47–50., sketch the graph of a function that has the following properties.

1. 47.

$f$ is discontinuous at 3, but continuous from the left at 3, and continuous elsewhere.

2. 48.

$f$ is discontinuous at -1 and 2, but continuous from the right at -1 and continuous from the left at 2, and continuous elsewhere.

3. 49.

$f$ has a jump discontinuity at -2 and an infinite discontinuity at 4 and is continuous elsewhere.

4. 50.

$f$ has a removable discontinuity at 2, is continuous only from the left at 5, and is continuous elsewhere.

In Exercises 51–54., show that the functions have at least one real root.

1. 51.

$f(x)=x^{2}+2x-4$

2. 52.

$f(x)=\sin x-1/2$

3. 53.

$f(x)=e^{x}-2$

4. 54.

$f(x)=\cos x-\sin x$

### Review

1. 55.
Let $\displaystyle f(x)=\begin{cases}x^{2}-5&x<5\\ 5x&x\geq 5\end{cases}$. Find (a) $\displaystyle\lim_{x\to 5^{-}}f(x)$ (b) $\displaystyle\lim_{x\to 5^{+}}f(x)$ (c) $\displaystyle\lim_{x\to 5}f(x)$ (d) $f(5)$
2. 56.
Numerically approximate the following limits: (a) $\displaystyle\lim_{x\to-4/5^{+}}\frac{x^{2}-8.2x-7.2}{x^{2}+5.8x+4}$ (b) $\displaystyle\lim_{x\to-4/5^{-}}\frac{x^{2}-8.2x-7.2}{x^{2}+5.8x+4}$
3. 57.

Give an example of function $f(x)$ for which $\displaystyle\lim_{x\to 0}f(x)$ does not exist. 