Definition: A set U⊆R is open when
∀a∈U,∃r>0,(a−r,a+r)⊆UProposition:
Proof:
Example: The infinite intersection of open sets is not open. Consider Un=(−1/n,1/n) for n∈Z+. Then Un is open, ∀n≥1, but ⋂∞n=1Un={0}, which is not open.
Proposition: Any open interval in R is an open set.
Proof: If I=(−∞,∞), then I=R, which is open. So suppose otherwise. Let a,b∈R and WLOG, suppose a<b. Let c∈(a,b). Choose r=min{c−a,b−c}. Let x∈(c−r,c+r). Then a≤c−r<x<c+r≤b, so x∈(a,b). So (c−r,c+r)⊆(a,b), so (a,b) is open. ◼
Proposition: Any closed interval is a closed set.
Proof: For any closed interval [a,b], one has R∖[a,b]=(−∞,a)∪(b,∞), which is an open set. $\blacksquare
If (a,∞), choose r=c−a, and if (−∞,b), choose r=b−c.
Definition: A set F⊆R is closed, when R∖F is open.
Proposition:
Proof: TODO.
Definition: A point a∈R is a limit point of a set A⊆R when ∃(xn)∞n=1⊆A∖{a} such that limn→∞xn=a.
Theorem 1: A set X is closed if and only if
[∀x0∈R,∃(xn)∞n=1,limn→∞xn=x0]⟹x0∈XThat is, a set is closed if and only if it contains all its limit points.
Proof: (→) Assume X⊆R is closed, and let x0∈R and (xn)∞n=1⊆X be such that limn→∞xn=x0. Suppose x0∉X. Then x0∈R∖X, which is open. Choose ϵ>0 such that (x0−ϵ,x0+ϵ)⊆R∖X. Then, ∀n∈Z+, |xn−x0|≥ϵ, contradicting the assumption that limxn=x0. ◼
(←) Assume the right side and suppose for the sake of contradiction that X is not closed. Then R∖X is not open. Choose x0∈R∖X such that a neighborhood (x0−1/n,x0+1/n)⊈R∖X. Then, ∃xn∈X such that |xn−x0|t1/n. So the sequence (xn) converges to x0, and hence x0∈X, by assumption; a contradiction. ◼
Definition: A set K⊆R is compact, when ∀(xn)n⊆K, ∃(xnk)k⊆(xn)n convergent to an element of K.
Proposition: Every closed interval is a compact set.
Proof: Let I=[a,b], with a<b since if a=b then I is a singleton and there is nothing to show. Let (xn)n⊆[a,b]. By Bolzano-Weistress, we can choose a subsequence (xnk)k⊆(xn)n such that limk→∞xnk=x0∈R. By the above theorem and since I=ˉI, it follows that x0∈I. ◼
Theorem (Heine-Borel): A set K⊆R is compact iff K is closed and bounded.
Proof: (←) Assume K is closed and bounded. Let S=(xn)n⊆K be an arbitrary sequence. Since K is bounded, S is bounded, and by Bolzano-Weistress, we can choose a convergent subsequence S′=(xnk)k⊆S. Let x0=limk→∞xnk. By Theorem 1, x0∈K.
(→) Assume for the sake of contradiction that K is not bounded above. Then, ∀n∈Z+, ∃xn∈K such that xn≥n. We claim that (xn)n contains no convergent subsequence. Suppose otherwise that there is (xnk)k⊆(xn)n convergent to x0∈R. Choose N0∈N such that N0≥x0+1. Then, ∀n≥N0, |xn−x0|≥1. In particular, if K0 is such that nk0≥N0, then ∀k≥K0,|xnk−x0|≥1. So there is no subsequence convergent to an x0∈K, contradicting the compactness of K.
It remains to show that K is closed. Let x0∈R,(xn)n⊆K be such that limn→∞xn=x0. By assumption of the compcatness of K, we can choose a subsequence (xnk)k convergent to z0∈K. Since limxn exists, then x0=z0∈K. So K is closed by Theorem 1. ◼
Example: The ternary Cantor set is a compact set.
Definition: A set U⊆R is called an (open) neighborhood of a point a∈R when U is open and a∈U.
Proposition: a∈R is a limit point of A⊆R when ∀U open neighborhoods of a, ∃x∈U∩A∖{a}.
Definition: Given a function f:A→R,A⊆R, and a limit point of A, a∈R, we say that the limit of f at a exists and equals L, and we write limx→af(x)=L when
∀ϵ>0,∃δ>0,∀x∈A,0<|x−a|<δ⟹|f(x)−L|<ϵExample: Show that limx→11x=1.
Note: Let a=1,f(x)=1x,A=R∖{0}. We have
|1/x−1|=|1−xx|=1|x|⋅|x−1|Since we can make |x−1| arbitrarily small, it remains to show that 1|x| is bounded by some m for all 0<|x−1|<δ. Assuming that δ≤12, we have (1−1/2<x<1+1/2). Then, x>12⟹1x<2⟹1|x|<2, since x>0.
Proof: Let ϵ>0 be arbitrary. Choose δ=min{12,ϵ2}. Then, for all x∈R such that 0<|x−1|<δ, we have 1|x|<2 and so |1x−1|=1|x|⋅|x−1|<2δ≤ϵ.
Theorem: Let f:A→R and let a∈R be a limit point of A. FCAE:
Proof: (1→2) Let (xn) be such a subsequence convergent to a. Then let ϵ>0 be arbitrary, and let δ>0 such that the limit definition is satisfied. Then choose N0∈N such that ∀n≥N0, |xn−a|tδ. Since δ,ϵ satisfy the limit definition, |f(xn)−L|tϵ for all n≥N0, as required. ◼
(2→1) Suppose otherwise. Then we can choose ϵ0>0 such that ∀n∈Z+,∃xn∈A such that 0t|xn−a|t1/n and |f(xn)−L|>ϵ0. But then, (xn) converges to a so by assumption, limn→∞f(xn)=L; a contradiction. ◼
Theorem (Algebraic Limit Theorem): Let f,g:A→R and let a∈R be a limit point of A. Suppose limx→af(x)=s, limx→ag(x)=t, and c∈R is a constant. Then:
Proof: By the above theorem, it suffices to show that for every sequence (xn)⊆A∖{a} convergent to a, the sequences (f(xn)±g(xn)),… converge to their respective limits. This follows from the Algebriaic Limit THeorem for sequences. ◼.
Definition: A point a∈R is said to be an isolated point of a set A⊆R when a∈A and ∃δ>0 such that (a−δ,a+δ)∩A={a}.
Definition: We say that a function f:A→R is continuous at a point a∈A when A is an isolated point of A, or else limx→af(x) exists and equals f(a).
Definition: We say that f:A→R is continuous when ∀a∈A, f is continuous at a.
Theorem: Let f:A→R and a∈A. The following conditions are equivalent:
Proof:
(1) TODO.
(2) TODO.
(3) TODO.
(4) (→) Assume f is continuous at a. Let V be any neighborhood of f(a). By the openeness of V, there is some ϵ0>0 such that (f(a)−ϵ0,f(a)+ϵ0)⊆V. By continuity of f at a, choose δ0>0 such that ∀x∈A,|x−a|<δ0⟹|f(x)−f(a)|<ϵ0. Define U=(a−δ0,a+δ0). Then, ∀x∈A∩U, so |f(x)−f(a)|<ϵ0, or f(x)∈(f(a)−ϵ0,f(a)+ϵ0)⊆V. So f(U)⊆V.
(←) Assume next that ∀V open neighborhood of f(a), ∃U open neighborhood of a such that f(U)⊆V. Let ϵ>0. Consider V:=(f(a)−ϵ,f(a)+ϵ). By assumption, we can choose U and open neighborhood of a such that f(x)∈V for all x∈U∩A. By openness of U, we can choose δ>0 such that (a−δ,a+δ)⊆U. Then, ∀x∈A,|x−a|<δ⟹x∈U∩A⟹f(x)∈V, so |f(x)−f(a)|<ϵ. ◼
Corollary: The following conditions are equivalent:
Theorem: If f,g:A→R are continuous at a∈A,c∈R, then f+g,f−g,c⋅f,f⋅g are continuous at a and f/g are continuous at a if g(a)≠0.
Proof: TODO.
Corollary: Every polynomial function is continuous on R, and every rational function P(x)/Q(x) is continuous on R∖Q−1(0).
Proof: Suffices to show that for any c∈R, {x∈R↦c∈R} is continuous and {x∈R↦x∈R} is continuous. TODO. ◼.
Theorem: Given f:A→R,g:B→R, a∈A, f(a)∈B, f(A)⊆B, if f is continuous at a and g continuous at f(a), then g∘f is continuous at a.
Proof: By assumption, ∀(an)n⊆A, limn→∞an=a⟹limn→∞f(an)=f(a) and ∀(bn)n⊆B, limn→∞bn=f(a)⟹limn→∞g(bn)=g(f(a)). We want to show that ∀(an)n⊆A, limn→∞an=a⟹limn→∞(g∘f)(an)=(g∘f)(a).
Let (an)n⊆A be any such sequence such that liman=a. Then (f(an))n converges to f(a). By assumption, limn→∞g(f(an))=g(f(a)). ◼
Theorem: Suppose f:A→R is a continuous function, K⊆A is compact. Then f(K) is also compact.
Proof: Let (yn)n be any sequence in f(K). Choose, for n≥1, xn∈K such that f(xn)=yn. Then, (xn)n is a sequence in K. By compactness, we can choose a subsequence (xnk)k∈(xn)n such that limk→∞xnk=x0∈K. Consider (ynk)k where ynk=f(xnk). By continuity of f at x0, limk→∞f(xnk)=f(x0)∈f(K). ◼
Corollary (Extreme Value Theorem): If f:K→R is continuous and K⊆R is non-empty and compact, then f admits its maximum and minimum value on K.
Proof: By the theorem above, f(K)⊆R is a compact subset, so by Heine-Borel, it is closed and bounded. Then, inff(K),supf(K)∈R. We have inff(K),supf(K) are limit points of f(K), and f(K) being closed, it follows that inff(K),supf(K)∈f(K). ◼
Definition: We say f:A→R is uniformly continuous when
∀ϵ>0,∃>0,∀x1,x2∈A,|x1−x2|<δ⟹|f(x1)−f(x2)|<ϵTheorem: If f:K→R is continuous and K is compact, then f is uniformly continuous.
Proof: Suppose for the sake of contradiction that there is ϵ0>0 such that ∀δ>0, ∃x1,x2∈K such that |x1−x2|<δ∧|f(x1)−f(x2)|≥ϵ0. In particular, ∀n∈Z+, ∃x1n,x2n∈K such that |x1n−x2n|<1/n∧|f(x1n)−f(x2n)|≥ϵ0. Hence, we get two sequences (x1n)n,(x2n)n⊆K. Pick a subsequence (x1nk)k⊆(x1n)n such that limk→∞x1nk=x0∈K. Consider (x2nk)k⊆(x2n)n. We have ∀k,|x1nk−x2nk|<1/nk→n→∞0, so limk→∞x2nk=limk→∞x1nk=x0. By continuity of f at x0, limf(x1nk)=f(x)0=limf(x2nk). So ∃K0∈N such that ∀k≥K0, |f(x1nk)−f(x0)|<ϵ0/2∧|f(x2nk)−f(x0)|≤ϵ0/2. When adding these two inequalities, we get a contradiction, since we already determined that |f(x1n)−f(x2n)|≥ϵ0. ◼
Examples (Warning): The theorem fails if K is not closed or not bounded.
Proof: Suppose otherwise. Consider ϵ=1. Let δ0>0 such that ∀0≤x1<x2, x2−x1<δ0, then |x22−x21|<1. Choose x1=2/δ0 and x2=2/δ0+δ0/2. Then, x2−x1=δ0/2<δ0, and |x22−x21|=(x2−x1)(x2+x1)=δ0/2⋅(2/δ0+2/δ0+δ0/2)>δ0/2⋅4/δ0=2>ϵ=1. ◼
Proof: Suppose otherwise. Consider ϵ=1. Choose 0<δ0<1 such that ∀0<x1<x2≤1,x2−x1<δ0⟹|1/x2−1/x1|<1. Let x1=δ0/4, x2=δ0/2. Then x2−x1=δ0/2−δ0/4=δ0/4<δ0, and 1/x1−1/x2=x2−x1x1x2=δ0/4⋅8/δ20=2/δ0>2>1; a contradiction. ◼
Theorem (Intermediate Value Theorem): Let f:I→R be continuous, where I is any interval. Then, f(I)⊆R is an interval.
Proof: We want to show that ∀u,v,w∈R;u<v<w;u,w∈f(I)⟹v∈f(I). Let u,v,w∈R such that u<v<w and u,w∈f(I). Choose xu,xw∈I be such that f(xu)=u and f(xw)=w. Either xu<xw or xu>xw. WLOG, suppose xu<xw. Then, [xu,xw]⊆I. Consider A={x∈[xu,xw]:f(x)<v}, B={x∈[xu,xw]:f(x)>v}. We have xu∈A and xw∈B. So A,B are non-empty and bounded, so they have an infimum and supremum. Define α:=supA∈[xu,xw]. By continuity at α,f(α)=limn→∞f(xn) for any (xn)⊆A such that limxn=α. It follows that f(α)≤v, since f(xn)<v. Now, ∀n∈Z+, α+1/n∉A. It follows that ∀n∈Z+,f(α+1/n)≥v. Consider the sequence (zn)n⊆I where zn=α+1/n. So |zn−α|=1/n→n→∞0, so limn→∞zn=α. By continuity, limf(zn)=f(α). Hence, f(α)≥v. So f(α)=v. So v∈f(I). ◼
Example: Let g:[0,1]→[0,1] be continuous. Show that ∃a∈[0,1] such that g(a)+2a5=3a7.
Proof: Consider* f(x):=g(x)+2x5−3x7. Then f is continuous on [0,1]. We want to show that ∃a∈[0,1] such that f(a)=0. Note that f(0)=g(0)≥0. Also, f(1)=g(1)−1≤0. Either f(0)=0 so a=0, or f(1)=0 so a=1, or else f(0)>0 and f(1)<0. So 0∈(f(1),f(0)). By IVT, ∃a∈(0,1) such that f(a)=0. ◼
Corollary: If f:I→R is continuous and I is a closed interval, then f(I) is a closed interval.
Proof: By IVT, f(I) is an interval. By EVT, f(I) is compact, so it is bounded. So inff(I),supf(I)∈R. Since inff(I) and supf(I) are limit points of f(I) and f(I) is closed, inff(I),supf(I)∈f(I). So f(I)=[inff(I),supf(I)]. ◼
Definition: Let f:A→R with A≠∅. We say that f is:
A function is monotone if it is increasing or decreasing, and strictly montoone if it is strictly increasing or strictly decreasing.
Theorem: Let I⊆R be an interval and let f:I→R be a continuous injection. Then
(1) f is strictly monotone.
(2) f−1:f(I)→I is a strictly monotone continuous injection.
Proof:
(1) Observe that for any a,b,c∈I such that a<b<c, one cannot have f(a)<f(b)>f(c)x or f(a)>f(b)<f(c) (by IVT). Therefore, ∀x∈I,∀u,v∈I such that u<x<v, either (a) f(u)<f(x)<f(v) or else (b) f(u)>f(x)>f(v). Let x1∈I. Suppose that (a) is the case. We claim that ∀x∈I, (a) holds at x. Suppose otherwise, that there exists x2∈I such that (b) holds at x2. If x1<x2, then f(x1)<f(x2) (by (a) at x1) and f(x1)>f(x2) (by (b) at x2), a contradiction. The argument is symmetric for if x2<x1. So, f is strictly increasing. Case (b) holds symmetrically to show that f is strictly decreasing. ◼
(2) We claim that if (and only if) f is strictly increasing, f−1 is strictly increasing. If y1,y2∈f(I),y1<y2, let x1,x2∈I be such that f(x1)=y1,f(x2)=y2. Then f−1(y1)=x1<x2=f−1(y2), for otherwise, x2<x1⟹f(x2)<f(x1); a contradiction.
Let b∈f(I) be arbitrary. We claim that f−1 is continuous at b. Let ϵ>0. Let a=f−1(b). Consider y1:=f(a−ϵ),y2:=f(a+ϵ). Choose δ=min{y2−b,b−y1}. Then ∀y∈I,
|y−b|<δ⟹y∈(y1,y2)⟹y∈(f(a−ϵ),f(a+ϵ))⟹∃xy∈(a−ϵ,a+ϵ),f(xy)=y (by IVT)⟹f−1(y)∈(a−ϵ,a+ϵ)⟹|f−1(y)−f−1(b)|<ϵDefinition: A function f:A→R is Lipschitz, when
∃L≥0,∀x1,x2∈A,|f(x1)−f(x2)|≤L⋅|x1−x2|Any such L is called a Lipschitz constant for f.
Remark: Any Lipschitz function is uniformly continuous (Lipschitz is a stronger condition than uniform continuity).
Proof: Let L be a Lipschitz constant for f. Let ϵ>0 be arbitrary. Set δ:=ϵ/L. Ten ∀x1,x2∈A,|x1−x2|<δ⟹|f(x1)−f(x2)|<L⋅δ=ϵ.
Example: Find a function that is uniformly continuous but not Lipschitz.
f(x)={xsin(π/x2)x∈(0,1]0x=0Since limx→0+f(x)=0=f(0), f is continuous at 0, so f is continuous on [0,1], so f is uniformly continuous. Set xn=1√2n and yn=1√2n+12,n∈Z+. Then f(xn)=0 and f(yn)=yn. Then,
|f(xn)−f(yn)||xn−yn|=1√2n+12⋅11√2n−1√2n+12=2⋅√2n(√2n+12+√2n)→n→∞∞Definition: A function f:A→R is called a contraction when f is Lipschitz with a Lipschitz constant L<1.
Theorem (Fixed Point): Let A≠∅,A⊆R, and let f:A→A be a contraction. Suppose A is a closed set. Then ∃!p∈A such that f(p)=p.
Proof: Pick any x1∈A. Construct a sequence (xn)⊆A defined as xk+1=f(xk),∀k∈Z+. Let α∈[0,1) be a Lipschitz constant of f.
We claim that ∀k≥2, |xk+1−xk|≤αk−1⋅|x2−x1|. We proceed by induction. We have |x3−x2|=|f(x2)−f(x1)|≤α|x2−x1| since α is a Lipschitz constant of f. Now, assuming |xk+1−xk|≤αk−1|x2−x1|, consider |xk+2−xk+1|=|f(xk+1)−f(xk)|≤α⋅|xk+1−xk|≤α(k+1)−1|x2−x1|; proving the claim.
Claim 2: (xn) is Cauchy. Let ϵ>0. Choose N0∈N such that αN0−11−α⋅|x2−x1|<ϵ. Then, ∀n≥m≥N0, and
|xn−xm|=|(xn−xn−1)+(xn−1−xn−2)+⋯+|xm+1−(xm+1−xm)|≤|xn−xn−1|+|xn−1−xn−2|+⋯+|xm+1−xm|≤αn−2|x2−x1|+αn−3|x2−x1|+⋯+αm−1|x2−x1|=|x2−x1|⋅αm−1⋅αm−1n−m−1∑k=0αk≤|x2−x1|⋅αN0−1⋅11−α<ϵLet p∈R be such that limn→∞xn=p. Since A is closed, p∈A. By the continuity of f at p, f(p)=limn→∞f(xn)=limn→∞xn+1=limn→∞xn=p (since (xn+1)⊆(xn)). So suppose there is some other ∃q∈A such that f(q)=q. Then |p−q|=|f(p)−f(q)|≤α⋅|p−q|, so |p−q|=0, so p=q. ◼
Definition: Given f:A→R, a∈R is such that ∀k∈Z+,∃xk∈A,xk<a∧|xk−a|<1/k. Then, we say L=limx→a−f(x), when
∀ϵ>0,∃δ>0,∀x∈A,0<a−x<δ⟹|f(x)−L|<ϵ