Real Analysis

Seven ideas from a first course in analysis, starting with the one that ties the rest together: what it means for a function to be continuous, told in five chapters from Ξ΅ and Ξ΄ to open sets and topology. Play the Ρ–δ game, drag open sets, watch sums and sequences settle down, then check yourself with concept questions, practice problems and exercises from the book.

Follows the chapter order of W. Rudin, Principles of Mathematical Analysis, 3rd ed. (McGraw–Hill, 1976), Chapters 2–7. Chapter and theorem numbers refer to that book; the questions and examples here are written for this page. Exercises from the book appear at the end of each module, with their numbers from the book and their statements restated in our own words. Exercises from the book appear at the end of each module, with their numbers from the book and their statements restated in our own words. For how this subject feeds the others on this site, see the roadmap.

Story in five chaptersRudin, Ch. 2: Basic Topology Β· Ch. 4: Continuity

The story of continuity

Continuity starts as a statement about distances between numbers. Each time we rewrite it, it needs less: first only a distance function, then only sequences, then only open sets. At the end the open sets are all that is left, and that collection is what a topology is. The point of the whole story: once continuity only needs open sets, you can talk about continuous maps between spaces that have no distance at all.

The story

  1. Chapter 1. The Ρ–δ definition

    A function f:R→R is continuous at p if small changes in the input produce small changes in the output. Making "small" precise turns this into a game against an adversary. They choose a tolerance Ρ>0 for the output; you must answer with a tolerance δ>0 for the input that guarantees it.

    Continuity at a point. For every Ξ΅>0 there is a Ξ΄>0 such that |xβˆ’p|<Ξ΄ implies |f(x)βˆ’f(p)|<Ξ΅.

    You win if you have a winning reply to every Ξ΅. The first figure below plays this game: the horizontal band is the adversary's Ξ΅, the vertical strip is your Ξ΄, and the graph has to stay inside the box.

  2. Chapter 2. Only distance was used

    Look at what the definition actually uses: the expressions |xβˆ’p| and |f(x)βˆ’f(p)|, i.e. a way of measuring how far apart two points are. Nothing about R being ordered, or having arithmetic, is needed. So we can replace |xβˆ’y| by any function d(x,y) that behaves like a distance.

    Metric space (Rudin 2.15). A set X with d:XΓ—Xβ†’[0,∞) such that d(p,q)=0⟺p=q, d(p,q)=d(q,p), and d(p,q)≀d(p,r)+d(r,q).

    Write Nr(p)={q:d(p,q)<r} for the ball of radius r. Then continuity of f:X→Y at p reads, word for word as before, but now as a statement about balls:

    for everyΒ Ξ΅>0Β there isΒ Ξ΄>0Β withΒ f(NΞ΄(p))βŠ†NΞ΅(f(p)).

    This one definition now covers Rk, spaces of functions with d(f,g)=sup|fβˆ’g|, strings with the Hamming distance, and much more.

  3. Chapter 3. Limits of sequences and of functions

    The same Ξ΅-language defines limits. A sequence converges, pnβ†’p, if for every Ξ΅ there is N with d(pn,p)<Ξ΅ for nβ‰₯N (Rudin 3.1). A function has a limit, limxβ†’pf(x)=q, if for every Ξ΅ there is Ξ΄ with d(f(x),q)<Ξ΅ whenever 0<d(x,p)<Ξ΄ (Rudin 4.1).

    Three faces of one idea (Rudin 4.2, 4.6). For p a limit point of the domain, the following are equivalent: (i) f is continuous at p; (ii) limx→pf(x)=f(p); (iii) f(pn)→f(p) for every sequence pn→p.

    So "continuous" means "commutes with limits": f(limpn)=limf(pn). This is the form you use most in practice, and it is the bridge to the next chapter, because a sequence converging to p is eventually inside every ball around p.

  4. Chapter 4. Balls disappear: open sets

    Call GβŠ†X open if around each of its points there is a ball inside G (Rudin 2.18). Now take the ball version of continuity and ask it of every point at once. Something remarkable happens: Ξ΅ and Ξ΄ drop out completely.

    Continuity by open sets (Rudin 4.8). f:Xβ†’Y is continuous at every point if and only if fβˆ’1(V) is open in X for every open VβŠ†Y.

    Why. If V is open and f(p)∈V, some ball NΞ΅(f(p)) lies in V; continuity gives a ball NΞ΄(p) mapped into it, so p is an interior point of fβˆ’1(V). Conversely, apply the hypothesis to V=NΞ΅(f(p)); its preimage is open and contains p, so it contains some NΞ΄(p).

    The second figure lets you drag an open interval V and see its preimage. For a continuous function the preimage is always a union of open intervals; at a jump, the preimage picks up an endpoint and stops being open.

  5. Chapter 5. Keep only the open sets: topology

    Chapter 4 says continuity only needs to know which sets are open. The metric was scaffolding. So we can throw it away and keep just the collection of open sets, provided it has the properties open sets in a metric space always have (Rudin 2.24).

    Topology. A collection T of subsets of X containing βˆ… and X, closed under arbitrary unions and under finite intersections. Its members are called open. A map f:(X,TX)β†’(Y,TY) is continuous if fβˆ’1(V)∈TX for every V∈TY.

    This is the whole point of a topology: it is the least structure you need in order to say which functions are continuous. It lets you do that on spaces that have no natural distance at all:

    • Polynomial geometry. In the Zariski topology the closed sets are zero sets of polynomials. Polynomial maps are continuous, though there is no useful metric (Algebraic Geometry, module 1).
    • Gluing. A circle is [0,1] with 0 and 1 glued. Declare a set open if its preimage in [0,1] is open; then a map out of the circle is continuous exactly when the corresponding map out of [0,1] is.
    • Pointwise convergence. On the space of all functions Rβ†’R, "fnβ†’f pointwise" is convergence in a topology (the product topology) that comes from no metric (compare module 7).
    • Manifolds. A manifold is a topological space that looks like Rn near each point. The transition maps are only required to be continuous before any smoothness is added (Smooth Manifolds, module 1).
    What a topology forgets. Different metrics can give the same open sets: the β„“1, β„“2 and β„“βˆž distances on R2 do (module 2). Notions that depend on the metric itself, such as Cauchy sequences, completeness and uniform continuity, are therefore not topological. R and (0,1) are homeomorphic, but only one of them is complete. And unique limits need an extra axiom (Hausdorff), which every metric space satisfies automatically.

Explore: the Ρ–δ game

Function
Gold band: outputs within Ξ΅ of f(p). Blue strip: inputs within Ξ΄ of p. The graph over the strip turns red wherever it leaves the band.
Ξ΄
The largest Ξ΄ that works, for every Ξ΅, at this point p. your (Ξ΅, Ξ΄): below the curve you win, above it you lose. Drag Ξ΅ with Ξ΄ following it to watch the strip widen as the band does.

Explore: preimages of open sets

Function
Drag the two ends of the open interval V on the vertical axis (or drag inside it to slide it). Its preimage f⁻¹(V) is shaded on the horizontal axis. A filled dot marks an endpoint that belongs to the preimage.

Worked example

