TITLE: How do I solve a PDE with a Dirac Delta function?
QUESTION [9 upvotes]: I have a PDE in the form of 
$$
\frac{\partial u}{\partial t} + \frac{\partial u}{\partial x} + u = \delta(x-1),
$$
with initial condition $u(x,0)=100$. I'm trying to solve it numerically, but I have no idea on which method should I use. Most of the examples that I refer to has no delta function in the PDE.
Can anyone guide me on what should I do?
Thank you very much.

REPLY [2 votes]: Note that this PDE just belongs to the PDE of the form http://eqworld.ipmnet.ru/en/solutions/fpde/fpde1302.pdf so that exact solution can find easily, so you have not necessarily to solve it numerically.
The general solution is $u(x,t)=e^{-x}C(x-t)+e^{-x}\int\delta(x-1)e^x~dx=e^{-x}C(x-t)+e^{1-x}H(x-1)$
$u(x,0)=100$ :
$e^{-x}C(x)+e^{1-x}H(x-1)=100$
$C(x)=100e^x-eH(x-1)$
$\therefore u(x,t)=e^{-x}(100e^{x-t}-eH(x-t-1))+e^{1-x}H(x-1)=100e^{-t}-e^{1-x}H(x-t-1)+e^{1-x}H(x-1)$