Skip to content

§18 Properties of Continuous Functions

Why this matters

This section proves the facts that calculus uses without comment: a continuous function on a closed interval has a largest and a smallest value, it takes every value in between, and a strictly increasing continuous function has a continuous inverse (which is how x\sqrt x, xm\sqrt[m]{x} and later log⁡x\log x are obtained). Each proof leans on completeness, through Bolzano–Weierstrass or a supremum.

A real-valued function ff is bounded if {f(x):x∈dom⁡(f)}\{f(x) : x \in \operatorname{dom}(f)\} is a bounded set, i.e. if there is a real number MM such that ∣f(x)∣≤M|f(x)| \le M for all x∈dom⁡(f)x \in \operatorname{dom}(f).

18.1 Theorem.

Let ff be a continuous real-valued function on a closed interval [a,b][a, b]. Then ff is a bounded function. Moreover, ff assumes its maximum and minimum values on [a,b][a, b]: there exist x0,y0x_0, y_0 in [a,b][a, b] such that f(x0)≤f(x)≤f(y0)f(x_0) \le f(x) \le f(y_0) for all x∈[a,b]x \in [a, b].

Used in Exercise 18.1, Exercise 18.2

Proof

Assume ff is not bounded on [a,b][a, b]. Then to each n∈Nn \in \mathbb{N} there corresponds xn∈[a,b]x_n \in [a, b] with ∣f(xn)∣>n|f(x_n)| > n. By the Bolzano–Weierstrass Theorem 11.5, (xn)(x_n) has a subsequence (xnk)(x_{n_k}) converging to some real x0x_0, which also lies in [a,b][a, b] (Exercise 8.9). Since ff is continuous at x0x_0, lim⁡k→∞f(xnk)=f(x0)\lim_{k\to\infty} f(x_{n_k}) = f(x_0); but also lim⁡k→∞∣f(xnk)∣=+∞\lim_{k\to\infty} |f(x_{n_k})| = +\infty, a contradiction. So ff is bounded.

Now let M=sup⁡{f(x):x∈[a,b]}M = \sup\{f(x) : x \in [a, b]\}, which is finite by the first paragraph. For each n∈Nn \in \mathbb{N} there is yn∈[a,b]y_n \in [a, b] with M−1n<f(yn)≤MM - \frac1n < f(y_n) \le M, so lim⁡f(yn)=M\lim f(y_n) = M. By Bolzano–Weierstrass, a subsequence (ynk)(y_{n_k}) converges to some y0∈[a,b]y_0 \in [a, b]. Since ff is continuous at y0y_0, f(y0)=lim⁡k→∞f(ynk)f(y_0) = \lim_{k\to\infty} f(y_{n_k}). Since (f(ynk))k(f(y_{n_k}))_{k} is a subsequence of (f(yn))n(f(y_n))_n, Theorem 11.3 gives lim⁡kf(ynk)=lim⁡nf(yn)=M\lim_k f(y_{n_k}) = \lim_n f(y_n) = M, so f(y0)=Mf(y_0) = M: ff assumes its maximum at y0y_0.

The last paragraph applies to −f-f, so −f-f assumes its maximum at some x0∈[a,b]x_0 \in [a, b]. It follows easily that ff assumes its minimum at x0x_0 (Exercise 18.1).

∎

Theorem 18.1 is used all the time, at least implicitly, in calculus max–min problems: it is taken for granted that a continuous function on a closed interval actually attains a maximum and a minimum. If the domain is not a closed interval, be careful (Exercise 18.3).

Theorem 18.1 is false for open intervals. For example, f(x)=1xf(x) = \frac1x is continuous but unbounded on (0,1)(0, 1), and x2x^2 is continuous and bounded on (−1,1)(-1, 1) but has no maximum value there.

Intuitionwhat each hypothesis prevents

A maximum can fail to exist in three ways, and each hypothesis of Theorem 18.1 blocks one of them:

  • Not closed: the top is approached at a missing endpoint, like x2x^2 on (−1,1)(-1, 1).
  • Not bounded: the function keeps rising forever, like f(x)=xf(x) = x on [0,∞)[0, \infty).
  • Not continuous: the value at the top is “wrong”. On [0,1][0, 1], let f(x)=xf(x) = x for x<1x < 1 and f(1)=0f(1) = 0. Its supremum is 11, but it is never attained.

In the proof, closed and bounded is what lets Bolzano–Weierstrass produce a limit point that stays inside [a,b][a, b], and continuity is what transfers that limit to the values of ff.

Try it: break a hypothesis of the Extreme Value Theorem

