One machine after another
If g is continuous at c and f at g(c), then f o g is continuous at c.
One function inside another
To work out sin(x²) at x = 2 you do two things in order: first square, 2² = 4, then take the sine, sin 4.
x² is continuous and sin x is continuous.
Is sin(x²) continuous?
What this lesson covers
The idea
If g is continuous at c and f is continuous at g(c), then f o g is continuous at c.
One function inside another
To work out sin(x²) at x = 2 you do two things in order: first square, 2² = 4, then take the sine, sin 4.
x² is continuous and sin x is continuous.
Is sin(x²) continuous?
- yes
- no
- only at some points
Take it apart
Each function h is made of two steps. Pick the inner function g (done to x first) and the outer function f (done to the result), so that h = f o g, i.e. h(x) = f(g(x)). Then send a point c through both machines.
Continuous, then continuous
Suppose f and g are real valued functions such that (f o g) is defined at c. If g is continuous at c and f is continuous at g(c), then (f o g) is continuous at c.
Recall (f o g)(x) = f(g(x)). sin(x²) is g(x) = x² followed by f(x) = sin x. Both are continuous functions, so sin(x²) is a continuous function.
In the same way |1 − x + |x|| is |x| applied to 1 − x + |x| (a polynomial plus the modulus function, so continuous). It is a composite of two continuous functions, so it is continuous.
Notes
g continuous at c and f continuous at g(c) ⇒ f o g continuous at c. A composite of continuous functions is continuous: sin(x²), cos(x²), |cos x|, sin |x|.
Check yourself
cos(x²) = (f o g)(x). Which pair is it?
h(x) = sin |x|. Send c = −2 through the inner machine. What is g(−2)?
Answer: 2
g(−2) = |−2| = 2, then f(g(−2)) = sin 2. |x| is continuous at −2 and sin is continuous at 2, so sin |x| is continuous at −2.
Why is |cos x| a continuous function?
- g(x) = cos x, f(x) = x². That gives f(g(x)) = (cos x)², a different function. Squaring is done first, to x.
- g(x) = x², f(x) = cos x — correct. Right. Square first, then take the cosine. Both are continuous, so cos(x²) is continuous.
- g(x) = x, f(x) = cos x². That only renames the function. Split it into two simpler continuous steps.
- cos x is continuous and |x| is continuous, so their composite |cos x| is continuous — correct. Right. g(x) = cos x, f(x) = |x|: Theorem 2 at every c.
- because |cos x| is never negative. Being non-negative says nothing about continuity. The reason is the composite theorem.
- it is not continuous where cos x = 0. At those points the graph only touches 0 and bounces back; f(x) = |x| is continuous at 0, so the composite is continuous there too.