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

Limits as xx tends to ±∞\pm\infty

§§90–92 25 min

How the definitions of Chapter IV carry over from ϕ(n)\phi(n) to a function ϕ(x)\phi(x) of a real variable as x→∞x \to \infty or x→−∞x \to -\infty, and the one thing that changes.

Why this matters

Chapter IV was about sequences: functions whose variable nn moves in jumps 1,2,3,…1, 2, 3, \dots. Most functions of interest, such as 1/x1/x, sin⁡x\sin x or x\sqrt{x}, are defined for every real xx. Before we can talk about continuity or derivatives we need to know what “ϕ(x)\phi(x) tends to ll” means when xx runs through all real values. In §§90–92 Hardy does this for x→±∞x \to \pm\infty. The definitions hardly change, but one consequence does, and it is worth seeing clearly.

The idea

Picture a point moving along the number line to the right, passing through every point on its way rather than hopping from integer to integer. Hardy says that xx tends to infinity continuously. The question is the same as before: does ϕ(x)\phi(x) settle down near some number ll once xx is large?

The challenge is also the same. Someone names a tolerance δ>0\delta > 0; we must answer with a point x0x_0 such that every x≥x0x \ge x_0 gives ∣ϕ(x)−l∣<δ|\phi(x) - l| < \delta. The only difference from Chapter IV is the word every: it now covers all the real numbers beyond x0x_0, not just the integers.

Explore Answer the challenge for a continuous variable

Try this. Start with 1/x1/x. Make δ\delta small and drag x0x_0 (the purple handle) until the verdict turns green. Then choose sin⁡xπ\sin x\pi, switch on “Only integer xx”, and find an x0x_0. Now switch the toggle off.

ϕ(x)=1x\phi(x) = \frac1x, claim ϕ(x)→0\phi(x) \to 0 as x→∞x \to \infty
xφ(x)
  • y = φ(x)
  • band l ± δ for x ≥ x₀
  • x₀ (drag)
  • worst escape
This x₀ fails. At x=2x = 2 the distance from 00 is 0.50.5, not less than δ\delta. Move x₀ to the right.
What to notice

For 1/x1/x the right x0x_0 is just over 1/δ1/\delta, exactly as for 1/n1/n. For sin⁡xπ\sin x\pi the integer points are all 00, so the sequence ϕ(n)\phi(n) tends to 00 with x0=1x_0 = 1; but between the integers the graph swings up to 11 and down to −1-1 forever, and no x0x_0 works for the function. Knowing ϕ(n)\phi(n) tells you very little about ϕ(x)\phi(x).

So the passage from nn to xx is not just a change of letter. A function of xx has many more values to control, and each sequence ϕ(1),ϕ(2),…\phi(1), \phi(2), \dots is only a selection from them. If ϕ(x)→l\phi(x) \to l then certainly ϕ(n)→l\phi(n) \to l, but not conversely.

Precise statements

Hardy restates the three definitions of Chapter IV word for word, with xx in place of nn.

Definition Limit as x→∞x \to \infty Hardy: Definition 1, §90

The function ϕ(x)\phi(x) tends to the limit ll as x→∞x \to \infty if, for every positive δ\delta, however small, there is a number x0(δ)x_0(\delta) such that

∣ϕ(x)−l∣<δfor all x≥x0(δ).|\phi(x) - l| < \delta \quad \text{for all } x \ge x_0(\delta).

We write lim⁡x→∞ϕ(x)=l\lim_{x\to\infty} \phi(x) = l, or ϕ(x)→l\phi(x) \to l.

Definition Tending to ∞\infty Hardy: Definition 2, §90

ϕ(x)→∞\phi(x) \to \infty as x→∞x \to \infty if, for every number Δ\Delta, however large, there is an x0(Δ)x_0(\Delta) such that ϕ(x)>Δ\phi(x) > \Delta for all x≥x0(Δ)x \ge x_0(\Delta). The definition of ϕ(x)→−∞\phi(x) \to -\infty is the same with ϕ(x)<−Δ\phi(x) < -\Delta.