Section titled “Try it: break a hypothesis of the Extreme Value Theorem”

Pick a scenario and drag the probe along the graph, trying to reach the top. When all hypotheses hold the probe can reach the maximum. Drop one (closed, bounded, continuous) and the supremum slips away.

graph of fsup f (when finite)your probethe maximum, attained

f(0.6) = 1.274. Distance below the supremum: 1.049. The maximum value 2.323 is attained at x ≈ 2.674, as Theorem 18.1 promises.

Let f(x)=x2−2f(x) = x^2 - 2, considered only on the rational numbers in [0,2][0, 2]. Then f(0)=−2<0<2=f(2)f(0) = -2 < 0 < 2 = f(2), and ff is continuous. Must ff have a zero in this set?

18.2 Intermediate Value Theorem.

If ff is a continuous real-valued function on an interval II, then ff has the intermediate value property on II: whenever a,b∈Ia, b \in I, a<ba < b, and yy lies between f(a)f(a) and f(b)f(b) (i.e. f(a)<y<f(b)f(a) < y < f(b) or f(b)<y<f(a)f(b) < y < f(a)), there exists at least one xx in (a,b)(a, b) such that f(x)=yf(x) = y.

Used in §17

Proof

Assume f(a)<y<f(b)f(a) < y < f(b); the other case is similar. Let S={x∈[a,b]:f(x)<y}S = \{x \in [a, b] : f(x) < y\}. Since a∈Sa \in S, SS is nonempty, so x0=sup⁡Sx_0 = \sup S is a number in [a,b][a, b]. For each n∈Nn \in \mathbb{N}, x0−1nx_0 - \frac1n is not an upper bound for SS, so there is sn∈Ss_n \in S with x0−1n<sn≤x0x_0 - \frac1n < s_n \le x_0. Thus lim⁡sn=x0\lim s_n = x_0 and, since f(sn)<yf(s_n) < y for all nn,

f(x0)=lim⁡f(sn)≤y.(1)f(x_0) = \lim f(s_n) \le y. \tag{1}

Let tn=min⁡{b,x0+1n}t_n = \min\{b, x_0 + \frac1n\}. Since x0≤tn≤x0+1nx_0 \le t_n \le x_0 + \frac1n, lim⁡tn=x0\lim t_n = x_0. Each tnt_n lies in [a,b][a, b] but not in SS, so f(tn)≥yf(t_n) \ge y for all nn. Therefore f(x0)=lim⁡f(tn)≥yf(x_0) = \lim f(t_n) \ge y, and with (1), f(x0)=yf(x_0) = y.

∎

Intuition

The proof picks x0x_0, the supremum of the points where ff is still below yy: roughly, the last moment before ff reaches yy for good. Approaching x0x_0 from the left gives f(x0)≤yf(x_0) \le y, approaching from the right gives f(x0)≥yf(x_0) \ge y, and continuity forbids a jump in between.

Common pitfallwhat the theorem needs

  • The domain must be an interval. f(x)=1xf(x) = \frac1x on [−1,0)∪(0,1][-1, 0) \cup (0, 1] is continuous, with f(−1)=−1<0<1=f(1)f(-1) = -1 < 0 < 1 = f(1), yet it is never 00.
  • It needs completeness. Over Q\mathbb{Q}, the function x2−2x^2 - 2 is negative at 11 and positive at 22 but has no rational root. The proof breaks down at “x0=sup⁡Sx_0 = \sup S is a number”.
  • It promises existence only. There may be many solutions, and the theorem does not say where they are. Bisection, below, is one way to find one.

Try it: break a hypothesis of the Intermediate Value Theorem

Section titled “Try it: break a hypothesis of the Intermediate Value Theorem”

Choose a value yy between f(a)f(a) and f(b)f(b). With all hypotheses in place the graph must cross the orange line. Drop continuity (a jump or an asymptote) or the interval (a gap in the domain) and the graph can pass over it without touching it.

graph of fyour value ysolution of f(x) = yf skips over y here

f(-2) = -1, f(2) = 3, and y = 1.2 lies strictly between them. Solutions of f(x) = y: x ≈ -1.7, -0.0668, 1.76. The theorem promises at least one; there can be several.

Bisection starts with an interval of length 11 and halves it each step. After 1010 steps, about how long is the interval that still contains a solution?

Try it: hunting for the crossing by bisection

Section titled “Try it: hunting for the crossing by bisection”

