I have the following equation in $[0,L]$
\begin{equation} \frac{\partial f}{\partial t} + \frac{\partial f}{\partial x} = 0 \end{equation} \begin{equation} f(0,t) = 1 \end{equation}
And I know it should be equivalent to the PDE (in the distributional sense):
\begin{equation} \frac{\partial f}{\partial t} + \frac{\partial f}{\partial x} = \delta(x) \\ f(0,t) = 0 \end{equation}
Both with the initial condition $f(x,0) = f_0(x)$
However I do not get how this is true rigorously.
Help!
Let $f : [0,L] \to \mathbb{R}$ be a solution to the PDE and let $\bar{f} : \mathbb{R} \to \mathbb{R}$ be defined by $$ \bar{f}(x) = \begin{cases} f(x) & \text{if } x \in [0, L] \\ 0 & \text{if } x < 0 \\ f(L) & \text{if } x > L \\ \end{cases} $$
Then, if $f(0) \neq 0$, then $\bar{f}$ has a discontinuity at $x=0,$ but is continuous elsewhere, and its distributional partial derivative w.r.t. $x$ is given by $$ \partial_x \bar{f} = \partial_x f \, \chi_{[0,L]} + f(0) \, \delta, $$ where $\chi_{[0,L]}(x) = 1$ if $x \in [0,L]$ and $=0$ elsewhere.