Why and how do we come up with sup of something to prove this Intermediate Value Theorem? I understand the proof mechanically by following step by step, but I do not really see how from the statement of IVT :Let :[,]→ℝ be continuous and ()<0 and ()>0, then there exists a ∈(,) such that ()=0, we suddenly define something such as a sup to proof it. Please feel free to give me another proof to the IVT but I have read many of the proofs and the concept in each one seems to be arbitrary in everyone of them.
Here is the proof given by Cancan Is there a short proof for the Intermediate Value Theorem ( I included the link and the proof that he wrote as I got downvoted as someone asked me not to put links in my questions)
Proof:
Define ={:()≤} (⋆), and claim ()=
Assum ∈(−+,+),>0 ( is in the neighborhood of )
By definition of continuity ∀>0,|()−()|<⇒−+()<()<()+
In the following, we will manipulate both side of this inequality and prove the intermediate value theorem by contradiction:
1.If ()>, then ()−>0, so set =()−⇒()>()−=()−(()−)=(use the left side of the inequality ) ⇒∀∈(−+,+),()>, so it means that (−) is the least upper bound of the set {:()≤}, which contradicts with the definition of (also a least upper bound and it's not possible to have 2 least upper bounds at the same time.)
2.If ()<, then −()>0,so set =−()⇒()<()+=()+(−())=(use the right side of the inequality)⇒∀∈(−+,+),()<. This means that there exist > such that ()<, which contradicts with the definition of again. (because is the sup of the set {:()≤})
If you set =0, then it's the answer of your question. Hope this can help.