The proof finds the crossing as a supremum. A practical way to locate it is bisection: if ff changes sign on [a,b][a, b], check the midpoint and keep whichever half still has a sign change. Each step halves the interval, and the Intermediate Value Theorem guarantees a solution in every interval along the way.

f < 0f > 0current interval and its midpoint

Step 0: f changes sign on [0.000, 2.000], of length 2.00e+0. So by the Intermediate Value Theorem a solution of x³ = 2 lies in it, and x ≈ 1.000. Each step keeps the half on which the sign still changes. The nested intervals shrink to a single point, and completeness of ℝ is what guarantees that point exists.

18.3 Corollary.

If ff is a continuous real-valued function on an interval II, then the set f(I)={f(x):x∈I}f(I) = \{f(x) : x \in I\} is also an interval or a single point.

Used in Theorem 18.4, Exercise 18.11

Proof

The set J=f(I)J = f(I) has the property

y0,y1∈J and y0<y<y1implyy∈J.(1)y_0, y_1 \in J \text{ and } y_0 < y < y_1 \quad\text{imply}\quad y \in J. \tag{1}

If inf⁡J<sup⁡J\inf J < \sup J, such a set is an interval. In fact we show

inf⁡J<y<sup⁡Jimpliesy∈J,(2)\inf J < y < \sup J \quad\text{implies}\quad y \in J, \tag{2}

so JJ is an interval with endpoints inf⁡J\inf J and sup⁡J\sup J, which may or may not belong to JJ and may or may not be finite. To prove (2), take inf⁡J<y<sup⁡J\inf J < y < \sup J. Then there are y0,y1∈Jy_0, y_1 \in J with y0<y<y1y_0 < y < y_1, so y∈Jy \in J by (1).

∎
Example 1.

Let ff be a continuous function mapping [0,1][0, 1] into [0,1][0, 1], i.e. dom⁡(f)=[0,1]\operatorname{dom}(f) = [0, 1] and f(x)∈[0,1]f(x) \in [0, 1] for all xx. Show ff has a fixed point: a point x0∈[0,1]x_0 \in [0, 1] with f(x0)=x0f(x_0) = x_0.

The graph of ff lies in the unit square, and the assertion is that it crosses the line y=xy = x, which is almost obvious. A rigorous proof uses a little trick. Consider g(x)=f(x)−xg(x) = f(x) - x, also continuous on [0,1][0, 1]. Since g(0)=f(0)≥0g(0) = f(0) \ge 0 and g(1)=f(1)−1≤0g(1) = f(1) - 1 \le 0, the Intermediate Value Theorem gives g(x0)=0g(x_0) = 0 for some x0∈[0,1]x_0 \in [0, 1]. Then f(x0)=x0f(x_0) = x_0.

Example 2.

Show that if y>0y > 0 and m∈Nm \in \mathbb{N}, then yy has a positive mmth root.

The function f(x)=xmf(x) = x^m is continuous (Exercise 17.5). There is b>0b > 0 with y≤bmy \le b^m: if y≤1y \le 1 let b=1b = 1, and if y>1y > 1 let b=yb = y. Thus f(0)<y≤f(b)f(0) < y \le f(b), and the Intermediate Value Theorem gives f(x)=yf(x) = y for some x∈(0,b]x \in (0, b]. So y=xmy = x^m and xx is an mmth root of yy.

Look more closely at f(x)=xmf(x) = x^m from Example 2. It is strictly increasing on [0,∞)[0, \infty):

0≤x1<x2impliesx1m<x2m.0 \le x_1 < x_2 \quad\text{implies}\quad x_1^m < x_2^m.

So ff is one-to-one and each nonnegative yy has exactly one nonnegative mmth root, which makes the notation y1/my^{1/m} unambiguous. In fact f−1(y)=y1/mf^{-1}(y) = y^{1/m} is the inverse function of ff: f−1∘f(x)=xf^{-1} \circ f(x) = x for x∈dom⁡(f)x \in \operatorname{dom}(f) and f∘f−1(y)=yf \circ f^{-1}(y) = y for y∈dom⁡(f−1)y \in \operatorname{dom}(f^{-1}). Since ff is continuous, f−1(y)=y1/mf^{-1}(y) = y^{1/m} is continuous on [0,∞)[0, \infty) by the next theorem. (For m=2m = 2 this is Exercise 17.4.)

18.4 Theorem.

Let ff be a continuous strictly increasing function on an interval II. Then f(I)f(I) is an interval JJ by Corollary 18.3, and f−1f^{-1} is a function with domain JJ. The function f−1f^{-1} is continuous and strictly increasing on JJ.

Used in Exercise 18.11

