[guided]Fix an interior point $x = (x',x_n) \in \mathbb{R}^n_+$. The purpose of this step is to prove that $P(x,\cdot)$ is a probability density on the boundary hyperplane. This normalization is the reason the Poisson integral can reproduce constant boundary data and later allows us to write $u(x) - g(y_0)$ as an average of $g(y) - g(y_0)$.
Define $T_x: \mathbb{R}^{n-1} \to \mathbb{R}^{n-1}$ by $T_x(y)=(y-x')/x_n$. Since $x_n > 0$, this is a bijective affine $C^1$ map with $C^1$ inverse. By the [Change of Variables Theorem](/theorems/22), under the substitution $z = T_x(y)$, we have $y = x' + x_n z$ and the Jacobian determinant in dimension $n-1$ is $x_n^{n-1}$. Thus
\begin{align*}
d\mathcal{L}^{n-1}(y) = x_n^{n-1}\,d\mathcal{L}^{n-1}(z).
\end{align*}
Also,
\begin{align*}
|x' - y|^2 + x_n^2 = x_n^2|z|^2 + x_n^2 = x_n^2(1+|z|^2).
\end{align*}
Substituting these two identities into the integral of $P(x,\cdot)$ yields
\begin{align*}
\int_{\mathbb{R}^{n-1}} P(x,y)\,d\mathcal{L}^{n-1}(y) = \frac{2}{n\omega_n}\int_{\mathbb{R}^{n-1}}\frac{1}{(1 + |z|^2)^{n/2}}\,d\mathcal{L}^{n-1}(z).
\end{align*}
We now compute the remaining radial integral. For each $m \in \mathbb{N}$, let $\omega_m := \mathcal{L}^m(B(0,1))$ denote the volume of the unit ball in $\mathbb{R}^m$. The polar-coordinate formula for Lebesgue measure in $\mathbb{R}^{n-1}$ applies here because the integrand is non-negative and depends only on $|z|$. It gives
\begin{align*}
\int_{\mathbb{R}^{n-1}}\frac{1}{(1 + |z|^2)^{n/2}}\,d\mathcal{L}^{n-1}(z) = (n-1)\omega_{n-1}\int_0^\infty \frac{r^{n-2}}{(1+r^2)^{n/2}}\,d\mathcal{L}^1(r).
\end{align*}
To evaluate the one-dimensional integral, set $s=r^2/(1+r^2)$. This substitution sends $(0,\infty)$ onto $(0,1)$, has inverse $r=(s/(1-s))^{1/2}$, and transforms the measure by the one-dimensional change-of-variables formula. Hence
\begin{align*}
\int_0^\infty \frac{r^{n-2}}{(1+r^2)^{n/2}}\,d\mathcal{L}^1(r) = \frac{1}{2}\int_0^1 s^{(n-3)/2}(1-s)^{-1/2}\,d\mathcal{L}^1(s).
\end{align*}
Since $n \geq 2$, the beta parameters $(n-1)/2$ and $1/2$ are positive, so the beta-gamma identity applies. Let $\Gamma:(0,\infty)\to(0,\infty)$ denote the Gamma function. We obtain
\begin{align*}
\int_0^\infty \frac{r^{n-2}}{(1+r^2)^{n/2}}\,d\mathcal{L}^1(r) = \frac{\sqrt{\pi}\,\Gamma((n-1)/2)}{2\Gamma(n/2)}.
\end{align*}
Using the unit-ball volume formula, $(n-1)\omega_{n-1} = 2\pi^{(n-1)/2}/\Gamma((n-1)/2)$ and $n\omega_n/2 = \pi^{n/2}/\Gamma(n/2)$, so the product is
\begin{align*}
(n-1)\omega_{n-1}\int_0^\infty \frac{r^{n-2}}{(1+r^2)^{n/2}}\,d\mathcal{L}^1(r) = \frac{n\omega_n}{2}.
\end{align*}
Therefore
\begin{align*}
\int_{\mathbb{R}^{n-1}} P(x,y)\,d\mathcal{L}^{n-1}(y) = 1.
\end{align*}[/guided]