Prove that f(x)=x2 is continuous on R three ways, once in each language of the story.

  1. With Ξ΅ and Ξ΄: given p and Ξ΅, what Ξ΄ works?

    |x2βˆ’p2|=|xβˆ’p||x+p|. If |xβˆ’p|<1 then |x+p|<2|p|+1. So Ξ΄=min(1,Β Ξ΅/(2|p|+1)) gives |x2βˆ’p2|<Ξ΄(2|p|+1)≀Ρ. Notice Ξ΄ depends on p: this is continuity, not uniform continuity (module 4).

  2. With sequences: why does pn→p imply pn2→p2?

    Limits respect products (Rudin 3.3): pn2=pn⋅pn→p⋅p. This is the cleanest proof, and it is the reason the algebra of limits is proved early.

  3. With open sets: describe fβˆ’1((a,b)) and check it is open.

    If b≀0 it is empty. If a<0<b it is (βˆ’b,b). If 0≀a<b it is (βˆ’b,βˆ’a)βˆͺ(a,b). Each is open, and every open subset of R is a union of open intervals, whose preimages are then unions of open sets.

  4. Which proof survives if we only know the topology on R, not the metric?

    Only the third. The first uses the distance, the second uses sequences (which suffice in metric spaces, but not in every topological space). The open-set proof uses nothing but open sets, which is why it is the definition that generalises.

Examples

Example 1.1 (a quadratic).

For f(x)=x2 at a point a, the choice Ξ΄=min(1,Ξ΅2|a|+1) works: if |xβˆ’a|<Ξ΄ then |x+a|<2|a|+1, so |x2βˆ’a2|=|xβˆ’a||x+a|<Ξ΅. The Ξ΄ depends on a, which module 4 turns into the question of uniform continuity.

Example 1.2 (nowhere continuous).

The indicator 1Q is discontinuous at every point: every interval contains rationals and irrationals, so no Ξ΄ works for Ξ΅=12. Thomae's function (1q at p/q in lowest terms, 0 at irrationals) is continuous exactly at the irrationals.

Example 1.3 (preimages).

f(x)=1/x on (0,∞) pulls the open interval (1,2) back to the open interval (12,1). The preimage criterion is checked one open set at a time, with no Ρ or δ in sight.

Example 1.4 (a continuous bijection that is not a homeomorphism).

t↦(cos⁑t,sin⁑t) from [0,2Ο€) onto the circle is continuous and bijective, but its inverse jumps at (1,0): points just below (1,0) come from t near 2Ο€. Compactness of the domain is what would prevent this (module 4).

Check your understanding

In the Ρ–δ game for f(x)=1/x on (0,∞), fix Ξ΅. What happens to the best Ξ΄ as pβ†’0+?

  1. It shrinks to 0, but is positive at every p.
  2. It stays bounded below by a positive number.Try it in the figure: near 0 the graph is so steep that tiny input changes give big output changes.
  3. It is 0 at some p>0, so 1/x is discontinuous there.At each p>0 some Ξ΄>0 works; it just gets small.
The best Ξ΄ is roughly Ξ΅p2 for small Ξ΅. It is positive for each p, so 1/x is continuous, but there is no single Ξ΄ for all p: 1/x is not uniformly continuous on (0,1).

Which statement says f:X→Y is continuous using only open sets?

  1. The image of every open set is open.That defines an open map. x↦x2 is continuous but sends (βˆ’1,1) to [0,1).
  2. The preimage of every open set is open.
  3. The preimage of every closed set is open.Preimages of closed sets are closed, by taking complements.
Preimages respect unions, intersections and complements, which is why the preimage is the right direction. Equivalently, preimages of closed sets are closed.

On a set X, take the discrete topology (every subset is open). Which maps X→Y are continuous, for any topological space Y?

  1. All of them.
  2. Only the constant maps.Constant maps are continuous for every topology, but here many more maps are.
  3. Only the injective ones.Injectivity plays no role.
Every preimage is a subset of X, and every subset is open. Dually, if Y has the indiscrete topology {βˆ…,Y}, every map into Y is continuous. More open sets in the domain or fewer in the target make continuity easier.

R and (0,1) are homeomorphic (for example via x↦12+1Ο€arctan⁑x). Which property can therefore not be a topological property?

  1. Connectedness.Both are connected, and connectedness is defined with open sets only.
  2. Completeness.
  3. Being Hausdorff.Both are Hausdorff, and Hausdorff is defined with open sets only.
R is complete; (0,1) is not (1/n is Cauchy with no limit in it). A homeomorphism preserves open sets but can stretch distances without bound, so Cauchy sequences are not preserved.

Practice

Exercise 1.1The topology of the line: open sets in ℝ

Show that the open sets in R (with the usual metric) satisfy the axioms of a topology, and that the intersection of the infinitely many open sets (βˆ’1/n,1/n) is not open.

Hint

For finite intersections, take the smallest of finitely many radii.

Solution

βˆ… and R are open. If pβˆˆβ‹ƒGΞ±, then p∈GΞ² for some Ξ², and a ball around p inside GΞ² lies in the union. If p∈G1βˆ©β‹―βˆ©Gn, take balls of radii ri and let r=minri>0. But β‹‚n(βˆ’1/n,1/n)={0}, which contains no ball: with infinitely many radii the minimum can be 0.

Exercise 1.2Continuity is local, sequences suffice: chapter 3 in action

Let f(x)=sin⁑(1/x) for xβ‰ 0 and f(0)=c. Show that f is discontinuous at 0 for every choice of c, using sequences.

Solution

Take xn=1/(2Ο€n+Ο€/2) and yn=1/(2Ο€nβˆ’Ο€/2). Both tend to 0, but f(xn)=1 and f(yn)=βˆ’1. If f were continuous at 0, both would converge to c, so c=1=βˆ’1. In the game: for Ξ΅<1 no Ξ΄ works.

Exercise 1.3The Zariski topology on the line: a topology with no metric

On R, call a set open if it is empty or its complement is finite. Show this is a topology, that any two nonempty open sets intersect, and conclude it does not come from any metric.

Solution

Unions of cofinite sets are cofinite (or empty); finite intersections of cofinite sets have finite complements, since a finite union of finite sets is finite. Two nonempty open sets miss only finitely many points each, so they share infinitely many points. In a metric space two distinct points have disjoint balls of radius d(p,q)/2 around them, so no metric gives these open sets. This is the Zariski topology on the affine line: its closed sets are the zero sets of polynomials.

From Rudin, Principles of Mathematical Analysis (3rd ed., McGraw–Hill, 1976)

Numbers match the book. Each question is restated in our own words; the hints and solutions are written for this page.

Rudin 4.1A symmetric limit is not continuity

Suppose f:Rβ†’R satisfies limhβ†’0[f(x+h)βˆ’f(xβˆ’h)]=0 for every x. Must f be continuous?

Hint

The condition compares values at x+h and xβˆ’h but never looks at f(x) itself. Try changing f at a single point.

Solution

No. Let f(0)=1 and f(x)=0 for xβ‰ 0. If xβ‰ 0, then for 0<|h|<|x| both xΒ±h are nonzero; if x=0, the points Β±h are nonzero for every hβ‰ 0. Either way f(x+h)βˆ’f(xβˆ’h)=0 for all small hβ‰ 0, so the limit is 0 everywhere. But f is not continuous at 0.

The condition only says f has the same behaviour on both sides of each point. It is satisfied by any function that agrees with a continuous one except on a set with no limit points. Even 1Q fails it, though: take x irrational and h with x+h∈Q, xβˆ’hβˆ‰Q.

Rudin 4.2Images of closures

If f:Xβ†’Y is a continuous map of metric spaces and EβŠ†X, prove f(EΒ―)βŠ†f(E)―. Show by an example that the inclusion can be proper.

Hint

A point of EΒ― is a limit of a sequence in E, and continuous maps send convergent sequences to convergent sequences.

Solution

Let p∈EΒ―. Choose pn∈E with pnβ†’p (if p∈E, take pn=p). By Rudin 4.2, f(pn)β†’f(p), and every f(pn)∈f(E), so f(p)∈f(E)―.

An open-set proof: fβˆ’1(f(E)―) is closed (preimage of a closed set) and contains E, so it contains EΒ―.

