Skip to main content

CLP-1 Differential Calculus

Section 1.4 Calculating Limits with Limit Laws

Subsection 1.4.1 Calculating Limits with Limit Laws

Think back to the functions you know and the sorts of things you have been asked to draw, factor and so on. Then they are all constructed from simple pieces, such as
  • constants — c
  • monomials — xn
  • trigonometric functions — sin(x),cos(x) and tan(x)
These are the building blocks from which we construct functions. Soon we will add a few more functions to this list, especially the exponential function and various inverse functions.
We then take these building blocks and piece them together using arithmetic
  • addition and subtraction — f(x)=g(x)+h(x) and f(x)=g(x)h(x)
  • multiplication — f(x)=g(x)h(x)
  • division — f(x)=g(x)h(x)
  • substitution — f(x)=g(h(x)) — this is also called the composition of g with h.
The idea of building up complicated functions from simpler pieces was discussed in Section 0.5.
What we will learn in this section is how to compute the limits of the basic building blocks and then how we can compute limits of sums, products and so forth using “limit laws”. This process allows us to compute limits of complicated functions, using very simple tools and without having to resort to “plugging in numbers” or “closer and closer” or “ϵδ arguments”.
In the examples we saw above, almost all the interesting limits happened at points where the underlying function was badly behaved — where it jumped, was not defined or blew up to infinity. In those cases we had to be careful and think about what was happening. Thankfully most functions we will see do not have too many points at which these sorts of things happen.
For example, polynomials do not have any nasty jumps and are defined everywhere and do not “blow up”. If you plot them, they look smooth
 1 
We have used this term in an imprecise way, but it does have a precise mathematical meaning.
. Polynomials and limits behave very nicely together, and for any polynomial P(x) and any real number a we have that
limxaP(x)=P(a)
That is — to evaluate the limit we just plug in the number. We will build up to this result over the next few pages.
Let us start with the two easiest limits
 2 
Though it lies outside the scope of the course, you can find the formal ϵ-δ proof of this result at the end of Section 1.7.
Since we have not seen too many theorems yet, let us examine it carefully piece by piece.
  • Let a,cR — just as was the case for definitions, we start a theorem by defining terms and setting the scene. There is not too much scene to set: the symbols a and c are real numbers.
  • The following two limits hold — this doesn’t really contribute much to the statement of the theorem, it just makes it easier to read.
  • limxac=c — when we take the limit of a constant function (for example think of c=3), the limit is (unsurprisingly) just that same constant.
  • limxax=a — as we noted above for general polynomials, the limit of the function f(x)=x as x approaches a given point a, is just a. This says something quite obvious — as x approaches a, x approaches a (if you are not convinced then sketch the graph).
Armed with only these two limits, we cannot do very much. But combining these limits with some arithmetic we can do quite a lot. For a moment, take a step back from limits for a moment and think about how we construct functions. To make the discussion a little more precise think about how we might construct the function
h(x)=2x3x2+5x6
If we want to compute the value of the function at x=2, then we would
  • compute the numerator at x=2
  • compute the denominator at x=2
  • compute the ratio
Now to compute the numerator we
  • take x and multiply it by 2
  • subtract 3 to the result
While for the denominator
  • multiply x by x
  • multiply x by 5
  • add these two numbers and subtract 6
This sequence of operations can be represented pictorially as the tree shown in Figure 1.4.2 below.
Figure 1.4.2.
Such trees were discussed in Section 0.5 (now is not a bad time to quickly review that section before proceeding). The point here is that in order to compute the value of the function we just repeatedly add, subtract, multiply and divide constants and x.
To compute the limit of the above function at x=2 we can do something very similar. From the previous theorem we know how to compute
limx2c=candlimx2x=2
and the next theorem will tell us how to stitch together these two limits using the arithmetic we used to construct the function.
The above theorem shows that limits interact very simply with arithmetic. If you are asked to find the limit of a sum then the answer is just the sum of the limits. Similarly the limit of a product is just the product of the limits.
How do we apply the above theorem to the rational function h(x) we defined above? Here is a warm-up example:

Example 1.4.4. Using limit laws.

You are given two functions f,g (not explicitly) which have the following limits as x approaches 1:
limx1f(x)=3andlimx1g(x)=2
Using the above theorem we can compute
limx13f(x)=3×3=9limx13f(x)g(x)=3×32=7limx1f(x)g(x)=3×2=6limx1f(x)f(x)g(x)=332=3
Another simple example

Example 1.4.5. More using limit laws.