Definition Oscillation Hardy: Definition 3, §90

If ϕ(x)\phi(x) neither tends to a limit nor to ∞\infty nor to −∞-\infty, it oscillates as x→∞x \to \infty. It oscillates finitely if there are constants KK and x0x_0 with ∣ϕ(x)∣<K|\phi(x)| < K for all x≥x0x \ge x_0, and infinitely otherwise.

Notice the x0x_0 in the last definition. For sequences it made no difference whether we asked for ∣ϕ(n)∣<K|\phi(n)| < K for all nn or only for large nn, because only finitely many terms come before n0n_0. Here there are infinitely many xx below x0x_0, and they can be unbounded: 1/x1/x is huge near 00, yet it tends to 00 as x→∞x \to \infty. Only large xx count.

Tending to −∞-\infty (§91). Put x=−yx = -y. As x→−∞x \to -\infty, y→∞y \to \infty, so “ϕ(x)→l\phi(x) \to l as x→−∞x \to -\infty” simply means “ϕ(−y)→l\phi(-y) \to l as y→∞y \to \infty”. In words: for every δ>0\delta > 0 there is an x0x_0 with ∣ϕ(x)−l∣<δ|\phi(x) - l| < \delta for all x≤x0x \le x_0.

The theorems carry over (§92). The theorems of §§63–68 on sums, products and quotients hold for functions of xx with the same proofs: if ϕ(x)→l\phi(x) \to l and ψ(x)→l′\psi(x) \to l' then ϕ+ψ→l+l′\phi + \psi \to l + l', ϕψ→ll′\phi\psi \to ll', and ϕ/ψ→l/l′\phi/\psi \to l/l' provided l′≠0l' \ne 0. So does the theorem on monotone sequences, once we say what “monotone” means for a function.

Definition Increasing steadily Hardy: §92

ϕ(x)\phi(x) increases steadily if ϕ(x2)≥ϕ(x1)\phi(x_2) \ge \phi(x_1) whenever x2>x1x_2 > x_1, and increases strictly if ϕ(x2)>ϕ(x1)\phi(x_2) > \phi(x_1) whenever x2>x1x_2 > x_1. Often this holds only from some point on: for x2>x1≥x0x_2 > x_1 \ge x_0.

Theorem Monotone functions have limits at infinity Hardy: §92 (from §69)

If ϕ(x)\phi(x) increases steadily for x≥x0x \ge x_0, then either ϕ(x)\phi(x) is bounded above for x≥x0x \ge x_0, and then ϕ(x)\phi(x) tends to a limit ll (its upper bound there), or it is not, and then ϕ(x)→∞\phi(x) \to \infty.

Proofs

Proof Monotone functions have limits at infinity
Strategy

The limit, if it exists, should be the least number that ϕ(x)\phi(x) never exceeds. So take ll to be the upper bound of the values ϕ(x)\phi(x), x≥x0x \ge x_0. Since l−δl - \delta is not an upper bound, some value ϕ(x1)\phi(x_1) exceeds it, and monotonicity keeps every later value above it too.

Bounded case: let ll be the upper bound

If ϕ(x)≤K\phi(x) \le K for all x≥x0x \ge x_0, the set of values ϕ(x)\phi(x) (x≥x0x \ge x_0) has an upper bound ll (§80): no value exceeds ll, and every number less than ll is exceeded by some value.

Given δ>0\delta > 0, find x1x_1 with ϕ(x1)>l−δ\phi(x_1) > l - \delta

Because l−δ<ll - \delta < l, the number l−δl - \delta is exceeded by at least one value. Call the place x1x_1.

Every x≥x1x \ge x_1 works

If x≥x1x \ge x_1 then ϕ(x)≥ϕ(x1)>l−δ\phi(x) \ge \phi(x_1) > l - \delta because ϕ\phi increases steadily, and ϕ(x)≤l\phi(x) \le l because ll is an upper bound. So ∣ϕ(x)−l∣<δ|\phi(x) - l| < \delta. Thus x1x_1 serves as x0(δ)x_0(\delta), and ϕ(x)→l\phi(x) \to l.

