When considering the time evolution of a distribution over a state variable $x$, one of the cases that seems fundamental is when knowledge about $x$ begins uniform. However, modelling the process as drift-diffusion, makes absorbing boundaries inconsistent.
Take the evolution of the distribution $P(x,t)$ to be governed by:
$\frac{\partial P}{\partial t} = -\mu \frac{\partial P}{\partial x} + \frac{\sigma^2}{2} \frac{\partial^2 P}{\partial x^2} $
If we consider absorbing boundaries at $(a,b)$ then the boundary conditions are:
$P(a,t) = 0$ and $P(b,t) = 0$
However, the initial condition assuming a Uniform distribution is:
$P(x,0) = \frac{1}{b-a} $
Together, this implies an inconsistency.
$P(a,t) = P(b,t) = 0 = \frac{1}{b-a} $
How can this issue be thought about in such a way that it can be resolve?
One pathway I have considered is that the absorbing boundaries are somehow $\mathrm{d}x$ outside the state-space.
Ultimately, this is part of a larger project that will require numerical solution. Here, I provide Mathematica code which exemplifies the problem, it provides the error that boundaries are inconsistent.
Yet, Mathematica still provides a solution, what is it doing in this case, and will the solution it provides still be fairly accurate?
Any help is greatly appreciated!
ClearAll["Global`*"]
a = 0;
b = 5;
\[Mu] = .5;
\[Sigma] = .5;
Tmax = 10;
FPEq = D[P[x, t],
t] == -\[Mu] D[P[x, t], {x, 1}] + \[Sigma]^2/
2 D[P[x, t], {x, 2}];
iC = P[x, 0] ==
PDF[TruncatedDistribution[{a, b}, UniformDistribution[{a, b}]],
x];
bC = {P[a, t] == 0, P[b, t] == 0};
sol = NDSolve[{FPEq, iC, bC}, P, {x, a, b}, {t, 0, Tmax}];
Psol[x_, t_] := Evaluate[P[x, t] /. First[sol]];
DensityPlot[Psol[x, t], {t, 0, Tmax}, {x, a, b}, AspectRatio -> 1/2,
PlotTheme -> "Scientific"]