Linear transport equation (source code)

= Linear transport equation

A <linear transport equation> has prescribed coefficients and is <linear> in the unknown:
$$
u_t+b(t,x)\cdot\nabla u+c(t,x)u=f(t,x).
$$
Assume the coefficients and <initial condition> $u_0$ are smooth enough for the following <characteristic curves> and <classical solution>. With $\dot X(t,\alpha)=b(t,X(t,\alpha))$ and $X(0,\alpha)=\alpha$, set $C(t)=c(t,X(t,\alpha))$ and $F(t)=f(t,X(t,\alpha))$. The <chain rule> reduces the equation to $\dot U+CU=F$. The <integrating factor> gives
$$
u(t,X(t,\alpha))=e^{-\int_0^t C(r)\,dr}u_0(\alpha)+\int_0^t e^{-\int_s^t C(r)\,dr}F(s)\,ds.
$$
Differentiating the formula verifies the <ordinary differential equation>. For constant $c=\gamma>0$, zero $f$ and constant $b$, it becomes $u(t,x)=e^{-\gamma t}u_0(x-bt)$: <translation> with exponential decay. With $c=\operatorname{div}b$, it instead describes the conservative <continuity equation>. The difference of two solutions with the same $f$ satisfies the homogeneous equation, the form of <superposition> useful for uniqueness.<Partial Differential Equations by Victor Ivrii/First order PDEs>[§2.1, Right-hand expression; Linear and semilinear equations]{ref}