Proper inclusion: X=R, f(x)=1/(1+x2), E=R. Then EΒ―=R and f(EΒ―)=(0,1], but f(E)―=[0,1]. Or f:Zβ†’R, f(n)=1/n for nβ‰₯1: E=Z>0 is closed, but 0∈f(E)β€•βˆ–f(EΒ―).

Rudin 4.3Zero sets are closed

For a continuous real function f on a metric space X, prove that its zero set Z(f)={p:f(p)=0} is closed.

Hint

Z(f) is a preimage.

Solution

Z(f)=fβˆ’1({0}), and {0} is closed in R. Preimages of closed sets under continuous maps are closed (take complements in Rudin 4.8). Sequentially: if pn∈Z(f) and pnβ†’p, then f(p)=limf(pn)=0.

This is the bridge to algebraic geometry: if only zero sets of polynomials are declared closed, you get the Zariski topology, in which polynomial maps are continuous.

Rudin 4.4Continuous maps are determined by a dense set

Let f,g:Xβ†’Y be continuous maps of metric spaces and EβŠ†X dense. Prove f(E) is dense in f(X), and that if f=g on E then f=g on X.

Hint

Use Rudin 4.2 for the first part. For the second, look at the set where f and g agree, or use sequences.

Solution

Density. By Rudin 4.2, f(X)=f(EΒ―)βŠ†f(E)―. So every point of f(X) is in the closure of f(E).

Uniqueness. For p∈X, pick pn∈E with pnβ†’p. Then f(p)=limf(pn)=limg(pn)=g(p), using continuity of both and uniqueness of limits in the metric space Y.

The uniqueness step needs limits in Y to be unique, i.e. Y Hausdorff. For a general topological target it can fail: into the indiscrete space every map is continuous.

InteractiveRudin, Ch. 2: Basic Topology

Metric spaces and open sets

A metric gives balls, balls give open sets, and open sets are all that continuity sees. Different metrics can draw very differently shaped balls and still produce exactly the same open sets.

The idea

Interior, open, closed (Rudin 2.18). p is an interior point of E if some ball Nr(p)βŠ†E. E is open if all its points are interior. p is a limit point of E if every ball around p contains a point of E other than p. E is closed if it contains all its limit points.
Complements (Rudin 2.23). E is open if and only if Ec is closed.

On R2 there are three natural distances: d1=|x1βˆ’y1|+|x2βˆ’y2|, d2 (Euclidean), and d∞=max|xiβˆ’yi|. Their unit balls are a diamond, a disk and a square. Since each ball contains a smaller ball of each other kind with the same centre,

Nr/2(∞)(p)βŠ†Nr(1)(p)βŠ†Nr(2)(p)βŠ†Nr(∞)(p),

a set has interior balls of one kind exactly when it has them of every kind. The three metrics give the same open sets, so the same continuous functions.

Explore

Metric
Set E
Drag the point. The shaded ball is the largest ball of the chosen metric around it that stays inside E. Points with no such ball are boundary points.

Worked example

Let X be any set with the discrete metric: d(p,q)=1 if p≠q and 0 if p=q. Which sets are open, which are closed, and which are compact?

  1. What is the ball N1/2(p)?

    Only p is at distance less than 12 from p, so N1/2(p)={p}.

  2. Which sets are open? Which are closed?

    Every set: each of its points has the ball {p} inside it. Since complements of open sets are closed, every set is also closed. This metric induces the discrete topology.

  3. Which sets are compact?

    Exactly the finite ones. A finite set is compact. An infinite set K has the open cover {{p}:p∈K}, and no finite subfamily covers it. So "closed and bounded" (every set here is bounded, with diameter at most 1) does not imply compact in general metric spaces; Heine–Borel is special to Rk.

Examples

Example 2.1 (three metrics on the plane).

d1(x,y)=|x1βˆ’y1|+|x2βˆ’y2|, the Euclidean d2, and d∞=max|xiβˆ’yi| have a diamond, a disc and a square as unit balls. Each ball contains a smaller ball of the others, so all three give the same open sets.

Example 2.2 (the discrete metric).

d(x,y)=1 for x≠y. The ball of radius 12 about x is {x}, so every set is open, and so every set is closed as well.

Example 2.3 (clopen sets in β„š).

In the metric space Q, the set {x:x2<2} is both open and closed, because its boundary point 2 is missing. So Q is not connected, which is one face of its incompleteness.

Example 2.4 (interior and closure).

In R, the rationals have empty interior and closure R. A set can be very large in one sense (dense) and very small in another (no interior).

Check your understanding

Is [0,1) open in R? Closed?

  1. Open, not closed.0 is in the set, but every ball around 0 contains negative numbers.
  2. Neither.
  3. Closed, not open.1 is a limit point not in the set.
0 is not an interior point, and 1 is a limit point outside the set. "Not open" does not mean "closed".

Regard [0,1) as a metric space by itself. Is the subset [0,12) open in it?

  1. Yes.
  2. No, 0 is not an interior point.In the space [0,1) there are no negative numbers; the ball of radius 14 around 0 is [0,14).
Openness is relative to the ambient space (Rudin 2.30): E is open in YβŠ†X iff E=Y∩G for some G open in X. Here [0,12)=[0,1)∩(βˆ’1,12).

Which of these is a metric on R?

  1. d(x,y)=(xβˆ’y)2The triangle inequality fails: d(0,2)=4>d(0,1)+d(1,2)=2.
  2. d(x,y)=|xβˆ’y|1+|xβˆ’y|
  3. d(x,y)=|xβˆ’2y|It isn't symmetric, and d(1,1)=1β‰ 0.
t↦t/(1+t) is increasing and subadditive, which gives the triangle inequality. This bounded metric has the same open sets as |xβˆ’y|, another example of "same topology, different metric" (see Rudin 2.11 below).

Practice

Exercise 2.1Closures and limit points (Rudin 2.27)

Show that the closure EΒ―=EβˆͺEβ€² is closed, and that it is the smallest closed set containing E.

Solution

If pβˆ‰EΒ―, some ball Nr(p) misses E (else p would be in E or a limit point). That ball also misses Eβ€²: any q∈Nr(p) has a smaller ball around it inside Nr(p), which misses E. So EΒ―c is open. If FβŠ‡E is closed, it contains the limit points of E (they are limit points of F), so FβŠ‡EΒ―.

Exercise 2.2Balls are open: the triangle inequality at work

Show that every ball Nr(p) in a metric space is an open set.

Solution

If q∈Nr(p), let h=rβˆ’d(p,q)>0. For s∈Nh(q), d(p,s)≀d(p,q)+d(q,s)<d(p,q)+h=r. So Nh(q)βŠ†Nr(p).

From Rudin, Principles of Mathematical Analysis (3rd ed., McGraw–Hill, 1976)

Numbers match the book. Each question is restated in our own words; the hints and solutions are written for this page.

Rudin 2.9The interior

Let E∘ be the set of interior points of E. Prove: (a) E∘ is open; (b) E is open iff E∘=E; (c) if GβŠ†E is open, then GβŠ†E∘; (d) (E∘)c=Ec―. (e) Do E and EΒ― always have the same interior? (f) Do E and E∘ always have the same closure?

Hint

(a) Balls are open. (d) pβˆ‰E∘ iff every ball around p meets Ec. For (e) and (f), try QβŠ†R.

Solution

(a) If p∈E∘, some Nr(p)βŠ†E. Each q∈Nr(p) has a ball Nh(q)βŠ†Nr(p)βŠ†E (balls are open), so q∈E∘. Thus Nr(p)βŠ†E∘.

(b) If E is open, every point is interior. Conversely E∘ is open by (a).

(c) Each p∈G has a ball inside GβŠ†E.

(d) pβˆ‰E∘ iff no ball around p lies in E, iff every ball around p meets Ec, iff p∈Ec―.

(e) No: Q has empty interior, but QΒ―=R has interior R.

