Chapter V · Limits of functions of a continuous variable. Continuous and discontinuous functions

Limits and values

§§96–97 35 min

Computing limits at a point with the algebra of limits and the squeeze, why “just put x=ax = a” is not a proof, and the standard limit (sin⁡x)/x→1(\sin x)/x \to 1.

Why this matters

With the definition in hand we want to compute limits, and to compute them without an ε\varepsilon–δ\delta argument every time. In §96 Hardy notes that the whole toolkit of Chapter IV (sums, products, quotients, upper and lower limits, Cauchy’s principle) carries over to x→ax \to a. In §97 he stops to answer the objection every beginner raises: why prove that lim⁡x→aP(x)=P(a)\lim_{x\to a} P(x) = P(a) at all? Why not simply put x=ax = a? The answer is the central idea of this chapter, and it leads straight to continuity.

The idea

A limit at aa is a statement about the values of ϕ(x)\phi(x) for xx near aa but different from aa. It is not a statement about ϕ(a)\phi(a). Hardy gives three small examples, and each breaks the link between “limit” and “value” in a different way.

  • ψ(x)=[1−x2]\psi(x) = [1 - x^2]. For 0<∣x∣<10 < |x| < 1 we have 0<1−x2<10 < 1 - x^2 < 1, so ψ(x)=0\psi(x) = 0; but ψ(0)=[1]=1\psi(0) = [1] = 1. The limit at 00 is 00, the value is 11.
  • x/xx/x equals 11 for every x≠0x \ne 0 and is not defined at 00 (putting x=0x = 0 gives 0/00/0, which means nothing). Its limit at 00 is still 11.
  • {(x+1)2−1}/x\{(x+1)^2 - 1\}/x equals x+2x + 2 for x≠0x \ne 0 and is undefined at 00. Its limit is 22.
Explore A limit that is not the value

Try this. This is Hardy’s [1−x2][1 - x^2] with the claimed limit L=0L = 0. Make ε\varepsilon as small as you like and find a δ\delta that works. Notice where the solid dot (the value at 00) is.

f(x)=[1−x2]f(x) = [1-x^2], claim lim⁡x→0f(x)=0\lim_{x\to 0} f(x) = 0 at a=0a=0
xy
  • y = f(x)
  • band L ± ε
  • strip of width δ (drag)
  • escapes the band
For every sampled xx with 0<∣x−a∣<δ0 < |x-a| < \delta (δ=0.6\delta = 0.6), ∣f(x)−0∣<0.3|f(x) - 0| < 0.3. This δ works for this ε.
What to notice

Any δ≤1\delta \le 1 works for every ε\varepsilon: on the punctured strip the function is exactly 00. The isolated point (0,1)(0, 1) never enters the game, because the strip excludes x=0x = 0. The limit is 00 even though ψ(0)=1\psi(0) = 1.

So “put x=ax = a” is not a method. When it gives the right answer, as it does for polynomials, that is a theorem about polynomials, and it has to be proved. The proof comes from two tools.

Precise statements

Theorem The algebra of limits Hardy: Examples XXXV, 1

If ϕ(x)→l\phi(x) \to l and ψ(x)→l′\psi(x) \to l' as x→ax \to a, then