Find limx34x21
We use the arithmetic of limits:
limx34x21=(limx34x2)limx31difference of limits=(limx34limx3x2)limx31product of limits=4(limx3x2)1limit of constant=4(limx3x)(limx3x)1product of limits=4331limit of x=361=35
This is an excruciating level of detail, but when you first use this theorem and try some examples it is a good idea to do things step by step by step until you are comfortable with it.

Example 1.4.6. Yet more using limit laws.

Yet another limit — compute limx2xx1.
To apply the arithmetic of limits, we need to examine numerator and denominator separately and make sure the limit of the denominator is non-zero. Numerator first:
limx2x=2limit of x

and now the denominator:

limx2x1=(limx2x)(limx21)difference of limits=21limit of x and limit of constant=1
Since the limit of the denominator is non-zero we can put it back together to get
limx2xx1=limx2xlimx2(x1)=21=2
In the next example we show that many different things can happen if the limit of the denominator is zero.

Example 1.4.7. Be careful with limits of ratios.

We must be careful when computing the limit of a ratio — it is the ratio of the limits except when the limit of the denominator is zero. When the limit of the denominator is zero Theorem 1.4.3 does not apply and a few interesting things can happen
  • If the limit of the numerator is non-zero then the limit of the ratio does not exist
    limxaf(x)g(x)=DNEwhen limxaf(x)0 and limxag(x)=0
    For example, limx01x2=DNE.
  • If the limit of the numerator is zero then the above theorem does not give us enough information to decide whether or not the limit exists. It is possible that
    • the limit does not exist, eg. limx0xx2=limx01x=DNE
    • the limit is ±, eg. limx0x2x4=limx01x2=+ or limx0x2x4=limx01x2=.
    • the limit is zero, eg. limx0x2x=0
    • the limit exists and is non-zero, eg. limx0xx=1
Now while the above examples are very simple and a little contrived they serve to illustrate the point we are trying to make — be careful if the limit of the denominator is zero.
We now have enough theory to return to our rational function and compute its limit as x approaches 2.

Example 1.4.8. More on limits of ratios.

Let h(x)=2x3x2+5x6 and find its limit as x approaches 2.
Since this is the limit of a ratio, we compute the limit of the numerator and denominator separately. Numerator first:
limx22x3=(limx22x)(limx23)difference of limits=2(limx2x)3product of limits and limit of constant=223limits of x=1
Denominator next:
limx2x2+5x6=(limx2x2)+(limx25x)(limx26)sum of limits=(limx2x)(limx2x)+5(limx2x)6product of limits and limit of constant=22+526limits of x=8
Since the limit of the denominator is non-zero, we can obtain our result by taking the ratio of the separate limits.
limx22x3x2+5x6=limx22x3limx2x2+5x6=18
The above works out quite simply. However, if we were to take the limit as x1 then things are a bit harder. The limit of the numerator is:
limx12x3=213=1
(we have not listed all the steps). And the limit of the denominator is
limx1x2+5x6=11+56=0
Since the limit of the numerator is non-zero, while the limit of the denominator is zero, the limit of the ratio does not exist.
limx12x3x2+5x6=DNE
It is IMPORTANT TO NOTE that it is not correct to write
limx12x3x2+5x6=10=DNE
Because we can only write
limxaf(x)g(x)=limxaf(x)limxag(x)=something
when the limit of the denominator is non-zero (see Example 1.4.7 above).
With a little care you can use the arithmetic of limits to obtain the following rules for limits of powers of functions and limits of roots of functions:
Notice that we have to be careful when taking roots of limits that might be negative numbers. To see why, consider the case n=2, the limit
limx4x1/2=41/2=2limx4(x)1/2=(4)1/2=not a real number
In order to evaluate such limits properly we need to use complex numbers which are beyond the scope of this text.
Also note that the notation x1/2 refers to the positive square root of x. While 2 and (2) are both square-roots of 4, the notation 41/2 means 2. This is something we must be careful of
 4 
Like ending sentences in prepositions — “This is something up with which we will not put.” This quote is attributed to Churchill though there is some dispute as to whether or not he really said it.
.
So again — let us do a few examples and carefully note what we are doing.

Example 1.4.10. limx2(4x23)1/3.

