2.2 Limits and continuity

Limits

Definition: We say that the limit of a function f(x)f(x), as xx approaches aa, is LL if we can make the values of f(x)f(x) get as close as we want to LL by taking xx sufficiently close to aa (but not equal to a)3. Mathematically, we can express this idea as

limxaf(x)=L.\lim_{x \to a} f(x) = L.

For example, if f(x)=x2f(x)=x^2, then it is the case that

limx5f(x)=5.\lim_{x \to \sqrt{5}} f(x) = 5.

Suppose we set xx equal to 2.236 (this is close to 5\sqrt{5} but not equal). Then f(x)=f(x)= 4.999696, which is close to 5. There is no value of xx other than 5\sqrt{5} such that f(x)=5f(x)=5, but we can get as close as we want by moving xx closer to 5\sqrt{5}. For example, if 4.999696 isn’t close enough to satisfy us and someone demands that we be within 0.000000001 of 5, we can always accomplish that by simply moving xx closer to 5\sqrt{5}.

Infinite limit: A variation on this idea is to say that the limit is infinite:

limxaf(x)=.\lim_{x \to a} f(x) = \infty.

This means that as xx gets closer to aa, f(x)f(x) keeps getting bigger, with no bound. For example, we can make 1/x21/x^2 be as large as we want by moving xx closer to 0, so limx01/x2=\lim_{x \to 0} 1/x^2 = \infty (limits of -\infty are defined similarly).

One-sided limit: Sometimes, different things happen if we approach aa from the left or right. We say that the left-hand limit of f(x)f(x) as xx approaches aa “from the left” is LL if f(x)f(x) we can make the values of f(x)f(x) as close to LL as we want by moving xx closer to aa, but only considering points such that x<ax < a. We denote this by

limxaf(x)=L.\lim_{x \to a^-} f(x) = L.

Right-hand limits are defined similarly. For example limx01/x=\lim_{x \to 0^-} 1/x = -\infty, whereas limx0+1/x=\lim_{x \to 0^+} 1/x = \infty.

The limit of f(x)f(x) as xax \to a is LL if and only both the left and the right-hand limits are also LL.

Calculating limits

Limit laws: The following laws are helpful for calculating limits. In what follows, let

s=limxaf(x)t=limxag(x);\begin{align*} s &= \lim_{x \to a} f(x) \\ t &= \lim_{x \to a} g(x); \end{align*}

it is critical that these limits exist, or none of the results below necessarily hold.

limxa{f(x)+g(x)}=s+tlimxa{f(x)g(x)}=stlimxa{cf(x)+g(x)}=cs+t where c is a constantlimxa{f(x)g(x)}=stlimxaf(x)g(x)=st if t0limxa{f(x)n}=sn\begin{align*} \lim_{x \to a} \{f(x) + g(x)\} &= s + t \\ \lim_{x \to a} \{f(x) - g(x)\} &= s - t \\ \lim_{x \to a} \{cf(x) + g(x)\} &= cs + t \text{ where $c$ is a constant} \\ \lim_{x \to a} \{f(x) g(x)\} &= st \\ \lim_{x \to a} \frac{f(x)}{g(x)} &= \frac{s}{t} \text{ if } t \ne 0 \\ \lim_{x \to a} \{f(x)^n\} &= s^n \end{align*}

Continuity

You may have noticed that with limits, the value of f(x)f(x) at aa is irrelevant. For example, if f(x)=x2f(x)=x^2 everywhere except x=2x=2, where f(2)=10f(2) = -10, it would still be the case that limx2f(x)=4\lim_{x \to 2} f(x) = 4. In fact, f(x)f(x) wouldn’t even need to be defined at 2 for this to work. If we add the requirement that f(a)f(a) has to equal its limit, we end up with continuity.

Definition: A function ff is continuous at aa if

limxaf(x)=f(a).\lim_{x \to a} f(x) = f(a).

Note that this requires three things:

  1. f(a)f(a) is defined
  2. limxaf(x)\lim_{x \to a} f(x) exists
  3. These two things are equal

Expanding on this definition, we say that a function ff is continuous on an interval if ff is continuous at every number in the interval. We say that ff is continuous if ff is continuous at every point in its domain.

One-sided continuity: A function ff is continuous from the left at aa if

limxaf(x)=f(a).\lim_{x \to a^-} f(x) = f(a).

For example, consider the function

f(x)={0 if x<01 if x0f(x) = \begin{cases} 0 & \text{ if } x < 0 \\ 1 & \text{ if } x \ge 0 \end{cases}

In this case, f(x)f(x) is continuous from the right at 0, but not from the left at 0 (since limx0=0\lim_{x \to 0^-}=0, but f(0)=1f(0) = 1).

Continuity laws: The property of continuity behaves similarly to the limit laws above. If f(x)f(x) and g(x)g(x) are continuous at aa, then the following functions are also continuous at aa:

  • f(x)+g(x)f(x) + g(x)
  • f(x)g(x)f(x) - g(x)
  • cf(x)c f(x), where cc is a constant
  • f(x)g(x)f(x) g(x)
  • f(x)/g(x)f(x) / g(x) if g(a)0g(a) \ne 0

Composition: Finally, suppose that gg is continuous at aa and that ff is continuous at g(a)g(a). Then f(g(x))f(g(x)) is continuous at aa. In words, a continuous function of a continuous function is continuous. The function h(x)=f(g(x))h(x) = f(g(x)) is known as the composition of ff and gg.


  1. This section covers limits and continuity from a conceptual standpoint. For a variety of technical reasons, the definition given here isn’t actually satisfactory, and a more rigorous definition is required; see the chapter on analysis.↩︎