Prove that the space of continuous functions $C([0,1])$ is not complete under the norm $\|\cdot\|_{L^{1}([0,1])}$.
I have tried the following sequence of functions $f_{n}(x)=\left\{\begin{array}{cl}1 & \text { if } & 0 \leq x \leqslant \frac{1}{2} \\ 1-n\left(x-\frac{1}{2}\right) & \text { if } \frac{1}{2} \leqslant x \leqslant \frac{1}{2}+\frac{1}{n} \\ 0, & \text { if } \frac{1}{2}+\frac{1}{n} \leqslant x \leqslant 1\end{array}\right.$
I got $\int_{\frac{1}{2}}^{\frac{1}{2}+\frac{1}{n}}\left|f_{n}(x)-f_{m}(x)\right| d x .$ $=\int_{\frac{1}{2}}^{\frac{1}{2}+\frac{1}{n}}\left|\left(1-n\left(x-\frac{1}{2}\right)\right)-\left(1-m\left(x-\frac{1}{2}\right)\right)\right| d x=\left|\frac{m-n}{2 n^{2}}\right|$
Is the last term bounded by $\frac{1}{n}$? why? and is it ok that my integration limits deals with $n$ and not also $m$?
As last step I thought of taking limit of n to $\infty$ and since 2 limits are obtained - $0,1$ this space is not complete.
Say $m>n$. Then
$$\int_0^1 |f_n-f_m|=\int_{\frac{1}{2}}^{\frac{1}{2}+\frac{1}{m}}|f_n-f_m|+\int_{\frac{1}{2}+\frac{1}{m}}^{\frac{1}{2}+\frac{1}{n}} |f_n-f_m|$$
You've already dealt with the first integral on the RHS. To deal with the second one, note that $$ \int_{\frac{1}{2}+\frac{1}{m}}^{\frac{1}{2}+\frac{1}{n}} |f_n-f_m|=\int_{\frac{1}{2}+\frac{1}{m}}^{\frac{1}{2}+\frac{1}{n}} |f_n|\le \frac{1}{n}-\frac{1}{m}$$ because $|f_m(x)|=0$ whenever $\frac{1}{2}+\frac{1}{m}\le x\le \frac{1}{2}+\frac{1}{n}$ and $|f_n|\le 1$ everywhere.
This shows that $\{ f_n\} _{n=1}^\infty$ is Cauchy in $(C([0,1]),\|\cdot\|_1)$.
Suppose, towards a contradiction, that $f_n\to f$ in the $L^1$ norm for some $f\in C([0,1])$. Let $g$ be the characteristic function of $[0,\frac{1}{2}]$. You can check that $f_n\to g$ in the space $(L^1,\|\cdot\|_1)$, so that $f=g$ a.e. But this is impossible (do you see why?).