Chapter3 Real Analysis
Chapter3 Real Analysis
com
Real Analysis
• Sequences of Numbers
• Series of Numbers
• Topology
• The Integral
http://www.amaderforum.com
http://www.amaderforum.com
Sets are the most basic building blocks in mathematics, and it is in fact not easy to give a
precise definition of the mathematical object set. Once sets are introduced, however, one
can compare them, define operations similar to addition and multiplication on them, and
use them to define new objects such as various kinds of number systems. In fact, most of
the topics in modern analysis are ultimately based on sets.
Therefore, it is good to have a basic understanding of sets, and we will review a few
elementary facts in this section. Most, if not all, of this section should be familiar and its
main purpose is to define the basic notation so that there will be no confusion in the
remainder of this text.
The most commonly used sets are the sets of natural numbers, integers,
rational and real numbers, and the empty set. They are usually denoted by these
symbols:
All of the number systems (except the natural numbers) will be defined in a
mathematically precise way in later sections. First, some examples:
http://www.amaderforum.com
http://www.amaderforum.com
Examples:
Sets can be combined using the above operations much like adding and
multiplying numbers. Familiar laws such as associative, commutative, and
distributive laws will be true for sets as well. As an example, the next result will
illustrate the distributive law; other laws are left as exercises.
o A (B C) = (A B) (A C)
o A (B C) = (A B) (A C)
Many results in set theory can be illustrated using Venn diagram, as in the above
proof. However, such diagrams do not represent mathematically rigorous proofs.
Nonetheless, before an actual proof is developed, it is first necessary to form a
mental picture of the assumptions, conclusions, and implications of a theorem.
For this process a Venn diagram can be very helpful. You can practice Venn
diagrams by using them for some of the true/false statements in the exercises.
There are many other theorems dealing with operation on sets. One that is
particularly interesting is the theorem about de Morgan's Laws, because it deals
with any number of sets (even infinitely many). Drawing a Venn diagram in such
a situation would be impossible, but a mathematical proof can easily deal with
this situation:
So far, we have reviewed a few basic facts from set theory, and also got an idea
about how a course in Real Analysis will proceed:
http://www.amaderforum.com
http://www.amaderforum.com
First, there are definitions, stating precisely what we are talking about. From those
definitions we derive new results, based on old results, notation, and logic. The
new results are called Theorems (if they are important or broad), Propositions (if
they are interesting, but not so broadly applicable) and Corollaries (which are
usually restatements of theorems or propositions in special situations). We will
proceed that way throughout the text.
The most difficult part of Real Analysis is trying to understand the proofs of new
results, or even developing your own proofs. While there are a few 'general'
methods for proofs, a lot of experience and practice is needed before you will feel
familiar with giving your own proofs. However, only a few proofs require real
ingenuity, and many other proofs can be understood by carefully reviewing the
definitions of terms involved. Therefore, as a rule:
In following that rule, one often gets ideas about how to start a proof by starting
to manipulate the mathematical symbols involved in the precise definitions of the
terms.
Keep in mind that a proof can (almost) never be given by means of examples.
Working out a few examples can certainly be helpful - and should in fact always
be done before starting a proof - but they can not constitute a rigorous proof of a
general statement.
Two types of proofs will be encountered frequently, and deserve special attention:
Examples:
o Prove that when two even integers are multiplied, the result is an even
integer, and when two odd integers are multiplied, the result is an odd
integer.
o Prove that if the square of a number is an even integer, then the original
number must also be an even integer. (Try a proof by contradiction)
o Euclid's Theorem states that there is no largest prime. A proof by
contradiction would start out by assuming that the statement is false, i.e.
there is a largest prime. The advantage now is that if there was a largest
http://www.amaderforum.com
http://www.amaderforum.com
prime, there would be only finitely many primes. This seems easier to
handle than the original statement which implies the existence of infinitely
many primes. Finish the proof.
http://www.amaderforum.com
http://www.amaderforum.com
Countable Infinity
One of the more obvious features of the three number systems N, Z, and Q that were
introduced in the previous chapter is that each contains infinitely many elements. Before
defining our next (and last) number system, R, we want to take a closer look at how one
can handle 'infinity' in a mathematically precise way. We would like to be able to answer
questions like:
While most people would probably agree that there are just as many even than odd
numbers, it might be surprising that the answer to the last two questions is no as well. All
of the sets mentioned have the same number - albeit infinite - of elements. The person
who first established a rigorous 'theory of the infinite' was G. Cantor.
The basic idea when trying to count infinitely large (or otherwise difficult to count) sets
can roughly be described as follows:
• Suppose you are standing in an empty classroom, with a lot of students waiting to
get in. How could you know whether there are enough chairs for everyone? You
can not count the students, because they walk around too much. So, you simply
let in the students, one by one, and take a seat. If all the seats are taken, and no
students are left standing, then there was the same number of students as chairs.
This simple idea of matching two sets element by element is the basis for comparing two
sets of any size, finite or infinite. Since 'matching elements from one set with those in
another set ' seems related to the concept of a function, we have arrived at the following
definition:
Definition: Cardinality
• Let A and B be two sets. We say that A and B have the same cardinality if there
is a bijection f from A to B. We write card(A) = card(B).
• If there exists a function f from A to B that is injective (i.e. one-to-one) we say
that card(A) card(B).
• If there exists a function f from A to B that is surjective (i.e. onto) we say that
card(A) card(B).
Please explain carefully what this definition has to do with the above idea of counting
students and chairs?
http://www.amaderforum.com
http://www.amaderforum.com
Examples:
• We can now answer questions similar to the ones posed at the beginning:
1. Let E be the set of all even integers, O be the set of odd integers. Then
card(E) = card(O). What is the bijection ?
2. Let E be the set of even integers, Z be the set of all integers. Again,
card(E) = card(Z). Can you find the bijection ?
3. Let N be the set of natural numbers, Z be the set of all integers. Which set,
if any, has the bigger cardinality ?
• If a set A has the same cardinality as N (the natural numbers), then we say that A
is countable. In other words, a set is countable if there is a bijection from that set
to N.
• An alternate way to define countable is: if there is a way to enumerate the
elements of a set, then the set has the same cardinality as N and is called
countable.
• A set that is infinite and not countable is called uncountable.
The second part of this definition is actually just rephrasing of what it means to have a
bijection from N to a set A:
By the above examples, the set of even integers, odd integers, all positive and negative
integers are all countable.
Note that there is a difference between finite and countable, but we will often use the
word countable to actually mean countable or finite (even though it is not proper).
However, here is a nice result that distinguishes the finite from the infinite sets:
• A set S is infinite if and only if there exists a proper subset A of S which has the
same cardinality as S.
http://www.amaderforum.com
http://www.amaderforum.com
Examples:
• Use Dedekind's Theorem to show that the set of integers Z and the interval of real
numbers between 0 and 2, [0, 2], are both infinite (which is of course not
surprising).
The surprising fact when dealing with countably infinite sets is that when combining two
countable sets one gets a new set that contains no more elements than each of the
previous sets. The next result will illustrate that.
Think about these propositions carefully. It seems to be contrary to ones beliefs. To see
some rather striking examples for the above propositions, consider the following:
Examples:
http://www.amaderforum.com
http://www.amaderforum.com
Sequences
So far we have introduced sets as well as the number systems that we will use in this text.
Next, we will study sequences of numbers. Sequences are, basically, countably many
numbers arranged in a sequence that may or may not exhibit certain patterns. Here is the
formal definition of a sequence:
Definition: Sequence
For example, the sequence 1, 1/2, 1/3, 1/4, 1/5, ... is written as . Keep in mind
that despite the strange notation, a sequence can be thought of as an ordinary function.
However, in many cases, that may not be the most expedient way to look at the situation.
It is often easier to simply look at a sequence as a 'string' of numbers that may or may not
exhibit a certain pattern.
We want to describe what the long-term behavior, or pattern, of a sequence may be, if
any.
Definition: Convergence
then | aj - c | < . The number c is called the limit of the sequence and we
sometimes write aj c.
Example:
http://www.amaderforum.com
http://www.amaderforum.com
Convergent sequences, in other words, exhibit the behavior that they get closer and closer
to a particular number. Note, however, that divergent sequence can also have a regular
pattern, as in the second example above. But it is convergent sequences that will be
particularly useful to us right now.
We are going to establish several properties of convergent sequences, most of which are
probably familiar to you. Many proofs will use an ' argument' as in the proof of the next
result. This type of argument is not easy to get used to, but it will appear again and again,
so that you should try to get as familiar with it as you can.
Example:
• The Fibonacci numbers are recursively defined as x0 = 1, x1 = 1, and for all n > 1
we set xn = xn - 1 + xn - 2. Show that the sequence of Fibonacci numbers {1, 1, 2, 3,
5, ...} does not converge.
Convergent sequences can be manipulated on a term by term basis, just as one would
expect:
This theorem states exactly what you would expect to be true. The proof of it employs the
standard trick of 'adding zero' and using the triangle inequality. Try to prove it on your
own before looking it up.
Note that the fourth statement is no longer true for strict inequalities. In other words,
there are convergent sequences with an < bn for all n, but strict inequality is no longer true
for their limits. Can you find an example ?
While we now know how to deal with convergent sequences, we still need an easy
criteria that will tell us whether a sequence converges. The next proposition gives
reasonable easy conditions, but will not tell us the actual limit of the convergent
sequence.
Definition: Monotonicity
In other words, if every next member of a sequence is larger than the previous one, the
sequence is growing, or monotone increasing. If the next element is smaller than each
previous one, the sequence is decreasing. While this condition is easy to understand, there
are equivalent conditions that are often easier to check:
• Monotone increasing:
1. aj + 1 aj
2. aj + 1 - aj 0
3. aj + 1 / aj 1, if aj > 0
• Monotone decreasing:
1. aj + 1 aj
2. aj + 1 - aj 0
3. aj + 1 / aj 1, if aj > 0
Examples:
http://www.amaderforum.com
http://www.amaderforum.com
http://www.amaderforum.com
http://www.amaderforum.com
Examples:
http://www.amaderforum.com
http://www.amaderforum.com
So far we have learned about sequences of numbers. Now we will investigate what may
happen when we add all terms of a sequence together to form what will be called an
infinite series.
The old Greeks already wondered about this, and actually did not have the tools to quite
understand it This is illustrated by the old tale of Achilles and the Tortoise.
Achilles, a fast runner, was asked to race against a tortoise. Achilles can run 10 meters
per second, the tortoise only 5 meter per second. The track is 100 meters long. Achilles,
being a fair sportsman, gives the tortoise 10 meter advantage. Who will win ?
This continuous for a while, but whenever Achilles manages to reach the spot where the
tortoise has just been a split-second ago, the tortoise has again covered a little bit of
distance, and is still ahead of Achilles. Hence, as hard as he tries, Achilles only manages
to cut the remaining distance in half each time, implying, of course, that Achilles can
actually never reach the tortoise. So, the tortoise wins the race, which does not make
Achilles very happy at all.
Now let's return to mathematics. Before we can deal with any new objects, we need to
define them:
http://www.amaderforum.com
http://www.amaderforum.com
Note that while a series is the result of an infinite addition - which we do not yet know
how to handle - each partial sum is the sum of finitely many terms only. Hence, the
partial sums form a sequence, and we already know how to deal with sequences.
Examples:
• = 1/2 + 1/4 + 1/8 + 1/16 + ... is an infinite series. The 3rd, 4th, and 5th
partial sums, for example, are, respectively: 0.875, 0.9375, and 0.96875.
o Does this series converge or diverge ?
• = 1 + 1/2 + 1/3 + 1/4 + 1/5 + ... is another infinite series, called harmonic
series. The 3rd, 4th, and 5th partial sums are, respectively: 1.833, 2.0833, and
2.2833.
o Does this series converge or diverge ?
Actually, if a series contains positive and negative terms, many of them may cancel out
when being added together. Hence, there are different modes of convergence: one mode
that applies to series with positive terms, and another mode that applies to series whose
terms may be negative and positive.
Examples:
http://www.amaderforum.com
http://www.amaderforum.com
Conditionally convergent sequences are rather difficult to work with. Several operations
that one would expect to be true do not hold for such series. The perhaps most striking
example is the associative law. Since a + b = b + a for any two real numbers a and b,
positive or negative, one would expect also that changing the order of summation in a
series should have little effect on the outcome. However:
• Let be a conditionally convergent series. Then, for any real number c there
is a rearrangement of the series such that the new resulting series will converge to
c.
This will be proved as an exercise. One sees, however, that conditionally convergent
series probably contain a few surprises. Absolutely convergent series, however, behave
just as one would expect.
We will give one more rather abstract result on series before stating and proving easy to
use convergence criteria. The one result that is of more theoretical importance is
http://www.amaderforum.com
http://www.amaderforum.com
• The series converges if and only if for every > 0 there is an integer N > 1
http://www.amaderforum.com
http://www.amaderforum.com
In the previous chapters we dealt with collections of points: sequences and series. Each
time, the collection of points was either finite or countable.and the most important
property of a point, in a sense, was its location in some coordinate or number system.
Now will deal with points, or more precisely with sets of points, in a more abstract
setting. The location of points relative to each other will be more important than their
absolute location, or size, in a coordinate system. Therefore, concepts such as addition
and multiplication will not work anymore, and we will have to start, in a sense, at the
beginning again.
All of the previous sections were, in effect, based on the natural numbers. Those numbers
were postulated as existing and all other properties - including other number systems -
were deduced from those numbers and a few principles of logic.
We will now proceed in a similar way: first, we need to define the basic objects we want
to deal with, together with their most elementary properties. Then we will develop a
theory of those objects and called it topology.
• A set U R is called open, if for each x U there exists and > 0 such that the
interval ( x - , x + ) is contained in U. Such an interval is often called an -
neighborhood of x, or simply a neighborhood of x.
• A set F is called closed if the complement of F, R \ F, is open.
Examples:
It is fairly clear that when combining two open sets (either via union or intersection) the
resulting set is again open, and the same statement should be true for closed sets. What
about combining infinitely many sets ?
http://www.amaderforum.com
http://www.amaderforum.com
How complicated can an open or closed set really be ? The basic open (or closed) sets in
the real line are the intervals, and they are certainly not complicated. As it will turn out,
open sets in the real line are generally easy, while closed sets can be very complicated.
The worst-case scenario for the open sets, in fact, will be given in the next result, and we
will concentrate on closed sets for much of the rest of this chapter.
• Let U R be an arbitrary open set. Then there are countably many pairwise
disjoint open intervals such that U =
Next we need to establish some relationship between topology and our previous studies,
in particular sequences of real numbers. We shall need the following definitions:
Examples:
• What is the boundary and the interior of (0, 4), [-1, 2], R, and O ? Which points
are isolated and accumulation points, if any ?
• Find the boundary, interior, isolated and accumulation points, if any, for the set
{1, 1/2, 1/3, ... } {0}
Here are some results that relate these various definitions with each other.
• A closed set contains all of its boundary points. An open set contains none of its
boundary points.
• Every non-isolated boundary point of a set S R is an accumulation point of S.
• An accumulation point is never an isolated point.
Finally, here is a theorem that relates these topological concepts with our previous notion
of sequences.
http://www.amaderforum.com
http://www.amaderforum.com
Limits of Functions
We now want to combine some of the concepts that we have introduced before:
functions, sequences, and topology. In particular, if we have some function f(x) and a
given sequence { an }, then we can apply the function to each element of the sequence,
resulting in a new sequence. What we would want is that if the original sequence
converges to some number L, then the new sequence { f( an )} should converge to f(L),
and if the original sequence diverges, the new one should diverge also. This seems not
too much to ask for, but is quite simple minded.
Example:
As the above easy example shows, things can be more complicated than anticipated.
Therefore, we have to attack the problem more systematically. First, we need to define
what we mean by 'limit of a function'.
We write f(x) = L
Examples:
http://www.amaderforum.com
http://www.amaderforum.com
The above definition works quite well to show that a functionis not continuous, because
you only have to find one particular sequence whose images do not converge as a
sequence. It is not a good definition, in general, to prove convergence of a function,
because you will have to check every possible convergent sequence, and that is hard to
do. We would therefore like another definition of convergence or limit of a function.
Example:
• If f is any function with domain Din R, and c closure(D) then the following are
equivalent:
1. For any sequence { xn } in D that converges to c the sequence { f ( xn ) }
converges to L
2. given any > 0 there exists a > 0 such if x closure(D) and | x - c | <
then | f(x) - L | <
In other words, both definitions of continuity are equivalent, and we can use which ever
seems the easiest. Here are some basic properties of limits of functions.
http://www.amaderforum.com
http://www.amaderforum.com
Sometimes a function may not have a limit using the above definitions, but when the
domain of the function is restricted, then a limit exists. This leads to the concepts of one-
sided limits.
This is the formal definition of x approaching c either only from the right side, or only
from the left side. These one-sided limits are related to regular limits in a straight forward
manner:
Now that we have some idea about limits of functions, we will move to the next question:
if some sequence converges to c, and the function converges to L as x approaches c, then
when is it true that f(c) = L ? This will be the contents of the next section, continuity.
http://www.amaderforum.com
http://www.amaderforum.com
In a calculus class integration is introduced as 'finding the area under a curve'. While this
interpretation is certainly useful, we instead want to think of 'integration' as more
sophisticated form of summation. Geometric considerations, in our situation, will not be
so fruitful, whereas the summation interpretation of integration will make many of its
properties easy to remember.
First, as usual, we need to define integration before we can discuss its properties. We will
start with defining the Riemann integral, and we will move to the Riemann-Stieltjes and
the Lebesgue integral later.
• A partition P of the closed interval [a, b] is a finite set of points P = { x0, x1,
x2, ..., xn} such that
o a = x0 < x1 < x2 < ... < xn-1 < xn = b
• The maximum difference between any two consecutive points of the partition is
called the norm or mesh of the partition and denoted as | P |, i.e.
o | P | = max { xj - xj-1, j = 1 ... n }
• A refinement of the partition P is another partition P' that contains all the points
from P and some additional points, again sorted in order of magnitude.
Examples:
• What is the norm of a partition of 10 equally spaced points in the interval [0, 2] ?
• What is the norm of a partition of n equally spaced points in the interval [a, b] ?
• Show that if P' is a refinement of P then | P' | | P |.
If P = { x0, x1, x2, ..., xn} is a partition of the closed interval [a, b] and f is a function
defined on that interval, then the Riemann Sum of f with respect to the partition P is
defined as:
http://www.amaderforum.com
http://www.amaderforum.com
Examples
Riemann sums have the practical disadvantage that we do not know which point to take
inside each subinterval. To remedy that one could agree to always take the left endpoint
(resulting in what is called the left Riemann sum) or always the right one (resulting in the
right Riemann sum). However, it will turn out to be more useful to single out two other
close cousins of Riemann sums:
Let P = { x0, x1, x2, ..., xn} be a partition of the closed interval [a, b] and f a bounded
function defined on that interval. Then:
http://www.amaderforum.com
http://www.amaderforum.com
Examples:
These various sums are related via a basic inequality, and they are also related to a
refinement of the partition in the following theorem:
Suppose P = { x0, x1, x2, ..., xn} is a partition of the closed interval [a, b], f a bounded
function defined on that interval. Then we have:
http://www.amaderforum.com
http://www.amaderforum.com
In other words, the lower sum is always less than or equal to the upper sum, and the
upper sum is decreasing with respect to a refinement of the partition while the lower sum
is increasing with respect to a refinement of the partition. Hence, a natural question is:
will the two quantities ever coincide ?
Suppose f is a bounded function defined on a closed, bounded interval [a, b]. Define
Then if I*(f) = I*(f) the function f is called Riemann integrable and the Riemann integral
Examples
• Show that the constant function f(x) = c is Riemann integrable on any interval [a,
b] and find the value of the integral.
• Is the function f(x) = x2 Riemann integrable on the interval [0,1] ? If so, find the
value of the Riemann integral. Do the same for the interval [-1, 1].
• Is the Dirichlet function Riemann integrable on the interval [0, 1] ?
The third example shows that not every function is Riemann integrable, and the second
one shows that we need an easier condition to determine integrability of a given function.
The next lemma provides such a condition for integrability.
Suppose f is a bounded function defined on the closed, bounded interval [a, b]. Then f is
Riemann integrable if and only if for every > 0 there exists at least one partition P such
that
| U(f,P) - L(f,P) | <
Examples
• Is the function f(x) = x2 Riemann integrable on the interval [0,1] ? If so, find the
value of the Riemann integral. Do the same for the interval [-1, 1] (since this is
http://www.amaderforum.com
http://www.amaderforum.com
the same example as before, using Riemann's Lemma will hopefully simplify the
solution).
• Let f(x) = 0 if x is irrational and f(p/q) = 1/q if x = p/q is rational, p, q relatively
prime and q > 0, and assume f is restricted to [0, 1]. Is f Riemann integrable ? If
so, what is the value of the integral ?
Now we can state some easy conditions that the Riemann integral satisfies. All of them
are easy to memorize if one thinks of the Riemann integral as a somewhat glorified
summation.
• | f(x) dx | | f(x) | dx
• If g is another function defined on [a, b] such that g(x) on [a, b], then g(x) dx
f(x) dx
• If g is another Riemann integrable function on [a, b] then f(x) . g(x) is integrable
on [a, b]
Examples
• Find an upper and lower estimate for x sin(x) dx over the interval [0, 4].
• Suppose f(x) = x2 if x 1 and f(x) = 3 if x > 1. Find f(x) dx over the interval [-1,
2].
• If f is an integrable function defined on [a, b] which is bounded by M on that
http://www.amaderforum.com
http://www.amaderforum.com
Now we can illustrate the relation between Riemann integrable and continuous functions.
Note that this theorem does not say anything about the actual value of the Riemann
integral. Also, we can drop the explicit condition that f is bounded, since every
continuous function on a compact set is automatically bounded.
Since differentiable functions are continuous, this result therefore implies that
Examples
• Find a function that is not integrable, a function that is integrable but not
continuous, and a function that is continuous but not differentiable.
To finalize the relation between integrable and continuous functions, the following
theorem can be proved:
http://www.amaderforum.com
http://www.amaderforum.com
Examples
Now that we have easy conditions to determine which functions are integrable, it would
also be convenient to have a nice shortcut to easily compute the actual value of an
integral.
Suppose f is an integrable function defined on the closed, bounded interval [a, b], define a
new function:
• F(x) = f(t) dt
Note that this theorem has an easy corollary that enables us to quickly find the value of
an integral in many situations.
Suppose f is an continuous function defined on the closed, bounded interval [a, b], and F
is a function on [a, b] such that F'(x) = f(x) for all x in (a, b). Then
Before we look at several examples, we should rephrase these results in less rigorous
notation. The first theorem says, basically:
f(x) dx = f(x)
while the corollary states, basically, that:
http://www.amaderforum.com
http://www.amaderforum.com
Hence, loosely speaking, integration and differentiation are inverse operations of each
other.
Examples
In the next chapter we will introduce the Riemann-Stieltjes integral, and also learn two
more shortcuts to compute the value of an integral called substitution method and
integration by parts.
http://www.amaderforum.com