Proof

f−1f^{-1} is easily shown to be strictly increasing. Since f−1f^{-1} maps JJ onto II, the next theorem shows f−1f^{-1} is continuous.

∎

Intuition

A strictly increasing function can only be discontinuous by jumping, and a jump leaves a gap in its range. If the range is a whole interval there are no gaps, so there are no jumps. That is the content of Theorem 18.5, and Theorem 18.4 applies it to g=f−1g = f^{-1}.

18.5 Theorem.

Let gg be a strictly increasing function on an interval JJ such that g(J)g(J) is an interval II. Then gg is continuous on JJ.

Used in Exercise 18.11

Proof

Consider x0∈Jx_0 \in J, and assume x0x_0 is not an endpoint of JJ (tiny changes are needed otherwise). Then g(x0)g(x_0) is not an endpoint of II, so there is ε0>0\varepsilon_0 > 0 with (g(x0)−ε0,g(x0)+ε0)⊆I(g(x_0) - \varepsilon_0, g(x_0) + \varepsilon_0) \subseteq I.

Let ε>0\varepsilon > 0. Since we only need the ε–δ property of Theorem 17.2 for small ε, we may assume ε<ε0\varepsilon < \varepsilon_0. Then there are x1,x2∈Jx_1, x_2 \in J with g(x1)=g(x0)−εg(x_1) = g(x_0) - \varepsilon and g(x2)=g(x0)+εg(x_2) = g(x_0) + \varepsilon. Clearly x1<x0<x2x_1 < x_0 < x_2. If x1<x<x2x_1 < x < x_2, then g(x1)<g(x)<g(x2)g(x_1) < g(x) < g(x_2), so g(x0)−ε<g(x)<g(x0)+εg(x_0) - \varepsilon < g(x) < g(x_0) + \varepsilon, i.e. ∣g(x)−g(x0)∣<ε|g(x) - g(x_0)| < \varepsilon. Put δ=min⁡{x2−x0,x0−x1}\delta = \min\{x_2 - x_0, x_0 - x_1\}. Then ∣x−x0∣<δ|x - x_0| < \delta implies x1<x<x2x_1 < x < x_2, hence ∣g(x)−g(x0)∣<ε|g(x) - g(x_0)| < \varepsilon.

∎

Theorem 18.5 is a partial converse to the Intermediate Value Theorem: a strictly increasing function with the intermediate value property is continuous. However, Exercise 18.12 shows a function can have the intermediate value property without being continuous.

18.6 Theorem.

Let ff be a one-to-one continuous function on an interval II. Then ff is strictly increasing (x1<x2x_1 < x_2 implies f(x1)<f(x2)f(x_1) < f(x_2)) or strictly decreasing (x1<x2x_1 < x_2 implies f(x1)>f(x2)f(x_1) > f(x_2)).

Proof

First we show

if a<b<c in I, then f(b) lies between f(a) and f(c).(1)\text{if } a < b < c \text{ in } I, \text{ then } f(b) \text{ lies between } f(a) \text{ and } f(c). \tag{1}

If not, then, say, f(b)>max⁡{f(a),f(c)}f(b) > \max\{f(a), f(c)\}. Choose yy with f(b)>y>max⁡{f(a),f(c)}f(b) > y > \max\{f(a), f(c)\}. By the Intermediate Value Theorem applied to [a,b][a, b] and to [b,c][b, c], there are x1∈(a,b)x_1 \in (a, b) and x2∈(b,c)x_2 \in (b, c) with f(x1)=f(x2)=yf(x_1) = f(x_2) = y, contradicting that ff is one-to-one.

Now choose any a0<b0a_0 < b_0 in II and suppose, say, f(a0)<f(b0)f(a_0) < f(b_0). We show ff is strictly increasing on II. By (1),

f(x)<f(a0)for x<a0[since x<a0<b0],f(a0)<f(x)<f(b0)for a0<x<b0,f(b0)<f(x)for x>b0[since a0<b0<x].\begin{aligned} f(x) &< f(a_0) && \text{for } x < a_0 && [\text{since } x < a_0 < b_0], \\ f(a_0) < f(x) &< f(b_0) && \text{for } a_0 < x < b_0, \\ f(b_0) &< f(x) && \text{for } x > b_0 && [\text{since } a_0 < b_0 < x]. \end{aligned}

In particular,

f(x)<f(a0)for all x<a0,(2)f(a0)<f(x)for all x>a0.(3)\begin{aligned} f(x) &< f(a_0) \quad\text{for all } x < a_0, && (2) \\ f(a_0) &< f(x) \quad\text{for all } x > a_0. && (3) \end{aligned}

Consider any x1<x2x_1 < x_2 in II. If x1≤a0≤x2x_1 \le a_0 \le x_2, then f(x1)<f(x2)f(x_1) < f(x_2) by (2) and (3). If x1<x2<a0x_1 < x_2 < a_0, then f(x1)<f(a0)f(x_1) < f(a_0) by (2), so by (1) f(x1)<f(x2)f(x_1) < f(x_2). Finally, if a0<x1<x2a_0 < x_1 < x_2, then f(a0)<f(x2)f(a_0) < f(x_2), so by (1) f(x1)<f(x2)f(x_1) < f(x_2).

∎

Reading alongside Abbott

Abbott’s Section 4.4 proves the maximum–minimum theorem by showing that a continuous function maps compact sets to compact sets, and that a compact subset of R\mathbb{R} contains its supremum and infimum. Theorem 18.1’s proof is the same argument written out for [a,b][a, b] with sequences. Section 4.5 gives two proofs of the Intermediate Value Theorem: one through a supremum, as in Theorem 18.2, and one through repeated halving and the nested interval property, which is the bisection widget above made rigorous. Abbott also presents the theorem as an instance of a more general fact, that continuous functions map connected sets to connected sets. Ross returns to that viewpoint in §22.

The Intermediate Value Theorem comes from taking the supremum of the set where ff is still below yy. Arrange the argument.

Put the proof in order: Intermediate Value Theorem (Theorem 18.2)

These are the steps of the proof, shuffled. Use the buttons to move each step into place, then check.

  1. Assume f(a)<y<f(b)f(a) < y < f(b). (If instead f(a)>y>f(b)f(a) > y > f(b), apply the argument to −f-f and −y-y.) Let S={x∈[a,b]:f(x)<y}S = \{x \in [a, b] : f(x) < y\}.
  2. The set SS contains aa and is bounded above by bb, so x0=sup⁡Sx_0 = \sup S exists, and a≤x0≤ba \le x_0 \le b.
  3. First case, to be ruled out: f(x0)<yf(x_0) < y. Then x0≠bx_0 \ne b, and continuity keeps f<yf < y on a short interval to the right of x0x_0, which puts points of SS beyond x0x_0. That contradicts x0x_0 being an upper bound.
  4. Second case, to be ruled out: f(x0)>yf(x_0) > y. Then x0≠ax_0 \ne a, and continuity keeps f>yf > y on some interval (x0−δ,x0](x_0 - \delta, x_0], so x0−δx_0 - \delta is a smaller upper bound of SS. That contradicts x0x_0 being the least one.
  5. So f(x0)=yf(x_0) = y. Since f(a)<y<f(b)f(a) < y < f(b), the point x0x_0 is neither aa nor bb, so x0∈(a,b)x_0 \in (a, b).

The first half of Theorem 18.1: a continuous function on [a,b][a, b] is bounded. The gaps are the points where the argument uses completeness and closedness.

Fill in the gaps: Continuous on [a, b] implies bounded (Theorem 18.1)

