Unit 2, lesson 17

Continuity Theorems

Why sums, products, quotients and compositions of continuous functions stay continuous, and why a continuous function on a closed bounded interval reaches a largest and a smallest value.

  • Theory part 33
  • Practice part 34
  • Continuity Theorems

Theory, part 33

Nothing loads from YouTube until you press play.

Practice, part 34

Checking continuity straight from the definition every time would be exhausting. Fortunately continuity survives the usual ways of building functions. Once you know a few basic functions are continuous, everything you can build from them is too, and that is why plugging in the point works for so many limits.

Key terms

Algebra of continuous functions

Definition Suppose ff and gg are both continuous at cc and kk is a constant. Then the following functions are continuous at cc.

f+g,f−g,kf,fg,fg  provided g(c)≠0.f + g, \qquad f - g, \qquad k f, \qquad f g, \qquad \frac{f}{g} \ \text{ provided } g(c) \neq 0.

The proof is one line for each, using the limit laws. For the product it reads

lim⁡x→c(fg)(x)=lim⁡x→cf(x)⋅lim⁡x→cg(x)=f(c)g(c).\lim_{x \to c} (fg)(x) = \lim_{x \to c} f(x) \cdot \lim_{x \to c} g(x) = f(c) g(c).

The same rules hold for one-sided continuity.

In plain words Add, subtract, multiply or divide continuous functions and the result is still continuous, as long as you never divide by zero.

Example The functions xx and constants are continuous everywhere, so by repeated products and sums every polynomial is continuous everywhere. So the rational function

R(x)=x3+1x2−4R(x) = \frac{x^3 + 1}{x^2 - 4}

is continuous at every xx except x=2x = 2 and x=−2x = -2, where the denominator is zero. In particular

lim⁡x→1R(x)=R(1)=2−3=−23.\lim_{x \to 1} R(x) = R(1) = \frac{2}{-3} = -\frac{2}{3}.

Compositions

Definition If gg is continuous at cc and ff is continuous at g(c)g(c), then f∘gf \circ g, given by (f∘g)(x)=f(g(x))(f \circ g)(x) = f(g(x)), is continuous at cc. More generally, suppose lim⁡x→cg(x)=b\lim_{x \to c} g(x) = b, ff is continuous at bb, and f(g(x))f(g(x)) is defined for all x≠cx \neq c in some open interval around cc. Then

lim⁡x→cf(g(x))=f(lim⁡x→cg(x))=f(b).\lim_{x \to c} f(g(x)) = f\left(\lim_{x \to c} g(x)\right) = f(b).

In plain words A continuous function can be moved past a limit sign. Feed a continuous inner function into a continuous outer function and the chain stays unbroken.

Example With g(x)=x2+9g(x) = x^2 + 9 and f(u)=uf(u) = \sqrt{u}, both continuous, the limit is

lim⁡x→4x2+9=25=5.\lim_{x \to 4} \sqrt{x^2 + 9} = \sqrt{25} = 5.

The second form also handles inner functions with a hole. The inner limit is

lim⁡x→1x2−1x−1=2,\lim_{x \to 1} \frac{x^2 - 1}{x - 1} = 2,

the quotient is positive for xx near 11, and u\sqrt{u} is continuous at 22, so

lim⁡x→1x2−1x−1=2.\lim_{x \to 1} \sqrt{\frac{x^2 - 1}{x - 1}} = \sqrt{2}.

Continuity of elementary functions

Definition The following functions are continuous at every point of their domains. These are polynomials, rational functions, root functions xn\sqrt[n]{x}, the trigonometric functions sin⁡x\sin x, cos⁡x\cos x, tan⁡x\tan x and the others, the inverse trigonometric functions, exponential functions axa^x with a>0a > 0, and logarithms log⁡ax\log_a x with a>0a > 0, a≠1a \neq 1. Every function built from these by finitely many sums, differences, products, quotients and compositions is continuous at every point of its domain. At an endpoint of the domain this means continuity from the inside.

In plain words For any formula made of the usual functions, you can find the limit at a point of the domain by plugging the point in.

