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
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.
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
Chapter 1. The
β definitionA function
is continuous at 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 for the output; you must answer with a tolerance for the input that guarantees it.Continuity at a point. For every there is a such that implies .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.Chapter 2. Only distance was used
Look at what the definition actually uses: the expressions
and , i.e. a way of measuring how far apart two points are. Nothing about being ordered, or having arithmetic, is needed. So we can replace by any function that behaves like a distance.Metric space (Rudin 2.15). A set with such that , , and .Write
for the ball of radius . Then continuity of at reads, word for word as before, but now as a statement about balls:This one definition now covers
, spaces of functions with , strings with the Hamming distance, and much more.Chapter 3. Limits of sequences and of functions
The same
-language defines limits. A sequence converges, , if for every there is with for (Rudin 3.1). A function has a limit, , if for every there is with whenever (Rudin 4.1).Three faces of one idea (Rudin 4.2, 4.6). For a limit point of the domain, the following are equivalent: (i) is continuous at ; (ii) ; (iii) for every sequence .So "continuous" means "commutes with limits":
. This is the form you use most in practice, and it is the bridge to the next chapter, because a sequence converging to is eventually inside every ball around .Chapter 4. Balls disappear: open sets
Call
open if around each of its points there is a ball inside (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). is continuous at every point if and only if is open in for every open .Why. If
is open and , some ball lies in ; continuity gives a ball mapped into it, so is an interior point of . Conversely, apply the hypothesis to ; its preimage is open and contains , so it contains some .The second figure lets you drag an open interval
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.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 of subsets of containing and , closed under arbitrary unions and under finite intersections. Its members are called open. A map is continuous if for every .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
with and glued. Declare a set open if its preimage in is open; then a map out of the circle is continuous exactly when the corresponding map out of is. - Pointwise convergence. On the space of all functions
, " 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
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 , and distances on do (module 2). Notions that depend on the metric itself, such as Cauchy sequences, completeness and uniform continuity, are therefore not topological. and 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
Explore: preimages of open sets
Worked example
Prove that
With
and : given and , what works? . If then . So gives . Notice depends on : this is continuity, not uniform continuity (module 4).With sequences: why does
imply ?Limits respect products (Rudin 3.3):
. This is the cleanest proof, and it is the reason the algebra of limits is proved early.With open sets: describe
and check it is open.If
it is empty. If it is . If it is . Each is open, and every open subset of is a union of open intervals, whose preimages are then unions of open sets.Which proof survives if we only know the topology on
, 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
For
The indicator
Check your understanding
In the
- It shrinks to 0, but is positive at every
. - 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.
- It is 0 at some
, so is discontinuous there.At each some works; it just gets small.
Which statement says
- The image of every open set is open.That defines an open map.
is continuous but sends to . - The preimage of every open set is open.
- The preimage of every closed set is open.Preimages of closed sets are closed, by taking complements.
On a set
- All of them.
- Only the constant maps.Constant maps are continuous for every topology, but here many more maps are.
- Only the injective ones.Injectivity plays no role.
- Connectedness.Both are connected, and connectedness is defined with open sets only.
- Completeness.
- Being Hausdorff.Both are Hausdorff, and Hausdorff is defined with open sets only.
Practice
Exercise 1.1The topology of the line: open sets in β
Show that the open sets in
Hint
For finite intersections, take the smallest of finitely many radii.
Solution
Exercise 1.2Continuity is local, sequences suffice: chapter 3 in action
Let
Solution
Take
Exercise 1.3The Zariski topology on the line: a topology with no metric
On
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
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
Hint
The condition compares values at
Solution
No. Let
The condition only says
Rudin 4.2Images of closures
If
Hint
A point of
Solution
Let
An open-set proof:
Proper inclusion:
Rudin 4.3Zero sets are closed
For a continuous real function
Hint
Solution
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
Hint
Use Rudin 4.2 for the first part. For the second, look at the set where
Solution
Density. By Rudin 4.2,
Uniqueness. For
The uniqueness step needs limits in
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
On
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
Worked example
Let
What is the ball
?Only
is at distance less than from , so .Which sets are open? Which are closed?
Every set: each of its points has the ball
inside it. Since complements of open sets are closed, every set is also closed. This metric induces the discrete topology.Which sets are compact?
Exactly the finite ones. A finite set is compact. An infinite set
has the open cover , 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 .
Examples
In the metric space
In
Check your understanding
Is
- Open, not closed.0 is in the set, but every ball around 0 contains negative numbers.
- Neither.
- Closed, not open.1 is a limit point not in the set.
Regard
- Yes.
- No, 0 is not an interior point.In the space
there are no negative numbers; the ball of radius around 0 is .
Which of these is a metric on
The triangle inequality fails: . It isn't symmetric, and .
Practice
Exercise 2.1Closures and limit points (Rudin 2.27)
Show that the closure
Solution
If
Exercise 2.2Balls are open: the triangle inequality at work
Show that every ball
Solution
If
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
Hint
(a) Balls are open. (d)
Solution
(a) If
(b) If
(c) Each
(d)
(e) No:
(f) No:
So
Rudin 2.11Which formulas are metrics?
On
Hint
Check
Solution
: not a metric. . : a metric. , so . : not a metric. but . : not a metric. , and it isn't symmetric. : a metric. is increasing and , which with gives the triangle inequality.
Both
Rudin 2.22βα΅ is separable
A metric space is separable if it has a countable dense subset. Show that
Hint
Use the points with rational coordinates.
Solution
Rudin 2.29Open subsets of the line
Prove that every open set in
Hint
Group the points of
Solution
For
Each
Sequences, Cauchy and series
A limit is a promise: name any
The idea
A series
Explore
Worked example
Show that
Group the harmonic series in blocks
. How big is each block?The block has
terms, each at least , so it sums to at least . The partial sums are unbounded, so the series diverges (it fails the Cauchy criterion with ).Do the same grouping,
, for .The block has
terms, each at most , so it sums to at most . The partial sums are increasing and bounded by .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
. This grouping argument is Cauchy's condensation test (Rudin 3.27): converges iff .
Examples
The decimal truncations
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
Check your understanding
In the rational numbers
- Cauchy but not convergent in
. - Convergent in
.Its only possible limit is , which is not rational. - Not Cauchy.Terms after the
-th differ by less than .
The alternating harmonic series
- is always
.That holds for absolutely convergent series only. - can be made any real number you like.
- always diverges.Many rearrangements still converge.
Every bounded sequence in
- a limit.
is bounded with no limit. - a convergent subsequence.
- a monotone tail.Some subsequence is monotone, but not necessarily a tail.
Practice
Exercise 3.1The ratio test misses things (Rudin 3.34)
For
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
Solution
If
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
Hint
The reverse triangle inequality.
Solution
The converse is false:
Rudin 3.3A nested square root
Let
Hint
Show by induction that the sequence is increasing and bounded by 2, then use monotone convergence.
Solution
Bounded:
Increasing:
By Rudin 3.14 it converges, to some
Rudin 3.20Cauchy plus a convergent subsequence
Let
Hint
Split
Solution
Given
Combined with BolzanoβWeierstrass this proves completeness of
Compactness and uniform continuity
Compactness turns "for each point" into "for all points at once". Applied to the
The idea
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
Worked example
Prove that a continuous
Fix
. What does continuity give at each point ?A radius
with whenever .Which open cover should we use, and why half the radius?
Cover
by the balls . By compactness finitely many, centred at , suffice. Let . The halving leaves room for a second point.Finish: take
. lies in some . Then . So both and are within of , and . The point of compactness: the minimum of finitely many positive numbers is positive.
Examples
A continuous image of a compact set is compact, so a continuous real function on a compact space attains its maximum and minimum. On
Check your understanding
Which set is compact?
The cover by has no finite subcover. Unbounded, so not compact.
- uniformly continuous, since it is continuous.Continuity gives a
for each point, not one for all. - continuous but not uniformly continuous.
- not continuous at infinity.Infinity is not in the domain.
A continuous
- Compactness of
.Compactness gives a maximum and minimum, not intermediate values. - Connectedness of
. - Uniform continuity.Uniform continuity alone doesn't force intermediate values (think of a function on two separated intervals).
Practice
Exercise 4.1An open cover with no finite subcover: compactness fails
Give an open cover of
Solution
Exercise 4.2Lipschitz implies uniformly continuous: a Ξ΄ that works everywhere
If
Solution
Take
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
Hint
Start with an open set of the cover that contains 0.
Solution
Let
Rudin 4.14A fixed point theorem
Let
Hint
Apply the intermediate value theorem to
Solution
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.
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
The idea
The proof uses everything so far: the function
Explore
Worked example
Show that if
Apply the mean value theorem between
and . for some between them, so .Take
.Then
for all : is constant. The interval matters: on a function can have zero derivative and two different values.
Examples
For
If
For
Check your understanding
For
- Yes, at
. isn't differentiable at 0. - No; the theorem's hypothesis fails at 0.
- Yes.Compute
for and look at its limit. - No:
but has no limit at 0.
Practice
Exercise 5.1L'Hospital's rule, once (Rudin 5.13)
Compute
Solution
Numerator and denominator tend to 0 and are differentiable near 0 with
Exercise 5.2Taylor with remainder (Rudin 5.15)
Use Taylor's theorem to show
Solution
The degree-4 Taylor polynomial of
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
Hint
Divide by
Solution
For
Rudin 5.2Positive derivative and the inverse function
Suppose
Hint
The mean value theorem for monotonicity. For
Solution
For
Fix
As
Rudin 5.3Small perturbations of the identity are injective
Suppose
Hint
Solution
Alternatively,
The RiemannβStieltjes integral
Squeeze the area between upper and lower sums. Rudin does this against a general increasing weight
The idea
With
Explore
Worked example
Compute
Write
and for . is increasing, so and . Then and .Conclude.
, so is integrable, and both sums tend to . The figure shows shrinking like .
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
Examples
If
If
For
Check your understanding
For
, .- Both tend to 0 as the mesh shrinks.Every subinterval contains rationals, so every
.
If
- 0
is 1 on the subinterval containing 0.3. That is the case .
Practice
Exercise 6.1The fundamental theorem (Rudin 6.21)
If
Hint
Apply the mean value theorem to
Solution
For any partition,
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
Hint
Solution
Every subinterval contains points where
Compare the quiz in this module: if
Rudin 6.2A nonnegative continuous function with zero integral
Suppose
Hint
If
Solution
Suppose
Rudin 6.1 shows continuity is essential: there
Rudin 6.4The rational indicator
Let
Hint
Every subinterval contains both kinds of numbers.
Solution
Every subinterval of every partition contains rationals and irrationals (both are dense), so
Uniform convergence
Pointwise limits of continuous functions can be discontinuous. Uniform convergence is the fix, and it is just convergence in the metric
The idea
In the language of the story:
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
on 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
Worked example
Prove Rudin 7.12: a uniform limit of continuous functions is continuous.
Fix
and . Which do you use?One with
. This is where uniformity matters: the same is good at and at every nearby .Now use continuity of that
at .Pick
with when . Then . This " argument" is the template for many proofs in analysis.
Examples
Check your understanding
- Yes, since each
is continuous.Continuity of the doesn't force uniform convergence. - No: a uniform limit of continuous functions would be continuous.
- tends to 0.Look at
. - equals
for every .
Practice
Exercise 7.1The Weierstrass M-test (Rudin 7.10)
Show that
Solution
Exercise 7.2Limits and integrals: when can you swap them?
For
Solution
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
Solution
Let
Rudin 7.2Sums and products
If
Hint
For the product, add and subtract
Solution
Sums:
Products: by Rudin 7.1 there is
Without boundedness it fails: on
Rudin 7.9Uniform convergence and moving points
Let
Hint
Split
Solution
The converse fails. Take