I'm not exactly sure how the intermediate value theorem can be applied to the following question especially with the defined function $g(x)$ which is provided below.
Using the intermediate value theorem with $g(x)=f(x)-x$ and suppose $f:[0,b] \to [0,b]$ is continuous. Prove there is at least one $c \in [0,b]$ such that $f(c)=c$.
Thanks
If $f(0)=0$, then $g(0)=f(0)-0=0$, so $x=0$ is the root of $g(x)=0$,. Next if $f(b)=b$ then $g(b)=b-b=0$, so $x=b$ is a root of $g(x)=0$. In other cases $g(0)=f(0)-0 >0, g(b)=f(b)-b <0$, so by IVT it follows that $g(x)=0$ has a root in (0,b)$.