(f) No: Q∘=βˆ… has closure βˆ…, but QΒ―=R.

So E∘ is the largest open set inside E, dual to E¯ being the smallest closed set containing E.

Rudin 2.11Which formulas are metrics?

On R, decide which of these are metrics: d1=(xβˆ’y)2, d2=|xβˆ’y|, d3=|x2βˆ’y2|, d4=|xβˆ’2y|, d5=|xβˆ’y|1+|xβˆ’y|.

Hint

Check d(x,x)=0, positivity, symmetry and the triangle inequality. Concave increasing functions Ο† with Ο†(0)=0 are subadditive.

Solution
  • d1: not a metric. d1(0,2)=4>d1(0,1)+d1(1,2)=2.
  • d2: a metric. a+b≀a+b, so |xβˆ’z|≀|xβˆ’y|+|yβˆ’z|≀|xβˆ’y|+|yβˆ’z|.
  • d3: not a metric. d3(1,βˆ’1)=0 but 1β‰ βˆ’1.
  • d4: not a metric. d4(1,1)=1β‰ 0, and it isn't symmetric.
  • d5: a metric. Ο†(t)=t/(1+t) is increasing and Ο†(a+b)≀φ(a)+Ο†(b), which with |xβˆ’z|≀|xβˆ’y|+|yβˆ’z| gives the triangle inequality.

Both d2 and d5 give the usual open sets on R, though d5 is bounded: the same topology from very different metrics.

Rudin 2.22ℝᡏ is separable

A metric space is separable if it has a countable dense subset. Show that Rk is separable.

Hint

Use the points with rational coordinates.

Solution

Qk is countable (a finite product of countable sets). Given x∈Rk and r>0, choose rationals qi with |qiβˆ’xi|<r/k (density of Q in R, Rudin 1.20). Then |qβˆ’x|<r, so every ball meets Qk, i.e. Qk is dense.

Rudin 2.29Open subsets of the line

Prove that every open set in R is the union of an at most countable collection of disjoint open intervals (segments).

Hint

Group the points of G by the largest interval in G containing them. Each such interval contains a rational.

Solution

For x∈G, let Ix be the union of all open intervals containing x and contained in G. It is an open interval (possibly infinite) inside G, and it is the largest one containing x. If Ix∩Iyβ‰ βˆ…, then IxβˆͺIy is an interval in G containing x, so IyβŠ†Ix by maximality, and symmetrically, so Ix=Iy. Hence the distinct Ix are disjoint and their union is G.

Each Ix contains a rational number, and distinct ones contain distinct rationals because they are disjoint. Since Q is countable, there are at most countably many intervals.

InteractiveRudin, Ch. 3: Numerical Sequences and Series

Sequences, Cauchy and series

A limit is a promise: name any Ξ΅, and from some index on the terms stay within Ξ΅ of the limit. The Cauchy criterion makes the same promise without naming the limit, and that is what lets us prove series converge to numbers we can't write down.

The idea

Convergence and Cauchy sequences (Rudin 3.1, 3.8). pnβ†’p if for every Ξ΅>0 there is N with d(pn,p)<Ξ΅ for all nβ‰₯N. {pn} is Cauchy if for every Ξ΅>0 there is N with d(pm,pn)<Ξ΅ for all m,nβ‰₯N.
Completeness (Rudin 3.11). Every convergent sequence is Cauchy. In Rk (and in any compact metric space) every Cauchy sequence converges.

A series βˆ‘an converges if its partial sums sn=a1+β‹―+an do. The Cauchy criterion becomes: for every Ξ΅ there is N with |am+β‹―+an|<Ξ΅ for nβ‰₯mβ‰₯N (Rudin 3.22). In particular anβ†’0 is necessary, but not sufficient: the harmonic series diverges.

Explore

Sequence
The band has half-width Ξ΅ around the limit. The dashed line marks the first index N after which every plotted term stays in the band.

Worked example

Show that βˆ‘1/n diverges, even though its terms tend to 0, and that βˆ‘1/n2 converges.

  1. Group the harmonic series in blocks 2kβˆ’1<n≀2k. How big is each block?

    The block has 2kβˆ’1 terms, each at least 2βˆ’k, so it sums to at least 12. The partial sums s2kβ‰₯1+k/2 are unbounded, so the series diverges (it fails the Cauchy criterion with Ξ΅=12).

  2. Do the same grouping, 2k≀n<2k+1, for βˆ‘1/n2.

    The block has 2k terms, each at most 2βˆ’2k, so it sums to at most 2βˆ’k. The partial sums are increasing and bounded by βˆ‘k2βˆ’k=2.

  3. Why does "increasing and bounded" give convergence?

    Monotone bounded sequences converge (Rudin 3.14): the limit is the least upper bound, which exists by the completeness of R. This grouping argument is Cauchy's condensation test (Rudin 3.27): βˆ‘1/np converges iff p>1.

Examples

Example 3.1 (monotone and bounded).

(1+1n)n is increasing (by AM–GM) and bounded by 3 (compare with βˆ‘1k!), so it converges; its limit is e.

Example 3.2 (harmonic series).

βˆ‘1n diverges, since the terms from 2k+1 to 2k+1 add up to at least 12. The alternating series βˆ‘(βˆ’1)n+1n converges by Leibniz's test, to log⁑2.

Example 3.3 (an incomplete space).

The decimal truncations 1,Β 1.4,Β 1.41, … of 2 form a Cauchy sequence in Q with no limit in Q. Completeness of R is exactly the property that rules this out.

Example 3.4 (rearrangements).

Riemann: a conditionally convergent series can be rearranged to converge to any real number, or to diverge. The alternating harmonic series rearranged as two positive terms then one negative term sums to 32log⁑2.

Check your understanding

In the rational numbers Q with d(p,q)=|pβˆ’q|, the decimal truncations 1,1.4,1.41,1.414,… of 2 form a sequence that is

  1. Cauchy but not convergent in Q.
  2. Convergent in Q.Its only possible limit is 2, which is not rational.
  3. Not Cauchy.Terms after the n-th differ by less than 10βˆ’n.
Q is not complete. Completeness is exactly what R adds, and it is a property of the metric, not just the topology.

The alternating harmonic series 1βˆ’12+13βˆ’β€¦ converges. If you rearrange its terms, the sum

  1. is always ln⁑2.That holds for absolutely convergent series only.
  2. can be made any real number you like.
  3. always diverges.Many rearrangements still converge.
Riemann's rearrangement theorem (Rudin 3.54): a conditionally convergent series can be rearranged to converge to any value, or to diverge. Absolutely convergent series can be rearranged freely (Rudin 3.55).

Every bounded sequence in Rk has

  1. a limit.(βˆ’1)n is bounded with no limit.
  2. a convergent subsequence.
  3. a monotone tail.Some subsequence is monotone, but not necessarily a tail.
Bolzano–Weierstrass (Rudin 3.6): bounded sets in Rk lie in compact boxes, and in compact metric spaces every sequence has a convergent subsequence.

Practice

Exercise 3.1The ratio test misses things (Rudin 3.34)

For βˆ‘1/n and βˆ‘1/n2, compute lim|an+1/an|. What does the ratio test conclude?

Solution

Both ratios tend to 1, so the test is inconclusive, yet one series diverges and the other converges. The ratio and root tests only detect geometric decay.

Exercise 3.2e is irrational (Rudin 3.32)

Using e=βˆ‘kβ‰₯01/k!, show that if e=m/n then n!(eβˆ’βˆ‘k≀n1/k!) is an integer in (0,1).

Solution

If e=m/n, then n!e and n!βˆ‘k≀n1/k! are integers, so their difference x is too. But x=βˆ‘k>nn!/k!<1n+1+1(n+1)2+β‹―=1n≀1, and x>0. No integer lies strictly between 0 and 1.

