Appendix C. Solutions to exercises
Each problem is repeated before its solution, in the order of the exercises in the main text. Each exercise number links back to the original exercise. The italic link at the end of that exercise returns to its entry here. Entries without a supplied solution are marked Awaiting solution.
C.1 Sets and foundations of real analysis
Exercise 1.1.1
Let be a collection of sets. Prove De Morgan’s laws
Solution. 57 Fix a set such that for every . All complements in this proof are taken relative to , so
Suppose first that is nonempty. We prove each identity by showing both inclusions.
The complement of the union. Suppose that
Then and does not belong to the union. If belonged to any , it would belong to the union. Therefore for every . Since , this gives for every , and hence
Conversely, suppose that
Then and for every . Thus no member of the family contains , so does not belong to their union. Consequently,
Both inclusions hold, proving the first equality.
The complement of the intersection. Suppose that
Then and does not belong to the intersection. There must be an index for which . Otherwise, would belong to every and therefore to their intersection. Thus , which gives
Conversely, suppose that
Then for at least one index . Hence and . Since fails to belong to this member of the family, it cannot belong to the intersection. Thus
Both inclusions hold, proving the second equality.
If is empty, we use the relative conventions
Both identities then follow from and .
Figure C.1 illustrates the difference for two sets. An element outside their intersection may still belong to one of the sets. It simply cannot belong to both. ◻
Exercise 1.1.6
Let be a set such that for . Prove where
Solution. Since each is countably infinite, there exists a bijection from to . Using the axiom of countable choice, select one such bijection for each . This gives a list without repetition within each row, which we write as
Put these lists into rows. Reading one whole row first would never reach the next row. Instead, follow successive diagonals , alternating direction as in Figure C.2. This gives
Each diagonal is finite, and each has only finitely many diagonals before its own. Hence every entry is eventually reached. Every element of occurs in some row, so this sequence contains all of .
The sets may overlap. Skip any value already listed, keeping only its first occurrence. Every element has a first occurrence at a finite position, so none is lost by this procedure. The retained list contains each element of exactly once. Since is infinite, the retained list is also infinite. Numbering its entries in order gives a bijection from to . Therefore
◻
Exercise 1.3.1
List all the elements in the set and verify the cardinality formula.
Solution. The power set is the set of all subsets. The empty set has exactly one subset, itself, so
Taking the power set once more gives
Its elements are the empty set and the singleton containing the empty set. These are distinct. Since , the cardinality formula gives
◻
Exercise 1.3.7
Obtain a bijective map from to .
Solution. A map from to is a bijection if it is both one-to-one and onto. This means that every element of is the image of exactly one element of . Figure C.3 contrasts bijections with a map that fails both conditions.
The tangent function is a bijection from onto . To use it on , we first multiply the input by and then subtract . These steps give the composition
We can therefore define
For , the angle lies strictly between and , so is defined and real. We verify bijectivity by giving its inverse. For , put
Here is the unique angle in whose tangent is . Thus , and
This proves that is onto. Conversely, for , the angle lies in the principal interval, so
If , applying gives . Therefore is also one-to-one and hence is a bijection.
Figure C.4 shows the central branch of in blue and the transformed graph alongside it. The horizontal change compresses that branch by a factor of and shifts it to the right by . Its domain becomes , while its range remains all of .
◻
Exercise 1.3.9
Obtain a bijective map from to .
Solution. The identity maps to itself, but it misses the endpoints of , as shown in Figure C.5. We can make room for them by moving a countable sequence of points.
First assign
The values and must now be supplied by other inputs. We use and for these values, and then continue shifting the reciprocals to fill the resulting gaps. This gives
Figure C.6 illustrates this shift. We leave all other points fixed. Define a map from to by
To check bijectivity, put
The cases in the definition are disjoint and cover . Every output lies in , so the function is well-defined.
Among the inputs in , only maps to , and only maps to . For each integer , solving gives the unique input . Thus maps bijectively onto .
On , the map is the identity, with image . This image is disjoint from , so no fixed point can give a second preimage for a value already supplied by the reciprocal sequence. Together the two images cover . Every target value therefore has exactly one preimage, proving that is a bijection. ◻
Exercise 1.3.10
Show that
(Corrected hint. For each number in , choose the decimal expansion that is not eventually all s. We can then write
Then define a map from to by
Show that this map is injective, then use injections in both directions.)
Solution. Put . For each number in , we choose the unique decimal expansion that is not eventually all s. For example, we write one half as instead of . Each digit may be any of .
For and , define
Figure C.7 shows how the odd positions record and the even positions record .
We first check that this construction gives a number in . The output digits cannot be eventually all s. Otherwise, both input expansions would also be eventually all s, contradicting our choice of decimal expansions.
Since , at least one of its digits is nonzero. This digit occurs in an odd position of the output, so . The output is less than because its digits are not all s. Therefore , and its displayed decimal expansion follows our convention.
If , uniqueness of the digits gives and for every . Hence and , so is one-to-one.
However, is not onto, despite the claim in the original hint. To see this, consider . If , the even digits would force . This is impossible because , so has no preimage.
We therefore use an injection in the reverse direction as well. Define a map from to by
Both coordinates lie in , so the map is well-defined. If , equality of the first coordinates gives . Hence is one-to-one.
The Cantor–Schröder–Bernstein theorem says that injections in both directions imply the existence of a bijection. Applying it to and gives . By Exercise 1.3.7, . Therefore
◻
Exercise 1.3.12
Let and denote the cardinalities of and respectively. Recall that the Continuum Hypothesis (CH) states that there is no cardinality between and . Use CH to prove that the set of transcendental numbers, , has the same cardinality as that of .
Solution. Let be the set of real algebraic numbers and the set of real transcendental numbers. An algebraic number is a root of a nonzero polynomial with integer coefficients. A transcendental number is not such a root. Hence
First, we show that is countable. For each , consider the nonzero polynomials
Each of the coefficients has possible values, so there are at most such polynomials. A nonzero polynomial of degree at most has at most distinct real roots. Thus the set of all their real roots is finite.
Every algebraic number is a root of a nonzero integer polynomial. Taking at least as large as its degree and the absolute values of all its coefficients places that root in . Conversely, every root in is algebraic. Hence
Within each finite set , list the roots in increasing order. Read these finite lists in the order , skipping repeated roots. Each root is reached after finitely many steps. This proves that is countable. Every is a root of , so . Thus is infinite, and .
Now suppose that were countable. Then would be a union of two countable sets and therefore countable. This contradicts the uncountability of . Hence is uncountable. Since , we have
By CH there is no cardinality strictly between and , as illustrated in Figure C.8. The lower endpoint is already excluded, so the only possibility is
◻
Exercise 1.3.13
Let be a transcendental number whose existence is proven already. Show that for any , the numbers
are linearly independent over the field .
That is, if there are such that
then .
(In the language of Linear Algebra, this result indicates that the set viewed as a vector space over is infinitely dimensional.)
Solution. Suppose that
We want to show that every coefficient is zero. Suppose, for a contradiction, that at least one .
Write , where and . Put . We multiply through by to clear all the denominators and obtain
Each is an integer, and at least one is nonzero since . Therefore
is a nonzero polynomial with integer coefficients satisfying . This would make algebraic, contradicting the assumption that it is transcendental.
Thus . Since was arbitrary, the numbers are linearly independent over for every . 58 ◻
Exercise 1.7.2
Use the existence of the Dedekind cut in to prove the greatest lower bound property. That is, if is a nonempty subset of which is bounded below, then there is a unique number such that
(Do not use LUBP.)
Solution. Let be nonempty and bounded below, and let be the set of all lower bounds of ,
Since is bounded below, is nonempty. Take , so that and . More formally,
Choose . Then , so is also nonempty.
To use the Dedekind cut property (DC), we need to prove that for every and . Fix such and . Since is not a lower bound of , there exists some such that . Since is a lower bound of , we also have . Combining these inequalities gives
so . DC therefore supplies a boundary satisfying
To prove that is the greatest lower bound, we must prove that it is itself a lower bound and that it is greater than or equal to every other lower bound, which belongs to ,
The latter follows from the definition of and the cut inequality . To prove the former, fix any . We need to show that
For every , we have , since . The cut inequality therefore gives
Suppose for a contradiction that , and take . Then
This contradicts . Hence for every , so is a lower bound of and therefore
If is another greatest lower bound, then and , so . Thus the greatest lower bound is unique. ◻
Exercise 1.7.3
Give an example of a sequence of nested nonempty bounded intervals in such that for each but
Explain what goes “wrong”.
Solution. Let
Each is a nonempty bounded interval because it contains and is contained in . Since ,
Thus the intervals are nested, as shown in Figure C.9.
To prove that their intersection is empty, let . If , then . If , the Archimedean property gives a positive integer .59 Then and . Hence every real number is excluded from at least one interval, and therefore
The nested interval property guarantees a nonempty intersection for nested nonempty bounded closed intervals in . Here the missing hypothesis is closedness. Every finite intersection is nonempty, but the only point common to all the closures is , which is excluded from every . ◻
Exercise 1.7.4
Give an example of a sequence of nested nonempty closed intervals in such that for each but
Explain what goes “wrong”.
Solution. Let
Each is a nonempty closed interval in , since and its complement is open. Moreover,
Thus the intervals are nested, as shown in Figure C.10.
For any , the Archimedean property gives a positive integer . Then . Consequently, no real number belongs to every , and
The missing hypothesis in the nested interval property is boundedness. All the intervals are unbounded, and their left endpoints eventually exceed every fixed real number. ◻
Exercise 1.8.2
Consider the seqeunce
-
(a) Show that it is monotone decreasing and bounded below.
-
(b) Show that it is Cauchy.
-
(c) Obtain the limit of .
-
(d) Let . Obtain both and .
Solution.
-
(a) Monotonicity and a lower bound. Using , we obtain
Hence, for every ,
Thus is strictly decreasing. Since , we also have for every , so the sequence is bounded below by .
-
(b) The Cauchy property. Let . By the Archimedean property, choose such that . For all , the triangle inequality gives
Therefore is Cauchy.
-
(c) The limit. Since as ,
-
(d) Infimum and supremum. Part (a) shows that is a lower bound for . If , choose . Then
so is not a lower bound. Thus . Since is decreasing and , its maximum is , and therefore .
◻
Exercise 1.9.3
Consider the sequence
Find all limit points of and obtain
Solution. The sine term repeats every three indices. Let . Separating the indices according to their remainder upon division by three gives
The reciprocals tend to zero, so these three subsequences converge to , , and , respectively. Each of these numbers is therefore a limit point. Figure C.11 shows the three groups of terms approaching their limits.
To show that there are no other limit points, suppose a subsequence converges to . Among its infinitely many indices, at least one remainder occurs infinitely often. Keeping only those indices gives a further subsequence of one of the three sequences above. It still converges to , so uniqueness of limits forces to be , , or . Thus the set of all limit points is
To find the lower limit, fix a tail beginning at . Every term in this tail is greater than , while terms with indices occur arbitrarily far out and approach . Therefore
For the upper limit, every term in this tail satisfies . The tail also contains terms with indices , all of which exceed . Hence
Taking the limits of these tail bounds gives
◻
Exercise 1.9.8
Give an example of a sequence of nested nonempty bounded closed intervals in such that for each but
Explain what goes “wrong”.
Solution. For , define
and let . Since , both endpoints are rational. Thus is nonempty (it contains ), bounded, and closed relative to , being the intersection of a closed subset of with .
Because is irrational, the definition of the floor function gives . Consequently,
Figure C.12 illustrates these rational intervals around the excluded point .
Multiplying by gives . Taking floors therefore yields
It follows that
Thus . In fact, the inclusion is strict because the lengths of the corresponding real intervals decrease by a factor of . By the density of in , any nonempty open portion removed contains a rational number, so at least one point of does not belong to .
The inequalities
show that and . If , then and for every . Since both endpoint sequences converge to , the squeeze theorem applied to the constant sequence with value gives , contradicting .60 Therefore
What fails is the completeness of . The corresponding closed intervals in have intersection , but this point is absent from . ◻
Exercise 1.9.10
Consider the sequence
in and define which is a subset of .
-
(a) Show that is a bounded set.
-
(b) Find and .
-
(c) Is it true that and both lie in ? Explain why and why not.
Solution.
-
(a) Boundedness. For , each of the factors is at least , so
Consequently, for ,
Since , it follows that for every . Thus is bounded.
-
(b) Infimum and supremum. We take the infimum and supremum in . Since and all terms are at least , we have . Moreover, , so is strictly increasing. Since part (a) gives an upper bound, the monotone convergence theorem implies that for some .61 Each . If , convergence gives a term , so is not an upper bound. Therefore .
The factorial-series definition of is the limit of these same partial sums. Thus , and
-
(c) Rationality. We have , but . To prove the latter, suppose that with . Choose an integer . Then
is an integer because both and every with are integers. On the other hand,
This contradicts . Thus is irrational.
In particular, has no supremum in the ordered field . Indeed, any rational upper bound must satisfy . By the density of in , there is a rational with , and is a smaller upper bound for .
◻
Exercise 1.9.11
Let the rational numbers in be enumerated by . Let and cover this set by
That is, .
-
(a) Show that the sum of the lengths of the intervals satisfies the bound
-
(b) Since can be arbitrarily small, the set can be covered by intervals of arbitrarily small total length indicating that is a rather “sparse” subset of . In view of this fact, give your explanation regarding the “incompleteness” of in .
Solution. For part (a), the length of each interval is the difference between its endpoints, so
The finite geometric sum gives
Letting , we obtain
In particular, the requested upper bound holds. Given any , choosing covers every point of with intervals whose total length is less than .
For part (b), this explains the word “sparse” in terms of covering length. It does not mean that the rationals are separated by gaps. Rational density gives a point of in every open subinterval of , so the closure of is the whole interval. Nor does the covering estimate alone prove that is incomplete. A singleton is complete and also admits covers of arbitrarily small length.
To prove incompleteness, we must instead exhibit a Cauchy sequence in with no limit in . Let . Then , and is irrational, since otherwise would be rational. Take the decimal approximations
Each belongs to , and the defining inequalities for the floor function give
Given , choose so that . For , the triangle inequality then gives
Thus is Cauchy. The same approximation bound shows that in . By uniqueness of limits, it cannot converge to a point of . This missing limit proves that is incomplete. Since is dense in and this closed interval is complete, is its completion under the usual distance. ◻
Exercise 1.10.1
Use the triangle inequality to prove
When will this become an equality?
Solution. Write . The triangle inequality gives
and therefore . Interchanging and gives . Combining the two inequalities, we obtain
This is exactly
For equality, first suppose . If both numbers are nonnegative, then
If both are nonpositive, then and , so
These cases also include either number being zero.
If , the numbers have opposite signs and neither is zero. Then . Since both and are positive,
Thus equality holds exactly when . Taking absolute values can be pictured as folding the number line at zero. Points on the same side keep their separation, while points on opposite sides move closer together. Figure C.13 illustrates this folding.
◻
Exercise 1.11.2
Let be a prime. Prove that is irrational. Can this result be extended to for any integer ?
Solution. We use Euclid’s lemma, which states that if a prime divides a product of integers, it divides at least one factor. Applying this repeatedly shows that implies for every positive integer .
The square root. Suppose, for a contradiction, that . Write
Squaring gives , so . Euclid’s lemma gives , and we can write for some . Substituting and cancelling one factor of gives
Hence , so Euclid’s lemma also gives . The prime therefore divides both and , contradicting . Thus is irrational.
The general th root. Let and suppose that in lowest terms, with and . Raising both sides to the th power gives . Thus , and Euclid’s lemma gives . Writing , we obtain
Since , this shows that , so . Again, divides both and , contradicting that the fraction is in lowest terms. Therefore is irrational for every integer . ◻
Exercise 1.11.3
Show that if is irrational, so is the th root of , , for any .
Solution. Let . Suppose, for a contradiction, that is rational. Then
Raising both sides to the th power gives
since and . This contradicts the assumption that is irrational. Therefore is irrational for every . ◻
Exercise 1.11.4
Consider .
-
(a) Find such that forms a Dedekind partition.
-
(b) Find the Dedekind cut for this partition.
-
(c) Show that is bounded below and is bounded above and find
Solution. Since , we have . The existence and uniqueness of nonnegative cube roots therefore gives a number
If , then , so . On the nonnegative real numbers, is strictly increasing. Hence holds exactly when , and therefore
For part (a), take
Then and . Both sets are nonempty, since and . For every and , we have
Thus is the lower part and is the upper part of a Dedekind partition, as shown in Figure C.14.
For part (b), the displayed inequality shows that is a boundary for this partition. To see that it is unique, suppose is another boundary. Since , we must have . If , then
contradicting the boundary inequality . Thus , so the Dedekind cut is .
Geometrically, the two proposed boundaries would leave uncovered. Every element of is at most , and the proposed boundary would require every element of to be at least . The midpoint lies in neither region, contradicting , as illustrated in Figure C.15.
For part (c), is a lower bound of . Any fails to be a lower bound, because belongs to and is smaller than . Hence is the greatest lower bound of . Also, is an upper bound of and belongs to , so it is its greatest element and therefore its least upper bound. Consequently,
◻
Exercise 1.11.6
For , we defined the function for .
-
(a) For , prove that .
-
(b) For , we defined for . Show that this is the same as .
-
(c) For and , prove the laws of exponents
Solution. We use and positive rational exponents. The nonnegative th root exists and is unique for every positive integer .
For part (a), put and . Both are nonnegative, and the integer power laws give
Thus is the nonnegative th root of . Uniqueness gives
For part (b), put . This number is nonnegative, and
Hence is the nonnegative th root of . Again by uniqueness,
For part (c), write and , where are positive integers. We use the fact that rational powers are independent of the fraction used to represent the exponent. First let . By definition, and . Taking integer powers gives
Since , the number is also the nonnegative th root of . Therefore
For the sum law, let . This is nonnegative, and
But , so is the nonnegative th root of the same number. Uniqueness therefore gives
These arguments include , since all exponents are positive and we never divide by . ◻
Exercise 1.11.7
Show that for , the function is a well-defined monotone increasing function which is a bijection from to itself. (Hint: Study .)
Solution. Fix an odd integer and let . We first show that is strictly increasing on the whole real line. If , the strict increase of nonnegative integer powers gives . If , then , so
Since is odd, this becomes , or . Finally, if , then . These cases cover every pair , so is strictly increasing and therefore injective.
To prove surjectivity, take any . If , the existence of nonnegative roots supplies an with . If , let and take . Since is odd,
Thus every real number has an th root. Injectivity shows that this root is unique, so the inverse function
is well defined on all of .
To show that is strictly increasing, take . If , the increase of would give
a contradiction. Hence , which also proves injectivity. For any , we have , so is surjective as well. Therefore the real th root function is a strictly increasing bijection from to itself. Figure C.16 illustrates this inverse relationship for .
◻
Exercise 1.11.8
Consider the iteration process
whose limit gives us the continuous fraction
That is, is a fixed point of the function
which is realized as a root of the function .
-
(a) Show that the iterative algorithm
arises from Newton’s method that may be used to approach of our problem.
-
(b) Assume that in (a) converges. Verify that the limit is indeed the continuous fraction defined above.
-
(c) Take . Prove for .
-
(d) Prove that increases for any and is constant when .
-
(e) Show that converges to with any initial state (thereby establishing the “global convergence” of the algorithm).
Solution.
-
(a) Newton’s method. For , let
Newton’s method for is therefore
which is the stated iteration. If , then the numerator and denominator are positive. Since , induction shows that every iterate is positive and the algorithm is well defined.
-
(b) Identification of the limit. Suppose . Positivity implies . We first rule out . If , there is an such that for all . For these indices,
The tail is then increasing and satisfies , contradicting . Hence .
Passing to the limit in the recurrence gives
Thus . Since , we obtain
This is the unique positive solution of . The continued fraction is a positive fixed point of , so uniqueness implies .
-
(c) Bounds when . For the remaining parts, set and write
We have and
The nonnegativity of the numerator is illustrated in Figure C.17.
Therefore for every , with if and only if . Applying this to proves
regardless of whether .
-
(d) Monotonicity. If , then , so induction gives for all .
Now suppose . The equality condition in part (c) gives . Repeatedly applying the same condition yields for every . For these indices,
Every factor in the last expression is positive. Equivalently, the quadratic is positive on , as shown in Figure C.18.
Thus is strictly increasing when . The restriction is necessary because if , the first iterate is below and hence below .
-
(e) Global convergence. If , the sequence is constant and converges to . If and , parts (c) and (d) show that is increasing and bounded above by . The monotone convergence theorem therefore gives a limit. By part (b), with , this limit is
Adding the initial term does not affect convergence, so for every allowed initial state .
◻
Exercise 1.11.9
The Fibonacci sequence is defined by
-
(a) Show that is an increasing sequence. Here increasing means nondecreasing.
-
(b) Show that is unbounded.
-
(c) Show that the Fibonacci ratios
is a bounded sequence.
-
(d) Assume the limit of exists. Find the limit (which happens to be the golden ratio).
Solution. For part (a), the initial values and the recurrence show by induction that for every , and for every . For , the recurrence gives
Together with , this proves that the sequence is nondecreasing. It is strictly increasing from onward, since when . The only repeated adjacent values are .
For part (b), suppose is bounded above. Since it is nondecreasing, the monotone convergence theorem gives as . The shifted sequences and also tend to , so the recurrence and the limit laws give
Subtracting gives .
But for every , so taking limits gives . This contradicts . Therefore the sequence is unbounded above.
For part (c), the ratios are well defined because their denominators are positive. We have . For , substitute the recurrence into the numerator and split the fraction to obtain
By part (a), we have . Dividing by the positive number gives
Adding now gives . Including , we conclude that
Thus the ratio sequence is bounded.
For part (d), assume that . The bounds above give , so is nonzero.
To express in terms of , recall from part (c) that, for ,
The preceding ratio is . Since both Fibonacci terms are positive, we can take its reciprocal to obtain
Substituting this into the expression for gives the recurrence
The shifted sequence also tends to . Since , the limit laws give
Geometrically, lies on both and , as shown in Figure C.19. Multiplying by and bringing all terms to one side gives
The two roots are and . The second is negative and cannot satisfy . Therefore the assumed limit is the golden ratio
◻
The identity also has a geometric interpretation.
A rectangle with side lengths and leaves a smaller, rotated copy of itself when a unit square is removed. Repeating this step gives the squares in Figure C.20. The golden spiral winds through their corners, shrinking its distance from the centre by with each quarter-turn (Duan 2019).
C.2 Sequences of real numbers
Exercise 3.1.6
Find the limit
Solution. We start by taking out a factor of to simplify the term inside the th root. The remaining factor is positive for every , since . We first factor at each and take limits only after establishing convergence of both factors.
Since we know ,
Next for the right-side factor, the bounds below hold for . Indeed,
Both bounds need only hold on this tail. The bounding sequences have limits
Then by the squeeze theorem,
Both factor limits now exist, so the product rule applies to the factored expression.
Therefore
◻
Exercise 3.1.7
Find the limit
for and , respectively.
Solution. Case . For , we have , including when or . Therefore,
For , , so
The parentheses matter here. The entire product is inside the root, and
Applying the squeeze property with the limits
establishes convergence of the middle sequence. The limit over is .
Case . Since for , we have . Hence
These are inequalities between terms. We have not yet assumed that the middle sequence converges. Applying the squeeze theorem again, we use
Since , it follows that . The upper bound therefore tends to . Substituting back into the previous inequality, the squeeze property proves
Joining both cases together gives
◻
Exercise 3.2.7
Let . Prove the arithmetic mean-geometric mean inequality
and deduce the necessary and sufficient condition when the inequality above is strict. (Hint: Consider .)
Solution. From the hint, we have
Since a square is nonnegative,
Each rearrangement is reversible. Thus
Therefore the inequality is strict if and only if . Equality holds exactly when , including . ◻
C.3 Infinite series of numbers
Exercise 4.1.4
An alternating series is one of the following form
Prove that an alternating series converges. (Hint: Use the Cauchy convergence criterion.)
Solution. Let and consider the following partial sums.
To prove converges we need to show that it satisfies the Cauchy convergence criterion. For every we need to find such that for ,
There are terms in the finite tail. Put
Its first term is and its last is . This notation keeps the final term explicit, including for short tails.
We start by understanding the nature of the sequence.
The third equality uses , so . Grouping by the following pairs requires accounting for the parity of the tail.
An empty sum below is zero. If with , every term is paired. If with , the last term is positive and remains unpaired. Thus
Since , each pair , and any unpaired is also nonnegative. Thus the alternating tail is nonnegative in the sense that . Now consider a different arrangement of pairs.
Leaving the first term alone and pairing from the second gives
The last term is subtracted in the even case. In the odd case, every term after the first is paired. This includes , when and .
Similarly, each pair , and , so . Since , we have . Therefore can be at most .
Since , for every there exists such that for all .
Thus, for all ,
Swapping the indices preserves the absolute difference, and equal indices give zero. Hence the same bound holds for every pair .
Hence satisfies the Cauchy convergence criterion and therefore converges in . Consequently, the alternating series
converges. ◻
Exercise 4.2.3
Prove that the telescope series
converges for any and obtain the sum when .
Solution. Let . We first rationalise the difference.
Since , we have . Thus
Adding these inequalities gives
Taking reciprocals and multiplying by gives
Apply this bound to finite partial sums. For every ,
We know that converges whenever . Here , so the upper bounding series converges. Therefore the original series also converges by comparison, since its terms are nonnegative.
For , the partial sums telescope.
As , we have . Hence the sum is . ◻
Exercise 4.2.4
Consider
where and for . Define
-
(i) Show that if and diverges, so does .
-
(ii) Show that if and converges, so does .
Solution. Recall the tail infima and suprema of the ratios.
We can think of and as long-term lower and upper bounds with the following precise meaning. A bound strictly below or strictly above holds on a sufficiently late tail.
Part (i). Since , there is with . Choose a finite such , also when . Since , some has . Thus
Since , this gives for every .
Sum over this tail, where the comparison is known to hold. For ,
Removing the first terms does not change divergence.
Since , its partial sums are increasing and tend to . Therefore the partial sums of also tend to . Hence diverges.
Part (ii). Since , choose . The ratios are nonnegative, so and . Since , some has . It follows that
We know that is finite.
Put . For every ,
The finite prefix is zero when . Earlier partial sums are bounded by the same constant because the terms are nonnegative.
This establishes a finite upper bound. Since , the partial sums are monotone nondecreasing. Therefore, by the monotone convergence theorem, tends to a finite limit. Hence converges.
Direct comparison gives the same conclusion on the tail. Adding the finite prefix preserves convergence. ◻
Exercise 4.2.7
Consider series
The following are ratio and root tests for divergence.
-
(i) Define
Show that if , then the series diverges.
-
(ii) Define
Show that if , then the series diverges.
Solution. Part (i). Suppose . Choose such that
By the definition of the lower limit, there is such that
Since , we obtain
In other words, is strictly increasing from index onwards. Consequently,
Thus the terms cannot converge to zero. This violates the necessary condition for a convergent series, which requires .
To see the contradiction directly, take . If , there would be such that
This would give . For , this contradicts . Therefore the series does not converge. Figure C.21 recalls the tail condition used in this contradiction.
Part (ii). Suppose . Choose such that
Again, the definition of the lower limit gives such that
Raising both sides to the positive integer power gives . Since , we have . Hence , so cannot converge to zero. The necessary term condition therefore shows that diverges. ◻
C.4 Continuity
Exercise 5.1.4
Use the definition of a function being continuous at a point, show that if is continuous at , so is the function
Solution. Let . Since is continuous at , there is a such that
We can use the same for . The reason is the reverse triangle inequality,
Taking absolute values cannot increase the distance between two outputs, as illustrated in Figure C.22.
Applying the inequality with and gives
whenever . Hence is continuous at . ◻
Exercise 5.1.6
Let be continuous over satisfying the additivity condition
Show that there is a constant such that . (Hint: First prove this when is an integer and identify what is. Then prove this when is rational. Finally pass to limit for any real by using the denseness of in .)
Solution. Following the hint, we first determine on the integers, then on the rationals, and finally on all of . Set .
Taking in the additivity condition gives
For any , we also have
and therefore . For a positive integer , repeated addition gives
Together with and , this proves for every integer .
Now let be rational, where and . Adding to itself times gives
Dividing by yields
Thus for every .
Let be arbitrary. By the density of in , there exists a sequence of rational numbers such that
Since is continuous at , the sequential characterization of continuity gives
But we have already established that for every . Therefore,
By the uniqueness of limits,
Since was arbitrary, we conclude
◻
The central insight is that additivity determines on all rational numbers. Because the rationals are dense in the reals, continuity forces the function to preserve that same linear relationship at every irrational number.
Exercise 5.1.12
Use the definition of a function being continuous at a point, prove that if is continuous at , is continuous at , then is continuous at as well.
Solution. Let . Our goal is to make by taking sufficiently close to . We first find how close must be to .
Write . Since is continuous at , there is an such that
Since is continuous at , there is a such that
The choices are made in this order because the tolerance for comes from the continuity of . Figure C.23 illustrates the two steps.
If , the second implication places within of . Applying the first implication with this value of gives
This is the definition of continuity of at . ◻
Exercise 5.2.2
Let be continuous over and satisfy the “coercive” condition:
where and are two constants.
-
(a) Show that exists.
-
(b) Show that attains somewhere at . That is, there is some such that
Such a point is called a global minimum point of over .
(Hint: Let be a sequence such that
Show that contains a convergent subsequence.)
Solution. (a) Since for every , the given bound implies
Thus the range is bounded below. It is nonempty because it contains . By completeness of , its infimum exists as a real number. Write
(b) We follow the hint by choosing inputs whose outputs approach . By the defining property of the infimum, for every there is an such that
Indeed, if no such point existed, would be a lower bound for larger than . These inequalities give .
We next show that the inputs stay in a bounded interval. Combining the coercive bound with the choice of gives
Since and , the number is positive and finite. Thus is contained in . The coercive bound prevents inputs with nearly minimal outputs from escaping to infinity, as illustrated in Figure C.24.
By the Bolzano–Weierstrass theorem, there is a subsequence converging to some . Continuity of at gives
But the same subsequence satisfies
so as . By uniqueness of limits, . Hence attains its global minimum. ◻
Exercise 5.3.3
Let be a continuous function which maps the interval into itself. Prove that has a fixed point in . That is, there is some such that . Use your result to prove that for any there is some such that
Find for .
Solution. A fixed point is a point where and have the same value. To find one, consider their difference,
This function is continuous on . Since maps into itself, and . Hence
If either value is zero, the corresponding endpoint is a fixed point. Otherwise , so the intermediate value theorem gives a with . Thus . This also covers a one-point interval, since then .
Now fix and define
The denominator is positive on this interval, so is continuous. Also , which gives
Therefore maps into itself. By the result just proved, it has a fixed point . Neither endpoint is fixed, since and . Consequently and
Figure C.25 shows the intersection when .
When , multiplying by gives
Only the first value belongs to . Hence the required value is . ◻
Exercise 5.3.4
Show that if the highest degree term of a polynomial is odd powered, then it must have a real root.
Solution. Let
where is odd and . Dividing by does not change the roots, so we work with
We want to choose two inputs where the leading term is larger in absolute value than all the remaining terms together.
Set . For , every power with is at most . The triangle inequality therefore gives
Choose . Since is odd, . Applying the bound at and , we obtain
The polynomial is continuous on . By the intermediate value theorem, there is a such that . Since , we also have . ◻
Exercise 5.4.3
Let be a continuous function over an interval , with finite endpoints , which may or may not be closed. Prove that if is uniformly continuous over , then is bounded. With this result, show that the function
is continuous but not uniformly continuous.
Solution. Claim. Let be an interval with finite endpoints , . If is uniformly continuous then is bounded on .
Suppose is uniformly continuous on . By definition, for every there is a such that
Choose . Then there exists a such that
Our goal is to show that there exists a finite constant such that
If is empty, the claim is immediate. Otherwise, fix once and for all.
Since and are finite endpoints, we consider an arbitrary point . We will connect to by steps, each shorter than . Uniform continuity then bounds each output change by .
Figure C.26 illustrates the finite chain of small steps.
Since , taking equally spaced steps between and makes each step no longer than
To apply the uniform-continuity bound at each step, choose so that
Since and are both fixed, we can select an integer that works for every pair of points in .
Such an integer exists by the Archimedean property. Set
Each lies between and , so it belongs to because is an interval. For ,
Uniform continuity therefore gives at every step. This construction also works when .
The output changes telescope along the chain,
The triangle inequality and the bound of at every step give
Taking one more triangle inequality yields
Set .
Both and are fixed, so does not depend on . Since and are both finite, is bounded on . Therefore we have proved that if is uniformly continuous over , then it is bounded.
For on , we will prove continuity and unboundedness. The contrapositive of the claim will then rule out uniform continuity on this bounded interval.
Figure C.27 shows the graph near the excluded endpoint .
The numerator and denominator are continuous, and on . The quotient of two continuous functions is continuous wherever the denominator is not equal to zero, so for the function is continuous.
At the excluded left endpoint,
This means that there is no finite upper bound for on . More explicitly, for any , choose an integer . Then
Thus is unbounded on .
By the contrapositive of the above claim, if is not bounded, then it cannot be uniformly continuous over . ◻
Exercise 5.4.4
Show that the function is not uniformly continuous over and explain what goes “wrong”.
Solution. To disprove uniform continuity, we need one fixed output tolerance that no single input tolerance can guarantee over all of . Choose .
Let be arbitrary. By the Archimedean property, choose with , and set
These inputs are less than apart, since
However, their outputs satisfy
Thus every fails for the same , so is not uniformly continuous on .
What goes wrong is visible in the factorisation
Even when is small, the factor can be arbitrarily large. In our construction the inputs get closer together as they move to the right, while the output gap stays above . Figure C.28 shows one pair from this sequence.
◻
Exercise 5.4.5
Consider a function over . We say that is Lipschitzian if there is a constant such that
Here is called the Lipschitz constant of .
-
(a) Prove that a Lipschitz function is uniformly continuous over the entire .
-
(b) Consider the function
Show that this function is Lipschitzian and estimate its Lipschitzian constant.
Solution. (a) Let and choose . Since , we have . For any ,
The same works for every pair , so is uniformly continuous on .
(b) For , we first subtract the fractions and factor the numerator,
It remains to bound the last fraction independently of and . For any , the inequality gives
Applying this to both and , we obtain
Therefore
Thus is Lipschitz with . The estimate proves the required property without finding the smallest possible constant. By part (a), is also uniformly continuous on . ◻
C.5 Differentiation and its applications
Exercise 6.1.6
Consider the function
-
(i) Show that is continuous at .
-
(ii) Find the left- and right-derivatives of at .
Solution. Part (i). Recall that continuity at is defined by
We want to prove that . Analyzing both left and right sides, where and respectively, we have
By the squeeze theorem,
For the inequality is reversed,
and similarly, by the squeeze theorem,
Therefore, since
is continuous at .
For part (ii), recall that to find and we use the definitions of the left- and right-side derivatives,
Figure C.29 shows why continuity can hold even though these two slopes differ.
Starting with the left limit,
Since implies , we have .
Similarly, , since
Therefore, since , is undefined. ◻
Exercise 6.1.10
For , find .
Solution. Let for . Then
◻
Exercise 6.2.2
Let satisfy
Show that there is a point such that .
Solution. Since represents a polynomial with real coefficients,
it is differentiable and continuous. If , Rolle’s theorem would give a point with . However, we are interested in , so we can construct an auxiliary polynomial such that .
Since is a polynomial, it is continuous on and differentiable on . If we can establish that , Rolle’s theorem guarantees some satisfying and therefore .
For the derivative of to be equal to , we can select terms by inverting the power rule ,
Evaluating at both endpoints gives
Thus . By Rolle’s theorem, there exists such that . Since , we conclude that , as required. ◻
Exercise 6.2.5
Let be a differentiable function over .
-
(i) Show that if is a bounded function, then is a Lipschitz function which satisfies
where is a constant called the Lipschitz constant.
-
(ii) If the Lipschitz constant in (i) satisfies , the function is called “contractive”. Prove that a contractive function must have a fixed point such that . (Hint: Take any and consider the iterative sequence for .)
-
(iii) Show that the fixed point found in (ii) is unique.
Solution. Part (i). Since is bounded, for some and every . The function is differentiable over , so it is continuous there. Thus, we apply the mean value theorem over the interval , where and , and choose a such that
Choose to satisfy . Since , we obtain
If , interchange the two inputs. If , both sides are zero. Thus the inequality holds for every .
Part (ii). Take any and define for . Consider the following, where ,
Assuming a Lipschitz constant satisfying exists, we can apply the inequality from part (i). For this part, denotes the constant in the contraction hypothesis.
Repeated application of the contraction inequality yields
Suppose . Then
which implies that each successive step is no larger than the previous one. Figure C.30 illustrates shrinking steps that alternate around a fixed point.
It follows that the total distance from start to finish is less than or equal to the sum of all steps,
Generalizing this for arbitrary gives the following calculation. For tails shorter than four steps, retain only the increments with indices in the expanded list.
The final bound is independent of . Taking the limit as , we have
Hence, for every , there exists such that
Consequently, for every ,
establishing as a Cauchy sequence over . The same bound for follows by interchanging the indices, and gives zero. By the Cauchy completeness theorem in , there exists such that . Finally, since is continuous and , taking gives
Therefore, is a fixed point of .
For part (iii), assume there are two distinct fixed points and . Applying the contraction inequality gives
Since , we have , so we can divide both sides by to give , which contradicts . Therefore, two distinct fixed points cannot exist and the fixed point is unique. ◻
Exercise 6.2.6
Let . Show that for all , we have
with equality only for .
Solution. Let
To find the global maximum such that , first consider ,
Since and the denominator is strictly positive for , the critical points satisfy
The sign of is determined by the term. For ,
Similarly, for ,
Since for and for , the function is strictly increasing before and strictly decreasing afterward. This follows from the mean value theorem on any closed interval on either side of , including intervals starting at . The sign change is illustrated in Figure C.31.
Therefore, attains its unique global maximum at ,
Equality holds if and only if . ◻
Exercise 6.2.9
Show that the function
decreases and find the limit
Solution. To show the function
decreases, we can analyze the derivative of its logarithm, since preserves the order and monotonicity of . The base is positive, so . Set . Then
Let , where and . Since is continuous on and differentiable on , with , we can apply the mean value theorem to find a such that
Since , the derivative becomes negative,
A negative implies for all . Therefore, applying
we can conclude that and therefore is strictly decreasing. Figure C.32 shows this decrease for .
To find the limit, put . As , we have and
The quotient is of form, and its denominator derivative is . L’Hôpital’s rule therefore gives
Continuity of the logarithm also gives . Thus , and continuity of the exponential recovers the requested limit,
◻
Exercise 6.5.4
Let be differentiable twice such that is also continuous.
-
(i) Prove that
-
(ii) Prove that
(These formulas are very useful in numerical analysis. Hint: Are the limits of type?)
Solution. Fix and take sufficiently small that and lie in the domain. We differentiate with respect to , keeping fixed. Twice differentiability makes and continuous, and is continuous by assumption. We apply L’Hôpital’s rule on each side of .
For part (i), since the limit is in form, we can apply L’Hôpital’s rule,
Here the denominator derivative is , and continuity of gives the derivative-ratio limit.
Similarly, part (ii) is also in form,
For the first application, the denominator derivative is nonzero when . The intermediate quotient is again of form by continuity of . Its denominator derivative is , and continuity of supplies the final limit. ◻
Exercise 6.5.5
Find the limits
The second quotient requires . If , its denominator is identically zero.
Solution. All three quotients are of form as . We apply L’Hôpital’s rule on both sides of zero.
For part (i),
For part (ii), take . On a sufficiently small neighborhood of zero, and the denominator derivative is nonzero. Thus
For part (iii), applying L’Hôpital’s rule twice gives
The intermediate quotient is again of form. The two denominator derivatives are and . They are nonzero on a sufficiently small punctured neighborhood of zero, and the final derivative ratio tends to , justifying both applications. ◻
Exercise 6.5.6
Find the limits
Solution. Part (i). Fix . For all sufficiently large , , so the logarithm below is defined. We have
Since the exponential function is continuous, once the exponent has a finite limit, we obtain
Strictly, L’Hôpital’s rule is applied to the corresponding real-variable function, whose limit also determines the limit along integer . Write for this real variable. The quotients below are of form as . To use the finite-endpoint rule, set . The derivative ratio with respect to equals the displayed ratio with respect to , because the common chain-rule factor cancels.
Solving for the limit of the exponent gives
The denominator derivative is nonzero, and the derivative ratio has the finite limit . Restricting to therefore gives the required exponent limit. Hence
For part (ii), we begin by expressing the power using the natural logarithm and exponential function. The base is positive for all sufficiently large . Since the exponential function is continuous everywhere on , we may interchange it with the limit, provided the inner limit exists and is finite,
We now evaluate the exponent. Rewriting the product as a quotient gives form, allowing us to apply L’Hôpital’s rule.
The denominator derivative is again nonzero, and the derivative ratio tends to . Taking gives the same exponent limit for the sequence. Therefore, substituting this result into the original expression,
◻
Exercise 6.5.7
Find
Solution. We take the limit from the right because the real-power expression here is defined for . Applying the same transformation from Exercise 6.1.10 gives
Since the exponential function is continuous everywhere on , we may interchange it with the limit, provided the inner limit exists and is finite,
We now evaluate the exponent. Rewriting the product as a quotient gives the indeterminate form , allowing us to apply L’Hôpital’s rule. More precisely, apply the version to and then restore the minus sign. The functions are differentiable for , the denominator derivative is nonzero, and the derivative ratio below has a limit.
Therefore, substituting this result into the original expression,
◻
C.6 Sequences and series of functions
Exercise 8.3.3
Consider the sequence
-
(a) Show that pointwise as .
-
(b) Show that the convergence is not uniform.
Solution. (a) First consider . For every ,
so the limit at this input is zero. Now fix . Since ,
With fixed, . The squeeze theorem therefore gives . Together with the case , this proves pointwise convergence to the zero function on .
(b) Pointwise convergence keeps fixed while grows. To test uniform convergence, we may instead look for a different troublesome input at each . Set . Then
Choose . For any proposed , take and . We have
Hence there is no after which all the values of are within of zero. The convergence is not uniform.
We can also see exactly how large the largest error is. Since , we have and therefore
Equality holds at , so
for every . As Figure C.33 shows, the peak moves towards zero while its height stays fixed. This does not contradict pointwise convergence, since a fixed positive input does not follow the moving peak, and is always zero.
◻
Exercise 8.3.5
Let and be two uniformly convergent sequences whose limit are and , respectively.
-
(i) Show that as uniformly in (for finite ).
-
(ii) Give an example to show that (i) may fail in .
-
(iii) Show that as uniformly regardless of the underlying interval.
Awaiting solution.
Exercise 8.3.6
Consider the sequence
-
(i) Show that as pointwise. (Hint: Use Exercise 8.6.9 and Exercise 8.6.12.)
-
(ii) Show that the convergence as is not uniform. (Hint: Try or use Calculus to get where attains its maximum.)
Awaiting solution.
Exercise 8.3.10
Let be sequence of equicontinuous functions over .
-
(i) Show that if there is a point such that is a bounded sequence, then is uniformly bounded over . That is, there is a constant such that
-
(ii) Give an example to show that an equicontinuous sequence of functions may fail to be a bounded sequence even at a point.
Awaiting solution.
Exercise 8.6.8
Consider
-
(i) Establish the absolute and uniform convergence as over any interval .
-
(ii) Use (i) to show that is continuous.
-
(iii) Show that is continuous.
Awaiting solution.
Exercise 8.6.9
Use the conventional notation . Show that for any there is some such that which allows us to define the function
Classify the function in terms of when it is increasing, decreasing, or constant.
Awaiting solution.
Exercise 8.6.10
Use the exponential addition law
-
(i) Show that
-
(ii) Show that (i) can be extended to
-
(iii) Show that (ii) can be extended to
Awaiting solution.
Exercise 8.6.11
Use Exercise 8.6.10(iii) to establish the property
Awaiting solution.
Exercise 8.6.12
Prove that for any there holds
Awaiting solution.
Exercise 8.6.13
Prove
Awaiting solution.
Exercise 8.6.14
For , investigate the absolute convergence of the power series
where is an integer using the ratio test or root test for convergence or divergence.
Solution. Write the power series as , where
We use the root test. For every ,
First suppose . Choose a positive integer . Since , we have
The squeeze theorem gives .
If , apply the same argument to the positive integer . Taking reciprocals gives
Thus this limit holds for every integer .
It follows that
We obtain absolute convergence when
If , the series diverges because its terms do not tend to zero, by the root divergence argument. Hence the radius of convergence is . The value above is the root-test limit rather than the radius.
At the endpoints , the absolute-value series becomes
This series converges if and diverges if . For it is the harmonic series. For its terms do not tend to zero. For the p-series test applies. Thus both endpoints give absolute convergence exactly when .
The set of absolute convergence is therefore
Failure of absolute convergence does not always imply divergence of the original series. For example, at and the alternating harmonic series converges conditionally. ◻
Exercise 8.6.15
Use the method of radius of convergence to determine the interval where the series
converges and is continuous.
Awaiting solution.