Unbounded case

If no KK bounds ϕ\phi above, then for any Δ\Delta some ϕ(x1)>Δ\phi(x_1) > \Delta, and then ϕ(x)≥ϕ(x1)>Δ\phi(x) \ge \phi(x_1) > \Delta for every x≥x1x \ge x_1. That is ϕ(x)→∞\phi(x) \to \infty.

The relation between ϕ(x)\phi(x) and ϕ(n)\phi(n) is a one-line proof, but its failure in the other direction is the real lesson of the widget.

Proof If ϕ(x)→l\phi(x) \to l then ϕ(n)→l\phi(n) \to l; the converse is false
Strategy

An x0x_0 that works for all real x≥x0x \ge x_0 works in particular for the integers. For the converse, one example is enough.

Given δ\delta, take x0(δ)x_0(\delta) for the function

Then ∣ϕ(x)−l∣<δ|\phi(x) - l| < \delta for all real x≥x0x \ge x_0, so in particular for all integers n≥x0n \ge x_0. Any integer n0≥x0n_0 \ge x_0 serves for the sequence.

The converse fails for sin⁡xπ\sin x\pi

sin⁡nπ=0\sin n\pi = 0 for every integer nn, so ϕ(n)→0\phi(n) \to 0. But sin⁡xπ=1\sin x\pi = 1 at every x=2k+12x = 2k + \tfrac12 and −1-1 at every x=2k−12x = 2k - \tfrac12. With δ=12\delta = \tfrac12, every x0x_0 has such points beyond it, at distance 11 from any candidate limit ll in one direction or the other, so no ll works. Since ∣sin⁡xπ∣≤1|\sin x\pi| \le 1, the function oscillates finitely.

Worked examples and exercises

Exercise ●○○ Hardy: Examples XXXIV, 1

Describe the behaviour as x→∞x \to \infty of [x][x],   x−[x]\;x - [x] and   [x]+x−[x]\;[x] + \sqrt{x - [x]}.

Hint
Sketch each graph on [0,4][0, 4]. Where are the values at the integers, and where in between?
Hint
For the third, note that [x]≤[x]+x−[x]<[x]+1[x] \le [x] + \sqrt{x - [x]} < [x] + 1.

Solution

[x]→∞[x] \to \infty. Given Δ\Delta, take x0=max⁡(Δ+1,0)x_0 = \max(\Delta + 1, 0). For x≥x0x \ge x_0, [x]>x−1≥Δ[x] > x - 1 \ge \Delta.

x−[x]x - [x] oscillates finitely. Its values lie in [0,1)[0, 1), so it is bounded. It equals 00 at every integer and equals 12\tfrac12 at every n+12n + \tfrac12, so with δ=14\delta = \tfrac14 no ll is within δ\delta of both 00 and 12\tfrac12, and no x0x_0 works. Note that the sequence n−[n]=0n - [n] = 0 does tend to 00.

[x]+x−[x]→∞[x] + \sqrt{x - [x]} \to \infty, because it is at least [x][x], which tends to ∞\infty. (In fact it is continuous and strictly increasing: on [n,n+1)[n, n+1) it runs from nn up towards n+1n + 1.)

Exercise ●●○ Hardy: Examples XXXIV, 2

How do these behave as x→∞x \to \infty?

sin⁡xπx,xsin⁡xπ,(xsin⁡xπ)2,acos⁡2xπ+bsin⁡2xπ.\frac{\sin x\pi}{x}, \qquad x \sin x\pi, \qquad (x \sin x\pi)^2, \qquad a\cos^2 x\pi + b \sin^2 x\pi.
Hint
Bound ∣sin⁡xπ∣≤1|\sin x\pi| \le 1 for the first. For the others, evaluate at integers and at half-integers.
Solution

First. ∣sin⁡xπ/x∣≤1/x<δ|\sin x\pi / x| \le 1/x < \delta when x>1/δx > 1/\delta, so it tends to 00.

