If we are given Poisson's equation in a space:
$$\nabla ^2 u=F$$
The solutions (those who admit Fourier transform) are given by:
$$u(x)=\int_\mathbb{R^n} G(x,y)F(y)dy$$
Where $G$ is the Green function (fundamental solution). In a distributional sense, the solution is:
$$u=G\ast F$$
Where the convolution $\ast$ is defined by:
$$\langle G\ast F,u\rangle=\langle G\otimes F,u ^\sharp\rangle$$
This seems to agree with wath we've seen.
But if instead of the whole space, we restric our equation to a domain $D$. With Dirichlet boundary conditions: $u\vert_{\partial D}=h$. The solution is:
$$u(x)=\int_D G(x,y)F(y)dV + \int_{\partial D} \frac{\partial G}{\partial n}(x,y) h(y)dS$$
How can this agree with the convolution? The surface integral doesn't seem right (I know the proof of this formula, just that this isn't completely clear).
Furthermore, does this mean that even if we know the Green function and the inhomogeneous term, we can't know the solution since we have to come up with the type of integral we need?