Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Why this matters

On the page The Limit of a Function we proved that lim⁡x→2x2=4\lim_{x \to 2} x^2 = 4 from the definition, and even that took some care: we had to cap the window and bound a factor. Now consider

lim⁡x→2x3−1x2+3.\lim_{x \to 2} \frac{x^3 - 1}{x^2 + 3} .

A table suggests an answer, but a direct proof with ε\eps and δ\delta would have to control the numerator and the denominator at the same time, with a new choice of δ\delta for this one function. Doing that for every function we meet would be hopeless.

Figure 1:Graph of y=x3−1x2+3y = \frac{x^3 - 1}{x^2 + 3} for 0≤x≤40 \le x \le 4, rising from about −0.33{-0.33} at x=0x = 0 to about 3.3 at x=4x = 4, with a point on the graph that a slider for xx moves. A table lists the values, rounded to six decimal places, at x=1.9,1.99,1.999x = 1.9, 1.99, 1.999: 0.886384, 0.988578, 0.998857, and at x=2.001,2.01,2.1x = 2.001, 2.01, 2.1: 1.001143, 1.011435, 1.114845. They approach 1 from both sides.

Try this: move the point towards x=2x = 2 from both sides and read f(x)f(x). Then compute the numerator and the denominator at x=2x = 2 separately. What do you notice?

The table suggests that the limit is 1=771 = \frac{7}{7}, the numerator’s value at 2 divided by the denominator’s. That is no accident. Instead of proving each limit from scratch, we prove a few rules once, from the definition, that say how limits combine: the limit of a sum is the sum of the limits, the limit of a quotient is the quotient of the limits, and so on. With these limit laws the limit above takes a few lines (Example 2), and for every polynomial the limit is its value at the point (Corollary 1).

Each law has hypotheses, and they matter. The stone’s average speed on The Limit of a Function, 5(1+h)2−5h\frac{5(1+h)^2 - 5}{h}, is a quotient whose denominator approaches 0: the quotient law says nothing about it. The last part of the main results is about such cases.

Combining functions

Let ff and gg be functions. Their sum f+gf + g, difference f−gf - g and product fgfg are the functions with

defined at every xx at which both f(x)f(x) and g(x)g(x) are defined. Their quotient f/gf/g, with (f/g)(x)=f(x)g(x)(f/g)(x) = \frac{f(x)}{g(x)}, is defined at every such xx at which, in addition, g(x)≠0g(x) \ne 0. For a real number cc, the function cfcf has (cf)(x)=c f(x)(cf)(x) = c\,f(x), and f\sqrt{f} has the value f(x)\sqrt{f(x)} at every xx at which f(x)f(x) is defined and f(x)≥0f(x) \ge 0, by the square-root remark.

Why the laws should hold. If f(x)f(x) is close to LL and g(x)g(x) is close to MM, then f(x)+g(x)f(x) + g(x) should be close to L+ML + M. How close? The two errors can add up: if each of f(x)f(x) and g(x)g(x) is within 0.01 of its limit, then f(x)+g(x)f(x) + g(x) is within 0.02 of L+ML + M, by the triangle inequality. So to get f(x)+g(x)f(x) + g(x) within a tolerance ε\eps of L+ML + M, we demand ε2\frac{\eps}{2} from each of ff and gg. The definition of the limit lets us demand any tolerance, ε2\frac{\eps}{2} included. That is the whole idea of the proof of the sum law below, and the other proofs refine it.

Example. From the definition, lim⁡x→3(2x−1)=5\lim_{x \to 3} (2x - 1) = 5 (the window δ=ε2\delta = \frac{\eps}{2} works, because ∣(2x−1)−5∣=2∣x−3∣\abs{(2x - 1) - 5} = 2\abs{x - 3}) and lim⁡x→34x=12\lim_{x \to 3} 4x = 12 (δ=ε4\delta = \frac{\eps}{4} works, because ∣4x−12∣=4∣x−3∣\abs{4x - 12} = 4\abs{x - 3}). The sum law gives lim⁡x→3(6x−1)=5+12=17\lim_{x \to 3} (6x - 1) = 5 + 12 = 17 without a new proof; Example 1 looks at the δ\delta it produces.

Non-example. The laws need the limits of the parts to exist. For f(x)=xf(x) = x and g(x)=1xg(x) = \frac{1}{x}, x≠0x \ne 0, the product f(x) g(x)=1f(x)\,g(x) = 1 has the limit 1 at 0, but the product law cannot be used to find it, because 1x\frac{1}{x} has no limit at 0 (we show this in When the laws do not apply).

Main results

The laws are stated for two functions ff and gg with limits LL and MM at the same point aa. Each of them comes with the conclusion that the new function is defined near aa, so that the definition of a limit applies to it.