Second. At x=2k+12x = 2k + \tfrac12 it equals 2k+122k + \tfrac12, which is arbitrarily large; at x=2k−12x = 2k - \tfrac12 it equals −(2k−12)-(2k - \tfrac12). It is unbounded in both directions for large xx, so it neither tends to a limit nor to ±∞\pm\infty: it oscillates infinitely.

Third. It is 00 at every integer and (k+12)2(k + \tfrac12)^2 at x=k+12x = k + \tfrac12. It is unbounded, so it does not tend to a limit, and the zeros at the integers stop it tending to ∞\infty. It oscillates infinitely, although it is never negative.

Fourth. At integers it equals aa, at half-integers bb, and always lies between them. If a=ba = b it is the constant aa and tends to aa. If a≠ba \ne b it oscillates finitely.

Exercise ●●○ Hardy: Examples XXXIV, 4

Suppose ϕ(x)→l\phi(x) \to l with l≠0l \ne 0. Show that ϕ(x)cos⁡xπ\phi(x)\cos x\pi oscillates finitely. What happens if instead ϕ(x)→∞\phi(x) \to \infty?

Hint
Look at the values at even and at odd integers.

Solution

Take δ=∣l∣\delta = |l|: for x≥x0x \ge x_0 we have ∣ϕ(x)∣<2∣l∣|\phi(x)| < 2|l|, so ∣ϕ(x)cos⁡xπ∣<2∣l∣|\phi(x)\cos x\pi| < 2|l| there; the function is bounded for large xx. At even integers it equals ϕ(2k)→l\phi(2k) \to l, at odd integers −ϕ(2k+1)→−l-\phi(2k+1) \to -l. If it tended to some limit LL, both of these sequences would tend to LL, forcing l=L=−ll = L = -l, so l=0l = 0, which is excluded. A bounded function cannot tend to ±∞\pm\infty, so it oscillates finitely.

If ϕ(x)→∞\phi(x) \to \infty, the values at even integers tend to +∞+\infty and those at odd integers to −∞-\infty; the function is unbounded in both directions and oscillates infinitely. Its graph is a wave trapped between y=ϕ(x)y = \phi(x) and y=−ϕ(x)y = -\phi(x).

Exercise Which of these increase steadily? ●●○ Hardy: §92

Decide whether each function increases steadily, at least for large xx: x2−xx^2 - x,   x+sin⁡x\;x + \sin x,   x+2sin⁡x\;x + 2\sin x,   [x]\;[x],   [x]+sin⁡x\;[x] + \sin x.

Hint
For x+sin⁡xx + \sin x, write sin⁡x2−sin⁡x1=2cos⁡12(x1+x2) sin⁡12(x2−x1)\sin x_2 - \sin x_1 = 2\cos\tfrac12(x_1 + x_2)\,\sin\tfrac12(x_2 - x_1) and use ∣sin⁡t∣<∣t∣|\sin t| < |t| for t≠0t \ne 0.
Hint
For x+2sin⁡xx + 2\sin x, compare the values at 2kπ+12π2k\pi + \tfrac12\pi and 2kπ+π2k\pi + \pi.

Solution

x2−xx^2 - x: yes for x≥12x \ge \tfrac12, since x22−x2−(x12−x1)=(x2−x1)(x2+x1−1)>0x_2^2 - x_2 - (x_1^2 - x_1) = (x_2 - x_1)(x_2 + x_1 - 1) > 0 when x2>x1≥12x_2 > x_1 \ge \tfrac12. It is strictly increasing there.

x+sin⁡xx + \sin x: yes, strictly, everywhere. For x2>x1x_2 > x_1 put t=12(x2−x1)>0t = \tfrac12(x_2 - x_1) > 0. Then ∣sin⁡x2−sin⁡x1∣≤2∣sin⁡t∣<2t=x2−x1|\sin x_2 - \sin x_1| \le 2|\sin t| < 2t = x_2 - x_1, so (x2+sin⁡x2)−(x1+sin⁡x1)>0(x_2 + \sin x_2) - (x_1 + \sin x_1) > 0.

