Unit 5: Limits of functions and continuity

No breaks, no jumps

A continuous function is one whose graph you can draw without lifting your pen. That's a good picture, but it can't handle the truly strange functions analysis has to deal with. This unit builds the precise version, the famous epsilon–delta definition, from the same idea as limits of sequences.

123456789101112
In this unit
  1. The limit of a function
  2. Choosing δ
  3. The sequence test
  4. One-sided limits
  5. Continuity
  6. Ways to be discontinuous
  7. Strange functions
  8. Practice set
  9. Summary and glossary

The limit of a function

For a sequence, "eventually" meant "for large enough \(n\)". For a function \(f\) near a point \(a\), it means "for \(x\) close enough to \(a\)". The game is the same: a sceptic names a tolerance \(\varepsilon\) for the output, and you must find a tolerance \(\delta\) for the input that guarantees it.

Definition

\(\displaystyle\lim_{x\to a} f(x) = L\) means: for every \(\varepsilon > 0\) there is a \(\delta > 0\) such that

\[ 0 < |x - a| < \delta \quad\Longrightarrow\quad |f(x) - L| < \varepsilon. \]
The ε–δ pictureThe graph of a function rising from left to right. A horizontal red band of half-width ε = 0.5 surrounds the height L = f(a). A vertical blue band of half-width δ ≈ 0.30 surrounds a. Where the bands cross, an amber box is drawn, and the part of the graph above the blue band, highlighted in red, stays inside the box: every x within δ of a gives f(x) within ε of L.a − δaa + δL − εLL + εy = f(x)
Fitting the graph in a box. The red band is the output tolerance \(\varepsilon\), chosen by the sceptic. You answer with the blue band \(\delta\). If the graph over the blue band stays inside the amber box, you've won this round. The limit is \(L\) if you can win for every \(\varepsilon\), however thin.

Notice the condition \(0 < |x - a|\): we never look at \(x = a\) itself. The limit describes what happens near \(a\), not at \(a\). The function doesn't even need to be defined at \(a\).

A limit at a missing pointThe graph of sin(x)/x, a wave that is tallest in the middle and dies away on both sides. At x = 0 the formula is undefined, shown by a hollow circle at height 1. The graph approaches height 1 from both sides, so the limit at 0 is 1 even though there is no value there.-10-505101
A limit without a value. \(\frac{\sin x}{x}\) is undefined at 0, but as \(x \to 0\) its values approach 1. (The geometric inequality \(\sin x < x < \tan x\) for small \(x > 0\) traps the ratio between \(\cos x\) and 1, and the squeeze theorem does the rest.) This limit is what makes the derivative of \(\sin\) equal \(\cos\).

Choosing δ

As with sequences, the work is in the scrap paper: start from \(|f(x) - L|\), and find how small \(|x - a|\) must be.

Example 1: \(\lim_{x \to 2} (3x - 1) = 5\)

\(|(3x - 1) - 5| = 3|x - 2|\). This is less than \(\varepsilon\) when \(|x - 2| < \tfrac\varepsilon3\). So \(\delta = \tfrac\varepsilon3\) works: a straight line with slope 3 magnifies input errors by exactly 3.

Example 2: \(\lim_{x \to 3} x^2 = 9\)

\(|x^2 - 9| = |x - 3|\,|x + 3|\). The factor \(|x + 3|\) varies, so first restrict to \(|x - 3| < 1\); then \(2 < x < 4\) and \(|x + 3| < 7\). So \(|x^2 - 9| < 7|x - 3|\), which is less than \(\varepsilon\) if also \(|x - 3| < \tfrac\varepsilon7\). Take \(\delta = \min\left(1, \tfrac\varepsilon7\right)\).

The "first restrict, then estimate" trick in Example 2 is used constantly: tame the awkward factor with a crude bound, then deal with the rest.

The sequence test

Limits of functions and limits of sequences are tied together, which lets everything from Units 2 and 3 carry over.

