# Solving inhomogeneous differential equation with Green function

I'm not sure if this question is for physics forum, but my book's title is "Green's Functions in Quantum Physics", so I ask here.

The book says that the Green's function defined as

$$(z-L( \mathbf{r}))G(\mathbf{r},\mathbf{r'};z)=\delta(\mathbf{r-r'})$$ solves the inhomogeneous differential equation $$(z-L( \mathbf{r}))u(\mathbf{r})=f(\mathbf{r})$$ with the "same boundary condition" and it gives the solution $$u(\mathbf{r})=\int d\mathbf{r'}G(\mathbf{r},\mathbf{r'};z)f(\mathbf{r'}).$$

I think that the third equation is just from by multiplying $f{(\mathbf{r})}$ to first equation and integrating it.

But then, why do we need the statement "with same boundary condition"? I don't see where to use that condition. My book does not prove this and wikipedia link Green function also states this, but no proof. Is there any simple explanation or proof for this?

• Better on Maths SE – Rob Jeffries Jan 26 '15 at 2:22

## 1 Answer

Suppose for simplicity that $u(\boldsymbol{r})$ satisfies the boundary condition $u(\boldsymbol{r}_0)=0$ for $\boldsymbol{r}_0$ in the boundary then the integral on the right hand side of your last equation should satisfy

$$\int{d\boldsymbol{r}'G(\boldsymbol{r}_0,\boldsymbol{r}';z)f(\boldsymbol{r}')}=0$$

and then $G(\boldsymbol{r}_0,\boldsymbol{r}';z)=0$ it is, $G$ satisfies the same boundary condition as $u$. The same is true for Neumman boundary conditions.