From Rudin, Principles of Mathematical Analysis (3rd ed., McGraw–Hill, 1976)

Numbers match the book. Each question is restated in our own words; the hints and solutions are written for this page.

Rudin 3.1Absolute values of convergent sequences

Prove that if {sn} converges then {|sn|} converges. Is the converse true?

Hint

The reverse triangle inequality.

Solution

||sn|βˆ’|s||≀|snβˆ’s|, so |sn|β†’|s|. In the language of the story: x↦|x| is continuous, and continuous maps preserve limits.

The converse is false: sn=(βˆ’1)n diverges, while |sn|=1 converges. It is true when the limit is 0: |sn|β†’0 iff snβ†’0.

Rudin 3.3A nested square root

Let s1=2 and sn+1=2+sn. Prove that {sn} converges and that sn<2 for all n.

Hint

Show by induction that the sequence is increasing and bounded by 2, then use monotone convergence.

Solution

Bounded: s1<2, and if sn<2 then sn+1<2+2<2.

Increasing: s2=2+21/4>2=s1. If sn>snβˆ’1, then sn>snβˆ’1, so sn+1>sn.

By Rudin 3.14 it converges, to some L∈(2,2]. Passing to the limit (the map t↦2+t is continuous), L=2+L, i.e. L2βˆ’2=L. Numerically Lβ‰ˆ1.831.

Rudin 3.20Cauchy plus a convergent subsequence

Let {pn} be a Cauchy sequence in a metric space, and suppose some subsequence pni→p. Prove the whole sequence converges to p.

Hint

Split d(pn,p) through a term of the subsequence with a large index.

Solution

Given Ξ΅, choose N with d(pm,pn)<Ξ΅/2 for m,nβ‰₯N, and choose i with niβ‰₯N and d(pni,p)<Ξ΅/2. For nβ‰₯N, d(pn,p)≀d(pn,pni)+d(pni,p)<Ξ΅.

Combined with Bolzano–Weierstrass this proves completeness of Rk: a Cauchy sequence is bounded, so it has a convergent subsequence, and then the whole sequence converges.

InteractiveRudin, Ch. 2: Basic Topology Β· Ch. 4: Continuity

Compactness and uniform continuity

Compactness turns "for each point" into "for all points at once". Applied to the Ρ–δ game, it says that on a compact set one Ξ΄ can serve every point. That is uniform continuity, and it is what makes integrals of continuous functions exist.

The idea

Compact (Rudin 2.32). K is compact if every open cover of K has a finite subcover.
Heine–Borel (Rudin 2.41). In Rk, K is compact iff it is closed and bounded, iff every infinite subset of K has a limit point in K.
Continuous images (Rudin 4.14–4.19). If f is continuous and K compact, then f(K) is compact. So a real continuous function on a compact set is bounded and attains its maximum and minimum, and it is uniformly continuous: for every Ξ΅ there is one Ξ΄ with d(f(x),f(y))<Ξ΅ whenever d(x,y)<Ξ΄.

Compactness is a topological property (defined with open sets only), so it survives into the general setting of the story of continuity. Uniform continuity is not: it compares distances at different places, so it needs a metric.

Explore

Function and domain
The function on its domain.
The best Ξ΄ at each point p for this Ξ΅. Uniform continuity asks for a positive lower bound.

Worked example

Prove that a continuous f on a compact metric space K is uniformly continuous (Rudin 4.19), using the open cover definition.

  1. Fix Ξ΅. What does continuity give at each point p?

    A radius Ξ΄p>0 with d(f(q),f(p))<Ξ΅/2 whenever d(q,p)<Ξ΄p.

  2. Which open cover should we use, and why half the radius?

    Cover K by the balls NΞ΄p/2(p). By compactness finitely many, centred at p1,…,pn, suffice. Let Ξ΄=12miniΞ΄pi>0. The halving leaves room for a second point.

  3. Finish: take d(x,y)<Ξ΄.

    x lies in some NΞ΄pi/2(pi). Then d(y,pi)≀d(y,x)+d(x,pi)<Ξ΄+Ξ΄pi/2≀δpi. So both x and y are within Ξ΄pi of pi, and d(f(x),f(y))<Ξ΅/2+Ξ΅/2. The point of compactness: the minimum of finitely many positive numbers is positive.

Examples

Example 4.1 (Heine–Borel).

[0,1] is compact, but (0,1] is not: the cover by (1n,1] has no finite subcover. In Rk, compact means closed and bounded; in general metric spaces it means complete and totally bounded.

Example 4.2 (continuous but not uniformly).

1/x on (0,1], and x2 on R, are continuous but not uniformly continuous: the Ξ΄ needed at a shrinks to 0 as a moves towards 0, respectively towards infinity.

Example 4.3 (uniformly continuous but not Lipschitz).

x on [0,∞): |xβˆ’y|≀|xβˆ’y|, so Ξ΄=Ξ΅2 works everywhere, but no Lipschitz constant works near 0.

Example 4.4 (extreme values).

A continuous image of a compact set is compact, so a continuous real function on a compact space attains its maximum and minimum. On (0,1), x has neither.

Check your understanding

Which set is compact?

  1. (0,1]The cover by (1/n,2) has no finite subcover.
  2. {0}βˆͺ{1/n:nβ‰₯1}
  3. ZUnbounded, so not compact.
Any open set containing 0 contains all but finitely many 1/n; finitely many more open sets cover the rest. It is also closed and bounded.

f(x)=x2 on [0,∞) is

  1. uniformly continuous, since it is continuous.Continuity gives a Ξ΄ for each point, not one for all.
  2. continuous but not uniformly continuous.
  3. not continuous at infinity.Infinity is not in the domain.
(x+Ξ΄)2βˆ’x2=2xΞ΄+Ξ΄2 exceeds any Ξ΅ once x is large, so the best Ξ΄ tends to 0. The domain is not compact. Compare with the figure.

A continuous f:[0,1]β†’R takes the values βˆ’1 and 2. Which fact guarantees a zero?

  1. Compactness of [0,1].Compactness gives a maximum and minimum, not intermediate values.
  2. Connectedness of [0,1].
  3. Uniform continuity.Uniform continuity alone doesn't force intermediate values (think of a function on two separated intervals).
Continuous images of connected sets are connected (Rudin 4.22), and connected subsets of R are intervals. This is the intermediate value theorem, and again it only uses open sets.

Practice

Exercise 4.1An open cover with no finite subcover: compactness fails

Give an open cover of (0,1) with no finite subcover. Why does the same idea fail for [0,1]?

Solution

{(1/n,1)}nβ‰₯2: finitely many of them have a largest n, and miss (0,1/n]. For [0,1], any cover must have a set containing 0, and that set contains some [0,r); the sets (1/n,1) alone don't cover [0,1].

Exercise 4.2Lipschitz implies uniformly continuous: a Ξ΄ that works everywhere

If |f(x)βˆ’f(y)|≀L|xβˆ’y| for all x,y, show f is uniformly continuous, and that x on [0,1] is uniformly continuous but not Lipschitz.

Solution

Take Ξ΄=Ξ΅/L. For x: it is continuous on the compact [0,1], hence uniformly continuous; but x/x=1/x is unbounded near 0, so no L works.

From Rudin, Principles of Mathematical Analysis (3rd ed., McGraw–Hill, 1976)

Numbers match the book. Each question is restated in our own words; the hints and solutions are written for this page.

Rudin 2.12Compactness from the definition

Let K={0}βˆͺ{1/n:nβ‰₯1}βŠ†R. Prove K is compact directly from the open-cover definition, without Heine–Borel.

Hint

Start with an open set of the cover that contains 0.

Solution