limx2(4x23)1/3=((limx24x2)(limx23))1/3=(4223)1/3=(163)1/3=131/3
By combining the last few theorems we can make the evaluation of limits of polynomials and rational functions much easier:
So the previous examples are now much easier to compute:
limx22x3x2+5x6=434+106=18limx2(4x21)=161=15limx2xx1=221=2
It is clear that limits of polynomials are very easy, while those of rational functions are easy except when the denominator might go to zero. We have seen examples where the resulting limit does not exist, and some where it does. We now work to explain this more systematically. The following example demonstrates that it is sometimes possible to take the limit of a rational function to a point at which the denominator is zero. Indeed we must be able to do exactly this in order to be able to define derivatives in the next chapter.

Example 1.4.12. Numerator and denominator both go to 0.

Consider the limit
limx1x3x2x1.
If we try to apply the arithmetic of limits then we compute the limits of the numerator and denominator separately
limx1x3x2=11=0limx1x1=11=0
Since the denominator is zero, we cannot apply our theorem and we are, for the moment, stuck. However, there is more that we can do here — the hint is that the numerator and denominator both approach zero as x approaches 1. This means that there might be something we can cancel.
So let us play with the expression a little more before we take the limit:
x3x2x1=x2(x1)x1=x2 provided x1.
So what we really have here is the following function
x3x2x1={x2x1undefined x=1
If we plot the above function the graph looks exactly the same as y=x2 except that the function is not defined at x=1 (since at x=1 both numerator and denominator are zero).
When we compute a limit as xa, the value of the function exactly at x=a is irrelevant. We only care what happens to the function as we bring x very close to a. So for the above problem we can write
x3x2x1=x2when x is close to 1 but not at x=1
So the limit as x1 of the function is the same as the limit limx1x2 since the functions are the same except exactly at x=1. By this reasoning we get
limx1x3x2x1=limx1x2=1
The reasoning in the above example can be made more general:
How do we know when to use this theorem? The big clue is that when we try to compute the limit in a naive way, we end up with 00. We know that 00 does not make sense, but it is an indication that there might be a common factor between numerator and denominator that can be cancelled. In the previous example, this common factor was (x1).

Example 1.4.14. Another numerator and denominator both go to 0 limit.

Using this idea compute
limh0(1+h)21h
  • First we should check that we cannot just substitute h=0 into this — clearly we cannot because the denominator would be 0.
  • But we should also check the numerator to see if we have 00, and we see that the numerator gives us 11=0.
  • Thus we have a hint that there is a common factor that we might be able to cancel. So now we look for the common factor and try to cancel it.
    (1+h)21h=1+2h+h21hexpand=2h+h2h=h(2+h)hfactor and then cancel=2+h
  • Thus we really have that
    (1+h)21h={2+hh0undefinedh=0
    and because of this
    limh0(1+h)21h=limh02+h=2
Of course — we have written everything out in great detail here and that is way more than is required for a solution to such a problem. Let us do it again a little more succinctly.

Example 1.4.15. limh0(1+h)21h.

Compute the following limit:
limh0(1+h)21h
If we try to use the arithmetic of limits, then we see that the limit of the numerator and the limit of the denominator are both zero. Hence we should try to factor them and cancel any common factor. This gives
limh0(1+h)21h=limh01+2h+h21h=limh02+h=2
Notice that even though we did this example carefully above, we have still written some text in our working explaining what we have done. You should always think about the reader and if in doubt, put in more explanation rather than less. We could make the above example even more terse

Example 1.4.16. Redoing previous example with fewer words.

Compute the following limit:
limh0(1+h)21h
Numerator and denominator both go to zero as h0. So factor and simplify:
limh0(1+h)21h=limh01+2h+h21h=limh02+h=2
A slightly harder one now

Example 1.4.17. A harder limit with cancellations.

Compute the limit
limx0x1+x1
If we try to use the arithmetic of limits we get
limx0x=0limx01+x1=limx01+x1=11=0
So doing the naive thing we’d get 0/0. This suggests a common factor that can be cancelled. Since the numerator and denominator are not polynomials we have to try other tricks
 5 
While these tricks are useful (and even cute
 6 
Mathematicians tend to have quite strong opinions on the beauty of mathematics. For example, Paul Erdős
 7 
Arguably the most prolific mathematician of the 20th century — definitely worth a google. The authors do not know his opinion on nested footnotes
 8 
Nested footnotes are generally frowned upon, since they can get quite contorted; see XKCD-1208 and also the novel “House of Leaves” by Mark Z. Danielewski.
.
said “Why are numbers beautiful? It’s like asking why is Beethoven’s Ninth Symphony beautiful. If you don’t see why, someone can’t tell you. I know numbers are beautiful. If they aren’t beautiful, nothing is.”.
— this footnote is better in the online edition), Taylor polynomials (see Section 3.4) give us a more systematic way of approaching this problem.
. We can simplify the denominator 1+x1 a lot, and in particular eliminate the square root, by multiplying it by its conjugate 1+x+1.
x1+x1=x1+x1×1+x+11+x+1multiply by conjugateconjugate=1=x(1+x+1)(1+x1)(1+x+1)bring things together =x(1+x+1)(1+x)211since (ab)(a+b)=a2b2=x(1+x+1)1+x1clean up a little=x(1+x+1)x=1+x+1cancel the x
So now we have
limx0x1+x1=limx01+x+1=1+0+1=2
How did we know what to multiply by? Our function was of the form
abc
so, to eliminate the square root from the denominator, we employ a trick — we multiply by 1. Of course, multiplying by 1 doesn’t do anything. But if you multiply by 1 carefully you can leave the value the same, but change the form of the expression. More precisely
abc=abc1=abcb+cb+c=1=a(b+c)(bc)(b+c)expand denominator carefully=a(b+c)bbcb+cbccdo some cancellation=a(b+c)bc2
Now the numerator contains roots, but the denominator is just a polynomial.
Before we move on to limits at infinity, there is one more theorem to see. While the scope of its application is quite limited, it can be extremely useful. It is called a sandwich theorem or a squeeze theorem for reasons that will become apparent.
Sometimes one is presented with an unpleasant ugly function such as
f(x)=x2sin(π/x)
It is a fact of life, that not all the functions that are encountered in mathematics will be elegant and simple; this is especially true when the mathematics gets applied to real world problems. One just has to work with what one gets. So how can we compute
limx0x2sin(π/x)?
Since it is the product of two functions, we might try
limx0x2sin(π/x)=(limx0x2)(limx0sin(π/x))=0(limx0sin(π/x))=0
But we just cheated — we cannot use the arithmetic of limits theorem here, because the limit
limx0sin(π/x)=DNE
does not exist. Now we did see the function sin(π/x) before (in Example 1.3.5), so you should go back and look at it again. Unfortunately the theorem “the limit of a product is the product of the limits” only holds when the limits you are trying to multiply together actually exist. So we cannot use it.
However, we do see that the function naturally decomposes into the product of two pieces — the functions x2 and sin(π/x). We have sketched the two functions in the figure on the left below.
While x2 is a very well behaved function and we know quite a lot about it, the function sin(π/x) is quite ugly. One of the few things we can say about it is the following
1sin(π/x)1provided x0
But if we multiply this expression by x2 we get (because x20)
x2x2sin(π/x)x2provided x0
and we have sketched the result in the figure above (on the right). So the function we are interested in is squeezed or sandwiched between the functions x2 and x2.
If we focus in on the picture close to x=0 we see that x approaches 0, the functions x2 and x2 both approach 0. Further, because x2sin(π/x) is sandwiched between them, it seems that it also approaches 0.
The following theorem tells us that this is indeed the case:
Using the above theorem we can compute the limit we want and write it up nicely.

Example 1.4.19. limx0x2sin(π/x).

Compute the limit
limx0x2sin(π/x)
Since 1sin(θ)1 for all real numbers θ, we have
1sin(π/x)1for all x0
Multiplying the above by x2 we see that
x2x2sin(π/x)x2for all x0
Since limx0x2=limx0(x2)=0 by the sandwich (or squeeze or pinch) theorem we have
limx0x2sin(π/x)=0
Notice how we have used “words”. We have remarked on this several times already in the text, but we will keep mentioning it. It is okay to use words in your answers to maths problems — and you should do so! These let the reader know what you are doing and help you understand what you are doing.

Example 1.4.20. Another sandwich theorem example.

Let f(x) be a function such that 1f(x)x22x+2. What is limx1f(x)?
We are already supplied with an inequality, so it is likely that it is going to help us. We should examine the limits of each side to see if they are the same:
limx11=1limx1x22x+2=12+2=1
So we see that the function f(x) is trapped between two functions that both approach 1 as x1. Hence by the sandwich / pinch / squeeze theorem, we know that
limx1f(x)=1
To get some intuition as to why the squeeze theorem is true, consider when x is very very close to a. In particular, consider when x is sufficiently close to a that we know h(x) is within 106 of L and that f(x) is also within 106 of L. That is
|h(x)L|<106and|f(x)L|<106.
This means that
L106<f(x)h(x)<L+106
since we know that f(x)h(x).
But now by the hypothesis of the squeeze theorem we know that f(x)g(x)h(x) and so we have
L106<f(x)g(x)h(x)<L+106
And thus we know that
L106g(x)L+106
That is g(x) is also within 106 of L.
In this argument our choice of 106 was arbitrary, so we can really replace 106 with any small number we like. Hence we know that we can force g(x) as close to L as we like, by bringing x sufficiently close to a. We give a more formal and rigorous version of this argument at the end of Section 1.9.

Exercises 1.4.2 Exercises

Exercises — Stage 1 .

1.
Suppose limxaf(x)=0 and limxag(x)=0. Which of the following limits can you compute, given this information?
  1. limxaf(x)2
  2. limxa2f(x)
  3. limxaf(x)g(x)
  4. limxaf(x)g(x)
2.
Give two functions f(x) and g(x) that satisfy limx3f(x)=limx3g(x)=0 and limx3f(x)g(x)=10.
3.
Give two functions f(x) and g(x) that satisfy limx3f(x)=limx3g(x)=0 and limx3f(x)g(x)=0.
4.
Give two functions f(x) and g(x) that satisfy limx3f(x)=limx3g(x)=0 and limx3f(x)g(x)=.
5.
Suppose limxaf(x)=limxag(x)=0. What are the possible values of limxaf(x)g(x)?

Exercises — Stage 2 .

For Questions 1.4.2.6 through 1.4.2.41, evaluate the given limits.
7.
limy0(y+1)(y+2)(y+3)cosy
9. (✳).
limt3(1tcos(t))
10. (✳).
limh0(2+h)242h
11. (✳).
limt2(t5t+4)
13. (✳).
limt1(t2t+3)
14. (✳).
limx1log(1+x)xx2
15. (✳).
limx2(x2x24)
16. (✳).
limx4x24xx216
17. (✳).
limx2x2+x6x2
18. (✳).
limx3x29x+3
20. (✳).
limx1x2+83x+1.
21. (✳).
limx2x+711x2x4.
22. (✳).
limx1x+24xx1
23. (✳).
limx3x24xx3.
24. (✳).
limt13t325t.
26.
limx0x4sin(1x)+5x2cos(1x)+2(x2)2
27. (✳).
limx0xsin2(1x)
28.
limw52w250(w5)(w1)
32.
limt7t2x2+2tx+1t214t+49, where x is a positive constant
33.
limd0x532x+15, where x is a constant
34.
limx1(x1)2sin[(x23x+2x22x+1)2+15]
35. (✳).
Evaluate limx0x1/101sin(x100) or explain why this limit does not exist.
36. (✳).
limx2x24x22x
38.
Evaluate limt1213t2+1t212t1 .
39.
Evaluate limx0(3+|x|x).
40.
Evaluate limd4|3d+12|d+4
41.
Evaluate limx05x9|x|+2.
42.
Suppose limx1f(x)=1. Evaluate limx1xf(x)+32f(x)+1.
43. (✳).
Find the value of the constant a for which limx2x2+ax+3x2+x2 exists.
44.
Suppose f(x)=2x and g(x)=1x. Evaluate the following limits.
  1. limx0f(x)
  2. limx0g(x)
  3. limx0f(x)g(x)
  4. limx0f(x)g(x)
  5. limx2[f(x)+g(x)]
  6. limx0f(x)+1g(x+1)

Exercises — Stage 3 .

45.
The curve y=f(x) is shown in the graph below. Sketch the graph of y=1f(x).
46.
The graphs of functions f(x) and g(x) are shown in the graphs below. Use these to sketch the graph of f(x)g(x).
47.
Suppose the position of a white ball, at time t, is given by s(t), and the position of a red ball is given by 2s(t). Using the definition from Section 1.2 of the velocity of a particle, and the limit laws from this section, answer the following question: if the white ball has velocity 5 at time t=1, what is the velocity of the red ball?
48.
Let f(x)=1x and g(x)=1x.
  1. Evaluate limx0f(x) and limx0g(x).
  2. Evaluate limx0[f(x)+g(x)]
  3. Is it always true that limxa[f(x)+g(x)]=limxaf(x)+limxag(x)?
49.
Suppose
f(x)={x2+3 if x>00 if x=0x23 if x<0
  1. Evaluate limx0f(x).
  2. Evaluate limx0+f(x).
  3. Evaluate limx0f(x).
50.
Suppose
f(x)={x2+8x+16x2+30x4 if x>4x3+8x2+16x if x4
  1. Evaluate limx4f(x).
  2. Evaluate limx4+f(x).
  3. Evaluate limx4f(x).