x+2sin⁡xx + 2\sin x: no. At x=2kπ+12πx = 2k\pi + \tfrac12\pi the value is 2kπ+12π+2≈2kπ+3.572k\pi + \tfrac12\pi + 2 \approx 2k\pi + 3.57; at the larger x=2kπ+πx = 2k\pi + \pi it is 2kπ+π≈2kπ+3.142k\pi + \pi \approx 2k\pi + 3.14. This happens for every kk, so the function never settles into increasing.

[x][x]: yes, steadily but not strictly: it is constant on each [n,n+1)[n, n+1).

[x]+sin⁡x[x] + \sin x: no. Each interval [2kπ+12π,2kπ+32π][2k\pi + \tfrac12\pi, 2k\pi + \tfrac32\pi] has length π>1\pi > 1, so it contains a stretch of length at least 12\tfrac12 free of integers; there [x][x] is constant while sin⁡x\sin x strictly decreases.

All five tend to ∞\infty: monotonicity is not needed for that.

Check yourself

Check yourself True or false?

If ϕ(n)→l\phi(n) \to l as n→∞n \to \infty through the integers, then ϕ(x)→l\phi(x) \to l as x→∞x \to \infty.

Why

False. The integers are only a selection of the values of xx. sin⁡xπ\sin x\pi and x−[x]x - [x] are 00 at every integer but oscillate between the integers. The true statement goes the other way: ϕ(x)→l\phi(x) \to l implies ϕ(n)→l\phi(n) \to l.

Check yourself Choose one

Which function oscillates finitely as x→∞x \to \infty?

Why

sin⁡xπ+1/x\sin x\pi + 1/x is bounded for x≥1x \ge 1 (it lies between −1-1 and 22) and has no limit, because it is near 11 at x=2k+12x = 2k + \tfrac12 and near −1-1 at x=2k−12x = 2k - \tfrac12. xsin⁡xπx\sin x\pi is unbounded, so it oscillates infinitely. x−sin⁡x≥x−1→∞x - \sin x \ge x - 1 \to \infty. 1/x1/x tends to 00.

Check yourself True or false?

1/x1/x (for x>0x > 0) is unbounded, yet it is bounded “as x→∞x \to \infty” in the sense of Definition 3.

Why

True. Definition 3 asks only for ∣ϕ(x)∣<K|\phi(x)| < K when x≥x0x \ge x_0; take x0=1x_0 = 1, K=2K = 2. What happens near 00 is irrelevant to the behaviour as x→∞x \to \infty.

Check yourself Choose one

ϕ(x)\phi(x) increases steadily for all xx and ϕ(x)<3\phi(x) < 3 for every xx. What can you conclude?

Why

A steadily increasing function bounded above tends to its upper bound, which is some l≤3l \le 3, not necessarily 33: ϕ(x)=1−1/(1+x2)\phi(x) = 1 - 1/(1 + x^2) for x≥0x \ge 0, extended by 00 for x<0x < 0, increases steadily, stays below 33 and tends to 11. Monotonicity rules out oscillation, and strictness is not needed.

Hardy’s language

The only difference between the ‘tending of n to ∞’ discussed in the last chapter, and this ‘tending of x to ∞’, is that x assumes all values as it tends to ∞

— G. H. Hardy, §90

Summary

Summary
  • ϕ(x)→l\phi(x) \to l as x→∞x \to \infty: for every δ>0\delta > 0 there is x0x_0 with ∣ϕ(x)−l∣<δ|\phi(x) - l| < \delta for all real x≥x0x \ge x_0. Likewise for ±∞\pm\infty and for oscillation.
  • x→−∞x \to -\infty reduces to x→∞x \to \infty by the substitution x=−yx = -y.
  • ϕ(x)→l\phi(x) \to l implies ϕ(n)→l\phi(n) \to l, but not conversely: sin⁡xπ\sin x\pi and x−[x]x - [x] vanish at the integers and oscillate between them.
  • The algebra of limits and the monotone-limit theorem carry over unchanged: a steadily increasing function tends to its upper bound, or to ∞\infty if it is unbounded.