Let {GΞ±} be an open cover. Some GΞ±0βˆ‹0. Being open, it contains (βˆ’r,r) for some r>0, hence every 1/n with n>1/r. The finitely many remaining points 1/n, n≀1/r, each lie in some GΞ±n. These finitely many sets cover K.

Rudin 4.14A fixed point theorem

Let I=[0,1]. Prove that every continuous f:Iβ†’I has a fixed point: f(x)=x for some x∈I.

Hint

Apply the intermediate value theorem to g(x)=f(x)βˆ’x.

Solution

g is continuous, g(0)=f(0)β‰₯0 and g(1)=f(1)βˆ’1≀0. Since [0,1] is connected, g(I) is a connected subset of R (Rudin 4.22), i.e. an interval, containing a number β‰₯0 and a number ≀0, hence 0.

This is the one-dimensional Brouwer fixed point theorem. It uses only topological facts: continuity and connectedness, no distances. Compare the contraction principle (Rudin 9.23), which needs a metric but gives uniqueness and a way to compute the fixed point.

InteractiveRudin, Ch. 5: Differentiation

The derivative and the mean value theorem

The derivative is a limit of difference quotients, so everything from the story of continuity applies to it. The mean value theorem is the workhorse: it turns information about fβ€² into information about f.

The idea

Derivative (Rudin 5.1). fβ€²(x)=limtβ†’xf(t)βˆ’f(x)tβˆ’x, when the limit exists. Differentiable functions are continuous (Rudin 5.2), but not conversely: |x| at 0.
Mean value theorem (Rudin 5.10). If f is continuous on [a,b] and differentiable on (a,b), there is c∈(a,b) with f(b)βˆ’f(a)=fβ€²(c)(bβˆ’a).

The proof uses everything so far: the function h(x)=f(x)βˆ’f(a)βˆ’f(b)βˆ’f(a)bβˆ’a(xβˆ’a) is continuous on a compact set, so it attains a maximum or minimum inside (a,b) (or is constant), and at an interior extremum the derivative is zero (Rudin 5.8).

Explore

Function
Drag the endpoints a and b. Every point c where the tangent is parallel to the secant is marked.

Worked example

Show that if |fβ€²(x)|≀M on an interval, then |f(x)βˆ’f(y)|≀M|xβˆ’y| there, and deduce that fβ€²=0 on an interval forces f to be constant.

  1. Apply the mean value theorem between x and y.

    f(x)βˆ’f(y)=fβ€²(c)(xβˆ’y) for some c between them, so |f(x)βˆ’f(y)|≀M|xβˆ’y|.

  2. Take M=0.

    Then f(x)=f(y) for all x,y: f is constant. The interval matters: on (0,1)βˆͺ(2,3) a function can have zero derivative and two different values.

Examples

Example 5.1 (a discontinuous derivative).

f(x)=x2sin⁑(1/x), f(0)=0, is differentiable everywhere with fβ€²(0)=0, but fβ€²(x)=2xsin⁑1xβˆ’cos⁑1x has no limit at 0. Derivatives can be discontinuous, though they always have the intermediate value property (Darboux).

Example 5.2 (the mean value theorem needs real values).

For f(t)=eit on [0,2Ο€], f(2Ο€)βˆ’f(0)=0 while |fβ€²(t)|=1 everywhere, so no ΞΎ has f(2Ο€)βˆ’f(0)=2Ο€fβ€²(ΞΎ). What survives is the inequality |f(b)βˆ’f(a)|≀(bβˆ’a)sup|fβ€²|.

Example 5.3 (monotonicity).

If fβ€²β‰₯0 on an interval then f is non-decreasing, by the mean value theorem; if fβ€²=0, f is constant. This is the step that makes antiderivatives unique up to a constant.

