I have this PDE problem on my exam. $$u_t=u_{xx}$$ $$u_x(t,0)=0$$ $$u(0,x)=e^{-x^2}$$
First is normally to see that equation is heat equation and than look for idea how to solve it. (every PDE is a special case ;) )
So we learn in class how to solve PDE with Poisson formula, but Poisson formula has initial condition only $u(0,x)=f(x)$ not the part of $u_x$
so I decided to move on. The one more method is to use Fourier series and separation of variables, but this method is used to solve PDE on closed domain with homogeneous boundary condition which in this problem is not a case.
So I ask you for help.
You have that the equation and the given conditions are even in space, i.e. it is invariant w.r.t. the transformation $x\to -x$.
This allows us to write the solution as a infinite sum of even functions in space. For example, take the expansion in cosines: $$u(x,t)=\int_{\mathbb{R}}{a(\lambda,t)\cos{(\lambda x)}\,d\lambda}$$
Now introduce this solution into your equation: $$\int_{\mathbb{R}}\left(a_t(\lambda,t)+\lambda^2 a(\lambda,t)\right)\cos{(\lambda x)}\,d\lambda=0 \quad \forall x$$ Then we know that the equation within the brackets must vanish: $$a_t(\lambda,t)+\lambda^2 a(\lambda,t)=0$$ Which gives: $$a(\lambda,t) = c(\lambda)\exp{(-\lambda^2t)}$$ and the solution remains indeterminate up to the function $c(\lambda)$: $$u(x,t)=\int_{\mathbb{R}}{c(\lambda)\exp{(-\lambda^2t)}\cos{(\lambda x)}\,d\lambda}$$ We now have an initial condition, that claims that: $$u(x,0) = \int_{\mathbb{R}}{c(\lambda)\cos{(\lambda x)}\,d\lambda}=\exp{(-x^2)}$$
Which indicates that $c(\lambda)$ is the Fourier transform of $\exp{(-x^2)}$, i.e.: $$c(\lambda) = \frac{1}{2\pi}\int_{\mathbb{R}}{\exp{(-y^2)}\cos{(\lambda y)}\,dy}$$
Being the complete solution: $$u(x,t) = \int_{\mathbb{R}}{\left[\frac{1}{2\pi}\int_{\mathbb{R}}{\exp{(-y^2)}\cos{(\lambda y)}\,dy}\right]\exp{(-\lambda^2t)}\cos{(\lambda x)}\,d\lambda}$$