The power law is the product law used again and again, and the square-root law needs one identity and a look at the domain. Both are sketched here; what a sketch leaves out is said in it.

Direct substitution

A polynomial is a function of the form p(x)=cnxn+⋯+c1x+c0p(x) = c_n x^n + \dots + c_1 x + c_0, where n≥0n \ge 0 is an integer and c0,c1,…,cnc_0, c_1, \dots, c_n are real numbers; it is defined for every real xx. A rational function is a quotient p(x)q(x)\frac{p(x)}{q(x)} of two polynomials, defined at every xx with q(x)≠0q(x) \ne 0. For these functions the laws reduce every limit to a substitution.

In words. For a polynomial, the limit at any point is the value there. For a rational function, the same holds at every point where the denominator is not 0, and part (c) says that it still holds when the function is used only on an open interval around the point, as in an application where only some inputs make sense (Example 4). This is a property of these particular functions, proved from the laws. It is not true of every function given by a formula: the function hh of the remark on the value at aa, with h(x)=x+1h(x) = x + 1 for x≠1x \ne 1 and h(1)=5h(1) = 5, has the limit 2 at 1, not h(1)=5h(1) = 5.

Together with (e) and (f), the corollary handles many functions built from polynomials and square roots: apply it to the parts, check each law’s hypotheses, and combine (Example 3).

When the laws do not apply

Every law has hypotheses: the limits of the parts must exist, as real numbers; the quotient law needs M≠0M \ne 0; the square-root law needs L>0L > 0, or L=0L = 0 and f(x)≥0f(x) \ge 0 near aa. When a hypothesis fails, the law says nothing at all: neither that the limit exists, nor that it does not. Each of the following shows a hypothesis failing.

Figure 2:Graph of y=x2+cxxy = \frac{x^2 + cx}{x} for −1≤x≤1-1 \le x \le 1, x≠0x \ne 0, with a hole at x=0x = 0, where the formula is undefined. A slider sets cc from −2{-2} to 2 in steps of 0.5, starting at c=1c = 1. For every cc the graph is a straight line with a hole. A table lists the values at x=0.1,0.01,0.001,−0.001,−0.01,−0.1x = 0.1, 0.01, 0.001, -0.001, -0.01, -0.1; for c=1c = 1 they are 1.1, 1.01, 1.001, 0.999, 0.99, 0.9, which approach 1, and for c=1.5c = 1.5 they are 1.6, 1.51, 1.501, 1.499, 1.49, 1.4, which approach 1.5.

Try this: set c=−2c = -2, c=0c = 0 and c=1.5c = 1.5. In each case, what do the numerator and the denominator approach as x→0x \to 0? Which number do the values in the table approach? What does “00\frac{0}{0}” tell you about the limit?

The figure shows the same “00\frac{0}{0}” next to different values in the table, one for each cc. So a 00\frac{0}{0} is not an answer: it says only that the quotient law does not apply, and that more work is needed.

Worked examples

Using the laws

Checking the hypotheses

Common mistakes

Rigorous track

The product and quotient laws need more than sharing the tolerance: in a product, the error in one factor is multiplied by the other factor, and in a quotient we divide by g(x)g(x), which must stay away from 0.

Proof (Rigorous track)

This proves parts (c) and (d) of Theorem 1. For the product we split f(x) g(x)−LMf(x)\,g(x) - LM into two terms, each a small error times a bounded factor; for the quotient we first show that 1g(x)\frac{1}{g(x)} approaches 1M\frac{1}{M} and then use the product law. Every multiplication of an inequality below names the sign of the factor, by the order rules of Absolute Value and Inequalities (“Working with inequalities”).

(c) Product. The strategy rests on the identity

f(x) g(x)−LM=f(x)(g(x)−M)+M(f(x)−L),f(x)\,g(x) - LM = f(x)\bigl(g(x) - M\bigr) + M\bigl(f(x) - L\bigr),

