I want to differentiate the given function:
\begin{equation} f(x)= \begin{cases}1 \ \ \ \ \ x\in[0,1] \\ 0 \ \ \ \ \ \ x\not\in[0,1] \end{cases} \end{equation}
However, the simple $f'(x)=0$ seems a little bit too simple, since this is similar to the Dirac delta function, just stretched over the interval $[0,1]$ instead of at $x=0$.
So I tried to represent the function as a generalized function,
$$f(x)=\int_0^1\delta(x)\phi(x)\text{d}x,$$ where $\phi(x)$ is a locally summable function, infinitely differentiable, $\in C^\infty$.
and use the differentiation rule $$(D^\alpha f,\phi)=(-1)^{|\alpha|}(f,D^{\alpha}\phi),$$ with $\alpha=1$:
$$(D^1 f,\phi)=(-1)^{|1|}(\delta(x),D^{1}\phi)$$
$$(D^1 f,\phi)=-1(\delta(x),\phi'(x))$$
However, I am not sure how to continue. Any hints?
Thanks