Let $X=\{f\in C[0,1]:f(0)=0\}$ with the sup-norm and $Y=\{f\in X:\int _0^1 f=0\}$
Show that there exists no $f_0\in X$ such that $||f_0||=1$ and $\text{dist}(f_0,Y)=1$.
Suppose such a $f_0$ exists then $||f_0||=1\implies \sup \{f_0(x):x\in [0,1]\}=1$ and $\inf\{||f_0-f||:f\in Y\}=1$
Then $\forall f $ with $\int f=0$ we have $\sup\{ |f_0(x)-f(x)|,x\in [0,1]\}\ge 1$
Then $\forall f $ with $\int f=0$ there exists $x_0$ depending on $f$ such that $|f_0(x)-f(x)|\ge 1$
Also $\sup \{|f_0(x)|:x\in [0,1]\}=1\implies \exists x_0$ such that $f_0(x_0)=1$.
I am unable to use the above information to find such a $f_0$ does not exist.Can someone please help?
You can prove that if $\Vert f_0\Vert=1$, then there is $f\in Y$ with $\Vert f_0-f\Vert<1$. Below is a way to do it.
Since $f_0(0)=0$, then there is an interval $[0,\epsilon)$ around zero on which $|f_0|<1/2$. Then $|f_0(\epsilon)|\leq1/2$.
In order to guarantee that the function $f$ we will construct will satisfy $\Vert f-f_0\Vert<1$, we just make $f$ "a little positive" when $f_0=1$ and "a little negative" when $f_0=-1$. So choose a small, but positive, $\delta$ (how small will be specified later). Let $n:[-1,1]\to[-\delta,\delta]$ be given by $$n(x)=\begin{cases} x+1-\delta&\text{ if }-1\leq x\leq -1+\delta\\ 0&\text{ if }-1+\delta\leq x\leq 1-\delta\\ x-1+\delta&\text{ if }1-\delta\leq x\leq 1\end{cases}$$ This function $n$ is "a little positive around $1$" and "a little negative" around $-1$. Anyway, define $f(x)=n(f_0(x))$ for all $x\in[\epsilon,1]$. You can then prove that $|f(x)-f_0(x)|\leq 1-\delta$ for all $x\in[\epsilon,1]$.
As long as $\delta<1/2$, we also have $f(\epsilon)=0$. I'll assume this from now on, because $\delta$ can be initially taken very small.
Now we need to define $f$ on $[0,\epsilon]$, in a way that $f\in Y$. We will define $f$ as a "spike". If we choose $c\in\mathbb{R}$, define $f:[0,\epsilon]\to\mathbb{R}$ in such a way that:
Then the integral $\int_0^\epsilon f(x)dx$ is simply the area of the triangle of basis $\epsilon$ and heigth $c$, so it is equal to $c\epsilon/2$.
We need to guarantee that $\int_0^1f(x)dx=0$. So we want that \begin{align*} \int_0^\epsilon f(x)dx+\int_\epsilon^1f(x)dx&=0\\ \epsilon c/2=-\int_\epsilon^1f(x)dx \end{align*} thus we choose $$c=-2\int_\epsilon^1f(x)dx/\epsilon$$
Note that
$$|c|\leq \frac{2}{\epsilon}\int_\epsilon^1|f(x)|dx\leq 2\delta/\epsilon$$ because of the definition of $f=n\circ f_0$ on $[\epsilon,1]$, and $|n|\leq\delta$. Just choose $\delta$ small enough (depending only on $\epsilon$) in such a way that $|c|<1/4$.
Repeating all we did so far: as long as we take $\delta$ small enough (namely, $\delta<1/2$ and $\delta<\epsilon/8$), we have defined $f$ on all of $[0,1]$, in such a way that
The second and third items above imply that $\Vert f-f_0\Vert\leq \max(1-\delta,3/4)$, which is smaller than $1$.