- f is continuous on a closed interval
- ∴ there is an absolute max or min on that interval
Proof
- Suppose f is continuous on closed interval [a,b]
- by Boundedness Theorem, f is bounded on [a,b]
- by Completeness Axiom, f has a supremum and infimum
- Let sup(range(f))=M
- Then, ∀f(x)∈range(f),f(x)≤M
- Let inf(range(f))m
- Then, ∀f(x)∈range(f),f(x)≥m
- Suppose for sake of contradiction that ∀x∈[a,b],f(x)=M
- Then, this means that ∀f(x)∈range(f),f(x)<M
- Then M−f(x)>0
- This means g(x)=M−f(x)1>0
- Note that g(x) is continuous as f(x) is cont by Continuity Theorem
- Then g(x) is bounded by Boundedness Theorem
- Then, there exists a upper bound K>0 and K≥g(x)
- This means K≥M−f(x)1
- This means K1≥M−f(x)
- This means f(x)≤M−k1
- This contradicts that M is the least upper bound
- Thus, ∃x∈[a,b],f(x)=M
- Suppose for sake of contradiciton that ∀x∈[a,b],f(x)=m
- Then, this means that ∀f(x)∈range(f),f(x)>M
- Then M−f(x)<0
- This means g(x)=m−f(x)1<0
- Note that g(x) is continuous as f(x) is cont by Continuity Theorem
- Then g(x) is bounded by Boundedness Theorem
- Then, there exists a upper bound K>0 and K≤g(x)
- This means K≤m−f(x)1
- This means K1≤m−f(x)
- This means f(x)≥m−k1
- This contradicts that m is the greatest lower bound
- Thus, ∃x∈[a,b],f(x)=m
- Thus, there exists M and m that are attainable by x∈[a,b] so f(x) is guaranteed a local minima/maxima