I am looking for the solution of the following pde:
$\frac{\partial y(x,t)}{\partial t} = a* \frac{\partial y(z,t)}{\partial x} + b* y(x,t) + c$
and need help with the boundary and initial conditions:
$y(x=0,t)=0 $ bzw $y(x=0,t)=const. $ and $y(x,t=0)=f(x)$
a, b are negative constants and c is a positive constant.
I used Laplace Transform to derive a solution as follows:
$L^{-1}(\frac{\partial y(x,t)}{\partial t}) = L^{-1}(a \frac{\partial y(z,t)}{\partial x} + b y(x,t) + c) $
$s*Y(x,s) - y(x,0)=a* \frac{\partial Y(z,s)}{\partial x} +b* Y(x,s) + \frac{c}{s} $
$ \frac{\partial Y(z,s)}{\partial x} + \frac{b-s}{a} * Y(x,s)= -\frac{1}{a} * (y(x,0)+\frac{c}{s})$
which results in
$\int d(exp(\frac{b-s}{a}*x)*Y(x,s)) =\int -\frac{1}{a} * (y(x,0)+\frac{c}{s}) dx$
with $F(x) = \int f(x) dx= \int y(x,0)dx$ and $y(x=0,s)=0$ this results in
$Y(x,s)=- \frac{1}{a}*exp(\frac{s-b}{a}*x)*(F(x)-F(0)+\frac{c}{s}*x)$
Transforming this result back into time domain gives
$y(x,t) = -\frac{1}{a}*exp(\frac{-b}{a}*x)*((F(x)-F(0))* \delta (t+\frac{x}{a}) +c*x* H(t+\frac{x}{a})) $
with $\delta$ beeing the dirac delta function and $H$ beeing the heaviside step function.
This analytical equation cannot reproduce my numeric solution, in my opinion because the initial conditions are only multiplied with a dirac impulse, so is the transformation correct?
I also looked at the solution seperating the variables as shown in Analytical Solution of a PDE $y(x,t)=C*exp(kt) * exp (\frac{k-b}{a}*x) - \frac{c}{b} $, however when I use the boundary condition, this results in a time independend solution, since the only way for the solution to be $0$ at $x=0$ is $y(x,t)=\frac{c}{b}*(exp(\frac{k-b}{a}*x)-1)$
Am I overseeing something? Thanks for your help