which holds because the two middle terms, −f(x)M-f(x)M and +Mf(x)+Mf(x), cancel. Let ε>0\eps > 0.

  1. ff is bounded near aa. The definition of lim⁡x→af(x)=L\lim_{x \to a} f(x) = L, with the tolerance 1, gives a δ1>0\delta_1 > 0 such that ff is defined and ∣f(x)−L∣<1\abs{f(x) - L} < 1 at every xx with 0<∣x−a∣<δ10 < \abs{x - a} < \delta_1. For such xx, by part (a) of the triangle inequality, applied to the numbers f(x)−Lf(x) - L and LL, and then adding ∣L∣\abs{L} to both sides of ∣f(x)−L∣<1\abs{f(x) - L} < 1,

    ∣f(x)∣=∣(f(x)−L)+L∣≤∣f(x)−L∣+∣L∣<1+∣L∣.\abs{f(x)} = \abs{\bigl(f(x) - L\bigr) + L} \le \abs{f(x) - L} + \abs{L} < 1 + \abs{L} .
  2. The tolerances. Let K=∣L∣+1K = \abs{L} + 1 and N=∣M∣+1N = \abs{M} + 1. Both are at least 1, by property 1 of the absolute value, so ε2K\frac{\eps}{2K} and ε2N\frac{\eps}{2N} are positive. So there are δ2>0\delta_2 > 0 and δ3>0\delta_3 > 0 such that gg is defined and ∣g(x)−M∣<ε2K\abs{g(x) - M} < \frac{\eps}{2K} at every xx with 0<∣x−a∣<δ20 < \abs{x - a} < \delta_2, and ∣f(x)−L∣<ε2N\abs{f(x) - L} < \frac{\eps}{2N} at every xx with 0<∣x−a∣<δ30 < \abs{x - a} < \delta_3. (We use N=∣M∣+1N = \abs{M} + 1 rather than ∣M∣\abs{M} because MM may be 0, and we may not divide by 0.)

  3. The proof. Let δ=min⁡(δ1,δ2,δ3)\delta = \min(\delta_1, \delta_2, \delta_3), which is positive, and let 0<∣x−a∣<δ0 < \abs{x - a} < \delta. Then xx lies in all three windows, so f(x)f(x), g(x)g(x) and f(x) g(x)f(x)\,g(x) are defined. By the identity, part (a) of the triangle inequality and property 4 of the absolute value,

    ∣f(x) g(x)−LM∣=∣f(x)(g(x)−M)+M(f(x)−L)∣≤∣f(x)∣ ∣g(x)−M∣+∣M∣ ∣f(x)−L∣.\begin{aligned} \abs{f(x)\,g(x) - LM} &= \abs{f(x)\bigl(g(x) - M\bigr) + M\bigl(f(x) - L\bigr)} \\ &\le \abs{f(x)}\,\abs{g(x) - M} + \abs{M}\,\abs{f(x) - L} . \end{aligned}

    The first term. By step 1, ∣f(x)∣<K\abs{f(x)} < K. Multiplying by ∣g(x)−M∣\abs{g(x) - M}, which is ≥0\ge 0 and may be 0, gives only ∣f(x)∣ ∣g(x)−M∣≤K∣g(x)−M∣\abs{f(x)}\,\abs{g(x) - M} \le K\abs{g(x) - M}. Multiplying ∣g(x)−M∣<ε2K\abs{g(x) - M} < \frac{\eps}{2K} by the positive number KK keeps the strict inequality: K∣g(x)−M∣<ε2K\abs{g(x) - M} < \frac{\eps}{2}. So the first term is less than ε2\frac{\eps}{2}.

    The second term. ∣M∣<N\abs{M} < N. Multiplying by ∣f(x)−L∣≥0\abs{f(x) - L} \ge 0 gives ∣M∣ ∣f(x)−L∣≤N∣f(x)−L∣\abs{M}\,\abs{f(x) - L} \le N\abs{f(x) - L}, and multiplying ∣f(x)−L∣<ε2N\abs{f(x) - L} < \frac{\eps}{2N} by the positive number NN gives N∣f(x)−L∣<ε2N\abs{f(x) - L} < \frac{\eps}{2}. So the second term is less than ε2\frac{\eps}{2}.

    Adding the two strict inequalities, ∣f(x) g(x)−LM∣<ε\abs{f(x)\,g(x) - LM} < \eps.

The product fgfg is defined at every xx with 0<∣x−a∣<δ0 < \abs{x - a} < \delta, which by part (e) of the proposition on distance inequalities is the open interval (a−δ,a+δ)(a - \delta, a + \delta) with aa removed, so the definition applies to it, and lim⁡x→af(x) g(x)=LM\lim_{x \to a} f(x)\,g(x) = LM. For the “in particular”, apply this to the constant function cc, which is defined everywhere and has the limit cc by part (a), and to ff: lim⁡x→ac f(x)=cL\lim_{x \to a} c\,f(x) = cL.

