I need a reference for a theorem that states: Let $D$ be a domain of $\mathbb{R}^{m}$ and let $K(x)= \log|x|$ if $m=2$, and $K(x)=|x|^{2-m}$ if $m>2$. Let $u$ be a subharmonic function on $D$. Then there is a unique Borel measure $\mu$ such that for all compact $E$ in $D$ we have
$$u(x)=\int\_{\partial E}u(\zeta)d\omega\_{x}(\zeta)-\int\_{E}K(x-\zeta)d\mu(\zeta),$$
where $\omega\_{x}$ is the harmonic measure at $x$. 


In Hayman and Kenney's book ("subharmonic functions", vol. 1 Theorem 3.9, pg 104) this theorem is given but instead of the first integral, they give a function $h$ harmonic in the interior of $E$ only. Also, on pg 120, the explicit form of the first integral is given but the integrand of the second integral is the green function $g$.


Same things in Armitage and Gardiner's book ("Classical potential theory"). I would appreciate if someone could give me a reference or explain how to go from one form to the other.



Reference for a theorem on subharmonic functions
Perhaps I misunderstood the question: you are right, there are two expressions available for $u$.


1. We have
$$ u(x) = \int\_{\partial E} u(z) \omega\_E^x(dz) - \int\_E G\_E(x, y) \mu(dy) ,$$
where $\omega^E\_x$ is the harmonic measure, $G\_E$ is the Green's function, and $\mu = -\Delta u$ in the sense of distributions.
2. We also have
$$ u(x) = h(x) - \int\_E K(y - x) \mu(dy) ,$$
where $K$ is the Newtonian kernel (the Green's function for $\mathbb{R}^m$) and $\mu$ is as above.


These two expressions are of course closely related: since
$$ G\_E(x, y) = K(y - x) - \int\_{\partial E} K(z - y) \omega^x\_E(dz) ,$$
we have
$$ h(x) = \int\_{\partial E} \biggl( u(z) + \int\_E K(z - y) \mu(dy) \biggr) \omega^x\_E(dz) . $$


