Exercise 3.4.14 Introduction to Real Analysis by Jiri Lebl 
Suppose for $f: [0,1] \to R$, we have $|f(x) - f(y) | \le K |x-y|$, and $f(0)= f(1) = 0$. Prove that $|f(x)| \le K/2$. Further show by example that $K/2$ is the best possible, that is, there exists such a continuous function for which $|f(x)| = K/2$ for some $x \in [0 ,1]$. 

I am trying to find $x$ and $y$ that satisfy $|f(x)| \le K/2$, but I constantly fails. Can you give some help? I also appreciate if you give some hint for the second part of the question (Further show ~). 

Hint: for any $x \in [0,1]$ either $x$ is closer to $0$ or $x$ is closer to $1$. If $y \in \{0,1\}$ is the closer endpoint then $|x - y| \le 1/2$.
Hint2: $|f(x) - f(0)| = |f(x)| \le K|x|$. To make this an equality, we need $f(x) = \pm Kx$ for any suitable $x$. Don't forget about the condition $f(1) = 0$—if you can do the first hint you may have an idea what I mean by "suitable" $x$.
