I am investigating a physical process where I believe the 1-D advection-diffusion equation: \begin{equation} \frac{\partial u}{\partial t} = -\frac{\partial}{\partial x}[\mu(x,t) u(x,t)] + \frac{\partial}{\partial x}[D(x,t)\frac{\partial}{\partial x}u(x,t)] \end{equation}
may be applicable. I have a set of experimental data of the density, $u_{exp}(x,t)$, across $x$ for each time $t$. To begin my investigation of this I want to assume that $D(x,t)$ is a constant, $D(x,t)$=$D_0$, and $\mu(x,t) = \mu_0 + \tilde{\mu}(x,t) $ such that I can approach the problem numerically as:
\begin{equation} \frac{\partial u}{\partial t} = -\frac{\partial}{\partial x}[\mu(x,t)] u(x,t) -\mu(x,t)\frac{\partial}{\partial x}[u(x,t)] + D_0\frac{\partial^2} {\partial x^2}[u(x,t)] \end{equation}
\begin{equation} \frac{\partial u}{\partial t} = -\frac{\partial}{\partial x}[\mu_0 + \tilde{\mu}(x,t)] u(x,t) -[\mu_0 + \tilde{\mu}(x,t)]\frac{\partial}{\partial x}[u(x,t)] + D_0\frac{\partial^2} {\partial x^2}[u(x,t)] \end{equation}
Rearranging and expanding, I can pick out the terms such that this resembles a typical advection-diffusion equation (with constant diffusion and drift coefficients) with an additional term like so:
\begin{equation} \frac{\partial u}{\partial t} = \bigg[ -\mu_0\frac{\partial}{\partial x}[u(x,t)] + D_0\frac{\partial^2}{\partial x^2}[u(x,t)] \bigg]_{linear-adv.-diff. \;equation} \; -\bigg[ \frac{\partial}{\partial x}[\tilde{\mu}(x,t)] u(x,t) +\tilde{\mu}(x,t)\frac{\partial}{\partial x}[u(x,t)] \bigg]_{additional\;term} \end{equation}
Now I'll define:
\begin{equation} f_0(x,t) = -\mu_0\frac{\partial}{\partial x}[u(x,t)] + D_0\frac{\partial^2}{\partial x^2}[u(x,t)] \end{equation}
To rewrite as:
\begin{equation} \frac{\partial u}{\partial t} = f_0(x,t) -\frac{\partial}{\partial x}[\tilde{\mu}(x,t)] u(x,t) -\tilde{\mu}(x,t)\frac{\partial}{\partial x}[u(x,t)] \end{equation}
\begin{equation} \frac{\partial u}{\partial t} = f_0(x,t) -\tilde{\mu}_x(x,t) u(x,t) -\tilde{\mu}(x,t)u_x(x,t) \end{equation}
Here I now want to begin supplementing my equation with my experimental data, and predictions from a numerical simulation of the linear-adv.-diff. equation, to get this show on the road. I substitute in a numerical approximation for $f_0(x,t')$, $f_{num}(x,t')$, at time $t'$ coming from a realization with the initial profile $u_{exp}(x,0)$, and coefficients $u_0$ and $D_0$. I thus write the error for my simulation, using this numerical prediction relative to the experimental $\mu_{exp}$ as:
\begin{equation} \bigg[ \frac{\partial u_{exp}(x,t)}{\partial t} - f_{num}(x,t) = -\tilde{\mu}_x(x,t) u_{exp}(x,t) -\tilde{\mu}(x,t)u_{x,exp}(x,t) \bigg]\bigg|_{t=t'} \end{equation}
\begin{equation} \bigg[ - \epsilon(x,t) = \tilde{\mu}_x(x,t) u_{exp}(x,t) +\tilde{\mu}(x,t)u_{x,exp}(x,t) \bigg]\bigg|_{t=t'} \end{equation}
where $\epsilon$ denotes the error in the prediction across $x$ at time $t'$. Next we recast this into the form of a familiar first-order-differential equation at time $t'$:
\begin{equation} \bigg[ \tilde{\mu}_x(x,t) +\tilde{\mu}(x,t) \frac{u_{x,exp}(x,t)}{u_{exp}(x,t)} = - \frac{\epsilon(x,t)}{u_{exp}(x,t)} \bigg]\bigg|_{t=t'} \end{equation}
Thus, where $p(x,t) = \frac{u_{x,exp}(x,t)}{u_{exp}(x,t)}$, and $q(x,t) = - \frac{\epsilon(x,t)}{u_{exp}(x,t)}$:
\begin{equation} \bigg[ \tilde{\mu}_x(x,t) + p(x,t) \tilde{\mu}(x,t) = q(x,t) \bigg]\bigg|_{t=t'} \end{equation}
This can then be solved by the use of an integrating factor, as detailed: http://tutorial.math.lamar.edu/Classes/DE/Linear.aspx
I suppose my question is: is there a more straight-forward method to solving for the expression $\mu(x,t)$ than first assuming a linear portion of the equation and then rederiving the $\mu(x,t)$ profile as I have done here? Also, is what I've done here coherent? I mean, is it permissible even to try to solve for $\mu(x,t)$ via the error in the linear-adv.-diff. approximation? A motivating image for this is shown below:
(Top) Experimental data. (Bottom) Linear-Adv.-Diff equation. Time is colored, with red being $t=0$ and purple being $t=t_{final}$