We've already talked about the limit of a sequence, and, since a sequence is a particular case of a function, there will be a similarity between the sequence and the function. We are also going to extend some concepts.
Example 1. Let's investigate the behavior of y=x2 near the point x=2.
To do this, let's take the points sufficiently close to 2 and evaluate the corresponding y-values.
x | 1.9 | 1.99 | 1.999 | 2.0001 | 2.001 | 2.01 |
y=x2 | 3.61 | 3.9601 | 3.996001 | 4.00040001 | 4.004001 | 4.0401 |
We see that as x approaches 2, f(x) approaches 4, no matter whether we take the points greater than 2 or less than 2. We write this fact as limx→2x2=4.
Definition. We write that limx→af(x)=L and say, "the limit of f(x), as x approaches a, equals L" if for any ϵ>0 there exists δ>0 such that ∣f(x)−L∣<ϵ when ∣x−a∣<δ.
To put it simply, this means that limx→af(x)=L if we can make f(x) as close to L as we like by taking an x sufficiently close to a.
We will also use the following notation: f(x)→L as x→a.
From the definition, it follows that we only care about the behavior of the function at the points near a, not at a itself. This means that f(x) can even be not defined at a but still have limx→af(x).
For example, consider the function f(x)=x2 and g(x)={x2ifx=2undefinedifx=2.
Note that limx→2f(x)=limx→2g(x)=4 even despite the fact that g(x) is not defined at 2. That's because we don't care about the function at 2, we are only interested in the bevavior near 2.
Note that ∣x−a∣<δ is equivalent to the double inequality −δ<x−a<δ or a−δ<x<a+δ.
Let's do a couple of examples trying to guess the limit. Note that this approach is not correct but it allows to understand better the limits.
Example 2. Calculate limx→1(x+1).
Let's see what value (x+1) approaches as x approaches 1.
x | 0.9 | 0.99 | 0.999 | 1.0001 | 1.001 | 1.01 |
y=x+1 | 1.9 | 1.99 | 1.999 | 2.0001 | 2.001 | 2.01 |
So, as x approaches 1, f(x) approaches 2; thus, limx→1(x+1)=2.
One more quick example.
Example 3. Calculate limx→1x2−1x−1.
Let's see what value x2−1x−1 approaches when x approaches 1.
x | 0.9 | 0.99 | 0.999 | 1.0001 | 1.001 | 1.01 |
y=x2−1x−1 | 0.92−10.9−1=0.5263 | 0.5025 | 0.5003 | 0.499975 | 0.49975 | 0.4975 |
So, as x approaches 1, f(x) approaches 0.5; thus, limx→1x2−1x−1=21.
And another useful example.
Example 4. Calculate limx→0cos(xπ).
Let's see where cos(xπ) goes when x approaches 0.
x | f(x) |
1 | cos(1π)=−1 |
0.1 | sin(0.1π)=−1 |
0.001 | sin(0.001π)=−1 |
0.0001 | sin(0.0001π)=−1 |
It seems that limx→0cos(xπ)=−1, but this is the WRONG answer! The reason is that we took only the values at which cos(xπ)=−1.
Note that cos(xπ)=−1 when x=n1 for any integer n.
But also cos(xπ)=0 for infinitely many values of x that approach 0. In fact, as x approaches 0, the cosine takes any value from the interval [−1,1]. In other words, cos(xπ) oscillates infinitely many times as x approaches 0.
Since cos(xπ) doesn't approach any fixed value, limx→0cos(xπ) doesn't exist.
This example shows that we can guess the wrong value if we take the inappropriate values of x. It is also difficult to understand when to stop calculating the values. However, we will give the correct methods for calculating the limits.
Let's finalize our work with one last example.
Example 5. Calculate limx→0x21.
As x approaches 0, x2 also approaches 0; so, x21 becomes very large (for example, when x=0.001, we have that x21=1000000). Thus, the value of f(x) approaches infinity without a bound; so, limx→0x21=∞.