Well, I did some calculations but I'm in doubt about this problem: $$\left\{\begin{array}{rcl} u_t - u_{xx} & = & e^t, \ \mathbb{R} \times (0,+\infty)\\ u(x,0) & = & \cos(3x), \ \mathbb{R}. \end{array}\right.$$ First, note that $$\mathcal{F}(u_t) = \mathcal{F}(u_{xx} + e^t) = -\xi^2\mathcal{F}(u) + \mathcal{F}(e^t) = -\xi^2\mathcal{F}(u) + \sqrt{2\pi}e^t\delta(\xi),$$ where $\delta$ is the Dirac delta. In addition, we also have $$\mathcal{F}(\cos(3x)) = \sqrt{\dfrac{\pi}{2}}[\delta(\xi - 3) + \delta(\xi + 3)].$$ Therefore, the ODE system follows: $$\left\{\begin{array}{rcl} \widehat{u_t}(\xi,t) & = & -\xi^2\widehat{u}(\xi,t) + \sqrt{2\pi}e^t\delta(\xi)\\ \widehat{u}(\xi,0) & = & \sqrt{\dfrac{\pi}{2}}[\delta(\xi - 3) + \delta(\xi + 3)]. \end{array}\right.$$ For each $\xi \in \mathbb{R}$, we can explicitly solve the ODE by the integral factor method, obtaining: $$\widehat{u}(\xi,t) = \dfrac{\sqrt{2\pi}\delta(\xi)}{1 + \xi^2} e^{t} + Ke^{-\xi^2 t}$$ where $K$ is a constant. From the initial condition, it follows that $$K = \sqrt{\dfrac{\pi}{2}}[\delta(\xi - 3) + \delta(\xi + 3)] - \dfrac{\sqrt{2\pi}\delta(\xi)}{1 + \xi^2}.$$ Therefore, applying the inverse Fourier transform, it follows that: $$u(x,t) = e^t + \cos(3x) - 1.$$
Doubt: I don't know if I'm faltering on some calculation, but this solution doesn't seem to satisfy me $u_t - u_xx = e^t$. Was there a wrong passage? Can you help me?
There were some typos, so I post all the computations: $$\begin{aligned}\phi_t+\xi^2 \phi&=\sqrt{2\pi}\delta (\xi)e^t\\ \phi_te^{\xi^2 t}+\xi^2 e^{\xi^2 t}\phi&=\sqrt{2\pi}\delta (\xi)e^{t+\xi^2t}\\ (\phi e^{\xi^2 t})_t&=\sqrt{2\pi}\delta (\xi)e^{t+\xi^2t}\\ \phi(t,\xi)e^{\xi^2t}-\phi(0,\xi)&=\sqrt{2\pi}\frac{\delta (\xi)}{1+\xi^2}(e^{t(1+\xi^2)}-1)\end{aligned}$$ With general initial condition, we have the equation $$\phi(t,\xi) =\phi(0,\xi)e^{-\xi^2 t}+\sqrt{2\pi}\frac{\delta(\xi)}{\xi^2+1}(e^{t}-e^{-\xi^2 t})$$ In this case, $$\phi(0,\xi)e^{-\xi^2 t}=\sqrt{2\pi}\frac{1}{2}(\delta(x-3)e^{-\xi^2t}+\delta(x+3)e^{-\xi^2t})$$ yields $$\mathscr{F}^{-1}(\phi(0,\xi)e^{-\xi^2 t})(x)=\frac{1}{2}(e^{-9t-3ix}+e^{-9t+3ix})=e^{-9t}\frac{1}{2}(e^{-3ix}+e^{3ix})$$ So the solution is $$u(x,t)=(e^t-1)+e^{-9t}\frac{1}{2}(e^{-3ix}+e^{3ix})=(e^{t}-1)+e^{-9t}\cos(3x)$$ You can check that this satisfies the PDE: $$u_t(x,t)=e^t-9e^{-9t}\cos(3x)$$ $$u_x(x,t)=-3e^{-9t}\sin(3x)$$ $$u_{xx}(x,t)=-9e^{-9t}\cos(3x)$$ $$u_t-u_{xx}=e^{t}$$ and $u(0,x)=\cos(3x)$