[step:Rewrite the singular term as an integral over $[1,\infty)$]Let
\begin{align*}
H := \{s \in \mathbb{C} : \operatorname{Re}(s) > 1\}.
\end{align*}
Let $\mathcal{L}^1$ denote one-dimensional Lebesgue measure on $\mathbb{R}$, restricted to the Borel subsets of the intervals under consideration. For $s \in H$, define the function
\begin{align*}
f_s : [1,\infty) &\to \mathbb{C} \\
x &\mapsto x^{-s},
\end{align*}
where $x^{-s} := e^{-s \log x}$ with the real logarithm on $(0,\infty)$. Since $\operatorname{Re}(s) > 1$, the improper [Lebesgue integral](/page/Lebesgue%20Integral) converges and
\begin{align*}
\int_1^\infty x^{-s}\,d\mathcal{L}^1(x)
&= \lim_{R \to \infty} \int_1^R x^{-s}\,d\mathcal{L}^1(x) \\
&= \lim_{R \to \infty} \frac{R^{1-s}-1}{1-s}.
\end{align*}
Since $\operatorname{Re}(s)>1$, we have
\begin{align*}
|R^{1-s}|=R^{1-\operatorname{Re}(s)} \to 0
\end{align*}
as $R \to \infty$, and hence
\begin{align*}
\int_1^\infty x^{-s}\,d\mathcal{L}^1(x)
= \frac{1}{s-1}.
\end{align*}
Moreover,
\begin{align*}
\int_1^\infty |x^{-s}|\,d\mathcal{L}^1(x)
=
\int_1^\infty x^{-\operatorname{Re}(s)}\,d\mathcal{L}^1(x)
<\infty,
\end{align*}
so countable additivity of the Lebesgue integral for absolutely integrable functions gives
\begin{align*}
\int_1^\infty x^{-s}\,d\mathcal{L}^1(x)
=
\sum_{n=1}^{\infty}\int_n^{n+1}x^{-s}\,d\mathcal{L}^1(x).
\end{align*}
Therefore, for every $s \in H$,
\begin{align*}
\zeta(s)-\frac{1}{s-1}
= \sum_{n=1}^{\infty} n^{-s}
- \sum_{n=1}^{\infty}\int_n^{n+1} x^{-s}\,d\mathcal{L}^1(x).
\end{align*}
Both series on the right converge absolutely, so termwise subtraction gives
\begin{align*}
\zeta(s)-\frac{1}{s-1}
=
\sum_{n=1}^{\infty}
\left(
n^{-s}
-
\int_n^{n+1} x^{-s}\,d\mathcal{L}^1(x)
\right).
\end{align*}[/step]