This is an exercise from my lecture on functional analysis. Let $$E := \{ u ∈ C^0 ([0, 1]) : u(0) = 0 \}, \quad \|·\| := \|·\|_\infty$$ and $$\ f : E \longrightarrow\mathbb{R}, \quad f(u) := \int_{0}^{1} u(t) dt $$ Let $M$ be the set $$M := \{u ∈ E : f(u) = 0 \}$$ I was able to prove that $\|f\|_{E'}=1$ and $\text{dist}(u,M)=|f(u)|$. I have to prove that for given $u \in E \setminus M$, there is no $u' \in M$ such that $\text{dist}(u, M) = \|u − u'\|_\infty$.
My attempt
By contradiction if exists $u'$ such that $\|u − u'\|_∞= \left|\int_{0}^{1} u(t)dt\right|$ then I want to show that $u(x)=u'(x)$ for every $x \in [0,1]$, that is of course a contradiction. Any idea or hint to conclude?
Thank you for the help.