Assume without loss of generality that f(a)<y<f(b). (If f(a)>y>f(b), apply the result to βf.)
Construction of S: Define
S={xβ[a,b]β£f(x)<y}.
Step 1: S is nonempty and bounded above.
- Since f(a)<y, we have aβS, so Sξ =β
.
- Since Sβ[a,b], S is bounded above by b.
Step 2: By completeness, c=supS exists, and aβ€cβ€b.
Step 3: We show f(c)=y by eliminating the cases f(c)<y and f(c)>y.
Case 1: f(c)<y leads to contradiction.
Suppose f(c)<y. Let Ο΅=yβf(c)>0. Since f is continuous at c, there exists Ξ΄>0 such that
β£xβcβ£<Ξ΄andxβ[a,b]βΉβ£f(x)βf(c)β£<Ο΅/2.
In particular, for xβ(c,c+Ξ΄)β©[a,b],
f(x)<f(c)+Ο΅/2=f(c)+2yβf(c)β=2f(c)+yβ<y.
Thus f(x)<y for all xβ(c,c+Ξ΄)β©[a,b]. This means that all points in (c,c+Ξ΄)β©[a,b] belong to S.
Choose x0β=min(c+Ξ΄/2,b)>c. Since x0ββS, we have x0ββ€supS=c, contradiction. Thus f(c)ξ <y.
Case 2: f(c)>y leads to contradiction.
Suppose f(c)>y. Let Ο΅=f(c)βy>0. By continuity at c, there exists Ξ΄>0 such that
β£xβcβ£<Ξ΄andxβ[a,b]βΉβ£f(x)βf(c)β£<Ο΅/2.
For xβ(cβΞ΄,c)β©[a,b],
f(x)>f(c)βΟ΅/2=f(c)β2f(c)βyβ=2f(c)+yβ>y.
Thus f(x)>y for all xβ(cβΞ΄,c). This means that no points in (cβΞ΄,c) belong to S (since f(x)>y means xβ/S).
Therefore, cβΞ΄ is an upper bound for S (any xβS with x>cβΞ΄ would satisfy xβ₯c, contradicting xβ(cβΞ΄,c)). But cβΞ΄<c=supS, contradicting the definition of supremum. Thus f(c)ξ >y.
Conclusion: Since f(c)ξ <y and f(c)ξ >y, we must have f(c)=y.