# 6.3: The Deﬁnition of the Limit of a Function

$$\newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} }$$

$$\newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}}$$

$$\newcommand{\id}{\mathrm{id}}$$ $$\newcommand{\Span}{\mathrm{span}}$$

( \newcommand{\kernel}{\mathrm{null}\,}\) $$\newcommand{\range}{\mathrm{range}\,}$$

$$\newcommand{\RealPart}{\mathrm{Re}}$$ $$\newcommand{\ImaginaryPart}{\mathrm{Im}}$$

$$\newcommand{\Argument}{\mathrm{Arg}}$$ $$\newcommand{\norm}[1]{\| #1 \|}$$

$$\newcommand{\inner}[2]{\langle #1, #2 \rangle}$$

$$\newcommand{\Span}{\mathrm{span}}$$

$$\newcommand{\id}{\mathrm{id}}$$

$$\newcommand{\Span}{\mathrm{span}}$$

$$\newcommand{\kernel}{\mathrm{null}\,}$$

$$\newcommand{\range}{\mathrm{range}\,}$$

$$\newcommand{\RealPart}{\mathrm{Re}}$$

$$\newcommand{\ImaginaryPart}{\mathrm{Im}}$$

$$\newcommand{\Argument}{\mathrm{Arg}}$$

$$\newcommand{\norm}[1]{\| #1 \|}$$

$$\newcommand{\inner}[2]{\langle #1, #2 \rangle}$$

$$\newcommand{\Span}{\mathrm{span}}$$ $$\newcommand{\AA}{\unicode[.8,0]{x212B}}$$

$$\newcommand{\vectorA}[1]{\vec{#1}} % arrow$$

$$\newcommand{\vectorAt}[1]{\vec{\text{#1}}} % arrow$$

$$\newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} }$$

$$\newcommand{\vectorC}[1]{\textbf{#1}}$$

$$\newcommand{\vectorD}[1]{\overrightarrow{#1}}$$

$$\newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}}$$

$$\newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}}$$

$$\newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} }$$

$$\newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}}$$

$$\newcommand{\avec}{\mathbf a}$$ $$\newcommand{\bvec}{\mathbf b}$$ $$\newcommand{\cvec}{\mathbf c}$$ $$\newcommand{\dvec}{\mathbf d}$$ $$\newcommand{\dtil}{\widetilde{\mathbf d}}$$ $$\newcommand{\evec}{\mathbf e}$$ $$\newcommand{\fvec}{\mathbf f}$$ $$\newcommand{\nvec}{\mathbf n}$$ $$\newcommand{\pvec}{\mathbf p}$$ $$\newcommand{\qvec}{\mathbf q}$$ $$\newcommand{\svec}{\mathbf s}$$ $$\newcommand{\tvec}{\mathbf t}$$ $$\newcommand{\uvec}{\mathbf u}$$ $$\newcommand{\vvec}{\mathbf v}$$ $$\newcommand{\wvec}{\mathbf w}$$ $$\newcommand{\xvec}{\mathbf x}$$ $$\newcommand{\yvec}{\mathbf y}$$ $$\newcommand{\zvec}{\mathbf z}$$ $$\newcommand{\rvec}{\mathbf r}$$ $$\newcommand{\mvec}{\mathbf m}$$ $$\newcommand{\zerovec}{\mathbf 0}$$ $$\newcommand{\onevec}{\mathbf 1}$$ $$\newcommand{\real}{\mathbb R}$$ $$\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}$$ $$\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}$$ $$\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}$$ $$\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}$$ $$\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}$$ $$\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}$$ $$\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}$$ $$\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}$$ $$\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}$$ $$\newcommand{\laspan}[1]{\text{Span}\{#1\}}$$ $$\newcommand{\bcal}{\cal B}$$ $$\newcommand{\ccal}{\cal C}$$ $$\newcommand{\scal}{\cal S}$$ $$\newcommand{\wcal}{\cal W}$$ $$\newcommand{\ecal}{\cal E}$$ $$\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}$$ $$\newcommand{\gray}[1]{\color{gray}{#1}}$$ $$\newcommand{\lgray}[1]{\color{lightgray}{#1}}$$ $$\newcommand{\rank}{\operatorname{rank}}$$ $$\newcommand{\row}{\text{Row}}$$ $$\newcommand{\col}{\text{Col}}$$ $$\renewcommand{\row}{\text{Row}}$$ $$\newcommand{\nul}{\text{Nul}}$$ $$\newcommand{\var}{\text{Var}}$$ $$\newcommand{\corr}{\text{corr}}$$ $$\newcommand{\len}[1]{\left|#1\right|}$$ $$\newcommand{\bbar}{\overline{\bvec}}$$ $$\newcommand{\bhat}{\widehat{\bvec}}$$ $$\newcommand{\bperp}{\bvec^\perp}$$ $$\newcommand{\xhat}{\widehat{\xvec}}$$ $$\newcommand{\vhat}{\widehat{\vvec}}$$ $$\newcommand{\uhat}{\widehat{\uvec}}$$ $$\newcommand{\what}{\widehat{\wvec}}$$ $$\newcommand{\Sighat}{\widehat{\Sigma}}$$ $$\newcommand{\lt}{<}$$ $$\newcommand{\gt}{>}$$ $$\newcommand{\amp}{&}$$ $$\definecolor{fillinmathshade}{gray}{0.9}$$
##### Learning Objectives
• Explain the Limit of a function

Since these days the limit concept is generally regarded as the starting point for calculus, you might think it is a little strange that we’ve chosen to talk about continuity first. But historically, the formal definition of a limit came after the formal definition of continuity. In some ways, the limit concept was part of a unification of all the ideas of calculus that were studied previously and, subsequently, it became the basis for all ideas in calculus. For this reason it is logical to make it the first topic covered in a calculus course.

To be sure, limits were always lurking in the background. In his attempts to justify his calculations, Newton used what he called his doctrine of “Ultimate Ratios.” Specifically the ratio

$\dfrac{(x+h)^2 - x^2}{h} = \dfrac{2xh+h^2}{h} = 2x + h$

becomes the ultimate ratio $$2x$$ at the last instant of time before $$h$$ - an “evanescent quantity” - vanishes. Similarly Leibniz’s “infinitely small” differentials $$dx$$ and $$dy$$ can be seen as an attempt to get “arbitrarily close” to $$x$$ and $$y$$, respectively. This is the idea at the heart of calculus: to get arbitrarily close to, say, $$x$$ without actually reaching it.

As we saw in Chapter 3, Lagrange tried to avoid the entire issue of “arbitrary closesness,” both in the limit and differential forms when, in 1797, he attempted to found calculus on infinite series.

Although Lagrange’s efforts failed, they set the stage for Cauchy to provide a definition of derivative which in turn relied on his precise formulation of a limit. Consider the following example: to determine the slope of the tangent line (derivative) of $$f(x) = \sin x$$ at $$x = 0$$. We consider the graph of the difference quotient $$D(x) = \dfrac{\sin x}{x}$$.

Figure $$\PageIndex{1}$$: Slope of the tangent line (derivative) of $$f(x) = \sin x$$.

From the graph, it appears that $$D(0) = 1$$ but we must be careful. $$D(0)$$ doesn’t even exist! Somehow we must convey the idea that $$D(x)$$ will approach $$1$$ as $$x$$ approaches $$0$$, even though the function is not defined at $$0$$. Cauchy’s idea was that the limit of $$D(x)$$ would equal $$1$$ because we can make $$D(x)$$ differ from $$1$$ by as little as we wish.

Karl Weierstrass made these ideas precise in his lectures on analysis at the University of Berlin (1859-60) and provided us with our modern formulation.

##### Definition

We say $$\displaystyle \lim_{x \to a} f(x) = L$$ provided that for each $$ε > 0$$, there exists $$δ > 0$$ such that if $$0 < |x - a| < δ$$ then $$|f(x) - L| < ε$$.

Before we delve into this, notice that it is very similar to the definition of the continuity of $$f(x)$$ at $$x = a$$. In fact we can readily see that $$f$$ is continuous at $$x = a$$ if and only if $$\displaystyle \lim_{x \to a} f(x) = f(a)$$.

There are two differences between this definition and the definition of continuity and they are related. The first is that we replace the value $$f(a)$$ with $$L$$. This is because the function may not be defined at $$a$$. In a sense the limiting value $$L$$ is the value $$f$$ would have if it were defined and continuous at $$a$$. The second is that we have replaced

$|x - a| < δ$

with

$0 < |x - a| < δ$

Again, since $$f$$ needn’t be defined at $$a$$, we will not even consider what happens when $$x = a$$. This is the only purpose for this change.

As with the definition of the limit of a sequence, this definition does not determine what $$L$$ is, it only verifies that your guess for the value of the limit is correct.

Finally, a few comments on the differences and similiarities between this limit and the limit of a sequence are in order, if for no other reason than because we use the same notation ($$\displaystyle \lim$$) for both.

When we were working with sequences in Chapter 4 and wrote things like $$\displaystyle \lim_{n \to \infty } a_n$$ we were thinking of $$n$$ as an integer that got bigger and bigger. To put that more mathematically, the limit parameter $$n$$ was taken from the set of positive integers, or $$n ∈ \mathbb{N}$$.

For both continuity and the limit of a function we write things like $$\displaystyle \lim_{x \to a} f(x)$$ and think of $$x$$ as a variable that gets arbitrarily close to the number $$a$$. Again, to be more mathematical in our language we would say that the limit parameter $$x$$ is taken from the ... Well, actually, this is interesting isn’t it? Do we need to take $$x$$ from $$\mathbb{Q}$$ or from $$\mathbb{R}$$? The requirement in both cases is simply that we be able to choose $$x$$ arbitrarily close to a. From Theorem 1.1.2 of Chapter 1 we see that this is possible whether $$x$$ is rational or not, so it seems either will work. This leads to the pardoxical sounding conclusion that we do not need a continuum ($$\mathbb{R}$$) to have continuity. This seems strange.

Before we look at the above example, let’s look at some algebraic examples to see the definition in use.

##### Example $$\PageIndex{1}$$:

Consider the function $$D(x) = \dfrac{x^2 -1}{x-1}, x\neq 1$$. You probably recognize this as the difference quotient used to compute the derivative of $$f(x) = x^2$$ at $$x = 1$$, so we strongly suspect that $$\displaystyle \lim_{x \to 1}\dfrac{x^2 -1}{x-1} = 2$$. Just as when we were dealing with limits of sequences, we should be able to use the definition to verify this. And as before, we will start with some scrapwork.

Scrapwork:

Let $$ε > 0$$. We wish to find a $$δ > 0$$ such that if $$0 < |x - 1| < δ$$ then $$\left |\dfrac{x^2 -1}{x-1} - 2 \right | < \varepsilon$$. With this in mind, we perform the following calculations

\begin{align*} \left |\dfrac{x^2 -1}{x-1} - 2 \right | &= \left | (x+1) - 2 \right | \\[4pt] &= \left | x - 1 \right | \end{align*}

Now we have a handle on $$δ$$ that will work in the definition and we’ll give the formal proof that

$\lim_{x \to 1}\dfrac{x^2 -1}{x-1} = 2 \nonumber$

End of Scrapwork.

Proof:

Let $$ε > 0$$ and let $$δ = ε$$. If $$0 < |x - 1| < δ$$, then

\begin{align*} \left |\dfrac{x^2 -1}{x-1} - 2 \right | &= \left | (x+1) - 2 \right | \\[4pt] &= \left | x - 1 \right | < \delta = \varepsilon \end{align*}

As in our previous work with sequences and continuity, notice that the scrapwork is not part of the formal proof (though it was necessary to determine an appropriate $$δ$$). Also, notice that $$0 < |x - 1|$$ was not really used except to ensure that $$x \neq 1$$.

##### Exercise $$\PageIndex{1}$$

Use the definition of a limit to verify that

$\displaystyle \lim_{x \to a}\dfrac{x^2 - a^2}{x-a} = 2a.$

##### Exercise $$\PageIndex{2}$$

Use the definition of a limit to verify each of the following limits.

1. $$\displaystyle \lim_{x \to 1}\dfrac{x^3 - 1}{x-1} = 3$$
2. $$\displaystyle \lim_{x \to 1} \dfrac{\sqrt{x}-1}{x-1} = \dfrac{1}{2}$$
Hint a

\begin{align*} \left |\dfrac{x^3 - 1}{x-1} - 3 \right | &= \left | x^2 + x + 1 - 3 \right |\\ &\leq \left | x^2 - 1 \right | + \left | x - 1 \right |\\ &= \left | (x-1+1)^2 - 1 \right | + \left | x - 1 \right |\\ &= \left | (x-1)^2 +2(x-1) \right | + \left | x - 1 \right |\\ &\leq \left | x - 1 \right |^2 + 3\left | x - 1 \right | \end{align*}

Hint b

\begin{align*} \left | \dfrac{\sqrt{x}-1}{x-1} - \dfrac{1}{2} \right | &= \left |\dfrac{1}{\sqrt{x}+1} - \dfrac{1}{2} \right |\\ &= \left | \dfrac{2-(\sqrt{x}+1)}{2(\sqrt{x})+1} \right |\\ &= \left | \dfrac{1-x}{2(1+\sqrt{x})^2} \right |\\ &\leq \dfrac{1}{2}\left | x-1 \right | \end{align*}

Let’s go back to the original problem: to show that $$\displaystyle \lim_{x \to 0} \dfrac{\sin x}{x} = 1$$.

While rigorous, our definition of continuity is quite cumbersome. We really need to develop some tools we can use to show continuity rigorously without having to refer directly to the definition. We have already seen in Theorem 6.2.1 one way to do this. Here is another. The key is the observation we made after the definition of a limit:

$f \text{ is continuous at } x = a \text{ if and only if }\lim_{x \to a} f(x) = f(a)$

Read another way, we could say that $$\displaystyle \lim_{x \to a} f(x) = L$$ provided that if we redefine $$f(a) = L$$ (or define $$f(a) = L$$ in the case where $$f(a)$$ is not defined) then $$f$$ becomes continuous at $$a$$. This allows us to use all of the machinery we proved about continuous functions and limits of sequences.

For example, the following corollary to Theorem 6.2.1 comes virtually for free once we’ve made the observation above.

##### Corollary $$\PageIndex{1}$$

$$\displaystyle \lim_{x \to a} f(x) = L$$ if and only if $$f$$ satisfies the following property:

$\forall \text{ sequences }(x_n),x_n\neq a, \text{ if }\lim_{x \to \infty } x_n = a \text{ then } \lim_{x \to \infty } f(x_n) = L$

Armed with this, we can prove the following familiar limit theorems from calculus.

##### Theorem $$\PageIndex{1}$$

Suppose $$\displaystyle \lim_{x \to a} f(x) = L$$ and $$\displaystyle \lim_{x \to a} g(x) = M$$, then

1. $$\displaystyle \lim_{x \to a} (f(x) + g(x)) = L + M$$
2. $$\displaystyle \lim_{x \to a} (f(x) \cdot g(x)) = L \cdot M$$
3. $$\displaystyle \lim_{x \to a} \left ( \dfrac{f(x)}{g(x)} \right ) = \dfrac{L}{M}$$ provided $$M \neq 0$$ and $$g(x) \neq 0$$, for $$x$$ sufficiently close to $$a$$ (but not equal to $$a$$).

We will prove part (a) to give you a feel for this and let you prove parts (b) and (c).

##### Proof

Let ($$x_n$$) be a sequence such that $$x_n \neq a$$ and $$\displaystyle \lim_{n \to \infty }x_n = a$$. Since $$\displaystyle \lim_{x \to a} f(x) = L$$ and $$\displaystyle \lim_{x \to a} g(x) = M$$ we see that $$\displaystyle \lim_{n \to \infty } f(x_n) = L$$ and $$\displaystyle \lim_{n \to \infty } g(x_n) = M$$. By Theorem 4.2.1 of Chapter 4, we have $$\displaystyle \lim_{n \to \infty } f(x_n) + g(x_n) = L + M$$. Since {$$x_n$$} was an arbitrary sequence with $$x_n \neq a$$ and $$\displaystyle \lim_{n \to \infty }x_n = a$$ we have

$\lim_{x \to a} f(x) + g(x) = L + M.\nonumber$

##### Exercise $$\PageIndex{3}$$

Prove parts (b) and (c) of Theorem $$\PageIndex{1}$$.

More in line with our current needs, we have a reformulation of the Squeeze Theorem.

##### Theorem $$\PageIndex{2}$$: Squeeze Theorem for functions

Suppose $$f(x) ≤ g(x) ≤ h(x)$$, for $$x$$ sufficiently close to $$a$$ (but not equal to $$a$$). If

$\lim_{x \to a} f(x) = L = \lim_{x \to a} h(x)$

then also

$\lim_{x \to a} g(x) = L.$

##### Exercise $$\PageIndex{4}$$

Prove Theorem $$\PageIndex{2}$$.

Hint

Use the Squeeze Theorem for sequences (Theorem 4.2.4) from Chapter 4.

Returning to $$\displaystyle \lim_{x \to 0} \dfrac{\sin x}{x}$$ we’ll see that the Squeeze Theorem is just what we need. First notice that since $$D(x) = \dfrac{\sin x}{x}$$ is an even function, we only need to focus on $$x > 0$$ in our inequalities. Consider the unit circle.

Figure $$\PageIndex{2}$$: The Unit circle.

##### Exercise $$\PageIndex{5}$$

Use the fact that $$\text{area}(∆OAC) < \text{area}(sector OAC) < \text{area}(∆OAB)$$ to show that if $$0 < x < \dfrac{π}{2}$$, then $$\cos x < \dfrac{\sin x}{x} < 1$$. Use the fact that all of these functions are even to extend the inequality for $$-\dfrac{π}{2} < x < 0$$ and use the Squeeze Theorem to show $$\displaystyle \lim_{x \to 0} \dfrac{\sin x}{x} = 1$$.

This page titled 6.3: The Deﬁnition of the Limit of a Function is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by Eugene Boman and Robert Rogers (OpenSUNY) via source content that was edited to the style and standards of the LibreTexts platform.