University Mathematics — Year 2 · Bachelor Year 2
8Functions of a Real Variable
Before analysis moves to functions of functions (Chapter 10) it pays to know the one-variable landscape in finer detail than Year 1 required: how discontinuous a monotone function can be, how regular a convex function must be, and what special properties derivatives enjoy (Darboux). These structural results are short, sharp, and beloved of examiners.
8.1 Monotone functions
Theorem 8.1 (Regularity of monotone functions)
Let be increasing on an interval.
At every interior point , the one-sided limits exist:
every discontinuity is a jump.
- The set of discontinuities of is at most countable.
Proof. (1) The set is nonempty, bounded above by : its supremum satisfies as (given , some , and monotonicity traps for ). Symmetrically on the right.
(2) To each discontinuity attach the nonempty open interval (a genuine jump). For discontinuities, and are disjoint: for any between. Each contains a rational; distinct discontinuities get distinct rationals: an injection of the discontinuity set into , which is countable (Proposition 1.6). ∎
Example 8.2
The bound is sharp: fix an enumeration of and set (a summable-family definition, Definition 7.8). Then is increasing on and discontinuous exactly at every rational of (jump at ): a monotone function can be discontinuous on a dense countable set.
Example 8.3 (The jumps cannot outweigh the rise)
For increasing on , the jumps have a budget: if are discontinuities with jumps , then choosing interlacing points and using monotonicity on each piece,
the total ascent bounds the total jumping. Consequence: for each , at most discontinuities have jump — a quantitative refinement of Theorem 8.1 (2), since the discontinuity set is the countable union over of these finite sets. On the rational-jump function above, the budget is spent exactly: the jumps sum to in the obvious extended sense. Monotone functions may jump densely, but only on a strict allowance.
8.2 Convex functions
Lemma 8.4 (Slope inequality)
Let be convex on and in . Then
slopes of chords increase in both endpoints.
Proof. Write : a convex combination, since the two coefficients are positive and sum to . Convexity gives
For the left inequality, subtract from both sides, using :
and divide by . For the right inequality, subtract instead from :
and divide by . Both displayed steps are the same barycentric identity read against a different endpoint. ∎
Theorem 8.5 (Regularity of convex functions)
Let be convex on an interval .
- At every interior point, has finite one-sided derivatives ; both are increasing functions of the point; in particular is continuous on the interior of (but possibly not at endpoints).
lies above each support line: for interior and any ,
(Jensen, weighted) For and weights , :
Proof. (1) Fix interior. By Lemma 8.4, the slope is an increasing function of (on both sides, and for ). Hence has a finite limit as (increasing, bounded above by any right slope) — this is — and as (), with . Finite one-sided derivatives force continuity at . Monotonicity in the point: for interior, , again by the slope inequality.
(2) For : ; for : . Both rearrange to the claim.
(3) Induction on the number of points exactly as in the Year 1 volume (the two-point case is the definition) — or in one stroke: apply (2) at and average the support-line inequalities at the points with weights : . ∎
Example 8.6 (Endpoint discontinuity)
On , the function , for is convex but discontinuous at the endpoint : statement (1) is sharp.
Example 8.7 (Corners and the sheaf of support lines)
For at : the one-sided derivatives are and , and Theorem 8.5 (2) hands out a support line for every slope :
each an equality exactly on a half-line or at . A convex function is differentiable at precisely when the sheaf collapses to a single line (); corners carry an interval of tangents. This sheaf is the finite-dimensional germ of the subdifferential of convex optimization — and the reason convex functions are so robust: even where the derivative fails, the supporting geometry survives, which is all that Jensen’s proof used.
Example 8.8 (Power mean inequality)
For and positive with weights summing to , applying Jensen to the convex at the points :
power means increase with the exponent — containing AM–QM, and, in the limit (Exercise 8.6), the AM–GM inequality once more.
Example 8.9 (Maximal entropy)
For a probability vector (positive, summing to ), the entropy satisfies
Proof by Jensen (Theorem 8.5 (3)) applied to the concave with weights at the points :
equality forcing all points equal (strict concavity), i.e. uniform. Equivalently, this is Exercise 8.7 with uniform. Uncertainty is maximized by ignorance uniformly spread — the variational principle behind coding, statistical mechanics, and the entropy appearances of Chapter 22.
Method 8.10 (Finding the convex function behind an inequality)
Most classical inequalities are Jensen in costume; to undress one: (1) normalize so that a weighted average appears (weights positive, summing to — divide by a total mass if necessary); (2) look at what function is applied inside versus outside the average: the claim “ average of ” names the convex ; (3) certify convexity by the second derivative, and handle equality via strictness; (4) if no average is visible, take logarithms first — products and powers become averages, and the concavity of carries AM–GM, Young and their relatives (this chapter’s weekend problem runs steps 1–4 on each of them). If even logarithms do not reveal an average, try reading the inequality as monotonicity of slopes (Lemma 8.4) — superadditivity statements like Exercise 8.9 live there.
Remark 8.11 (Common pitfalls)
(i) Convexity is not preserved by products: and are convex on , but their product has second derivative , negative on — not convex; nor is convexity preserved by composition without monotonicity (Exercise 8.10). (ii) Jensen flips for concave functions: half the classical inequalities are the concave -version; applying the convex form to is the quickest way to prove AM–GM backwards. (iii) Midpoint convexity alone does not imply convexity — continuity (or mere boundedness) is needed (Exercise 8.8); the pathological counterexamples live beyond this book’s axioms. (iv) A convex function on an open interval is continuous, even locally Lipschitz (Exercise 8.12); at endpoints, nothing is free. (v) Derivatives obey Darboux but need not be continuous (Example 8.15): “ has no jumps” never means “ is continuous”.
8.3 The Darboux property
Theorem 8.12 (Darboux)
Let be differentiable on an interval . Then takes every value between any two of its values — even though need not be continuous.
Proof. Let in and strictly between and , say . The function is differentiable with : its minimum on (attained: continuity on a compact) is not at (just after , decreases below ) nor at (just before , is below ): it is interior, and there , i.e. . (This was a Year 1 starred exercise; its place in the theory is here.) ∎
Example 8.13 (Which functions are derivatives?)
Darboux’s theorem is a non-existence machine. The floor function is not the derivative of any function on : it takes the values and but skips on , which Theorem 8.12 forbids for derivatives. The same verdict hits every function with a jump — sign, Heaviside, all step functions — however innocent they look; their “antiderivatives” ( for sign, etc.) exist only away from the jump and knot there with a corner. Contrast: the wildly discontinuous of Example 8.15 is a derivative — its discontinuity is an oscillation, which Darboux tolerates. The boundary between the two behaviours is exactly the no-jumps corollary below.
Corollary 8.14
A derivative has no jump discontinuities: if and exist, they equal . The discontinuities of a derivative are always of oscillation type (’s derivative at , Year 1 volume).
Proof. If exists and differs from , values strictly between them would be skipped by on a right neighborhood — contradicting Darboux on intervals . (Alternatively: the mean value theorem forces , the difference quotient being an -value at an intermediate point.) Same on the left. ∎
Example 8.15 (The canonical oscillating derivative)
Let for and . At : , so exists. Away from ,
whose first term tends to while oscillates through on every interval : the limit does not exist. So is defined everywhere but discontinuous at — and, exactly as Corollary 8.14 predicts, the discontinuity is an oscillation, not a jump: on each , still sweeps a full interval around . Derivatives can be wild, but only in the Darboux-compatible way.
Remark 8.16 (Where this chapter is used)
Convexity is the engine of the inequality industry: this chapter’s weekend problem manufactures Young, Hölder, Minkowski and the power-mean chain from it, which Chapter 5’s norm theory and Chapter 9’s integral estimates consume; Jensen reappears in probability as the moment inequalities of Chapter 22. Monotone regularity returns in Chapter 9 (monotone functions are integrable) and, in the Year 3 volume, as the almost-everywhere differentiability of monotone functions — where “countably many jumps” becomes the first step of Lebesgue’s theory.
8.4 Exercises
Exercise 8.1 ★
Determine the discontinuity sets and the jump sizes: ; ; ; the function of the example following Theorem 8.1 restricted to dyadic rationals .
Solution
Solution of Exercise 8.1.
: jumps of size at every integer. : jumps of size at integers (left limit , value ). : at an integer , left limit and value : continuous everywhere (the square root repairs the jump), though not differentiable at integers. The rational-jump function: restricting the construction to an enumeration of the dyadics, it jumps by exactly at the -th dyadic rational and is continuous elsewhere.
Exercise 8.2 ★
Prove that an increasing function with the intermediate value property (its image of any subinterval is an interval) is continuous.
Solution
Solution of Exercise 8.2.
Suppose increasing has a discontinuity at an interior : then (Theorem 8.1) and the image of misses the nonempty open interval except possibly the single value : the image of any subinterval containing in its interior is not an interval (it has a gap on at least one side of ). This contradicts the intermediate value property. Endpoint discontinuities are excluded the same way with one-sided gaps.
Exercise 8.3 ★
Which of the following are convex on their domain? (); ; ; .
Solution
Solution of Exercise 8.3.
: second derivative : convex. : derivative , increasing: convex. : second derivative : convex. : not convex on ( changes sign); convex only on .
Exercise 8.4 ★★
Let be convex on and bounded above. Prove that is constant. (If , the slope inequality propagates the nonzero chord slope: beyond the point with the larger value, grows at least linearly — contradicting boundedness. Treat both signs of the slope.) Deduce that a convex function on with an asymptote at both ends is affine.
Solution
Solution of Exercise 8.4.
Suppose , say with (the case is symmetric, looking left). For , the slope inequality (Lemma 8.4) on gives
contradicting boundedness above. Hence is constant.
Asymptotes: if at and at , the convex function is bounded above near ; convexity plus an asymptote at (which forces then by comparing slopes at : slopes of a convex function increase) makes bounded above on all of , hence constant in the limit: is affine.
Exercise 8.5 ★★
Let be differentiable on with monotone. Prove that is continuous (combine Theorem 8.1 and Corollary 8.14).
Solution
Solution of Exercise 8.5.
is monotone, so by Theorem 8.1 its only possible discontinuities are jumps, with one-sided limits existing everywhere. By Corollary 8.14, a derivative has no jump discontinuities. Hence has no discontinuities at all: continuous.
Exercise 8.6 ★★
(Geometric mean as a limit) For positive and weights summing to , prove
via , and deduce the weighted AM–GM inequality from Example 8.8.
Solution
Solution of Exercise 8.6.
Take logarithms:
using and . Exponentiating gives the geometric mean. Now for every , the power-mean inequality (Example 8.8, exponents ) gives
letting on the left yields : the weighted AM–GM inequality.
Exercise 8.7 ★★
(Entropy inequality) Using strict convexity of , prove that for positive with :
with equality iff . (Write the left side as with and apply Jensen with weights .)
Solution
Solution of Exercise 8.7.
With (convex: ) and weights at the points :
by Jensen (Theorem 8.5 (3)). Equality in Jensen for a strictly convex function forces all the points to coincide: constant, and summing, the constant is : . (This quantity — the Kullback–Leibler divergence — returns in Chapter 22’s world.)
Exercise 8.8 ★★★
(Midpoint convexity) is midpoint convex when always. Prove that a continuous midpoint convex function is convex. (Establish the convexity inequality for dyadic weights by induction on , then pass to the limit using density and continuity.)
Solution
Solution of Exercise 8.8.
Dyadic weights. By induction on : the case is the hypothesis. For weight (odd ), write with , both of denominator after simplification; then
where and , using midpoint convexity then the induction hypothesis on .
Passage to the limit. For arbitrary , take dyadics : continuity of and of the affine maps passes the inequality to the limit: is convex.
Exercise 8.9 ★★★
Let be convex on with . Prove that is increasing on , and deduce that for convex with : for (superadditivity).
Solution
Solution of Exercise 8.9.
For : the slope inequality (Lemma 8.4) at the points gives
Since and , the last term is : . So increases.
Superadditivity for : for (the cases with a zero variable are trivial),
by the monotonicity just proved; adding gives .
Exercise 8.10 ★
Let be convex on and convex increasing on an interval containing . Prove that is convex, and show by a counterexample that monotonicity of cannot be dropped.
Solution
Solution of Exercise 8.10.
For and : convexity of , then monotonicity of , then convexity of :
Counterexample without monotonicity: is convex (affine) but decreasing, is convex, and is strictly concave.
Exercise 8.11 ★★
(Hermite–Hadamard) Let be convex and continuous on . Prove
(Left: integrate a support line at the midpoint. Right: bound by the chord.)
Solution
Solution of Exercise 8.11.
Left inequality: let and take a support line at (Theorem 8.5 (2)): for all . Integrating over : the linear term integrates to (symmetry around ), so .
Right inequality: on , convexity bounds by its chord: . Integrating: . Divide by .
Exercise 8.12 ★★★
Prove that a convex function on an open interval is locally Lipschitz: for every segment and margin with , the restriction of to is Lipschitz, with constant (trap every chord slope between these two by the slope inequality).
Solution
Solution of Exercise 8.12.
Let , all in . Two applications of the slope inequality (Lemma 8.4), first to , then to :
(chord slopes increase when both endpoints move right). Hence every chord slope inside is trapped between two fixed numbers, and
is Lipschitz on . Every point of the open has such a segment-with-margin around it: locally Lipschitz, hence (again) continuous on .
8.5 Problem: The Convexity Toolbox
One definition — the chord above the graph — generates the entire toolbox of classical inequalities. This weekend problem builds it in logical order: convexity criteria and strict Jensen, then Young, Hölder and Minkowski (the birth certificates of the -norms), the complete power-mean chain from the minimum to the maximum, and two crown dividends — Carleman’s inequality, and Hölder read as a duality. Everything is proved; nothing is imported.
Problem 8.1
Weekend problem — Young, Hölder, Minkowski, and the power-mean chain
Throughout, are conjugate exponents: ; vectors are ; weights satisfy .
Part I — Criteria and strict Jensen.
- Let be differentiable on an interval . Prove that is convex if and only if is increasing (one direction by passing to the limit in the slope inequality Lemma 8.4; the other by the mean value theorem). Deduce the criterion .
- Suppose on . Prove that is strictly convex (strict inequality for and ), and that a strictly convex function satisfies Jensen’s inequality (Theorem 8.5 (3)) with equality only when all the coincide.
- Certify the toolbox’s raw materials: is strictly convex on ; is strictly convex there for and strictly concave for ; is strictly convex on .
(Young’s inequality) For , prove
with equality if and only if (apply the concavity of to the two points with weights ).
Re-derive weighted AM–GM in one line from the concavity of :
with the equality case; compare with the limit route of Exercise 8.6.
Part II — Hölder and Minkowski. Write and .
(Hölder) Prove
with equality iff the vectors and are proportional (normalize and apply Young termwise).
- Identify the special cases: (Cauchy–Schwarz), and the endpoint pair : state and prove .
(Minkowski) For , prove
(write and apply Hölder to each product). Conclude: is a norm on for every , completing the picture of Chapter 5.
- Integral versions: for continuous on , state and prove Hölder and Minkowski for (same proofs, with the strict positivity of the integral for the equality discussion).
Prove the monotonicity for , the limit as , and the reverse comparison with the sharp constant:
(Hölder against the constant vector). Identify the vectors achieving each equality.
(Interpolation) For and with , prove
(apply Hölder with exponents and to ).
Part III — The power-mean chain, complete. For set (), and .
- Prove that is increasing on all of : treat by the reciprocal identity , and bridge through by showing for (apply the concavity of to , and the reversed inequality for negative exponents).
- Prove the limits as and as .
Write out the chain for equal weights, and prove the classic consequence: for positive ,
- Relate means to norms: for equal weights , . Reconcile the two monotonicities — means increase with while norms decrease (question 10) — in one sentence about the factor .
- Determine the equality cases along the whole chain of question 14 (positive weights): equality anywhere forces all equal — strict convexity pays off.
Part IV — Dividends.
(Young with a knob) For and , prove
and the workhorse case : the absorption trick used throughout analysis.
(Toward Carleman) Let . Prove the telescoping identity , and deduce, by AM–GM applied to the numbers ,
(Carleman’s inequality) Sum over , exchange the order of summation (positive summable families, Theorem 7.14), and use and to conclude: for every convergent with positive terms,
For continuous and positive on , prove
with equality iff is constant (Cauchy–Schwarz on ).
- (Geometry of the balls) Using the equality case of Minkowski, show that for the unit sphere of contains no segment (the norm is strictly convex in the sense of Problem 5.1), whereas for and it does: exhibit the flat pieces.
Part V — Duality and synthesis.
(Hölder as duality) Prove that for every ,
exhibiting a maximizing explicitly. (The -norm is the dual of the -norm — the finite-dimensional germ of duality.)
- (Moments) Let be a random variable taking finitely many positive values with probabilities . Restate question 12 as: is increasing — the moment (Lyapunov) inequality, to be reused in Chapter 22.
- Solve with named tools, in two lines each: (i) for positive : ; (ii) for positive : .
- (Synthesis) Draw the genealogy in five sentences: chord definition to slope lemma; slopes to support lines to Jensen; ’s concavity to Young to Hölder to Minkowski to the -norms; Jensen to the power-mean chain to moments; AM–GM to Carleman. Name the summits (Hölder–Minkowski; Carleman), and state where the toolbox is headed: the spaces of the Year 3 volume, whose axioms are exactly questions 6 and 8.
Solution
Solution of Problem 8.1.
1. Convex increasing: for , the slope inequality gives, for small , ; letting : . Conversely, if increases and : the mean value theorem gives , with
and this three-point slope inequality, applied with , rearranges into the convexity inequality. For : iff increases.
2. If , is strictly increasing, and the mean value computation above gives a strict inequality between the two chord slopes: strict convexity. Strict support: at an interior with support slope , if for some , then on the segment from to the support line and the chord coincide, and strict convexity at the midpoint gives , contradicting the support inequality. So for all . Strict Jensen: with , averaging the support inequalities gives , with equality iff each term is an equality, i.e. iff every .
3. ; , positive for , negative for ; . All strict by question 2.
4. The cases are trivial. For , concavity of at the points with weights :
and increases: . Equality iff the two points coincide (strict concavity): .
5. Concavity of with weights : ; exponentiate. Equality iff all equal (question 2). The route of Exercise 8.6 obtained the same inequality as a limit of power means; here it is one application of Jensen — the toolbox has redundancy built in.
6. If or the inequality is trivial. Normalize: replacing by and by , we may assume and must show . Young termwise:
Equality iff each Young inequality is tight: for all — after undoing the normalization, proportional to .
7. is Cauchy–Schwarz with the same equality case (proportionality). Endpoint: , immediate termwise.
8. For it is the triangle inequality termwise. For , with conjugate:
and Hölder on each sum, noting :
likewise with . Hence ; if , divide by and use . With homogeneity and separation (clear), is a norm on .
9. For continuous on : Hölder
by the same normalization plus pointwise Young, integrated; and Minkowski by the same splitting, Hölder on each piece. Separation of the norm uses strict positivity: a continuous with zero integral vanishes identically (Year 1 volume).
10. Monotonicity: we may assume ; then each , so and : . Equality requires for every , i.e. each ; with this leaves exactly one coordinate of modulus : equality iff has at most one nonzero coordinate. Limit: , and . Reverse comparison: Hölder with exponents and its conjugate , applied to :
whence , with equality iff all are equal (the Hölder equality case against the constant vector).
11. Write and apply Hölder with the conjugate exponents and (conjugate precisely because ):
Take -th roots: the -norms are log-convex in .
12. Both negative: if then , and for the positive exponents (course case, Example 8.8) applied to ; inverting the identity reverses the inequality into . Bridge: for , concavity of gives ; for , the same concavity gives , and dividing by flips: . Hence whenever : with the two same-sign cases, increases on all of (and through ).
13. Let , attained at . For :
and : . For : .
14. With , the chain reads
AM–HM () rearranges directly into .
15. With equal weights, . As grows, decreases (question 10) but the normalizer increases faster, and the product increases (question 12): means average, norms accumulate, and the factor is exactly the exchange rate between the two bookkeeping conventions.
16. Each link is an instance of strict Jensen (question 2) with the strictly convex/concave functions of question 3 (, ), so equality at any link forces all the equal; and or likewise forces all values equal to the common extremum. The chain is strict as soon as two differ.
17. Apply Young (question 4) to the pair and :
For , replacing by : — the absorption inequality: a product is traded for a small multiple of one square plus a large multiple of the other.
18. Telescoping:
every factor of the numerator cancelling against the denominator’s next term. AM–GM on the numbers :
19. Summing over and exchanging the two summations (all terms positive: Theorem 7.14):
using the telescoping . Finally (increasing sequence with limit , Year 1 volume):
Carleman’s inequality. (The constant is optimal, though we do not prove it.)
20. Cauchy–Schwarz (question 9, ) applied to and :
Equality iff and are proportional, i.e. constant, i.e. constant ( continuous).
21. Let , , , and suppose , i.e. Minkowski is an equality for . Tracing question 8’s proof, equality forces equality in both Hölder applications and in the termwise triangle inequalities: and both proportional to , and of the same sign — hence for some , and gives : , contradiction. So the -sphere contains no midpoint of distinct sphere points: no segment. For in : all , , lie on the unit sphere — a flat edge; for : the segment , , does.
22. For both sides vanish. Otherwise Hölder bounds every by . Attainment: take
using and . So the supremum is a maximum, equal to : each -norm is the dual norm of its conjugate — the germ of – duality.
23. , so , increasing in by question 12 (and through by questions 12–13): Lyapunov’s moment inequality, purely a statement about weighted power means. It returns for genuine random variables in Chapter 22.
24. (i) Power means with equal weights: ; cube and multiply by : . (ii) Cauchy–Schwarz against the constant vector: ; square.
25. The chord definition yields the slope lemma by one algebraic rearrangement; slopes squeezed at a point produce one-sided derivatives and support lines, whose weighted average is Jensen. Applied to , Jensen becomes Young, which summed against normalized vectors is Hölder, which split and reabsorbed is Minkowski — and the -norms of Chapter 5 are born, with their duality (question 22) and their geometry (question 21). Jensen applied along the scale of powers chains all the means from to (questions 12–14), which read on random variables is the moment inequality (question 23). And AM–GM, weighted by one telescoping trick, yields Carleman’s bound with its irreducible constant (questions 18–19). Summits: Hölder–Minkowski, and Carleman. Destination: the spaces of the Year 3 volume, whose founding axioms are exactly questions 6 and 8 with integrals in place of sums.