Example The function h(x)=ln⁡(x2−1)h(x) = \ln(x^2 - 1) is defined when x2−1>0x^2 - 1 > 0, that is on (−∞,−1)∪(1,∞)(-\infty, -1) \cup (1, \infty), and it is continuous there. So lim⁡x→2ln⁡(x2−1)=ln⁡3\lim_{x \to 2} \ln(x^2 - 1) = \ln 3. Similarly, since the denominator below is never zero,

lim⁡x→πxcos⁡x2+sin⁡x=π⋅(−1)2+0=−π2.\lim_{x \to \pi} \frac{x \cos x}{2 + \sin x} = \frac{\pi \cdot (-1)}{2 + 0} = -\frac{\pi}{2}.

Continuous images of intervals

Definition If ff is continuous on an interval II, then its image f(I)={f(x)∣x∈I}f(I) = \{f(x) \mid x \in I\} is also an interval, possibly a single point. If I=[a,b]I = [a, b] is closed and bounded, then f(I)f(I) is a closed bounded interval [m,M][m, M]. For intervals of other kinds the image can be open, closed or half-open.

In plain words A continuous function cannot tear an interval apart. The outputs fill a whole interval with no gaps, and a closed bounded interval goes to a closed bounded interval.

Example For f(x)=x2f(x) = x^2 on [−1,2][-1, 2] the image is [0,4][0, 4], with 0=f(0)0 = f(0) and 4=f(2)4 = f(2). On the open interval (−1,2)(-1, 2) the image is [0,4)[0, 4). It still contains 00, but 44 is now missing because x=2x = 2 is no longer allowed. So an open interval does not have to go to an open interval.

The max-min theorem

Definition If ff is continuous on a closed bounded interval [a,b][a, b], then ff attains an absolute maximum value MM and an absolute minimum value mm on [a,b][a, b]. That is, there are numbers x1x_1 and x2x_2 in [a,b][a, b] with

f(x1)=m≤f(x)≤M=f(x2)for every x∈[a,b].f(x_1) = m \le f(x) \le M = f(x_2) \quad \text{for every } x \in [a, b].

Each hypothesis matters. The interval must be closed, it must be bounded, and ff must be continuous on all of it.

In plain words On a closed bounded interval a continuous function has a highest point and a lowest point that it actually reaches. The theorem says they exist, not where they are.

Example Take f(x)=x2−2x+3f(x) = x^2 - 2x + 3 on [0,3][0, 3]. Completing the square gives f(x)=(x−1)2+2f(x) = (x - 1)^2 + 2, so the minimum is 22 at x=1x = 1 and the maximum is f(3)=6f(3) = 6. Now drop one hypothesis at a time. On the open interval (0,1)(0, 1) the function xx has no largest or smallest value. On the unbounded interval [0,∞)[0, \infty) the function xx has no maximum. On [0,1][0, 1] the function equal to xx for x<1x < 1 and to 00 at x=1x = 1 is not continuous at 11, and it has no maximum, because its values come as close to 11 as you like but never reach it. In each case the conclusion fails.

Check yourself

  1. Where is f(x)=xx−4f(x) = \frac{\sqrt{x}}{x - 4} continuous?
Show the answer

The root x\sqrt{x} needs x≥0x \ge 0 and the denominator needs x≠4x \neq 4. So ff is continuous on [0,4)∪(4,∞)[0, 4) \cup (4, \infty), from the right at 00.

  1. Compute lim⁡x→3x2+7\lim_{x \to 3} \sqrt{x^2 + 7} and say which theorem justifies plugging in.
Show the answer

The limit is 16=4\sqrt{16} = 4. The inner polynomial is continuous at 33 and the square root is continuous at 1616, so the composition is continuous at 33.

  1. Does f(x)=1xf(x) = \frac{1}{x} have a largest value among the inputs xx in [−1,1][-1, 1] with x≠0x \neq 0? Why does the max-min theorem not apply?
Show the answer

No, its values grow without bound as x→0+x \to 0^+. The theorem needs ff continuous at every point of [−1,1][-1, 1], and ff is not even defined at 00.

How this lesson connects