Consider the PDE Lu(r)=ρ(r), for which the differential operator L is given by
L=∇⋅[p(r)∇]+q(r),
where p(r) and q(r) are functions of position. By proving the generalised form of Green's theorem,
∫V(ϕLψ−ψLϕ)dV=∮Sp(ϕ∇ψ−ψ∇ϕ)⋅n^dS,
show that the solution of the PDE is given by
u(r0)=∫VG(r,r0)ρ(r)dV(r)+∮Sp(r)[u(r)∂n∂G(r,r0)−G(r,r0)∂n∂u(r)]dS(r),
where G(r,r0) is the Green's function satisfying LG(r,r0)=δ(r−r0).