(d) Quotient. Suppose M≠0M \ne 0.

  1. gg stays away from 0 near aa. By property 1 of the absolute value, ∣M∣>0\abs{M} > 0, so ∣M∣2\frac{\abs{M}}{2} is a tolerance. The definition gives a δ4>0\delta_4 > 0 such that gg is defined and ∣g(x)−M∣<∣M∣2\abs{g(x) - M} < \frac{\abs{M}}{2} at every xx with 0<∣x−a∣<δ40 < \abs{x - a} < \delta_4. For such xx,

    ∣M∣−∣g(x)∣≤∣∣M∣−∣g(x)∣∣≤∣M−g(x)∣<∣M∣2,\abs{M} - \abs{g(x)} \le \abs{\abs{M} - \abs{g(x)}} \le \abs{M - g(x)} < \frac{\abs{M}}{2},

    by property 3 of the absolute value (u≤∣u∣u \le \abs{u}), part (c) of the triangle inequality, and ∣M−g(x)∣=∣g(x)−M∣\abs{M - g(x)} = \abs{g(x) - M} (property 2). Adding ∣g(x)∣−∣M∣2\abs{g(x)} - \frac{\abs{M}}{2} to both sides gives ∣g(x)∣>∣M∣2>0\abs{g(x)} > \frac{\abs{M}}{2} > 0. So g(x)≠0g(x) \ne 0, since ∣0∣=0\abs{0} = 0 by the definition. Hence 1g\frac{1}{g} is defined at every xx with 0<∣x−a∣<δ40 < \abs{x - a} < \delta_4, which by part (e) of the proposition on distance inequalities is the open interval (a−δ4,a+δ4)(a - \delta_4, a + \delta_4) with aa removed.

  2. 1g(x)\frac{1}{g(x)} approaches 1M\frac{1}{M}. Let ε>0\eps > 0. The number ε∣M∣22\frac{\eps\abs{M}^2}{2} is positive, so there is a δ5>0\delta_5 > 0 such that ∣g(x)−M∣<ε∣M∣22\abs{g(x) - M} < \frac{\eps\abs{M}^2}{2} at every xx with 0<∣x−a∣<δ50 < \abs{x - a} < \delta_5. Let δ=min⁡(δ4,δ5)\delta = \min(\delta_4, \delta_5) and 0<∣x−a∣<δ0 < \abs{x - a} < \delta. Since 1g(x)−1M=M−g(x)g(x) M\frac{1}{g(x)} - \frac{1}{M} = \frac{M - g(x)}{g(x)\,M}, properties 4 and 2 of the absolute value give

    ∣1g(x)−1M∣=∣g(x)−M∣∣g(x)∣ ∣M∣.\abs{\frac{1}{g(x)} - \frac{1}{M}} = \frac{\abs{g(x) - M}}{\abs{g(x)}\,\abs{M}} .

    Multiplying ∣g(x)∣>∣M∣2\abs{g(x)} > \frac{\abs{M}}{2} (step 1) by the positive number ∣M∣\abs{M} gives ∣g(x)∣ ∣M∣>∣M∣22>0\abs{g(x)}\,\abs{M} > \frac{\abs{M}^2}{2} > 0. For positive numbers u>vu > v, multiplying by the positive number 1uv\frac{1}{uv} gives 1v>1u\frac{1}{v} > \frac{1}{u}; so 1∣g(x)∣ ∣M∣<2∣M∣2\frac{1}{\abs{g(x)}\,\abs{M}} < \frac{2}{\abs{M}^2}. Multiplying this by ∣g(x)−M∣\abs{g(x) - M}, which is ≥0\ge 0 and may be 0, gives only ≤\le, and then multiplying ∣g(x)−M∣<ε∣M∣22\abs{g(x) - M} < \frac{\eps\abs{M}^2}{2} by the positive number 2∣M∣2\frac{2}{\abs{M}^2} keeps the strict inequality:

    ∣1g(x)−1M∣≤2∣g(x)−M∣∣M∣2<ε.\abs{\frac{1}{g(x)} - \frac{1}{M}} \le \frac{2\abs{g(x) - M}}{\abs{M}^2} < \eps .

    So lim⁡x→a1g(x)=1M\lim_{x \to a} \frac{1}{g(x)} = \frac{1}{M}.

  3. The quotient. By step 1, 1g\frac{1}{g} satisfies the hypothesis on the domain in the theorem, and so does ff. By step 2 and part (c), applied to ff and 1g\frac{1}{g},

    lim⁡x→af(x)⋅1g(x)=L⋅1M=LM.\lim_{x \to a} f(x) \cdot \frac{1}{g(x)} = L \cdot \frac{1}{M} = \frac{L}{M} .

    The functions f⋅1gf \cdot \frac{1}{g} and fg\frac{f}{g} are defined at the same xx (those where f(x)f(x) and g(x)g(x) are defined and g(x)≠0g(x) \ne 0) and have the same values there, so they are the same function, and lim⁡x→af(x)g(x)=LM\lim_{x \to a} \frac{f(x)}{g(x)} = \frac{L}{M}.

Summary

Exercises

Where this leads

These topics build on this one:

Found an error on this page? Report it (the form opens with this page filled in).

From here on, limits are computed with the laws, and the definition of a limit is needed only to prove new laws. The next pages extend the toolkit: rewriting “00\frac{0}{0}” forms, the squeeze theorem, and limits at infinity.