Intermediate Value Theorem. Let $f : [a, b] → R$ be continuous and suppose that $u$ lies between $f(a)$ and $f(b)$. Then there is a point $c$ between $a$ and $b$ where $f(c) = u$.
Proof part 1:
*Assume that $f(a) < u < f(b)$ and let $A$ be the set $\{x \in [a, b] : f(x) ≤ u\}.$ This set is non-empty since it contains $a$ and is bounded above by $b.$ Let $s$ be its least upper bound. The aim is to show that $f(s) = u$. *
Why are we trying to show $f(s)=u$? I understand that the value $u$ needs to have some value $c$ assigned to it between $a$ and $b$ but why does the supremum $s$ matter here. I have looked at the whole proof by the way but to start with I don't understand this. Also what does $f(x)≤u$ mean here I don't understand the use of it.
We have to show that such $c$ exists. The proof says that $s_1:=\sup\{x \in [a, b] : f(x) \leq u\}$, which is explicit real number contained in $(a,b)$, is a candidate for $c$. Another possible candidate could be $s_2:=\inf\{x \in [a, b] : u\leq f(x)\}$. Now that we have a candidate we have "only" to verify that it satisfies the required property, i.e. $f(s_1)=u$ or $f(s_2)=u$ (note that $c$ may be not unique).