If {sn}n converges to s and {tn}n converges to t with t=0, then {sntn}n converges to st.
Remember that you need to check assumptions before using a fact. The assumptions for Theorem 9.6 are that n→∞limsn and n→∞limtn exist. In other words, if you wrote the line above before checking that the limits of the numerator and denominator exist, you used Theorem 9.6 before checking all assumptions. So while you get the "correct" answer in the end, the reasoning is wrong, which is why I took off a lot of points.
To prove this properly, Theorem 9.6 turns out to be the last limit law that you use in this problem. A correct solution would look like the following:
Suppose f:D→R is a function. Then f is continuous at x0∈D if one of the following holds:
If {xn}n is a sequence in D converging to x0, then {f(xn)}n converges to f(x0).
For any ε>0, there exists δ>0 such that whenever y∈D satisfies ∣x0−y∣<δ, then ∣f(x0)−f(y)∣<ε.
Remark.
From lecture, you already know that (i) and (ii) are equivalent definitions, which means we can use whichever one's more convenient for us. As a rule of thumb, (i) is easier to use to prove something is discontinuous, and (ii) is easier to use to prove something is continuous.
Example 1.
(17.10(b))
Prove that
f(x)={sinx10if x>0,if x=0
is not continuous at x0=0.
Solution.
Following the remark above, we're going to want to use (i). To prove discontinuity, we just need to find a sequence {xn}n in [0,∞) such that {xn}n converges to 0, but {f(xn)}n does not converge to f(0)=0. Since sinθ=1 at 2π+2πn for all n∈N, we can set
xn1=2π+2πn⟹xn=2π+2πn1.
Then xn→0 as n→∞, but f(xn)=1 for all n∈N, so f is not continuous at x0=0.
Example 2.
(17.4)
Prove that x is continuous on [0,∞).
Solution.
We're going to use definition (ii) here, which means that we want to show an inequality of the form
This inequality is okay except when x0=0, which tells me that I want to deal with this case separately.
Let ε>0. If x0=0, then if ∣y∣<δ,
∣y∣=y<δ.
So, δ=ε2 gives ∣∣y∣∣<ε, so x is continuous at x0=0.
If x0=0, then we can use the inequality above: if ∣x0−y∣<δ, then
∣x0−y∣≤x0∣x0−y∣<x0δ.
Thus, δ=εx0 works: ∣∣x0−y∣∣<εx0x0=ε. Thus, x is continuous on all of [0,∞).
Another consequence of the sequence definition of continuity is that facts about sequences translate directly into facts about continuity.
Theorem
Suppose f:D→R and g:D→R are continuous functions. Then:
f+g is continuous.
fg is continuous.
gf is continuous at all points x0∈D such that g(x0)=0.
Proof.
(sketch)
Continuity at a point x0∈D basically boils down to sequences. For f+g, if {xn}n is a sequence in D that converges to x0, then we need to show that {(f+g)(xn)}n converges to (f+g)(x0), but this boils down to the limit laws for sequences.
□
This theorem tells us that sequences help us with proving continuity. The converse is also true: we can use continuity to help us calculate limits.
Example 3.
Calculate n→∞lime1/n.
Solution.
ex is continuous (which is a fact we'll just take for granted), and n1 converges to 0. Thus, by the sequence definition of continuity,
n→∞lime1/n=elimn→∞(1/n)=e0=1.
To end this section, here's an important connection between density and continuity:
Proposition
Let f:R→R and g:R→R be continuous functions such that f(q)=g(q) for all q∈Q. Then f=g everywhere.
Remark.
The idea behind this fact is that a continuous function will "fill in gaps" through limits. For example, let's say I give you all the information about a function f(x) except at a single point:
Because of continuity, there's only one way you can fill in the gap. In other words, information about a continuous function except at one point is the same thing as information about the continuous function everywhere.
The proposition says something a bit stronger: information about a continuous function at the rational numbers is the same as information about the function on the whole real line.
Proof.
To prove the statement, we just need to use density of Q. Let x0∈R, so by density of Q, there exists a sequence of rational numbers {qn}n which converge to x0. Since we know that f and g agree at every rational, we have f(qn)=g(qn) for all n. Then by the sequence definition of continuity,
f(x0)=n→∞limf(qn)=n→∞limg(qn)=g(x0).
Since x0 was arbitrary, this means f=g everywhere on R, which was what we wanted to show.
□
True or False
Example 4.
True or false: f:R∖{0}→R defined by f(x)=x1 is continuous.
Solution.
True. Continuity of a function only depends on points in the domain. x0=0 is a problematic point for f, but 0 is outside the domain of f, so we don't care what happens there.
Example 5.
True or false: If f+g is continuous, then f or g is must be continuous at at least one point.
Solution.
False. For example, let
f(x)={10if x∈Q,otherwise.
Then if g=−f, we get f+g=0 which is continuous everywhere, but f and g are both discontinuous everywhere. This is because Q and R∖Q are both dense in R, so given any x0∈R, there exist a sequence {qn}n of rational numbers and a sequence {rn}n of irrational numbers which both converge to x0. But
f(qn)=1andf(rn)=0for all n∈N,
so by the sequence definition of continuity, f is discontinuous everywhere.
Example 6.
True or false: If f+g is continuous and f is continuous, then g is continuous.
Solution.
True. You can write
g=continuous(f+g)+continuous(−f),
so g is a sum of continuous functions, hence continuous.