ϕ(x)+ψ(x)→l+l′,ϕ(x)ψ(x)→ll′,ϕ(x)ψ(x)→ll′  if l′≠0.\phi(x) + \psi(x) \to l + l', \qquad \phi(x)\psi(x) \to ll', \qquad \frac{\phi(x)}{\psi(x)} \to \frac{l}{l'} \ \text{ if } l' \ne 0.

The same holds for one-sided limits and for x→±∞x \to \pm\infty.

Corollary Polynomials and rational functions Hardy: Examples XXXV, 6–7

For any polynomial PP, lim⁡x→aP(x)=P(a)\lim_{x\to a} P(x) = P(a). For a rational function R=P/QR = P/Q, lim⁡x→aR(x)=R(a)\lim_{x\to a} R(x) = R(a) whenever Q(a)≠0Q(a) \ne 0.

The corollary follows by building PP from the two trivial limits c→cc \to c (constants) and x→ax \to a with sums and products. Only now are we entitled to “put x=ax = a” in a polynomial.

The second tool handles functions that are not built algebraically.

Lemma The squeeze

If g(x)≤ϕ(x)≤h(x)g(x) \le \phi(x) \le h(x) for 0<∣x−a∣<δ00 < |x - a| < \delta_0, and g(x)→lg(x) \to l and h(x)→lh(x) \to l as x→ax \to a, then ϕ(x)→l\phi(x) \to l.

(Given ε\varepsilon, take δ≤δ0\delta \le \delta_0 that works for both gg and hh; then l−ε<g(x)≤ϕ(x)≤h(x)<l+εl - \varepsilon < g(x) \le \phi(x) \le h(x) < l + \varepsilon.)

The squeeze proves the most important trigonometric limit. Here everything rests on comparing three areas in a circle of radius 11.

Explore Squeezing (sin⁡x)/x(\sin x)/x

Try this. Move the angle xx towards 00. Watch the three nested areas on the left, and the blue curve (sin⁡x)/x(\sin x)/x caught between cos⁡x\cos x and 11 on the right.

Three nested areas give sin⁡x<x<tan⁡x\sin x < x < \tan x for 0<x<12π0 < x < \tfrac12\pi
x
  • triangle OAP, area ½ sin x
  • sector OAP, area ½ x; and y = (sin x)/x
  • triangle OAT, area ½ tan x; and y = cos x
sin⁡x=0.7833<x=0.9000<tan⁡x=1.2602\sin x = 0.7833 < x = 0.9000 < \tan x = 1.2602. Dividing by sin⁡x\sin x and inverting: cos⁡x=0.6216<sin⁡xx=0.8704<1\cos x = 0.6216 < \dfrac{\sin x}{x} = 0.8704 < 1. The gap is less than 1−cos⁡x=0.37841 - \cos x = 0.3784.
What to notice

For every angle the green triangle sits inside the blue sector, which sits inside the ochre triangle: 12sin⁡x<12x<12tan⁡x\tfrac12\sin x < \tfrac12 x < \tfrac12\tan x. On the right this becomes cos⁡x<(sin⁡x)/x<1\cos x < (\sin x)/x < 1. As x→0x \to 0 the lower curve rises to 11, so the middle one has nowhere else to go. The hollow dot is a reminder that (sin⁡x)/x(\sin x)/x has no value at 00.

Theorem (sin⁡x)/x→1(\sin x)/x \to 1 Hardy: Examples XXXVI, 13
lim⁡x→0sin⁡xx=1.\lim_{x \to 0} \frac{\sin x}{x} = 1.

Finally, §96 transfers the finer theory of Chapter IV. If ϕ\phi is bounded near aa, its upper and lower limits as x→ax \to a are

Λ=lim⁡δ→+0 sup⁡0<∣x−a∣<δϕ(x),λ=lim⁡δ→+0 inf⁡0<∣x−a∣<δϕ(x),\Lambda = \lim_{\delta \to +0}\, \sup_{0 < |x - a| < \delta} \phi(x), \qquad \lambda = \lim_{\delta \to +0}\, \inf_{0 < |x - a| < \delta} \phi(x),

and ϕ(x)→l\phi(x) \to l exactly when λ=Λ=l\lambda = \Lambda = l. (Both limits exist because the sup decreases and the inf increases as δ\delta shrinks.) For sin⁡(1/x)\sin(1/x) at 00, λ=−1\lambda = -1 and Λ=1\Lambda = 1.

Principle Cauchy’s principle for x→ax \to a Hardy: §96

ϕ(x)\phi(x) tends to a limit as x→ax \to a if and only if for every ε>0\varepsilon > 0 there is a δ>0\delta > 0 such that ∣ϕ(x2)−ϕ(x1)∣<ε|\phi(x_2) - \phi(x_1)| < \varepsilon whenever 0<∣x1−a∣<δ0 < |x_1 - a| < \delta and 0<∣x2−a∣<δ0 < |x_2 - a| < \delta.

Like its Chapter IV ancestor, the principle decides whether a limit exists without needing to know what it is. Its proof is an exercise below.

Proofs

Proof Products of limits
Strategy

Split the error into two pieces, each a product of something small and something bounded: ϕψ−ll′=ϕ (ψ−l′)+l′(ϕ−l)\phi\psi - ll' = \phi\,(\psi - l') + l'(\phi - l). Make each piece less than 12ε\tfrac12\varepsilon.

