I'm attempting to solve or to understand the conditions in which the following 1-dimensional second order, linear PDE can be solved. It is akin to a Fokker-Planck equation with constant coefficients, but with an additional linear sink term with space and time dependence:
$$ \frac{\partial f(x,t)}{\partial t} = - \mu \frac{\partial f(x,t)}{\partial x} + \frac{1}{2}\frac{\partial^2 f(x,t)}{\partial x^2} - u(x,t)f(x,t) $$
With natural boundary conditions in the domain $x\in(-\infty,\infty)$, $t\in[0,\infty)$, and initial condition
$$ f(x,t=0) = \delta(x) $$
Additionally, $\mu$ is a positive real constant, and $u(x,t)$ is a strictly positive real function, monotonically increasing with $x$, and with asymptotes $a$ and $b$ at $x \rightarrow -\infty$, and $x \rightarrow \infty$ respectively (think of a sigmoid function that moves with time).
I have done an extense literature search that hasn't been fruitful. What I know is that the solution for the homogenous equation with $u(x,t)=0$ is
$$ f(x,t) = \frac{1}{\sqrt{2\pi t}} \exp\Bigl( -\frac{(x-\mu t)^2}{2t} \Bigr) $$
and that the solution with $u(x,t)=\alpha>0$ is
$$ f(x,t) = \frac{1}{\sqrt{2\pi t}} \exp\Bigl( -\frac{(x-\mu t)^2}{2t} - \alpha t\Bigr) $$
What is the best approach for solving this equation? Is there perhaps a change of variables that would simplify the problem? Is it even possible to obtain an analytical solution?
EDIT
I realized (also inspired by Harry49's answer) that the drift term can be removed with the following substitution:
$$ f(x,t) = g(x,t) \exp\Bigl( \mu x - \frac{\mu^2t}{2} \Bigr) $$
Which results in the following equation for $g$
$$ \frac{\partial g(x,t)}{\partial t} = \frac{1}{2}\frac{\partial^2 g(x,t)}{\partial x^2} - u(x,t)g(x,t) $$
Let us introduce $g(X,t)$ such that $$ g(X,t) = f(X+\mu t, t)\, e^{\int_0^t u(X+\mu\tau,\tau)\, \text d\tau} , $$ where $X=x-\mu t$. Thus, we have the partial derivatives $$ g_X = \left( f_X + f {\textstyle \int_0^t} u_X\, \text d\tau\right) e^{\int_0^t u\, \text d\tau} , $$ $$ g_{XX} = \left( f_{XX} + f {\textstyle \int_0^t} u_{XX}\, \text d\tau + 2 f_X {\textstyle \int_0^t} u_X\, \text d\tau + f\, ( {\textstyle \int_0^t} u_X\, \text d\tau)^2\right) e^{\int_0^t u\, \text d\tau} , $$ and $$ g_t = \left(\mu f_X + f_t + u f\right) e^{\int_0^t u\, \text d\tau} . $$ Using the PDE, we have $$ g_t -\tfrac12 g_{XX} = -\tfrac12 \left( f {\textstyle \int_0^t} u_{XX}\, \text d\tau + 2 f_X {\textstyle \int_0^t} u_X\, \text d\tau + f\, ( {\textstyle \int_0^t} u_X\, \text d\tau)^2\right) e^{\int_0^t u\, \text d\tau} . $$ One recognizes the classical heat equation for $g$ if $u_X \equiv 0$, i.e. if $u$ is a function of $t$ only. Thus this method won't work in the general case where $u$ is a function of $(x,t)$.
For the general case, Laplace or Fourier transforms may provide integral representations of the solution (cf. [1] for the methodology). It might be also of interests to look at the stationary solution.
[1] R. Habermann, Applied Partial Differential Equations with Fourier Series and Boundary Value Problems, 5th ed. Pearson Education Inc., 2013.