How can I show that the embedding of $W^{1,1}(a,b)$ in $C[a,b]$ is not compact?
I know that $W^{1,p}$ is compactly embedded in $C(\Omega \subset \mathbb R^n)$ for $p>n$. But since we now have $\Omega=[a,b]$ we have $n=1=p$. Why does it not work for $p=n$?
One way to show that the embedding is not compact it so find a sequence of function $(u_n)$ such that: $$\|u_n\|_{W^{1,1}} \leq C$$ $$\|u_n-u_m\|_\infty \geq 1 \text{ for } n \neq m$$ the second condition preventing the sequence to have any convergent subsequence in $C[a,b]$..
Without loss of generality let us take $[a,b]=[0,1]$. Let $\phi$ a nice function with compact support in $(0,1)$ such that $\|\phi\|_\infty=1$. Then: $$u_n(x)=\begin{cases}0 &\text{ for } 0 \leq x <\frac {1}{n+1}\\ \phi \left(n(n+1)\left(x -\frac{1}{n+1} \right)\right) &\text{ for } \frac{1}{n+1} \leq x <\frac{1}{n}\\ 0 & \text{ for } x > \frac{1}{n}\end{cases}$$ verifies:
The idea behind this counter example is to use a gliding hump. But the reason why it work is because of the scaling, in $\Bbb R^n$ with $\psi_\lambda(t)=\psi(\lambda t)$:
this a way to understand why the exponents in the whole space, and in a bounded domain for compactly supported function you can take $\lambda \to + \infty$. This impose $1-\frac{n}{p} \leq 1$ but when you have equality, i.e the critical case, even if you have embedding you can find function as the previous counterexample (which does not works for $p>n$).