ϕ\phi is bounded near aa

Using the definition with tolerance 11: there is δ1\delta_1 with ∣ϕ(x)−l∣<1|\phi(x) - l| < 1, hence ∣ϕ(x)∣<∣l∣+1|\phi(x)| < |l| + 1, for 0<∣x−a∣<δ10 < |x - a| < \delta_1.

Make ψ\psi close to l′l' and ϕ\phi close to ll

Given ε>0\varepsilon > 0, choose δ2\delta_2 with ∣ψ(x)−l′∣<ε/(2(∣l∣+1))|\psi(x) - l'| < \varepsilon / (2(|l| + 1)) and δ3\delta_3 with ∣ϕ(x)−l∣<ε/(2(∣l′∣+1))|\phi(x) - l| < \varepsilon / (2(|l'| + 1)), each on its punctured strip.

Take δ=min⁡(δ1,δ2,δ3)\delta = \min(\delta_1, \delta_2, \delta_3)

For 0<∣x−a∣<δ0 < |x - a| < \delta,

∣ϕψ−ll′∣≤∣ϕ∣ ∣ψ−l′∣+∣l′∣ ∣ϕ−l∣<(∣l∣+1)ε2(∣l∣+1)+∣l′∣ε2(∣l′∣+1)<ε.|\phi\psi - ll'| \le |\phi|\,|\psi - l'| + |l'|\,|\phi - l| < (|l|+1)\frac{\varepsilon}{2(|l|+1)} + |l'|\frac{\varepsilon}{2(|l'|+1)} < \varepsilon.

Sums and quotients

For sums use ∣(ϕ+ψ)−(l+l′)∣≤∣ϕ−l∣+∣ψ−l′∣|(\phi + \psi) - (l + l')| \le |\phi - l| + |\psi - l'| with 12ε\tfrac12\varepsilon each. For quotients it is enough to show 1/ψ→1/l′1/\psi \to 1/l'; near aa we have ∣ψ∣>12∣l′∣|\psi| > \tfrac12|l'|, so ∣1/ψ−1/l′∣=∣l′−ψ∣/(∣ψ∣ ∣l′∣)<2∣ψ−l′∣/∣l′∣2|1/\psi - 1/l'| = |l' - \psi| / (|\psi|\,|l'|) < 2|\psi - l'| / |l'|^2, which is small.

Proof (sin⁡x)/x→1(\sin x)/x \to 1
Strategy

Trap (sin⁡x)/x(\sin x)/x between cos⁡x\cos x and 11 using areas, then show directly that 1−cos⁡x1 - \cos x is small. Since (sin⁡x)/x(\sin x)/x is an even function, positive xx suffice.

Compare three areas, for 0<x<12π0 < x < \tfrac12\pi

In the unit circle let A=(1,0)A = (1, 0), P=(cos⁡x,sin⁡x)P = (\cos x, \sin x), and let the tangent at AA meet OPOP produced at T=(1,tan⁡x)T = (1, \tan x). The triangle OAPOAP lies inside the sector OAPOAP, which lies inside the triangle OATOAT. Their areas are 12sin⁡x\tfrac12\sin x, 12x\tfrac12 x and 12tan⁡x\tfrac12\tan x, so sin⁡x<x<tan⁡x\sin x < x < \tan x. (Hardy notes that the facts about the area of a sector are taken from geometry here and justified properly in Chapter VII.)

Rearrange

Divide by sin⁡x>0\sin x > 0: 1<x/sin⁡x<1/cos⁡x1 < x/\sin x < 1/\cos x. Taking reciprocals, cos⁡x<(sin⁡x)/x<1\cos x < (\sin x)/x < 1.

Bound 1−cos⁡x1 - \cos x

1−cos⁡x=2sin⁡212x<2(12x)2=12x21 - \cos x = 2\sin^2\tfrac12 x < 2(\tfrac12 x)^2 = \tfrac12 x^2, using sin⁡t<t\sin t < t from the first step. So 0<1−(sin⁡x)/x<1−cos⁡x<12x20 < 1 - (\sin x)/x < 1 - \cos x < \tfrac12 x^2.

Choose δ\delta

Given ε>0\varepsilon > 0 take δ=min⁡(12π,2ε)\delta = \min(\tfrac12\pi, \sqrt{2\varepsilon}). If 0<∣x∣<δ0 < |x| < \delta then, by evenness, ∣(sin⁡x)/x−1∣<12x2<ε|(\sin x)/x - 1| < \tfrac12 x^2 < \varepsilon.

Worked examples and exercises

Exercise ●○○ Hardy: Examples XXXVI, 4

Show that

lim⁡x→1x7−2x5+1x3−3x2+2=1.\lim_{x \to 1} \frac{x^7 - 2x^5 + 1}{x^3 - 3x^2 + 2} = 1.
Hint
Putting x=1x = 1 gives 0/00/0. Hardy’s hint: x−1x - 1 divides both numerator and denominator.
Solution

Dividing out the factor x−1x - 1:

x7−2x5+1=(x−1)(x6+x5−x4−x3−x2−x−1),x3−3x2+2=(x−1)(x2−2x−2).x^7 - 2x^5 + 1 = (x - 1)(x^6 + x^5 - x^4 - x^3 - x^2 - x - 1), \qquad x^3 - 3x^2 + 2 = (x - 1)(x^2 - 2x - 2).

For x≠1x \ne 1 the quotient equals (x6+x5−x4−x3−x2−x−1)/(x2−2x−2)(x^6 + x^5 - x^4 - x^3 - x^2 - x - 1)/(x^2 - 2x - 2), a rational function whose denominator is −3≠0-3 \ne 0 at x=1x = 1. By the corollary its limit is its value there, (−3)/(−3)=1(-3)/(-3) = 1. Cancelling was legitimate because the limit only involves x≠1x \ne 1.

Exercise ●○○ Hardy: Examples XXXVI, 8

Show that {1+x−1−x}/x→1\{\sqrt{1 + x} - \sqrt{1 - x}\}/x \to 1 as x→0x \to 0.

Hint
Multiply numerator and denominator by 1+x+1−x\sqrt{1 + x} + \sqrt{1 - x}.

Solution

For 0<∣x∣<10 < |x| < 1,

1+x−1−xx=(1+x)−(1−x)x{1+x+1−x}=21+x+1−x.\frac{\sqrt{1 + x} - \sqrt{1 - x}}{x} = \frac{(1 + x) - (1 - x)}{x\{\sqrt{1 + x} + \sqrt{1 - x}\}} = \frac{2}{\sqrt{1 + x} + \sqrt{1 - x}}.

As x→0x \to 0, 1±x→1\sqrt{1 \pm x} \to 1 (Examples XXXVI, 7: e.g. ∣1+x−1∣=∣x∣/(1+x+1)<∣x∣|\sqrt{1+x} - 1| = |x| / (\sqrt{1+x} + 1) < |x|). So the denominator tends to 22 and the quotient to 11.

Exercise ●○○ Hardy: Examples XXXVI, 14

Show that (1−cos⁡x)/x2→12(1 - \cos x)/x^2 \to \tfrac12 as x→0x \to 0.

Hint
1−cos⁡x=2sin⁡212x1 - \cos x = 2\sin^2 \tfrac12 x.

Solution

For x≠0x \ne 0,

1−cos⁡xx2=2sin⁡212xx2=12(sin⁡12x12x)2.\frac{1 - \cos x}{x^2} = \frac{2\sin^2\frac12 x}{x^2} = \frac12\left(\frac{\sin\frac12 x}{\frac12 x}\right)^2.

As x→0x \to 0, t=12x→0t = \tfrac12 x \to 0 with t≠0t \ne 0, so (sin⁡t)/t→1(\sin t)/t \to 1; by the product rule the square tends to 11, and the whole to 12\tfrac12.

Exercise ●●○ Hardy: Examples XXXVI, 21

Does y=sin⁡(1/x)/sin⁡(1/x)y = \sin(1/x) / \sin(1/x) tend to a limit as x→0x \to 0?

Hint
Where is yy defined? Is it defined at all points of some punctured strip around 00?

Solution

No (on Hardy’s reading). Wherever it is defined, y=1y = 1; but it is undefined wherever sin⁡(1/x)=0\sin(1/x) = 0, that is at x=±1/π,±1/(2π),…x = \pm 1/\pi, \pm 1/(2\pi), \dots, and these points crowd into every strip 0<∣x∣<δ0 < |x| < \delta. The definition of a limit as x→ax \to a presupposes that ϕ\phi is defined at every xx with 0<∣x−a∣<δ0 < |x - a| < \delta for some δ\delta, so the question of a limit does not even arise. (Compare x/xx/x, which is undefined only at the excluded point 00 and does tend to 11. Some modern books allow limits “through the domain of ϕ\phi”, and then the answer would be 11: the point of the example is to make you notice the assumption.)

Exercise Cauchy’s principle for functions ●●● Hardy: §96

Prove the principle stated above: ϕ(x)\phi(x) tends to a limit as x→ax \to a if and only if for every ε>0\varepsilon > 0 there is a δ>0\delta > 0 with ∣ϕ(x2)−ϕ(x1)∣<ε|\phi(x_2) - \phi(x_1)| < \varepsilon whenever 0<∣x1−a∣,∣x2−a∣<δ0 < |x_1 - a|, |x_2 - a| < \delta.

Hint
“Only if” is the triangle inequality.
Hint
For “if”, take a sequence xn→ax_n \to a with xn≠ax_n \ne a. Use Chapter IV’s principle (§84) to get a limit ll of ϕ(xn)\phi(x_n), then show that every xx near aa gives ϕ(x)\phi(x) near ll.

Solution

Only if. If ϕ(x)→l\phi(x) \to l, choose δ\delta for 12ε\tfrac12\varepsilon. Then ∣ϕ(x2)−ϕ(x1)∣≤∣ϕ(x2)−l∣+∣l−ϕ(x1)∣<ε|\phi(x_2) - \phi(x_1)| \le |\phi(x_2) - l| + |l - \phi(x_1)| < \varepsilon.

If. Take any sequence xnx_n with xn≠ax_n \ne a and xn→ax_n \to a, for example xn=a+1/nx_n = a + 1/n. Given ε\varepsilon, let δ\delta be as in the condition and choose NN with 0<∣xn−a∣<δ0 < |x_n - a| < \delta for n≥Nn \ge N. Then ∣ϕ(xm)−ϕ(xn)∣<ε|\phi(x_m) - \phi(x_n)| < \varepsilon for m,n≥Nm, n \ge N, so by Cauchy’s principle for sequences ϕ(xn)\phi(x_n) tends to a limit ll.

Now let ε>0\varepsilon > 0, take the corresponding δ\delta, and choose one nn with 0<∣xn−a∣<δ0 < |x_n - a| < \delta and ∣ϕ(xn)−l∣<ε|\phi(x_n) - l| < \varepsilon. For any xx with 0<∣x−a∣<δ0 < |x - a| < \delta,

∣ϕ(x)−l∣≤∣ϕ(x)−ϕ(xn)∣+∣ϕ(xn)−l∣<2ε.|\phi(x) - l| \le |\phi(x) - \phi(x_n)| + |\phi(x_n) - l| < 2\varepsilon.

As ε\varepsilon is arbitrary, ϕ(x)→l\phi(x) \to l. (Hardy states the condition with ∣x2−a∣<∣x1−a∣≤δ|x_2 - a| < |x_1 - a| \le \delta; it is equivalent, since two points at equal distance from aa can both be compared with a third point closer to aa.)

Check yourself

Check yourself Choose one

Why is lim⁡x→2(x2+3x)=10\lim_{x\to2}(x^2 + 3x) = 10 true?

Why

Substitution gives the right answer for polynomials, but that fact is the theorem; it is not a definition (it fails for [1−x2][1 - x^2] at 00). Being defined at 22 says nothing about nearby values, and monotonicity only gives one-sided limits, which need not agree.

Check yourself True or false?

For x≠3x \ne 3, (x2−9)/(x−3)=x+3(x^2 - 9)/(x - 3) = x + 3; therefore lim⁡x→3(x2−9)/(x−3)=6\lim_{x\to3}(x^2 - 9)/(x - 3) = 6, even though the left-hand function is undefined at 33.

Why

True. The two functions agree on every punctured strip around 33, and the limit only looks there. Cancelling the factor x−3x - 3 is legitimate precisely because x=3x = 3 is excluded.

Check yourself Enter a number

What is lim⁡x→0(sin⁡3x)/x\lim_{x\to0} (\sin 3x)/x?

Why

(sin⁡3x)/x=3⋅(sin⁡t)/t(\sin 3x)/x = 3 \cdot (\sin t)/t with t=3x→0t = 3x \to 0, t≠0t \ne 0. So the limit is 3⋅1=33 \cdot 1 = 3 (Examples XXXVI, 15 with α=3\alpha = 3). Guessing 11 forgets the change of variable.

Check yourself Choose one

ϕ(x)→0\phi(x) \to 0 and ψ(x)→0\psi(x) \to 0 as x→ax \to a. What can you say about ϕ/ψ\phi/\psi?

Why

The quotient rule needs l′≠0l' \ne 0. With ϕ=cx\phi = cx, ψ=x\psi = x the quotient tends to cc; with ϕ=x\phi = x, ψ=x2\psi = x^2 it tends to ±∞\pm\infty on the two sides; with ϕ=xsin⁡(1/x)\phi = x\sin(1/x), ψ=x\psi = x it oscillates. This is why “0/00/0” limits need real work.

Hardy’s language

It is not a statement about the value of ϕ(x) when x = 0. When we make the statement we assert that, when x is nearly equal to zero, ϕ(x) is nearly equal to l.

— G. H. Hardy, §97

Summary

Summary
  • A limit at aa is about values near aa, never about the value at aa, which may differ ([1−x2][1 - x^2]) or not exist (x/xx/x).
  • Sums, products and quotients (with nonzero denominator limit) of limits behave as expected; hence lim⁡x→aP(x)=P(a)\lim_{x\to a}P(x) = P(a) for polynomials and lim⁡R(x)=R(a)\lim R(x) = R(a) for rational functions where the denominator is not 00.
  • The squeeze: a function trapped between two functions with the same limit has that limit.
  • cos⁡x<(sin⁡x)/x<1\cos x < (\sin x)/x < 1 for 0<∣x∣<12π0 < |x| < \tfrac12\pi, so (sin⁡x)/x→1(\sin x)/x \to 1; consequences include (1−cos⁡x)/x2→12(1 - \cos x)/x^2 \to \tfrac12.
  • Upper and lower limits and Cauchy’s principle carry over from sequences to x→ax \to a.