I have a equation like this:
$\dfrac{\partial y}{\partial t} = -A\dfrac{\partial y}{\partial x}+ B \dfrac{\partial^2y}{\partial x^2}$
with the following I.C
$y(x,0)=0$
and boundary conditions $y(0,t)=1$ and $y(\infty , t)=0$
I tried to solve the problem as follows: Taking Laplace transform on both sides,
$\mathcal{L}(\dfrac{\partial y}{\partial t}) = - A \mathcal{L}(\dfrac{\partial y}{\partial x})+B \mathcal{L}(\dfrac{\partial^2 y}{\partial x^2})$
Now, on the L.H.S we have, $sY-y(x,0)=sY$
$\mathcal{L}(\dfrac{\partial^2 y}{\partial x^2}) =\displaystyle \int e^{-st} \dfrac{\partial^2 y}{\partial x^2} dt$
Exchanging the order of integration and differentiation
$\displaystyle\mathcal{L}(\frac{\partial^2 y}{\partial x^2}) =\frac{\partial^2}{\partial x^2} \int e^{-st} y(x,t) dt$
$\displaystyle\mathcal{L}(\frac{\partial^2 y}{\partial x^2}) =\frac{\partial^2}{\partial x^2}\mathcal{L}(y) = \frac{\partial^2Y}{\partial x^2} $
$\displaystyle\mathcal{L}\frac{\partial y}{\partial x} = \frac{\partial Y}{\partial x}$
Now, combing L.H.S and R.H.S, we have,
$\displaystyle sY = - A \frac{\partial Y}{\partial x} + B \frac{\partial^2Y}{\partial x^2}$
Above equation might have three solutions:
If $b^2 - 4ac > 0 $ let $r_1=\frac{-b-\sqrt{b^2-4ac}}{2a}$ and $r_2 = \frac{-b+\sqrt{b^2-4ac}}{2a}$
The general solution is $\displaystyle y(x) = C_1e^{r_1x}+C_2 e^{r_2x}$
if $b^2 - 4ac = 0 $, then the general solution is given by
$ y(x)=C_1e^{-\frac{bx}{2a}}+C_2xe^-{\frac{bx}{2a}}$
if $b^2 - 4ac <0$ , then the general solution is given by
$y(x) = C_1e^{\frac{-bx}{2a}}\cos(wx) + C_2 e^{\frac{-bx}{2a}}\sin(wx)$
Since, A, and B are always positive in my problem, the first solution seems to be appropriate.
Now, from this point I am stuck and couldn't properly use the boundary conditions.
If anyone could offer any help that would be great.
"Solution added" The solution of the problem is
$y(x,t)= \dfrac {y_0}{2} [exp(\dfrac {Ax}{B}erfc(\dfrac{x+At}{2\sqrt{Bt}}) + erfc(\dfrac{x-At}{2\sqrt{Bt}})$