The sequential criterion

\(\lim_{x\to a} f(x) = L\) if and only if \(f(x_n) \to L\) for every sequence \(x_n \to a\) with \(x_n \neq a\).

One consequence: the limit laws (sums, products, quotients) and the squeeze theorem hold for functions too. Another: to show a limit doesn't exist, it's enough to find two sequences heading to \(a\) along which \(f\) does different things.

Two wild oscillations. Along \(x_n = \frac{1}{\pi/2 + 2\pi n}\), \(\sin(1/x_n) = 1\); along \(x_n = \frac{1}{3\pi/2 + 2\pi n}\), it's \(-1\). Both sequences tend to 0, so \(\sin(1/x)\) has no limit there. Multiplying by \(x\) changes everything: \(|x\sin(1/x)| \le |x|\), and the squeeze theorem forces the limit to be 0.

One-sided limits

Sometimes a function behaves differently on either side of a point. The right-hand limit \(\lim_{x\to a^+} f(x)\) uses only \(x > a\) (the condition becomes \(a < x < a + \delta\)), and the left-hand limit uses only \(x < a\). The two-sided limit exists exactly when both one-sided limits exist and agree.

Example

For \(f(x) = \frac{|x|}{x}\), which is \(1\) for \(x > 0\) and \(-1\) for \(x < 0\): \(\lim_{x\to0^+} f(x) = 1\) and \(\lim_{x\to0^-} f(x) = -1\). They differ, so \(\lim_{x\to0} f(x)\) doesn't exist.

Continuity

Definition

\(f\) is continuous at \(a\) if \(\lim_{x\to a} f(x) = f(a)\). In full: for every \(\varepsilon > 0\) there's a \(\delta > 0\) such that \(|x - a| < \delta\) implies \(|f(x) - f(a)| < \varepsilon\). A function is continuous on a set if it's continuous at every point of it.

Three things are packed in: \(f(a)\) is defined, the limit exists, and they're equal. In words: small changes in the input produce small changes in the output. That's why continuity matters in practice. A measurement is never exact, and continuity guarantees that a slightly wrong input gives only a slightly wrong answer.

Building continuous functions