Example 5.4 (Taylor's remainder).

For ex on [0,1], e=βˆ‘k≀n1k!+eΞΎ(n+1)! with 0<ΞΎ<1: the error is below 3(n+1)!, which is also the key estimate in the proof that e is irrational.

Check your understanding

For f(x)=|x| on [βˆ’1,2], is there c with fβ€²(c)=f(2)βˆ’f(βˆ’1)3=13?

  1. Yes, at c=0.f isn't differentiable at 0.
  2. No; the theorem's hypothesis fails at 0.
fβ€²=Β±1 wherever it exists. Differentiability on the whole open interval is essential. Try it in the figure.

f(x)=x2sin⁑(1/x) (with f(0)=0) is differentiable everywhere. Is fβ€² continuous at 0?

  1. Yes.Compute f′(x) for x≠0 and look at its limit.
  2. No: fβ€²(0)=0 but fβ€²(x)=2xsin⁑(1/x)βˆ’cos⁑(1/x) has no limit at 0.
Derivatives need not be continuous. They do, however, have the intermediate value property (Darboux, Rudin 5.12), so they can't have simple jumps.

Practice

Exercise 5.1L'Hospital's rule, once (Rudin 5.13)

Compute limxβ†’01βˆ’cos⁑xx2 with L'Hospital's rule, and check the hypotheses.

Solution

Numerator and denominator tend to 0 and are differentiable near 0 with 2xβ‰ 0 for xβ‰ 0. The quotient of derivatives sin⁑x/(2x)β†’12, so the limit is 12.

Exercise 5.2Taylor with remainder (Rudin 5.15)

Use Taylor's theorem to show |sin⁑xβˆ’(xβˆ’x3/6)|≀|x|5/120.

Solution

The degree-4 Taylor polynomial of sin at 0 is xβˆ’x3/6 (the x4 term vanishes), and the remainder is sin(5)⁑(ΞΎ)x5/5!=cos⁑(ΞΎ)x5/120 for some ΞΎ between 0 and x. Its absolute value is at most |x|5/120.

From Rudin, Principles of Mathematical Analysis (3rd ed., McGraw–Hill, 1976)

Numbers match the book. Each question is restated in our own words; the hints and solutions are written for this page.

Rudin 5.1A tiny difference quotient

Suppose |f(x)βˆ’f(y)|≀(xβˆ’y)2 for all real x,y. Prove f is constant.

Hint

Divide by |xβˆ’y| and let yβ†’x.

Solution

For yβ‰ x, |f(y)βˆ’f(x)yβˆ’x|≀|yβˆ’x|β†’0. So fβ€²(x)=0 for every x, and by the mean value theorem f(x)βˆ’f(y)=fβ€²(c)(xβˆ’y)=0.

Rudin 5.2Positive derivative and the inverse function

Suppose fβ€²(x)>0 on (a,b). Prove f is strictly increasing there, and that its inverse g is differentiable with gβ€²(f(x))=1/fβ€²(x).

Hint

The mean value theorem for monotonicity. For gβ€², write the difference quotient of g in terms of f, and use that g is continuous.

Solution

For x<y, f(y)βˆ’f(x)=fβ€²(c)(yβˆ’x)>0. So f is strictly increasing, hence injective, and maps (a,b) onto an interval J (it is continuous, so the image is connected). g:Jβ†’(a,b) is increasing and its image is an interval, so it has no jumps: g is continuous.

Fix y0=f(x0). For y≠y0 in J, with x=g(y),

g(y)βˆ’g(y0)yβˆ’y0=xβˆ’x0f(x)βˆ’f(x0).

As y→y0, continuity of g gives x→x0, so the right side tends to 1/f′(x0).

Rudin 5.3Small perturbations of the identity are injective

Suppose g is differentiable on R with |gβ€²|≀M. For Ξ΅>0 let f(x)=x+Ξ΅g(x). Prove f is one-to-one when Ξ΅ is small enough, and find admissible Ξ΅ depending only on M.

Hint

fβ€²=1+Ξ΅gβ€². When is it positive?

Solution

fβ€²(x)=1+Ξ΅gβ€²(x)β‰₯1βˆ’Ξ΅M. If Ξ΅<1/M, then fβ€²>0 everywhere, so f is strictly increasing by Rudin 5.2, hence one-to-one. (If M=0, every Ξ΅ works.)

Alternatively, |f(x)βˆ’f(y)|β‰₯|xβˆ’y|βˆ’Ξ΅M|xβˆ’y|>0 for xβ‰ y. This is a baby version of the inverse function theorem.

InteractiveRudin, Ch. 6: The Riemann–Stieltjes Integral

The Riemann–Stieltjes integral

Squeeze the area between upper and lower sums. Rudin does this against a general increasing weight Ξ±, which covers ordinary integrals, finite sums and probability expectations in one definition.

The idea

Upper and lower sums (Rudin 6.1–6.2). For a partition P:a=x0<β‹―<xn=b, let Mi=sup[xiβˆ’1,xi]f, mi=inff, and Δαi=Ξ±(xi)βˆ’Ξ±(xiβˆ’1). Then U(P,f,Ξ±)=βˆ‘MiΔαi and L(P,f,Ξ±)=βˆ‘miΔαi. f∈R(Ξ±) if infPU=supPL, and the common value is ∫fdΞ±.
Riemann's criterion (Rudin 6.6, 6.8). f∈R(Ξ±) iff for every Ξ΅ some partition has Uβˆ’L<Ξ΅. Every continuous f on [a,b] is integrable, because it is uniformly continuous: once the mesh is below Ξ΄, each Miβˆ’mi<Ξ΅.

With α(x)=x this is the Riemann integral. If α jumps by 1 at x0 and is constant elsewhere, ∫fdα=f(x0) for continuous f: a point mass. Sums and integrals become one thing.

Explore

Integrand f
Weight Ξ±
Upper rectangles (height Mi) in gold, lower (height mi) in blue, on a uniform partition of [0, 1]. The sums weight each piece by Δαi, not by its width.

Worked example

Compute ∫01x2dx from the definition with uniform partitions.

  1. Write U(Pn) and L(Pn) for Pn={k/n}.

    x2 is increasing, so Mk=(k/n)2 and mk=((kβˆ’1)/n)2. Then U=1n3βˆ‘k=1nk2=(n+1)(2n+1)6n2 and L=(nβˆ’1)(2nβˆ’1)6n2.

  2. Conclude.

    Uβˆ’L=1/nβ†’0, so x2 is integrable, and both sums tend to 13. The figure shows Uβˆ’L shrinking like 1/n.

Where this goes next

Riemann–Stieltjes integration by parts is how the Fourier Analysis page proves that functions of bounded variation have Fourier coefficients of size O(1/m), and the failure of Riemann integrability for 1Q is one reason it switches to the Lebesgue integral. The next module is shared with that page, where it is the starting point for approximate identities and FejΓ©r's theorem.

Examples

Example 6.1 (a jump integrator).

If Ξ± is the unit step at c∈(a,b) and f is continuous at c, then ∫abfdΞ±=f(c): a Riemann–Stieltjes integral can be a point evaluation.

Example 6.2 (not Riemann integrable).

1Q on [0,1] has every upper sum 1 and every lower sum 0. It is Lebesgue integrable with integral 0, one motivation for the Lebesgue integral used on the Fourier Analysis page.

Example 6.3 (a smooth integrator).

If Ξ± is continuously differentiable, ∫fdΞ±=∫fΞ±β€²dx. For Ξ±(x)=x2, ∫01xdΞ±=∫012x2dx=23.

Example 6.4 (integration by parts).

For f of bounded variation, ∫01eβˆ’2Ο€imxdf(x) makes sense as a Riemann–Stieltjes integral, and integrating by parts gives |f^(m)|≀V(f)2Ο€|m|: the decay of Fourier coefficients of functions with jumps (Fourier Analysis, module 5).

Check your understanding

For f=1Q on [0,1] and Ξ±(x)=x, what are U(P) and L(P) for every partition?

  1. U=1, L=0.
  2. Both tend to 0 as the mesh shrinks.Every subinterval contains rationals, so every Mi=1.
Rationals and irrationals are dense, so Mi=1, mi=0 always. The function is not Riemann integrable. (It is Lebesgue integrable with integral 0, which is one reason measure theory exists.)

If α jumps by 1 at x0=0.3 and is constant elsewhere, and f is continuous, ∫01fdα=

  1. 0Δα is 1 on the subinterval containing 0.3.
  2. f(0.3)
  3. ∫01f(x)dxThat is the case α(x)=x.
Only the subinterval containing the jump contributes, with weight 1, and both Mi and mi tend to f(0.3) by continuity (Rudin 6.15).

Practice

Exercise 6.1The fundamental theorem (Rudin 6.21)

If F is differentiable on [a,b] with Fβ€²=f integrable, show ∫abf=F(b)βˆ’F(a).

Hint

Apply the mean value theorem to F on each subinterval of a partition.

Solution

For any partition, F(b)βˆ’F(a)=βˆ‘(F(xi)βˆ’F(xiβˆ’1))=βˆ‘f(ti)Ξ”xi for some ti in each piece, by the mean value theorem. This Riemann sum lies between L(P,f) and U(P,f). Since f is integrable, both squeeze to ∫f, so F(b)βˆ’F(a)=∫f.

From Rudin, Principles of Mathematical Analysis (3rd ed., McGraw–Hill, 1976)

Numbers match the book. Each question is restated in our own words; the hints and solutions are written for this page.

Rudin 6.1A function supported at one point

Let Ξ± be increasing on [a,b] and continuous at x0∈[a,b]. Let f(x0)=1 and f(x)=0 for xβ‰ x0. Prove f∈R(Ξ±) and ∫fdΞ±=0.

Hint

L(P,f,Ξ±)=0 always. Make the piece containing x0 have small Δα.

Solution

Every subinterval contains points where f=0, so every mi=0 and L(P)=0. For U(P), only the subintervals containing x0 (at most two) have Mi=1. Given Ξ΅, continuity of Ξ± at x0 gives Ξ΄ with Ξ±(x0+Ξ΄)βˆ’Ξ±(x0βˆ’Ξ΄)<Ξ΅. Take a partition with x0Β±Ξ΄ as consecutive points around x0 (clipped to [a,b]). Then U(P)<Ξ΅. Hence infU=0=supL.

Compare the quiz in this module: if Ξ± jumps at x0, the same f integrates to the size of the jump.

Rudin 6.2A nonnegative continuous function with zero integral

Suppose fβ‰₯0 is continuous on [a,b] and ∫abf=0. Prove f=0 on [a,b].

Hint

If f(x0)>0, continuity keeps f above f(x0)/2 on an interval.

Solution

Suppose f(x0)=c>0. By continuity there is an interval JβŠ†[a,b] of length β„“>0 containing x0 on which f>c/2. Since fβ‰₯0, ∫abfβ‰₯∫Jfβ‰₯cβ„“/2>0, a contradiction.

Rudin 6.1 shows continuity is essential: there fβ‰₯0, fβ‰ 0, and the integral is 0.

Rudin 6.4The rational indicator

Let f(x)=0 for irrational x and f(x)=1 for rational x. Prove fβˆ‰R on [a,b] for any a<b.

Hint

Every subinterval contains both kinds of numbers.

Solution

Every subinterval of every partition contains rationals and irrationals (both are dense), so Mi=1, mi=0, U(P,f)=bβˆ’a and L(P,f)=0 for every P. Since infU=bβˆ’aβ‰ 0=supL, f is not integrable. Try it in the figure: the gap never closes.

InteractiveRudin, Ch. 7: Sequences and Series of Functions

Uniform convergence

Pointwise limits of continuous functions can be discontinuous. Uniform convergence is the fix, and it is just convergence in the metric d(f,g)=sup|fβˆ’g|: the story of continuity, applied to a space whose points are functions.

The idea

Pointwise vs uniform (Rudin 7.1, 7.7). fnβ†’f pointwise if fn(x)β†’f(x) for each x (the N may depend on x). Uniformly if for every Ξ΅ one N works for all x: equivalently supx|fn(x)βˆ’f(x)|β†’0 (Rudin 7.9).
Uniform limits keep continuity (Rudin 7.12). If continuous fn→f uniformly, f is continuous. Uniform limits also commute with integrals (Rudin 7.16), but not with derivatives without more hypotheses (Rudin 7.17).

In the language of the story: C([a,b]) with the sup metric is a complete metric space (Rudin 7.15), and the Weierstrass theorem (Rudin 7.26) says polynomials are dense in it. Pointwise convergence, by contrast, is convergence in a topology that comes from no metric.

Key terms in plain words

The ideas above without the symbols. Switch to Quiz me to test yourself: you see an explanation and pick the term it describes.

Pointwise convergence
At each single input the values settle down eventually, but some inputs may take far longer than others.
Uniform convergence
The whole graph settles down together: from some step on, every input is within Ξ΅ of the limit at once.
Sup norm
The largest gap between two functions anywhere on the domain. Convergence in it is exactly the "whole graph settles down together" kind.
Uniform limit theorem
If continuous functions converge with the whole graph settling down together, the limit is continuous too. Limits taken one point at a time can break continuity, as xn on [0,1] shows.
Weierstrass approximation theorem
Any continuous function on a closed interval can be matched as closely as you like, everywhere at once, by a polynomial.
Complete metric space
A space with no holes: every sequence whose terms bunch up together has a limit inside the space.

Explore

Sequence fn
The limit f in ink, with an Ξ΅-tube around it. fn is in blue where it stays in the tube and red where it leaves.

Worked example

Prove Rudin 7.12: a uniform limit of continuous functions is continuous.

  1. Fix p and Ξ΅. Which n do you use?

    One with sup|fnβˆ’f|<Ξ΅/3. This is where uniformity matters: the same n is good at p and at every nearby x.

  2. Now use continuity of that fn at p.

    Pick Ξ΄ with |fn(x)βˆ’fn(p)|<Ξ΅/3 when |xβˆ’p|<Ξ΄. Then |f(x)βˆ’f(p)|≀|f(x)βˆ’fn(x)|+|fn(x)βˆ’fn(p)|+|fn(p)βˆ’f(p)|<Ξ΅. This "Ξ΅/3 argument" is the template for many proofs in analysis.

Examples

Example 7.1 (a discontinuous limit).

xn on [0,1] converges pointwise to the function that is 0 on [0,1) and 1 at 1. The limit is discontinuous, so the convergence cannot be uniform: supx<1xn=1 for every n.

Example 7.2 (uniform on bounded sets only).

x/nβ†’0 uniformly on every bounded interval but not on R, where sup|x/n|=∞. Many convergence statements are uniform only on compact sets.

Example 7.3 (limits and integrals disagree).

fn(x)=2n2xeβˆ’n2x2 tends to 0 at every x∈[0,1], but ∫01fn=1βˆ’eβˆ’n2β†’1. The bump escapes towards 0, which uniform convergence would forbid.

Example 7.4 (the M-test).

βˆ‘n2βˆ’ncos⁑(3nx) converges uniformly by comparison with βˆ‘2βˆ’n, so it is continuous; by Hardy's theorem it is differentiable nowhere. Uniform limits keep continuity but not differentiability.

Check your understanding

fn(x)=xn on [0,1] converges pointwise to f with f(1)=1 and f=0 elsewhere. Is the convergence uniform?

  1. Yes, since each fn is continuous.Continuity of the fn doesn't force uniform convergence.
  2. No: a uniform limit of continuous functions would be continuous.
Rudin 7.12 in reverse: f is discontinuous at 1, so the convergence can't be uniform. Directly, sup[0,1)xn=1 for every n. On [0,0.9] it is uniform, with sup=0.9n.

fn(x)=nxeβˆ’nx on [0,∞) tends to 0 pointwise. Then supxfn(x)

  1. tends to 0.Look at x=1/n.
  2. equals 1/e for every n.
The maximum is at x=1/n with value eβˆ’1. The bump slides toward 0 and never shrinks: pointwise but not uniform convergence, even though the limit is continuous.

Practice

Exercise 7.1The Weierstrass M-test (Rudin 7.10)

Show that βˆ‘nβ‰₯1sin⁑(nx)n2 converges uniformly on R to a continuous function.

Solution

|sin⁑(nx)/n2|≀1/n2 and βˆ‘1/n2<∞. The partial sums are uniformly Cauchy: supx|βˆ‘k=mn…|β‰€βˆ‘k=mn1/k2β†’0. So they converge uniformly, and the limit is continuous by Rudin 7.12.

Exercise 7.2Limits and integrals: when can you swap them?

For fn(x)=n2xeβˆ’nx on [0,1], compute lim∫01fn and ∫01limfn.

Solution

fnβ†’0 pointwise, so the second is 0. But ∫01n2xeβˆ’nxdx=∫0nueβˆ’uduβ†’1. The convergence is not uniform (supfn=n/e), so Rudin 7.16 doesn't apply, and the swap fails.

From Rudin, Principles of Mathematical Analysis (3rd ed., McGraw–Hill, 1976)

Numbers match the book. Each question is restated in our own words; the hints and solutions are written for this page.

Rudin 7.1Uniform limits of bounded functions

Prove that every uniformly convergent sequence of bounded functions is uniformly bounded.

Hint

Use one N from the uniform Cauchy condition, then handle the finitely many earlier functions separately.

Solution

Let fnβ†’f uniformly on E. Choose N with |fn(x)βˆ’fN(x)|<1 for all nβ‰₯N and all x (the uniform Cauchy condition, Rudin 7.8). fN is bounded by some B, so |fn|<B+1 for nβ‰₯N. The finitely many f1,…,fNβˆ’1 are bounded by B1,…,BNβˆ’1. Then max(B+1,B1,…,BNβˆ’1) bounds all fn.

Rudin 7.2Sums and products

If fn→f and gn→g uniformly on E, prove fn+gn→f+g uniformly. If in addition the fn and gn are bounded, prove fngn→fg uniformly.

Hint

For the product, add and subtract fng and use Rudin 7.1.

Solution

Sums: sup|(fn+gn)βˆ’(f+g)|≀sup|fnβˆ’f|+sup|gnβˆ’g|β†’0.

Products: by Rudin 7.1 there is B with |fn|,|gn|≀B, and then |f|,|g|≀B too. Then |fngnβˆ’fg|≀|fn||gnβˆ’g|+|g||fnβˆ’f|≀Bsup|gnβˆ’g|+Bsup|fnβˆ’f|β†’0.

Without boundedness it fails: on R, fn=gn=x+1/n converge uniformly to x, but fngnβˆ’x2=2x/n+1/n2 is unbounded for each n.

Rudin 7.9Uniform convergence and moving points

Let fn be continuous and fn→f uniformly on E. Prove fn(xn)→f(x) whenever xn→x in E. Is the converse true?

Hint

Split |fn(xn)βˆ’f(x)| through f(xn), using that f is continuous (Rudin 7.12).

Solution

|fn(xn)βˆ’f(x)|≀|fn(xn)βˆ’f(xn)|+|f(xn)βˆ’f(x)|≀sup|fnβˆ’f|+|f(xn)βˆ’f(x)|. The first term tends to 0 by uniformity, the second by continuity of f.

The converse fails. Take fn(x)=x/n on E=R. If xnβ†’x, then fn(xn)=xn/nβ†’0=f(x), since xn is bounded. But supR|x/n|=∞, so the convergence is not uniform. (On a compact E the converse is true: this condition is called continuous convergence.)