Continuity and Differentiability
- 1. Can you draw it without lifting your pencil? Continuity at a point
- 2. Continuous functions, jumps and the 1/x surprise
- 3. Building new continuous functions: the algebra of continuity
- 4. Smooth or sharp? Differentiability and continuity
- 5. The chain rule: peeling an onion
- 6. When y won't stand alone: implicit differentiation
- 7. Derivatives of inverse trigonometric functions
- 8. Faster than any polynomial: exponential and logarithmic functions
- 9. The function that is its own derivative: eˣ and log x
- 10. What is the derivative of xˣ? Logarithmic differentiation
- 11. Derivatives of functions in parametric form
- 12. Second order derivatives: the rate of the rate
- Review
3 of 12·NCERT §5.2.1·5 min
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
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
- 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 \).
Words to know
\( f \) and \( g \) are continuous at 2, with \( g(2) = 0 \). Which of these might fail to be continuous at 2?
- \( f \cdot g \)
- \( f - g \)
- \( \frac{f}{g} \)
Where is \( \tan x \) continuous?
- At every real number
- At every point of its domain, \( x \ne (2n + 1)\frac{\pi}{2} \)
- Only on \( \left( -\frac{\pi}{2}, \frac{\pi}{2} \right) \)
Why is \( \sin(x^2) \) continuous everywhere?
- It is sine composed with \( x^2 \), and both are continuous
- It is a polynomial
- Anything built from sine is continuous
Picture and video credits