girgit.org

Continuity and Differentiability

Building new continuous functions: the algebra of continuity

The big ideaAdd, subtract, multiply, divide (by something non-zero) or compose continuous functions, and the result is still continuous.

In simple words

If two graphs have no breaks, then adding their heights point by point cannot make a break appear. Nor can multiplying them. Dividing is safe too, except where the bottom is zero, because you cannot divide by zero. So we can build big no-break functions from small no-break ones, like building with Lego.

Continuity is defined by a limit, and in Class 11 you learnt the algebra of limits: the limit of a sum is the sum of the limits, and so on. So it is natural that continuity follows the same rules.

Theorem 1: the four rules

Let \( f \) and \( g \) be real functions that are both continuous at \( x = c \). Then these are continuous at \( c \):

Algebra of continuous functions

  • \( f + g \) and \( f - g \)
  • \( f \cdot g \)
  • \( \dfrac{f}{g} \), provided \( g(c) \ne 0 \)

Why the sum works. \( \lim_{x \to c}[f(x) + g(x)] = \lim_{x \to c} f(x) + \lim_{x \to c} g(x) = f(c) + g(c) \). The first step is the sum rule for limits; the second uses that \( f \) and \( g \) are continuous at \( c \). The other three are proved the same way.

Two special cases worth naming:

  • Take \( f \) to be a constant \( \lambda \). Then \( \lambda g \) is continuous. With \( \lambda = -1 \): if \( g \) is continuous, so is \( -g \).
  • Take the top to be a constant \( \lambda \). Then \( \frac{\lambda}{g} \) is continuous wherever \( g(x) \ne 0 \). In particular \( \frac{1}{g} \) is.

Whole families at once

Rational functions. A rational function is \( \frac{p(x)}{q(x)} \) with \( p, q \) polynomials and \( q(x) \ne 0 \). Polynomials are continuous, so by the quotient rule every rational function is continuous on its domain. For example, \( \frac{x^2 + 1}{x - 3} \) is continuous at every \( x \ne 3 \).

The sine function. We use one fact that the graph makes clear: \( \lim_{h \to 0} \sin h = 0 \) (and so \( \lim_{h \to 0} \cos h = 1 \)). Take any real \( c \) and write \( x = c + h \), so \( x \to c \) means \( h \to 0 \):

\[ \lim_{h \to 0} \sin(c + h) = \lim_{h \to 0} (\sin c \cos h + \cos c \sin h) = \sin c \cdot 1 + \cos c \cdot 0 = \sin c \]

So \( \sin x \) is continuous at every real number. The same idea with \( \cos(c + h) = \cos c \cos h - \sin c \sin h \) shows \( \cos x \) is continuous everywhere.

The other four. \( \tan x = \frac{\sin x}{\cos x} \) is a quotient of continuous functions, so it is continuous wherever \( \cos x \ne 0 \), that is, for \( x \ne (2n + 1)\frac{\pi}{2} \). Those points are not in its domain anyway. In the same way \( \cot x \), \( \sec x \) and \( \operatorname{cosec} x \) are continuous on their domains.

Theorem 2: composites

Recall the composite \( (f \circ g)(x) = f(g(x)) \): first do \( g \), then do \( f \) to the answer.

Continuity of a composite

  • If \( g \) is continuous at \( c \) and \( f \) is continuous at \( g(c) \), then \( f \circ g \) is continuous at \( c \).

The book states this without proof. The idea: when \( x \) is close to \( c \), \( g(x) \) is close to \( g(c) \); and when the input of \( f \) is close to \( g(c) \), its output is close to \( f(g(c)) \).

Try it: nudge \( x \) a little and follow the nudge through both taps. Then shrink it.

Worked example 1

Show that \( \cos(x^3 + 1) \) is continuous. It is \( f \circ g \) with \( g(x) = x^3 + 1 \) (a polynomial) and \( f(t) = \cos t \). Both are continuous everywhere, so the composite is continuous everywhere.

Worked example 2

Show that \( F(x) = |x^2 - 4| + |x + 1| \) is continuous. Each term is the modulus function (continuous) composed with a polynomial (continuous), so each is continuous; their sum is continuous by Theorem 1. The graph has corners at \( x = -2, -1, 2 \), but no breaks.

Guess first: can two broken functions add up to an unbroken one?

Take \( f(x) = [x] \) and \( g(x) = -[x] \). Both are discontinuous at every integer. Guess: is \( f + g \) also discontinuous at the integers?

Pick your answer, then drag the cursor across an integer and watch all three heights.

See what happens
No. \( f(x) + g(x) = [x] - [x] = 0 \) for every \( x \): a flat line, continuous everywhere. The jumps cancel exactly. Theorem 1 only works in one direction: continuous + continuous is continuous. It says nothing about two discontinuous functions. (But continuous + discontinuous is always discontinuous: if \( f \) and \( f + g \) were both continuous, then \( g = (f + g) - f \) would be too.)

Try it. Where are these continuous? (a) \( \dfrac{x}{x^2 - 9} \) (b) \( \sin x \cdot \cos x + x^2 \) (c) \( \sqrt{x^2 + 1} \) (take as known that \( \sqrt{t} \) is continuous for \( t \ge 0 \)).

Answer
(a) A rational function: continuous at every \( x \ne \pm 3 \), which is its whole domain. (b) Products and sums of continuous functions: continuous everywhere. (c) \( x^2 + 1 \ge 1 \) is continuous and \( \sqrt{t} \) is continuous there, so the composite is continuous everywhere.

Words to know

Algebra of continuous functions
Sum, difference, product and quotient (bottom non-zero) of continuous functions are continuous.
Rational function
A polynomial divided by a polynomial; continuous wherever the bottom is not zero.
Composite \( f \circ g \)
\( f(g(x)) \): do \( g \) first, then \( f \).
Continuity of a composite
\( g \) continuous at \( c \) and \( f \) continuous at \( g(c) \) give \( f \circ g \) continuous at \( c \).

\( f \) and \( g \) are continuous at 2, with \( g(2) = 0 \). Which of these might fail to be continuous at 2?

  1. \( f \cdot g \)
  2. \( f - g \)
  3. \( \frac{f}{g} \)

Where is \( \tan x \) continuous?

  1. At every real number
  2. At every point of its domain, \( x \ne (2n + 1)\frac{\pi}{2} \)
  3. Only on \( \left( -\frac{\pi}{2}, \frac{\pi}{2} \right) \)

Why is \( \sin(x^2) \) continuous everywhere?

  1. It is sine composed with \( x^2 \), and both are continuous
  2. It is a polynomial
  3. Anything built from sine is continuous