In this chapter, we will be looking at the concept of limits. The concept of limits is important in calculus as it helps us to understand the behavior of functions as they approach a certain value. We will be looking at the definition of limits, the properties of limits, and the different types of limits.
One may wonder why we have to learn about limits. It actually comes from the problem of investigating the behavior of functions as they approach a certain value. For example, consider the function f(x)=x−1x2−1. If we substitute x=1 into the function, we get 1−112−1=00. This is known as the function does not define at x=1. However, one may still want to know the behavior of the function as it approaches x=1. This is where the concept of limits comes in.
For another function, consider the function f(x)=x2−x+2 which is defined for all x∈R. Suppose we want to investigate the behavior of the function as x approaches 2, then we may have the following table of value of f(x) as x approaches 2:
x
f(x)
1.9
3.61
1.99
3.9801
1.999
3.998001
While from the right side of x=2, we have the following table of value of f(x) as x approaches 2:
x
f(x)
2.1
4.31
2.01
4.0399
2.001
4.004001
From the tables, we can see that as x approaches 2, the value of f(x) approaches 4. This is known as the limit of the function f(x) as x approaches 2 is 4. We denote this as limx→2f(x)=4.
For a more general case, we have
Definition (Intuitive Definition): Let f(x) be a function defined on an open interval containing x=a except possibly at x=a. We say that the limit of f(x) as x approaches a is L, denoted by limx→af(x)=L, if we can make the values of f(x) arbitrarily close to L by taking x sufficiently close to a but not equal to a.
Roughly speaking, this says that the value of f(x) can be made arbitrarily close to L by taking x sufficiently close to a but not equal to a.
Example: Let f(x)=x2−1 be a function defined for all x∈R. Then, limx→1f(x)=0.
Example: Let f(x)=x1 be a function defined for all x∈R∖{0}. Then guess the value of limx→0f(x).
2.2 One-Sided Limits
In the previous section, we have defined the limit of a function as x approaches a certain value. However, we may also want to investigate the behavior of the function as x approaches the value from the left side or the right side. This is where the concept of one-sided limits comes in.
Definition (One-Sided Limits): Let f(x) be a function defined on an open interval containing x=a except possibly at x=a. We say that the limit of f(x) as x approaches a from the left is L, denoted by limx→a−f(x)=L, if we can make the values of f(x) arbitrarily close to L by taking x sufficiently close to a but not equal to a and x<a.
Similarly, we say that the limit of f(x) as x approaches a from the right is L, denoted by limx→a+f(x)=L, if we can make the values of f(x) arbitrarily close to L by taking x sufficiently close to a but not equal to a and x>a.
Remark:limx→af(x)=L if and only if limx→a−f(x)=L and limx→a+f(x)=L.
Example: Discuss whether limx→0x21 exists.
Definition (Infinite Limits): Let f(x) be a function defined on an open interval containing x=a except possibly at x=a. We say that the limit of f(x) as x approaches a is ∞, denoted by limx→af(x)=∞, if we can make the values of f(x) arbitrarily large by taking x sufficiently close to a but not equal to a.
Similarly, we say that the limit of f(x) as x approaches a is −∞, denoted by limx→af(x)=−∞, if we can make the values of f(x) arbitrarily large negative by taking x sufficiently close to a but not equal to a.
2.3 Calculating Limits
In this section, we will be looking at the methods of calculating limits. There are several methods to calculate limits, such as direct substitution, factoring, rationalizing, and using the squeeze theorem.
But first, we shall provide the properties of limits.
Properties of Limits:
Sum Rule: limx→a[f(x)+g(x)]=limx→af(x)+limx→ag(x).
Quotient Rule: limx→ag(x)f(x)=limx→ag(x)limx→af(x) if limx→ag(x)=0.
Scalar Rule: limx→ac⋅f(x)=c⋅limx→af(x).
Power Rule: limx→a[f(x)]n=[limx→af(x)]n.
Example: Calculate limx→2(x2−1).
Example: Calculate limx→0(2x2−3x+1).
Direct Substitution: If f is a polynomial or a rational function and a is in the domain of f, then limx→af(x)=f(a).
Example: Calculate limx→1x−1x2−1.
Factoring: If f(x) is a rational function and f(a) is undefined, then we can try to factorize f(x) and simplify the expression.
2.4 Analysis of Limits
Even though we have the intuition of limits, we may still want to investigate the behavior of functions as they approach a certain value. In this section, we will be providing a more rigorous definition of limits. (I just want you to learn more only, it should be contained in your undergraduate course)
Definition (Epsilon-Delta Definition): Let f(x) be a function defined on an open interval containing x=a except possibly at x=a. We say that the limit of f(x) as x approaches a is L, denoted by limx→af(x)=L, if for every ϵ>0, there exists a δ>0 such that if 0<∣x−a∣<δ, then ∣f(x)−L∣<ϵ.
Example: Use the Epsilon-Delta Definition to prove that limx→1x2=1.
Proof: Since ∣x2−1∣=∣x−1∣∣x+1∣, we want to find a δ such that if 0<∣x−1∣<δ, then ∣x+1∣<ϵ. Let δ=min{1,2ϵ}. Then, if 0<∣x−1∣<δ, we have ∣x+1∣<2 and ∣x−1∣<1. Hence, ∣x2−1∣=∣x−1∣∣x+1∣<2∣x−1∣<2δ=ϵ. Hence, limx→1x2=1.
2.5 Continuity
In this section, we will be looking at the concept of continuity. The concept of continuity is an extension of the concept of limits. We know from secondary school that a function is continuous if we can draw the graph of the function without lifting the pen. In this section, we will be providing a more rigorous definition of continuity.
Definition (Continuity): Let f(x) be a function defined on an open interval containing x=a. We say that f(x) is continuous at x=a if limx→af(x)=f(a).
Definition (Continuity on an Interval): Let f(x) be a function defined on an interval I. We say that f(x) is continuous on I if f(x) is continuous at every point in I.
Example: Prove that the function f(x)=x2 is continuous for all x∈R.
Proof: Let a∈R. Then, limx→ax2=a2=f(a). Hence, f(x)=x2 is continuous for all x∈R.
Example: Prove that the function f(x)=x1 is continuous for all x∈R∖{0}.
Proof: Let a∈R∖{0}. Then, limx→ax1=a1=f(a). Hence, f(x)=x1 is continuous for all x∈R∖{0}.
Properties of Continuous Functions:
If f(x) and g(x) are continuous at x=a, and if c is a constant, then
f(x)+g(x) is continuous at x=a.
f(x)−g(x) is continuous at x=a.
f(x)⋅g(x) is continuous at x=a.
g(x)f(x) is continuous at x=a if g(a)=0.
c⋅f(x) is continuous at x=a.
f(x)n is continuous at x=a.
f(g(x)) is continuous at x=a if g(x) is continuous at x=a and f(x) is continuous at g(a).
f(x) is continuous at x=a if f(x)≥0 for all x in a neighborhood of a.
∣f(x)∣ is continuous at x=a.
Example: Find the limit limx→−25−3xx3+2x2−1 and determine whether the function is continuous at x=−2.
There is an important theorem that states that if f(x) is continuous on [a,b], and let N be a number between f(a) and f(b), then there exists a number c in [a,b] such that f(c)=N. This is known as the Intermediate Value Theorem.
Intermediate Value Theorem: Let f(x) be a function defined on a closed interval [a,b]. If f(x) is continuous on [a,b], and if N is a number between f(a) and f(b), then there exists a number c in [a,b] such that f(c)=N.
Example: Prove that the equation x3−3x+1=0 has a solution in the interval [0,1].
Proof: Let f(x)=x3−3x+1. Then, f(0)=1 and f(1)=−1. Since f(x) is continuous on [0,1], and 0 is between f(0) and f(1), by the Intermediate Value Theorem, there exists a number c in [0,1] such that f(c)=0. Hence, the equation x3−3x+1=0 has a solution in the interval [0,1].
2.6 Solving Limits Problem with Python
In this section, we will be looking at how to solve limits problem with Python. We will be using the sympy library to solve limits problem.
Example: Find the limit limx→1x−1x2−1.
import sympy as sp
x = sp.symbols('x')
f = (x**2 - 1)/(x - 1) # We use ** for exponentiation
limit = sp.limit(f, x, 1) # the first argument is the function, the second argument is the variable, and the third argument is the value the variable approachesprint(limit)
Example: Find the limit limx→0xsin(x).
import sympy as sp
x = sp.symbols('x')
f = sp.sin(x)/x
limit = sp.limit(f, x, 0)
print(limit)
The result of the first example is 2 and the result of the second example is 1. The first example is quite obvious, but the latter one is not. We can use Python to verify the result.
2.7 Exercises
Find the limit of the following and determine whether the function is continuous at the given value:
limx→0cos(x+sinx)
limx→−3x2+2x−3x2−9
limx→3x2+2x−3x2−9
limr→9r−9r−3
limt→+∞xx+x+x+1
limx→+∞x+x+x−x
Use the epsilon-delta definition to prove the following:
limx→2(14−5x)=4
limx→3(x2−9)=0
Use the Intermediate Value Theorem to prove the following equations with a solution in the given interval: