Salta al contenuto
Note per Studenti Continuous Functions on Intervals Report

Continuous Functions on Intervals

In questa pagina 7

Prerequisites: Continuity and DiscontinuitiesDefinition of a continuous function at a point and on a set, continuity of the elementary functions, classification of discontinuities (jump, essential, removable) and extension by continuity.Continuity and Discontinuities →, Limits of Sequences - Definition, Subsequences and Monotone SequencesThe epsilon definition of the limit of a sequence (finite and infinite), uniqueness, boundedness of convergent sequences, subsequences and the non-existence criterion, and the limit of monotone sequences.Limits of Sequences - Definition, Subsequences and Monotone Sequences → (monotone sequences), Limits of Functions - Definition and TheoremsNeighbourhoods, accumulation points and the epsilon-delta definition of the limit of a function in all cases, one-sided limits, the bridge theorem with sequences, the main limit theorems and the change of variable in limits.Limits of Functions - Definition and Theorems → (permanence of sign, monotone functions).

Functions continuous on an interval have strong global properties: they cannot "jump" from one value to another without passing through all intermediate values.

Zeros theorem

Theorem. Let f:[a,b]→Rf : [a,b] \to \mathbb{R} be continuous. If f(a)⋅f(b)<0f(a)\cdot f(b) < 0 (opposite signs), there is c∈(a,b)c \in (a,b) with f(c)=0f(c) = 0.

Example: f(x)=x3+x−1f(x) = x^3 + x - 1 on [0,1][0,1]: f(0)=−1<0<1=f(1)f(0) = -1 < 0 < 1 = f(1), so there is a zero in (0,1)(0,1). Graphically the graph starts below the axis and ends above, so it must cross it. If ff is also strictly monotone the zero is unique (strictly monotone implies injective); otherwise there may be several.

The hypotheses are essential.

  • An interval is needed: ff continuous on [a,a1]∪[b1,b][a,a_1] \cup [b_1,b], negative on the first piece and positive on the second, has f(a)<0<f(b)f(a) < 0 < f(b) but never vanishes (the gap lets it skip the zero).
  • Continuity is needed: a function equal to −1-1 for x<x0x < x_0 and 11 for x≥x0x \ge x_0 has f(a)<0<f(b)f(a) < 0 < f(b) and no zero.

More general versions. If f:(a,b)→Rf : (a,b) \to \mathbb{R} is continuous (a,ba, b possibly infinite) and f(a+)⋅f(b−)<0f(a^+)\cdot f(b^-) < 0 (limits at the ends of opposite signs, possibly infinite), there is c∈(a,b)c \in (a,b) with f(c)=0f(c) = 0. In particular if f:R→Rf : \mathbb{R} \to \mathbb{R} is continuous with f(−∞)f(+∞)<0f(-\infty)f(+\infty) < 0 it has a zero; every polynomial of odd degree has at least one real zero. (Idea: by permanence of sign there are a′<b′a' < b' with f(a′),f(b′)f(a'), f(b') of opposite signs; apply the theorem on [a′,b′][a',b'].)

Proof: the bisection method

Suppose f(a)<0<f(b)f(a) < 0 < f(b) (the other case is the same with signs swapped). Halve the interval repeatedly, keeping the half where ff changes sign.

Step 1. Take c1=a+b2c_1 = \frac{a+b}2. If f(c1)=0f(c_1) = 0 we are done. If f(c1)>0f(c_1) > 0 keep [a,c1][a,c_1]; if f(c1)<0f(c_1) < 0 keep [c1,b][c_1,b]. The new interval [a1,b1][a_1,b_1] has a≤a1<b1≤ba \le a_1 < b_1 \le b, f(a1)<0<f(b1)f(a_1) < 0 < f(b_1) and b1−a1=b−a2b_1 - a_1 = \frac{b-a}2. Step nn. Unless a midpoint gives zero, we get

  • (a) a≤a1≤⋯≤an<bn≤⋯≤b1≤ba \le a_1 \le \dots \le a_n < b_n \le \dots \le b_1 \le b;
  • (b) f(an)<0f(a_n) < 0, f(bn)>0f(b_n) > 0;
  • (c) bn−an=b−a2nb_n - a_n = \frac{b-a}{2^n}.

By (a), (an)(a_n) is increasing and bounded, hence converges to some c1∈[a,b]c_1 \in [a,b]; (bn)(b_n) is decreasing and bounded, so bn→c2∈[a,b]b_n \to c_2 \in [a,b] (monotone theorem, and permanence of sign for the location). By (c), bn−an→0b_n - a_n \to 0 but also →c2−c1\to c_2 - c_1, so c1=c2=:cc_1 = c_2 =: c. Since ff is continuous at cc, f(an)→f(c)f(a_n) \to f(c) and f(bn)→f(c)f(b_n) \to f(c). By (b) and permanence of sign (second form): f(c)=lim⁡f(an)≤0f(c) = \lim f(a_n) \le 0 and f(c)=lim⁡f(bn)≥0f(c) = \lim f(b_n) \ge 0. So f(c)=0f(c) = 0, and c≠a,bc \ne a, b because f(a)<0<f(b)f(a) < 0 < f(b): c∈(a,b)c \in (a,b). ■\blacksquare

The method is also an algorithm: after nn steps the zero lies in an interval of length b−a2n\frac{b-a}{2^n} (with 1010 steps the error is below b−a1024\frac{b-a}{1024}). Applied to f(x)−xf(x) - x it gives the existence of a fixed point of a continuous f:[a,b]→[a,b]f : [a,b] \to [a,b].

Intermediate value theorem

Theorem. Let II be any interval (also unbounded, also R\mathbb{R}) and f:I→Rf : I \to \mathbb{R} continuous. Then:

  1. ff takes every value between inf⁡If\inf_If and sup⁡If\sup_If: for each y∈(inf⁡If,sup⁡If)y \in (\inf_If, \sup_If) there is c∈Ic \in I with f(c)=yf(c) = y;
  2. f(I)f(I) is an interval with endpoints inf⁡If\inf_If and sup⁡If\sup_If (open, closed or half-open as the case may be);
  3. in short: a continuous function maps intervals to intervals.

Example: x2x^2 on [0,2][0,2] has inf⁡=0\inf = 0, sup⁡=4\sup = 4 and f([0,2])=[0,4]f([0,2]) = [0,4].

Proof of 1 (2 and 3 follow). Fix yy with inf⁡f<y<sup⁡f\inf f < y < \sup f. Step 1: there are x1,x2∈Ix_1, x_2 \in I with f(x1)<y<f(x2)f(x_1) < y < f(x_2): by the second property of the inf, for each ε\varepsilon there is x1x_1 with f(x1)<inf⁡f+εf(x_1) < \inf f + \varepsilon, and choosing ε\varepsilon with inf⁡f+ε<y\inf f + \varepsilon < y gives f(x1)<yf(x_1) < y (if inf⁡f=−∞\inf f = -\infty such x1x_1 exists a fortiori); likewise for the sup. Step 2: suppose x1<x2x_1 < x_2 and let g(x)=f(x)−yg(x) = f(x) - y on [x1,x2][x_1,x_2]: continuous, g(x1)<0<g(x2)g(x_1) < 0 < g(x_2). By the zeros theorem there is c∈(x1,x2)c \in (x_1,x_2) with g(c)=0g(c) = 0, i.e. f(c)=yf(c) = y. ■\blacksquare

Graphical method. f(x)=af(x) = a has a solution iff the line y=ay = a meets the graph; for ff continuous on an interval this happens for every aa between inf⁡f\inf f and sup⁡f\sup f.

Continuity and monotonicity

From the theorem on limits of monotone functions: if ff is increasing and x0x_0 is interior, f(x0−)≤f(x0)≤f(x0+)f(x_0^-) \le f(x_0) \le f(x_0^+) are finite.

Corollary. Let f:I→Rf : I \to \mathbb{R} be monotone on an interval II. Then:

  1. at every interior x0x_0, ff is continuous or has a first-kind discontinuity (a jump);
  2. ff is continuous on II   ⟺  \iff f(I)f(I) is an interval.

Example: the integer part [x][x] is increasing with a jump of 11 at every integer, and f(R)=Zf(\mathbb{R}) = \mathbb{Z} is not an interval. Why 2: "⇒\Rightarrow" is the intermediate value theorem (no monotonicity needed); "⇐\Leftarrow": a jump at x0x_0 would leave a hole in the image (the values in [f(x0−),f(x0+)][f(x_0^-), f(x_0^+)] other than f(x0)f(x_0) are not taken). For a monotone function it suffices to check that the image is an interval: this proves the continuity of some elementary functions, e.g. axa^x (a>0a > 0, a≠1a \ne 1) is strictly monotone on R\mathbb{R} with image (0,+∞)(0,+\infty) (every y>0y > 0 is alog⁡aya^{\log_ay}), an interval, hence continuous.

Continuity of the inverse

Theorem. Let f:I→Rf : I \to \mathbb{R} be continuous on an interval II. Then:

  1. ff is invertible (injective)   ⟺  \iff ff is strictly monotone on II;
  2. if invertible, f−1:f(I)→If^{-1} : f(I) \to I is also continuous.

Example: exe^x is continuous and strictly increasing on R\mathbb{R}, so its inverse log⁡:(0,+∞)→R\log : (0,+\infty) \to \mathbb{R} is continuous. In 1, strictly monotone implies injective always; the news is the converse for functions continuous on an interval. Without continuity it fails: f(x)=1xf(x) = \frac1x (x>0x > 0), f(x)=xf(x) = x (x≤0x \le 0) is bijective on R\mathbb{R} but not monotone (and has a jump at 00). Proof of 2. f(I)f(I) is an interval (intermediate values); ff is strictly monotone by 1, hence so is f−1f^{-1} on f(I)f(I); the image of f−1f^{-1} is the interval II; by the corollary applied to the monotone f−1f^{-1}, it is continuous. ■\blacksquare

Consequence: the inverses of elementary functions (log⁡a\log_a, arcsin⁡\arcsin, arccos⁡\arccos, arctan⁡\arctan, inverse hyperbolics) are continuous. Careful: the image of an interval is an interval of any type: log⁡((0,+∞))=R\log((0,+\infty)) = \mathbb{R}; arctan⁡(R)=(−π2,π2)\arctan(\mathbb{R}) = (-\frac\pi2,\frac\pi2); arcsin⁡([−1,1])=[−π2,π2]\arcsin([-1,1]) = [-\frac\pi2,\frac\pi2]. Closed bounded intervals, however, always go to closed bounded intervals:

Weierstrass theorem

Theorem. Let f:[a,b]→Rf : [a,b] \to \mathbb{R} be continuous on the closed bounded interval [a,b][a,b]. Then:

  1. ff has a minimum mm and a maximum MM: there are x1,x2∈[a,b]x_1, x_2 \in [a,b] with m=f(x1)≤f(x)≤f(x2)=Mm = f(x_1) \le f(x) \le f(x_2) = M for all x∈[a,b]x \in [a,b];
  2. f([a,b])=[m,M]f([a,b]) = [m,M];
  3. a continuous function maps closed bounded intervals to closed bounded intervals.

Example: x2x^2 on [−1,2][-1,2]: min 00 (at 00), max 44 (at 22), image [0,4][0,4]. (A closed bounded interval is also called compact.)

The hypotheses are essential. (1) ff discontinuous: the fractional part f(x)=x−[x]f(x) = x - [x] on [0,1][0,1] equals xx for x<1x < 1 and f(1)=0f(1) = 0; the image is [0,1)[0,1), no maximum. (2) Interval not closed: 1x\frac1x on (0,1](0,1] is continuous but its image is [1,+∞)[1,+\infty): unbounded, no max. (3) Interval unbounded: arctan⁡\arctan on R\mathbb{R} has image (−π2,π2)(-\frac\pi2,\frac\pi2): neither max nor min.

Summary

Theorem Hypothesis Conclusion
zeros ff continuous on [a,b][a,b], f(a)f(b)<0f(a)f(b) < 0 ∃c∈(a,b)\exists c \in (a,b), f(c)=0f(c) = 0
intermediate values ff continuous on an interval II f(I)f(I) is an interval
monotonicity ff monotone on II continuous   ⟺  \iff f(I)f(I) interval
inverse ff continuous and invertible on II ff strictly monotone, f−1f^{-1} continuous
Weierstrass ff continuous on [a,b][a,b] min and max exist, f([a,b])=[m,M]f([a,b]) = [m,M]

Common mistakes

  • Applying a theorem without checking continuity on the whole interval (1x\frac1x on [−1,1][-1,1] changes sign but never vanishes, since it is not defined at 00).
  • Concluding the zero is unique without strict monotonicity.
  • Looking for the zero at the endpoints: the theorem gives cc interior to (a,b)(a,b).

Versione ripasso

Zeros theorem. ff continuous on [a,b][a,b], f(a)f(b)<0⇒∃c∈(a,b)f(a)f(b) < 0 \Rightarrow \exists c \in (a,b) with f(c)=0f(c) = 0. Example: x3+x−1x^3 + x - 1 on [0,1][0,1] (−1<0<1-1 < 0 < 1). Unique if ff strictly monotone. Hypotheses essential: an interval (a gap lets the zero be skipped) and continuity (a jump skips it). General version: ff continuous on (a,b)(a,b) with f(a+)f(b−)<0f(a^+)f(b^-) < 0; odd-degree polynomials have a real zero.

Proof (bisection). For f(a)<0<f(b)f(a) < 0 < f(b) take midpoints, keeping the half with sign change: get (an)(a_n) increasing, (bn)(b_n) decreasing, bn−an=b−a2n→0b_n - a_n = \frac{b-a}{2^n} \to 0, same limit cc. Continuity: f(c)=lim⁡f(an)≤0f(c) = \lim f(a_n) \le 0 and f(c)=lim⁡f(bn)≥0f(c) = \lim f(b_n) \ge 0, so f(c)=0f(c) = 0; c≠a,bc \ne a, b. Algorithm: error ≤b−a2n\le \frac{b-a}{2^n}. Applied to f(x)−xf(x) - x: fixed points.

Intermediate values. ff continuous on an interval II: ff takes every value between inf⁡If\inf_If and sup⁡If\sup_If, f(I)f(I) is an interval (intervals go to intervals; x2x^2 on [0,2][0,2] gives [0,4][0,4]). Proof: pick x1,x2x_1, x_2 with f(x1)<y<f(x2)f(x_1) < y < f(x_2) (inf/sup property), apply zeros to f−yf - y.

Monotone functions on an interval II: at interior points continuous or first-kind jump; ff continuous   ⟺  \iff f(I)f(I) is an interval ([x][x] is not: image Z\mathbb{Z}; axa^x is, image (0,+∞)(0,+\infty)).

Inverse. ff continuous on interval II: invertible   ⟺  \iff strictly monotone; then f−1f^{-1} is continuous (its image II is an interval and it is monotone). Without continuity false (1x\frac1x for x>0x > 0, xx for x≤0x \le 0). Images of intervals can change type: log⁡((0,+∞))=R\log((0,+\infty)) = \mathbb{R}, arctan⁡(R)=(−π2,π2)\arctan(\mathbb{R}) = (-\frac\pi2,\frac\pi2).

Weierstrass. ff continuous on [a,b][a,b] closed bounded: min mm and max MM exist, f([a,b])=[m,M]f([a,b]) = [m,M]. x2x^2 on [−1,2][-1,2]: 00 and 44. Essential hypotheses: discontinuity (x−[x]x - [x] on [0,1][0,1], image [0,1)[0,1)); not closed (1x\frac1x on (0,1](0,1], unbounded); unbounded interval (arctan⁡\arctan on R\mathbb{R}).

Theorem Hypothesis Conclusion
zeros continuous on [a,b][a,b], f(a)f(b)<0f(a)f(b) < 0 zero in (a,b)(a,b)
intermediate values continuous on interval image is an interval
inverse continuous, invertible on II strictly monotone, f−1f^{-1} continuous
Weierstrass continuous on [a,b][a,b] min and max

Mistakes: not checking continuity on the whole interval (1x\frac1x on [−1,1][-1,1]); unique zero without strict monotonicity; zero at the endpoints (it is interior).

Teoria collegata