How to solve a linear PDE like $\partial_t u(x,t) - \partial_x u(x,t) = a(x)\cdot b(t)$? Given a linear PDE like $\partial_t u(x,t) - \partial_x u(x,t) = a(x)\cdot b(t)$, how to solve it? A separation ansatz doesn't look promising due to the mixed term on the right hand side.
Follow the method in http://en.wikipedia.org/wiki/Method_of_characteristics#Example:

Approach $1$:

$\dfrac{dt}{ds}=1$ , letting $t(0)=0$ , we have $t=s$

$\dfrac{dx}{ds}=-1$ , letting $x(0)=x_0$ , we have $x=-s+x_0=-t+x_0$

$\dfrac{du}{ds}=a(x)b(t)=a(x_0-s)b(s)$ , we have $u(x,t)=f(x_0)+\int_k^sa(x_0-r)b(r)~dr=f(x+t)+\int_k^ta(x+t-s)b(s)~ds$

Approach $2$:

$\dfrac{dx}{ds}=1$ , letting $x(0)=0$ , we have $x=s$

$\dfrac{dt}{ds}=-1$ , letting $t(0)=t_0$ , we have $t=-s+t_0=-x+t_0$

$\dfrac{du}{ds}=a(x)b(t)=-a(s)b(t_0-s)$ , we have $u(x,t)=f(t_0)-\int_k^sa(r)b(t_0-r)~dr=f(x+t)-\int_k^xa(s)b(x+t-s)~ds$
Use a Fourier Transform:$\newcommand{\sgn}{\operatorname{sgn}}$

$$\begin{align}
  \partial_t u(x,t) - \partial_x u(x,t) &amp;= a(x)\cdot b(t) \quad\Big|\quad \frac1{4\pi^2}\iint_{\mathbb R^2}dx\,dt\,e^{-i(\omega t + kx)}
\\ i\omega u_p(k,\omega) - ik u_p(k,\omega) &amp;= -a(k)\cdot b(\omega)
\\\Rightarrow u_p(k,\omega) &amp;= -i\frac{a(k)b(\omega)}{k-\omega}
\\ u_p(x,t) &amp;= -i\iint_{\mathbb R^2}\frac{a(k)b(\omega)}{k-\omega}e^{i\omega t + ikx}\, dk\,d\omega
\\ &amp;= -\frac{i}{4\pi^2}\iint_{\mathbb R^2}\iint_{\mathbb R^2}\frac{a(x')b(t')}{k-\omega}\exp\left[i\left(k(x-x')+\omega(t-t')\right)\right]\,dk\,d\omega\,dx'\,dt'
\\ &amp;= -\frac{i}{4\pi^2}\iint_{\mathbb R^2}\int_{\mathbb R}a(x')b(t') \underbrace{\int_{\mathbb R}\frac{e^{ik(x-x')}}{k-\omega}dk}_{=-i\pi e^{-i\omega(x-x')}\sgn(x-x')}\, e^{i\omega(t-t')}\,d\omega\,dx'\,dt'
\\ &amp;= \frac12\iint_{\mathbb R^2}a(x-h)b(t')\underbrace{\frac1{2\pi}\int_{\mathbb R}e^{i\omega(t-t'-h)}d\omega}_{=\delta(t-t'-h)}\sgn(h)\,dh\,dt' \quad\Big|\quad h\equiv x-x'
\\ &amp;= \frac12\int_{\mathbb R}\sgn(h)a(x-h)b(t-h)dh
\\\Rightarrow u(x,t) &amp;= u_h(x+t) + \frac12\int_0^\infty[a(x-h)b(t-h)-a(x+h)b(t+h)]dh
\end{align}$$

Note that this requires $\lim\limits_{h\to\infty}[a(h)b(h)-a(-h)b(-h)]=0$ in order to work, which is actually a weaker requirement than the existence of Fourier transforms of $a(x)$ and $b(t)$.