This is the skeleton of the proof. In each gap choose the option that makes the argument work, then check.

  1. Suppose ff is continuous on [a,b][a, b] but not bounded. Then for each n∈Nn \in \mathbb{N} there is xn∈[a,b]x_n \in [a, b] with .
  2. The sequence (xn)(x_n) lies in [a,b][a, b], so it is bounded. By some subsequence xnkx_{n_k} converges, say to x0x_0.
  3. Since a≤xnk≤ba \le x_{n_k} \le b for all kk, the limit satisfies , so x0x_0 is in the domain of ff.
  4. By continuity at x0x_0, . But ∣f(xnk)∣>nk≥k|f(x_{n_k})| > n_k \ge k is unbounded. This contradiction proves that ff is bounded.

    The Intermediate Value Theorem is stated for an interval. Find where this argument forgets that.

    Spot the error: a function that changes sign

    One line of this argument is wrong. Press the button on the line you think is the mistake.

    1. Let f(x)=1xf(x) = \frac1x on its domain R∖{0}\mathbb{R} \setminus \{0\}. This function is continuous at every point of its domain.
    2. We have f(−1)=−1<0<1=f(1)f(-1) = -1 < 0 < 1 = f(1).
    3. By the Intermediate Value Theorem there is xx between −1-1 and 11 with f(x)=0f(x) = 0.

    Take the quiz (3 questions)

    f(x)=1xf(x) = \frac1x is continuous on (0,1](0, 1] but unbounded. Why doesn’t Theorem 18.1 apply?

    Let p(x)=x5+x−1p(x) = x^5 + x - 1. What does the Intermediate Value Theorem tell you?

    Can a continuous one-to-one function on [0,2][0, 2] have f(0)=0f(0) = 0, f(1)=2f(1) = 2 and f(2)=1f(2) = 1?

    Exercise 18.1

    Let ff be as in Theorem 18.1. Show that if −f-f assumes its maximum at x0∈[a,b]x_0 \in [a, b], then ff assumes its minimum at x0x_0.

    Solution

    Saying −f-f assumes its maximum at x0x_0 means −f(x0)≥−f(x)-f(x_0) \ge -f(x) for all x∈[a,b]x \in [a,b]. Multiplying by −1-1 reverses the inequality: f(x0)≤f(x)f(x_0) \le f(x) for all x∈[a,b]x \in [a,b]. So ff assumes its minimum at x0x_0.

    Tags: Warm-upIVT & EVT

    Used in Theorem 18.1

    Exercise 18.2

    Reread the proof of Theorem 18.1 with [a,b][a, b] replaced by (a,b)(a, b). Where does it break down? Discuss.

    Solution

    The limit x0x_0 of the Bolzano–Weierstrass subsequence lies in [a,b][a, b] but may be an endpoint, which is not in (a,b)(a, b), so continuity at x0x_0 cannot be used.

    Tags: Warm-upExplain why

    Exercise 18.3

    Use calculus to find the maximum and minimum of f(x)=x3−6x2+9x+1f(x) = x^3 - 6x^2 + 9x + 1 on [0,5)[0, 5).

    Solution

    f′(x)=3(x−1)(x−3)f'(x) = 3(x - 1)(x - 3). Candidates: f(0)=1f(0) = 1, f(1)=5f(1) = 5, f(3)=1f(3) = 1, and f(x)→21f(x) \to 21 as x→5x \to 5. The minimum is 11 (at 00 and 33); there is no maximum, since sup⁡=21\sup = 21 is not attained on [0,5)[0, 5).

    Tags: Warm-upComputation

    Exercise 18.4

    Let S⊆RS \subseteq \mathbb{R} and suppose there is a sequence (xn)(x_n) in SS converging to a number x0∉Sx_0 \notin S. Show there exists an unbounded continuous function on SS.

    Hint

    Try f(x)=1x−x0f(x) = \frac1{x - x_0}.

    Solution

    Define f(x)=1x−x0f(x) = \dfrac{1}{x - x_0} on SS. Since x0∉Sx_0 \notin S, the denominator never vanishes, so ff is a quotient of continuous functions with nonzero denominator and is continuous on SS. It is unbounded: given M>0M > 0, because xn→x0x_n \to x_0 and xn≠x0x_n \neq x_0 we can pick nn with 0<∣xn−x0∣<1/M0 < |x_n - x_0| < 1/M, and then ∣f(xn)∣>M|f(x_n)| > M.

    Tags: StandardExamples & counterexamplesSubsequences

    Exercise 18.5
    1. Let ff and gg be continuous on [a,b][a, b] with f(a)≥g(a)f(a) \ge g(a) and f(b)≤g(b)f(b) \le g(b). Prove f(x0)=g(x0)f(x_0) = g(x_0) for at least one x0x_0 in [a,b][a, b].
    2. Show Example 1 can be viewed as a special case of part (a).
    Hint

    Apply the Intermediate Value Theorem to f−gf - g.

    Solution
    1. Let h=f−gh = f - g, continuous on [a,b][a,b], with h(a)≥0≥h(b)h(a) \ge 0 \ge h(b). If h(a)=0h(a) = 0 or h(b)=0h(b) = 0 take x0=ax_0 = a or bb. Otherwise h(a)>0>h(b)h(a) > 0 > h(b), and the Intermediate Value Theorem with y=0y = 0 gives x0∈(a,b)x_0 \in (a,b) with h(x0)=0h(x_0) = 0, i.e. f(x0)=g(x0)f(x_0) = g(x_0).
    2. Take [a,b]=[0,1][a,b] = [0,1], g(x)=xg(x) = x. Since ff maps into [0,1][0,1], f(0)≥0=g(0)f(0) \ge 0 = g(0) and f(1)≤1=g(1)f(1) \le 1 = g(1), so (a) yields x0x_0 with f(x0)=x0f(x_0) = x_0.

    Tags: StandardIVT & EVT

    Exercise 18.6

    Prove x=cos⁡xx = \cos x for some xx in (0,π2)(0, \frac\pi2). (Find it numerically in the widget above.)

    Solution

    Let h(x)=x−cos⁡xh(x) = x - \cos x, continuous on [0,π2][0, \frac\pi2]. Then h(0)=−1<0h(0) = -1 < 0 and h(π2)=π2>0h(\frac\pi2) = \frac\pi2 > 0. By the Intermediate Value Theorem there is x∈(0,π2)x \in (0, \frac\pi2) with h(x)=0h(x) = 0, that is, x=cos⁡xx = \cos x.

    Tags: Warm-upIVT & EVT

    Exercise 18.7

    Prove xex=2x e^x = 2 for some xx in (0,1)(0, 1).

    Solution

    Let f(x)=xexf(x) = xe^x, continuous on [0,1][0,1] as a product of continuous functions. Since f(0)=0<2<e=f(1)f(0) = 0 < 2 < e = f(1), the Intermediate Value Theorem gives x∈(0,1)x \in (0,1) with f(x)=2f(x) = 2.

    Tags: Warm-upIVT & EVT

    Exercise 18.8

    Suppose ff is a real-valued continuous function on R\mathbb{R} and f(a)f(b)<0f(a)f(b) < 0 for some a,b∈Ra, b \in \mathbb{R}. Prove there exists xx between aa and bb such that f(x)=0f(x) = 0.

    Solution

    Since f(a)f(b)<0f(a)f(b) < 0, the numbers f(a)f(a) and f(b)f(b) are nonzero with opposite signs, so 00 lies between them, and a≠ba \neq b. Apply the Intermediate Value Theorem to ff on the interval with endpoints aa and bb, with y=0y = 0. It gives xx strictly between aa and bb with f(x)=0f(x) = 0.

    Tags: Warm-upIVT & EVT

    Used in Exercise 18.9

    Exercise 18.9

    Prove that a polynomial function ff of odd degree has at least one real root.

    Hint

    It may help to consider first the case of a cubic, f(x)=a0+a1x+a2x2+a3x3f(x) = a_0 + a_1 x + a_2 x^2 + a_3 x^3 with a3≠0a_3 \ne 0. For large ∣x∣|x| the leading term dominates, so ff takes both signs.

    Solution

    Let f(x)=a0+a1x+⋯+anxnf(x) = a_0 + a_1x + \cdots + a_nx^n with nn odd and an≠0a_n \neq 0. Replacing ff by −f-f if necessary (same roots) we may assume an>0a_n > 0. Let S=∣a0∣+⋯+∣an−1∣S = |a_0| + \cdots + |a_{n-1}| and R=max⁡{1,2S/an}+1R = \max\{1, 2S/a_n\} + 1, so R>1R > 1 and anR>2Sa_n R > 2S. For ∣x∣=R|x| = R, ∣a0+⋯+an−1xn−1∣≤SRn−1<12anRn.|a_0 + \cdots + a_{n-1}x^{n-1}| \le S R^{n-1} < \tfrac12 a_n R^n . Hence f(R)≥anRn−SRn−1>12anRn>0f(R) \ge a_nR^n - SR^{n-1} > \tfrac12 a_nR^n > 0. Because nn is odd, (−R)n=−Rn(-R)^n = -R^n, so f(−R)≤−anRn+SRn−1<0f(-R) \le -a_nR^n + SR^{n-1} < 0. Now ff is continuous (Exercise 17.5), and by Exercise 18.8 (or the Intermediate Value Theorem) ff has a root in (−R,R)(-R, R).

    Tags: StandardIVT & EVT

    Exercise 18.10

    Suppose ff is continuous on [0,2][0, 2] and f(0)=f(2)f(0) = f(2). Prove there exist x,yx, y in [0,2][0, 2] such that ∣y−x∣=1|y - x| = 1 and f(x)=f(y)f(x) = f(y).

    Hint

    Consider g(x)=f(x+1)−f(x)g(x) = f(x + 1) - f(x) on [0,1][0, 1]; note g(0)=−g(1)g(0) = -g(1).

    Solution

    Define g(x)=f(x+1)−f(x)g(x) = f(x+1) - f(x) on [0,1][0,1]; it is continuous and g(0)=f(1)−f(0),g(1)=f(2)−f(1)=f(0)−f(1)=−g(0).g(0) = f(1) - f(0), \qquad g(1) = f(2) - f(1) = f(0) - f(1) = -g(0). If g(0)=0g(0) = 0, take x=0x = 0, y=1y = 1. Otherwise g(0)g(0) and g(1)g(1) have opposite signs, so by the Intermediate Value Theorem g(x)=0g(x) = 0 for some x∈(0,1)x \in (0,1). In either case there is x∈[0,1]x \in [0,1] with f(x+1)=f(x)f(x+1) = f(x); put y=x+1∈[1,2]y = x + 1 \in [1,2]. Then ∣y−x∣=1|y - x| = 1 and f(x)=f(y)f(x) = f(y).

    Tags: ChallengeIVT & EVT

    Exercise 18.11
    1. Show that if ff is strictly increasing on an interval II, then −f-f is strictly decreasing on II.
    2. State and prove Theorems 18.4 and 18.5 for strictly decreasing functions.
    Solution
    1. If x1<x2x_1 < x_2 in II then f(x1)<f(x2)f(x_1) < f(x_2), so −f(x1)>−f(x2)-f(x_1) > -f(x_2). Thus −f-f is strictly decreasing.

    2. Theorem 18.4 for decreasing ff. Let ff be continuous and strictly decreasing on II. By Corollary 18.3, J=f(I)J = f(I) is an interval. Put g=−fg = -f: it is continuous and strictly increasing on II by (a) and Theorem 17.3, so g−1g^{-1} is continuous and strictly increasing on g(I)=−Jg(I) = -J by Theorem 18.4. Since f−1(y)=g−1(−y)f^{-1}(y) = g^{-1}(-y) for y∈Jy \in J, the inverse f−1f^{-1} is a composite of the continuous map y↦−yy \mapsto -y and g−1g^{-1}, hence continuous. It is strictly decreasing: y1<y2y_1 < y_2 gives −y1>−y2-y_1 > -y_2, so g−1(−y1)>g−1(−y2)g^{-1}(-y_1) > g^{-1}(-y_2).

      Theorem 18.5 for decreasing gg. Let gg be strictly decreasing on an interval JJ with g(J)g(J) an interval. Then −g-g is strictly increasing on JJ and (−g)(J)=−g(J)(-g)(J) = -g(J) is an interval, so −g-g is continuous by Theorem 18.5. Thus g=−(−g)g = -(-g) is continuous by Theorem 17.3.

    Tags: StandardIVT & EVT

    Exercise 18.12

    Let f(x)=sin⁡(1x)f(x) = \sin\left(\frac1x\right) for x≠0x \ne 0 and f(0)=0f(0) = 0.

    1. Observe that ff is discontinuous at 00 by Exercise 17.10(b).
    2. Show ff has the intermediate value property on R\mathbb{R}.
    Hint

    For (b), if an interval [a,b][a, b] contains 00 (and a<ba < b), then on the nonzero side ff takes every value in [−1,1][-1, 1].

    Solution
    1. This is Exercise 17.10(b).

    2. Note ∣f∣≤1|f| \le 1 everywhere. Let a<ba < b and let yy lie between f(a)f(a) and f(b)f(b); then y∈[−1,1]y \in [-1, 1].

      If 0∉[a,b]0 \notin [a,b], then f(x)=sin⁡(1/x)f(x) = \sin(1/x) is continuous on [a,b][a,b] (a composite of continuous functions), and the Intermediate Value Theorem applies.

      If 0∈[a,b]0 \in [a,b], then (a,b)(a,b) contains an interval (0,c)(0, c) or (−c,0)(-c, 0) for some c>0c > 0. Take the first case (the second is symmetric, using −1/x-1/x). As xx runs over (0,c)(0,c), 1/x1/x runs over (1/c,∞)(1/c, \infty), which contains a closed interval of length 2π2\pi, say [t,t+2π][t, t + 2\pi]. On that interval sin⁡\sin is continuous and takes both the values 11 and −1-1 (a full period), so by the Intermediate Value Theorem it takes the value yy at some s∈[t,t+2π]s \in [t, t+2\pi]. Then x=1/s∈(0,c)⊆(a,b)x = 1/s \in (0, c) \subseteq (a,b) and f(x)=yf(x) = y.

    Tags: ChallengeIVT & EVTSequences & continuity

    Keyboard shortcuts

    Single-key shortcuts
    KeyAction
    nNext section
    pPrevious section
    jNext exercise
    kPrevious exercise
    hShow or hide all hints
    sShow or hide all solutions
    /Search
    ?Show this list
    Ctrl K or ⌘ KSearch (built in)
    EscClose a dialog

    Shortcuts never fire while you type in a text field or hold Ctrl, Alt or ⌘. Screen reader users in browse mode can press the keys after switching to focus mode, or turn them off here.