# Limits and Continuity

## Limits

Limits ask the question of what happens to a function $f(x)$ as we get arbitrarily close to a value of $x$. They are denoted as $\lim_{x\rightarrow c}f(x)=L$, where $L, c$ are numbers. In typical cases, we can simply plug in $x=c$ into $f(x)$ to get $L$. To prove that $L$ and $\lim_{x\rightarrow c}f(x)$ are equal, we use the **$\delta-\varepsilon$ proof**:

For most functions, the **substitution rule** typically works: we can simply plug in $x=c$ into $f(x)$ to get $L=f(c)$. However, there are three cases where this wouldn’t work:

- We have a vertical asymptote for a rational function. An example is the function $f(x)=1/x$. The limit doesn’t exist in this case.
- We have a jump discontinuity that looks like a `step function.’ An example is the function $f(x)=0$ for $x\leq 0$ and $f(x)=1$ for $x>0$. The limit doesn’t exist in this case.
- We have infinite oscillations. An example is the function $f(x)=\sin(1/x)$. The limit doesn’t exist in this case.

In cases 1 and 2 above, the reason why the limit doesn’t exist is because the *left and right limits are not equal*. That is, $\lim_{x\rightarrow c^-} f(x)\neq \lim_{x\rightarrow c^+} f(x)$. This brings up another property of limits:

Limits satisfy pretty straightforward properties:

**Limits at infinity** are really similar to regular limits, and are related to the idea of horizontal asymptotes. All the same rules apply. Here is an example of a typical way to approach evaluating a limit at infinity:

Multiplying by the special $(1/x)/(1/x)=1$ term is always determined by the highest power of $x$ in the denominator. We should also talk about the *sandwich theorem*, a useful technique to evaluate certain limits. Lets consider an example of trying to find the limit of $\lim_{x\to0}x^2\sin(1/x)$. Note that $-1\leq \sin z\leq 1$ for any $z$, meaning that $-x^2\leq x^2\sin x\leq x^2$ for any $x$. $\lim_{x\to0}-x^2=0$ and $\lim_{x\to0}x^2=0$, meaning that $\lim_{x\to0}-x^2=\lim_{x\to0}x^2=0$. Therefore, we can conclude using the sandwich theorem that $\lim_{x\to0}x^2\sin(1/x)=0$. The sandwich theorem also applies for limits at infinity.

## Continuity

There’s also the idea of **continuity**. Functions are continuous if you can trace them without ever lifting your pencil. The formal definition of continuity is that a function $f(x)$ is continuous at $x=c$ if

For example, all polynomial functions are continuous. There are four types of discontinuities:

- Removable discontinuity. You can shift the position of a finite set of points to make the function continuous.
- Nonremovable discontinuity: infinite. Think vertical asymptotes of a rational function.
- Nonremovable discontinuity: jump. Think of a step function (for example, $f(x)=0$ for $x\leq 0$ and $f(x)=1$ for $x>0$).
- Nonremovable discontinuity: oscillatory. Think of $\sin(1/x)$ as $x\rightarrow 0$.

To set up future discussions, consider the slope of a secant line between two points $(x_1, f(x_1))$ and $(x_1+h, f(x_1+h))$ for some parameter $h$. The slope $m$ of this secant line is

What happens as $h$ goes to zero? (We’ll find out later.)

## Exercises

### Problem 1

Evaluate the limit $\lim_{t \rightarrow-3} \frac{6+4 t}{t^{2}+1}$. Evaluate the limit $\lim_{x\rightarrow -\infty}\frac{7x^3+2x+1}{9x^3-4x^2+3x+6}$.

### Problem 2

Consider the function

Answer the following two questions:

- Evaluate the limit $\lim_{x\rightarrow -6}f(x)$ (if it exists). Is $f(x)$ continuous at $x=-6$?
- Evaluate the limit $\lim_{x\rightarrow 1}f(x)$ (if it exists). Is $f(x)$ continuous at $x=1$?

### Problem 3

Consider the function $f(x)=x^2$.

- What is $f(x+h)$ for some parameter $h$? What is $f(x+h)-f(x)$? What is the simplified form of $\frac{f(x+h)-f(x)}{h}$ given this function definition?
- Given the simplified form of $\frac{f(x+h)-f(x)}{h}$ you found in Part (1) above, what is $\lim_{h\rightarrow 0}\frac{f(x+h)-f(x)}{h}$?