Consider the following problem $$u_t-u_{xx}=p(x,t), -\infty<x<\infty,t>0$$ $$u(x,0)=0$$ $$u\rightarrow0 \text{ as } x\rightarrow \pm \infty$$ This can be solved using many sub problems as follows.
Let $\zeta>0, \tau >0$. Consider the neighborhood $\zeta\leq x \leq \Delta \zeta+\zeta,\tau\leq t \leq \Delta \tau+\tau$ and $p(\zeta,\tau) $ is constant in this neighborhood. Now we build a new problem as follows.
$$u_{1t}-u_{1xx}=p(\zeta,\tau) \delta(x-\zeta)\delta(t-\tau)d\zeta d\tau, -\infty<x<\infty,t>0$$ $$u_1(x,0)=0$$ $$u_1\rightarrow0 \text{ as } x\rightarrow \pm \infty$$ Then the solution is
$$u_1(x,t)=\frac{p(\zeta,\tau) d\zeta d\tau}{\sqrt{4\pi(t-\tau)}}exp(-\frac{(x-\zeta)^2}{4(t-\tau)})$$
So the solution to main problem is $$u(x,t)=\int_0^t \int_{-\infty}^{\infty}\frac{p(\zeta,\tau)}{\sqrt{4\pi(t-\tau)}}exp(-\frac{(x-\zeta)^2}{4(t-\tau)}) d\zeta d\tau$$ I am not sure whether everything I have done here is right. But a similar way of solving is given below. $$u_{1t}-u_{1xx}=p(\zeta,\tau) \delta(x-\zeta)\delta(t-\tau), -\infty<x<\infty,t>0$$ $$u_1(x,0)=0$$ $$u_1\rightarrow0 \text{ as } x\rightarrow \pm \infty$$ Then the solution is
$$u_1(x,t)=\frac{p(\zeta,\tau) }{\sqrt{4\pi(t-\tau)}}exp(-\frac{(x-\zeta)^2}{4(t-\tau)})$$ $$u(x,t)=\int_0^t \int_{-\infty}^{\infty}\frac{p(\zeta,\tau)}{\sqrt{4\pi(t-\tau)}}exp(-\frac{(x-\zeta)^2}{4(t-\tau)}) d\zeta d\tau$$ Are both of these methods correct or one of them is? Any help will me much appreciated as this has confused me for many days! thanks!
Let $p'$ be the incremental contribution to $p$ from the given domain $D$. $$p'=p(\zeta,\tau)[H(x-\zeta)-H(x-\zeta -\zeta \tau][H(t-\zeta)-H(t-\tau -\Delta \tau]$$ Send $\Delta \tau$ and $\Delta \zeta$ to zero get the delta functions and define the new problem using this $p'$
So $$u_{1t}-u_{1xx}=p(\zeta,\tau) \delta(x-\zeta)\delta(t-\tau)d\zeta d\tau, -\infty<x<\infty,t>0$$ $$u_1(x,0)=0$$ $$u_1\rightarrow0 \text{ as } x\rightarrow \pm \infty$$ Then the solution is
$$u_1(x,t)=\frac{p(\zeta,\tau) d\zeta d\tau}{\sqrt{4\pi(t-\tau)}}exp(-\frac{(x-\zeta)^2}{4(t-\tau)})$$ is correct