Sums, products and quotients (where the denominator isn't 0) of continuous functions are continuous, and so are compositions: if \(g\) is continuous at \(a\) and \(f\) at \(g(a)\), then \(f \circ g\) is continuous at \(a\).

Starting from constants and \(f(x) = x\), this shows every polynomial and every rational function is continuous wherever it's defined. Together with the standard functions \(\sin\), \(\cos\), \(e^x\), \(\ln x\) and \(\sqrt x\), which are continuous on their domains, that covers almost every formula you'll meet.

Ways to be discontinuous

Three common discontinuities. A removable one can be fixed by redefining a single value. A jump can't. Some discontinuities are worse than any of these: \(\sin(1/x)\) at 0 has no one-sided limits at all; this is called an essential discontinuity.

\(x\sin(1/x)\) is undefined at 0, but its limit there is 0. So defining \(f(0) = 0\) makes it continuous everywhere: its graph wiggles infinitely often near the origin, yet it has no break. This is the first sign that "draw without lifting your pen" isn't quite the right picture.

Strange functions

The \(\varepsilon\)–\(\delta\) definition can handle functions no pencil could draw.

Dirichlet's function: discontinuous everywhere

Let \(D(x) = 1\) if \(x\) is rational and \(0\) if \(x\) is irrational. Every interval contains both rationals and irrationals (Unit 1), so near any point the function keeps jumping between 0 and 1. With \(\varepsilon = \tfrac12\), no \(\delta\) can ever work. \(D\) is discontinuous at every single point.

Thomae's function: continuous exactly at the irrationals

Let \(T(p/q) = 1/q\) for a fraction in lowest terms, and \(T(x) = 0\) for irrational \(x\). Its graph is the "popcorn" picture from Unit 1. At a rational point, \(T\) is positive but there are irrational points (where \(T = 0\)) arbitrarily close: discontinuous. At an irrational point \(a\), given \(\varepsilon\), only finitely many fractions in a nearby interval have \(1/q \ge \varepsilon\); choose \(\delta\) to avoid them all, and then \(|T(x) - T(a)| = T(x) < \varepsilon\). So \(T\) is continuous at every irrational number.

Going deeper: the opposite is impossible

Could a function be continuous at every rational and discontinuous at every irrational? Surprisingly, no. The set of points where a function is continuous is always a countable intersection of open sets, and the Baire category theorem (a consequence of completeness) shows the rationals are not such a set. Questions like this, about how badly behaved functions can be, drove much of the development of analysis around 1900.

Practice set

Mixed questions covering the whole unit. Try each one before opening the answer.

1. Prove \(\lim_{x\to1}(5x + 2) = 7\) with \(\varepsilon\) and \(\delta\).

Show answer

\(|(5x + 2) - 7| = 5|x - 1|\). Given \(\varepsilon\), take \(\delta = \tfrac\varepsilon5\): then \(|x - 1| < \delta\) gives \(5|x - 1| < \varepsilon\).

2. Find a \(\delta\) that works for \(\lim_{x\to2} x^2 = 4\).

Show answer

\(|x^2 - 4| = |x - 2||x + 2|\). If \(|x - 2| < 1\) then \(|x + 2| < 5\). So \(\delta = \min(1, \tfrac\varepsilon5)\) works.

3. Find \(\lim_{x\to0} x^2\cos(1/x)\).

Show answer

0, by squeezing: \(-x^2 \le x^2\cos(1/x) \le x^2\), and both bounds tend to 0.

4. Where is the floor function \(\lfloor x \rfloor\) (the greatest integer \(\le x\)) discontinuous, and what kind of discontinuity is it?

Show answer

At every integer, with a jump of size 1. At an integer \(n\), the left-hand limit is \(n - 1\) and the right-hand limit is \(n = \lfloor n \rfloor\). It's continuous everywhere else.

5. Choose \(c\) so that \(f(x) = cx + 1\) for \(x \le 2\) and \(f(x) = x^2 - 1\) for \(x > 2\) is continuous.

Show answer

The two pieces must meet at \(x = 2\): \(2c + 1 = 2^2 - 1 = 3\), so \(c = 1\).

6. Show that \(\lim_{x\to0}\cos(1/x)\) does not exist.

Show answer

Along \(x_n = \frac1{2\pi n}\), \(\cos(1/x_n) = 1\). Along \(x_n = \frac1{(2n + 1)\pi}\), it's \(-1\). Both sequences tend to 0, so by the sequential criterion there's no limit.

Summary and glossary

  1. \(\lim_{x\to a} f(x) = L\): for every \(\varepsilon\) there's a \(\delta\) such that \(0 < |x - a| < \delta\) forces \(|f(x) - L| < \varepsilon\). The value at \(a\) itself is ignored.
  2. Function limits can be tested with sequences; two sequences giving different answers prove there's no limit.
  3. \(f\) is continuous at \(a\) when \(\lim_{x\to a} f(x) = f(a)\): small input changes give small output changes.
  4. Sums, products, quotients and compositions of continuous functions are continuous.
  5. Discontinuities can be removable, jumps, infinite, or essential. Some functions, like Dirichlet's, are discontinuous everywhere.
\(\varepsilon\)–\(\delta\) limit
Outputs within \(\varepsilon\) of \(L\) whenever inputs are within \(\delta\) of \(a\) (but not equal to \(a\)).
One-sided limit
A limit using inputs from one side only.
Continuous
\(\lim_{x\to a} f(x) = f(a)\).
Removable discontinuity
The limit exists but differs from (or replaces a missing) \(f(a)\).
Jump discontinuity
Both one-sided limits exist but differ.
Powered by Webloyt | Report abuse