Saturday, October 15, 2022

Spitzer's Formula

The following identity is an abstract version of the Spitzer's formula introduced in Wendel's 1958 paper [1] and the proof thereof, with some simplifications.

Theorem. Let $\mathcal{A}$ be a unital Banach algebra with the norm $\|\cdot\|$ and unit $1$. Let $\mathbf{P}$ be a bounded linear operator on $\mathcal{A}$ satisfying the following conditions:

  1. $\mathbf{P}$ is a projection, that is, $\mathbf{P}^2 = \mathbf{P}$.
  2. Both $\operatorname{im}\mathbf{P}$ and $\operatorname{im}(\mathbf{I}-\mathbf{P})$ are closed subalgebras of $\mathcal{A}$.
  3. $x$ and $\mathbf{P}x$ commute for any $x \in \mathcal{A}$.
Then for any $a \in \mathcal{A}$ and with the multiplication operator $\mathbf{M}_a$ defined by $\mathbf{M}_a(x) = ax$, we have $$ \sum_{n=0}^{\infty} t^n (\mathbf{P}\mathbf{M}_a)^n 1 = \exp\left(\sum_{n=1}^{\infty} \frac{t^n}{n} \mathbf{P}(a^n) \right) \tag{*} $$ for any scalar $t$ within the radius of convergence of both sides.

Proof. Write $\mathbf{Q} = \mathbf{I} - \mathbf{P}$ for simplicity. We first note that, for any scalars $a_n$'s and $b_n$'s and $x \in \mathcal{A}$, $$ \mathbf{Q} \left[ \sum_{n=0}^{\infty} a_n (\mathbf{P}x)^n \right] = \mathbf{Q}a_0 \qquad\text{and}\qquad \mathbf{P} \left[ \sum_{n=0}^{\infty} b_n (\mathbf{Q}x)^n \right] = \mathbf{P}b_0 \tag{1} $$ provided the respective series converges. Now let $t$ be sufficiently small so that all the series appearing in $\text{(*)}$ converges absolutely, and let $g$ denote the left-hand side of $\text{(*)}$: $$ g = \sum_{n=0}^{\infty} t^n (\mathbf{P}\mathbf{M}_a)^n 1 = (\mathbf{I} - t \mathbf{P}\mathbf{M}_a)^{-1} 1 $$ Hence, $g$ is uniquely determined by the equation $$ (\mathbf{I} - t \mathbf{P}\mathbf{M}_a) g = 1. \tag{2} $$ In light of the above observation, it suffices to prove that the right-hand side of $\text{(*)}$ satisfies the condition $\text{(2)}$. Indeed, let $g^*$ denote the right-hand side of $\text{(*)}$: $$ g^* = \exp\left(\sum_{n=1}^{\infty} \frac{t^n}{n} \mathbf{P}(a^n) \right) = \exp\left(- \mathbf{P} \log(1 - ta) \right) $$ Then we get \begin{align*} (\mathbf{I} - t \mathbf{P}\mathbf{M}_a) g^* &= \mathbf{Q}g^* + \mathbf{P}(\mathbf{I} - t\mathbf{M}_a)g^* \\ &= \mathbf{Q}g^* + \mathbf{P}((1 - ta)g^*) \\ &= \mathbf{Q}\exp\left( -\mathbf{P} \log(1 - ta) \right) + \mathbf{P} \exp\left( \mathbf{Q} \log(1 - ta) \right) \\ &= \mathbf{Q}1 + \mathbf{P}1 \\ &= 1. \end{align*} In the third step, we utilized the fact that $e^x e^y = e^{x+y}$ provided $x$ and $y$ commute. Then $\text{(1)}$ is used in the fourth step. Therefore $g^* = g$. $\square$

References.

[1] Wendel, James G. (1958). "Spitzer's formula: A short proof". Proceedings of the American Mathematical Society. 9 (6): 905–908. doi:10.1090/S0002-9939-1958-0103531-2. MR 0103531.

Sunday, October 2, 2022

Dominated Convergence Theorem for Series

In this post, we will cover a classical but nevertheless powerful result about interchanging the order of limit and sum.

Let $G$ be an abelian group. We will adopt additive notation for the group operation. Assume that $G$ is endowed with a norm $\|\cdot\|$ with respect to which $G$ is complete.

Theorem. Let $(a^{(n)}_k)_{n,k=1}^{\infty} \subseteq G$ and $(M_k)_{k=1}^{\infty} \subseteq [0, \infty)$ satisfy the following conditions:

  1. $\| a^{(n)}_k \| \leq M_k$ holds for each $n$ and $k$;
  2. $(a^{(n)}_k)_{n=1}^{\infty}$ converges in $G$ as $k \to \infty$ for each $n$;
  3. $\sum_{k=1}^{\infty} M_k $ converges.
Then $\sum_{k=1}^{\infty} a^{(n)}_k $ converges for each $n$, and $$ \lim_{n\to\infty} \sum_{k=1}^{\infty} a^{(n)}_k = \sum_{k=1}^{\infty} \lim_{n\to\infty} a^{(n)}_k. $$

Remark. The completeness of $G$ is not necessary provided all the sums appearing in the equality converge in $G$.

Proof. For each $n$, let $S^{(n)} := \sum_{k=1}^{\infty} a^{(n)}_k $. Then for $p \lt q$, we have $$ \left\| \sum_{k=p+1}^{q} a^{(n)}_k \right\| \leq \sum_{k=p+q}^{q} \| a^{(n)}_k\| \leq \sum_{k=p+1}^{q} M_k. $$ Since this bound converges to $0$ as $p, q \to \infty$, the partial sums of $S^{(n)} $ define a Cauchy sequence in $G$ for each $n$. Then the completeness of $G$ ensures that the series $S^{(n)}$ converges in $G$ for each $n$.

Define the sequence $(a_k)_{k=1}^{\infty}$ in $G$ by $a_k := \lim_{n\to\infty} a^{(n)}_k$ for each $k$. Then it is clear that $\| a_k \| \leq M_k$, and so, the sum $S := \sum_{k=1}^{\infty} a_k$ converges by the same reasoning. Finally, for each fixed $p$, \begin{align*} \| S^{(n)} - S \| &\leq \left\| S^{(n)} - \sum_{k=1}^{p} a_k \right\| + \left\| \sum_{k=1}^{p} a_k - S \right\| \\ &\leq \sum_{k=1}^{p} \| a^{(n)}_k - a_k \| + \sum_{k=p+1}^{\infty} \| a^{(n)}_k \| + \sum_{k=p+1}^{\infty} \| a_k \| \\ &\leq \sum_{k=1}^{p} \| a^{(n)}_k - a_k \| + 2 \sum_{k=p+1}^{\infty} M_k. \end{align*} Letting $\limsup$ as $n \to \infty$, we obtain the bound $$ \limsup_{n\to\infty} \| S^{(n)} - S \| \leq 2 \sum_{k=p+1}^{\infty} M_k. $$ Since the left-hand side does not depend on $p$, letting $p \to \infty$ shows that the limsup is in fact $0$, proving $S^{(n)} \to S$ in $G$ as $n \to \infty$. This conclusion is equivalent to the desired assertion, hence the proof is done. $\square$

Example. We show that $$ \sum_{k=1}^{\infty} \frac{2^k}{k} = 0 $$ in $\mathbb{Q}_2$. Indeed, for $n \geq 1$ we have \begin{align*} 0 = \frac{1 - (1 - 2)^{2^n}}{2^n} &= \frac{1}{2^n} \sum_{k=1}^{\infty} (-1)^{k-1} \binom{2^n}{k} 2^k \\ &= \sum_{k=1}^{\infty} (-1)^{k-1} \binom{2^n - 1}{k - 1} \frac{2^k}{k} \\ &= \sum_{k=1}^{\infty} \left[ \prod_{l=1}^{k-1} \left( 1 - \frac{2^n}{l} \right) \right] \frac{2^k}{k}. \end{align*} It is easy to check that the $|\cdot|_2$-norm of the $k$th term is uniformly bounded by $2^{-k}$ for all $n$ and $k$, and $\prod_{l=1}^{k-1} \left( 1 - \frac{2^n}{l} \right) \to 1$ in $\mathbb{Q}_2$ as $n \to \infty$ for each $k$. So by DCT, it follows that $$ 0 = \sum_{k=1}^{\infty} \left[ \lim_{n \to \infty} \prod_{l=1}^{k-1} \left( 1 - \frac{2^n}{l} \right) \right] \frac{2^k}{k} = \sum_{k=1}^{\infty} \frac{2^k}{k}. $$

Remark. The above result can be interpreted in terms of logarithm as follows: Note that the logarithm $\log(z) = \sum_{n=1}^{\infty} \frac{(-1)^{n-1}}{n} z^n$ converges in $\mathbb{Q}_2$ whenever $|z|_2 < 1$, and moreover, $$ \log(1+z) + \log(1+w) = \log((1+z)(1+w)), $$ which initially holds as an identity between formal power series, extends to all $z, w \in \mathbb{Q}_2$ with $|z|_2 < 1$ and $|w|_2 < 1$. So, $$ \sum_{n=1}^{\infty} \frac{2^n}{n} = - \log(1-2) = - \log (-1) = - \frac{1}{2} \log((-1)^2) = -\frac{1}{2}\log 1 = 0. $$

Tuesday, July 26, 2022

Product of two beta distributions

Theorem. Let $p, q, r > 0$. If $X \sim \operatorname{Beta}(p, q)$ and $Y \sim \operatorname{Beta}(p+q, r)$, then $$ XY \sim \operatorname{Beta}(p, q+r). $$

Proof. Let $T_p, T_q, T_r$ be independent random variables such that $T_{\alpha} \sim \operatorname{Gamma}(\alpha)$ for each $\alpha \in \{p, q, r\}$. Then it is well-known that $$ \frac{T_p}{T_p + T_q} \sim \operatorname{Beta}(p, q) \quad\text{and}\quad T_p + T_q \sim \operatorname{Gamma}(p+q). $$ Moreover, these two random variables are independent. Using this, we may realize the joint distribution of $X$ and $Y$ via $$ (X, Y) \stackrel{\text{d}}= \left( \frac{T_p}{T_p + T_q}, \frac{T_p + T_q}{T_p + T_q + T_r} \right). $$ Therefore, we conclude $$ XY \stackrel{\text{d}}= \frac{T_p}{T_p + T_q + T_r} \sim \operatorname{Gamma}(p+q+r) $$ as desired. $\square$

Corollary. Let $p, q > 0$. If $(X_n)_{n\geq 0}$ is a sequence of i.i.d. $\operatorname{Beta}(p, q)$ variables, then $$ \sum_{n=0}^{\infty} (-1)^n X_0 X_1 \cdots X_n \sim \operatorname{Beta}(p, p+q). $$ This is Problem 6524 of American Mathematical Monthly, Vol.93, No.7, Aug.–Sep. 1986.

Proof. Let $S$ denote the sum. By the alternating series estimation theorem, $0 \leq S \leq 1$ holds almost surely. Moreover, if $X\sim \operatorname{Beta}(p, q)$ is independent of $(X_n)_{n\geq 0}$, then $$ S = X_0 \left(1 - \sum_{n=0}^{\infty} (-1)^n X_1 \cdots X_{n+1} \right) \stackrel{\text{d}}= X (1 - S). $$ By noting that this equation uniquely determines all the moments of $S$, we find that this equation has a unique distributional solution by the uniqueness of the Hausdorff moment problem.

Moreover, if $S' \sim \operatorname{Beta}(p, p+q)$ is independent of $X$, then $1-S' \sim \operatorname{Beta}(p+q, p)$. So by the theorem, $$ X(1-S') \sim \operatorname{Beta}(p, p+q) \sim S'.$$ This shows that $S'$ is a distributional solution of the equation, hence by the uniquness, $S \stackrel{\text{d}}= S'$. $\square$

Thursday, July 21, 2022

A simple calculus question

Consider the problem of finding an antiderivative of $$ \int \frac{1}{a + b \cos x} \, \mathrm{d}x, $$ where $|b| \lt a$. It is often done by adopting the Weierstrass substitution $t = \tan(x/2)$. The upshot of this substitution is \begin{align*} \int \frac{1}{a + b \cos x} \, \mathrm{d}x &= \int \frac{1}{a + b\left(\frac{1-t^2}{1+t^2}\right)} \, \frac{2\,\mathrm{d}t}{1+t^2} \\ &= \int \frac{2}{(a+b) + (a-b)t^2} \, \mathrm{d}t \\ &= \frac{2}{\sqrt{a^2-b^2}} \arctan\left(\sqrt{\frac{a-b}{a+b}} \tan \frac{x}{2} \right) + \mathsf{C}. \tag{1} \end{align*} However, there is one caveat in this result. Suppose we want to compute the definite integral $$ \int_{0}^{2\pi} \frac{1}{a + b \cos x} \, \mathrm{d}x. $$ Can we utilize the antiderivative $\text{(1)}$ to find its value? Well, this is not possible, at least directly. This is because the substitution $t = \tan(x/2)$ is discontinuous at every point of the form $$ x = (2k+1)\pi, \qquad k \in \mathbb{Z}. $$ Consequently, the formula $\text{(1)}$ also suffers from discontinuity at those points. The usual trick to avoid this difficulty is to choose another $2\pi$-interval on which $\tan(x/2)$ is continuous. One such choice is the open interval $(-\pi, \pi)$. So, \begin{align*} \int_{0}^{2\pi} \frac{1}{a + b \cos x} \, \mathrm{d}x &= \int_{-\pi}^{\pi} \frac{1}{a + b \cos x} \, \mathrm{d}x \\ &= \lim_{\varepsilon \to 0^+} \int_{-\pi+\varepsilon}^{\pi-\varepsilon} \frac{1}{a + b \cos x} \, \mathrm{d}x \\ &= \lim_{\varepsilon \to 0^+} \left[ \frac{2}{\sqrt{a^2-b^2}} \arctan\left(\sqrt{\frac{a-b}{a+b}} \tan \frac{x}{2} \right) \right]_{-\pi+\varepsilon}^{\pi-\varepsilon} \\ &= \frac{2\pi}{\sqrt{a^2-b^2}}. \end{align*}

So, is this the end of the story? In fact, it turns out that we can find an antiderivative that is vaild on all of $\mathbb{R}$:

Theorem. Let $a, b \in \mathbb{R}$ satisfy $|b| \lt a$. Then \begin{align*} & \int \frac{1}{a + b\cos x} \, \mathrm{d}x \\ &= \frac{1}{\sqrt{a^2 - b^2}} \biggl[ x - 2 \arctan \biggl( \frac{b \sin x}{a + \sqrt{a^2-b^2} + b \cos x} \biggr) \biggr] + \mathsf{C}. \end{align*} This formula is valid on $\mathbb{R}$.

Proof. The Fourier series of the integrand is $$ \frac{1}{a + b\cos x} = \frac{1}{\sqrt{a^2 - b^2}} \left( 1 + 2 \sum_{n=1}^{\infty} r^n \cos(nx) \right), $$ where $r$ is given by $$ r = -\frac{b}{a + \sqrt{a^2 - b^2}} \in (-1, 1). $$ Integrating both sides, we conclude \begin{align*} & \int \frac{1}{a + b\cos x} \, \mathrm{d}x \\ &= \frac{1}{\sqrt{a^2 - b^2}} \left( x + 2 \sum_{n=1}^{\infty} \frac{r^n}{n} \sin(nx) \right) + \mathsf{C} \\ &= \frac{1}{\sqrt{a^2 - b^2}} \left[ x - 2 \operatorname{Im}\left( \log(1 - re^{ix}) \right) \right] + \mathsf{C} \\ &= \frac{1}{\sqrt{a^2 - b^2}} \left[ x + 2 \arctan \left( \frac{r \sin x}{1 - r \cos x} \right) \right] + \mathsf{C}. \end{align*} Plugging the value of $r$ into this, we are done.

Tuesday, July 19, 2022

A nasty integral

In this post, we discuss how certain integrals of rational functions can be computed.

Example 1. $$ \int_{0}^{\infty} \frac{x^{8} - 4x^{6} + 9x^{4} - 5x^{2} + 1}{x^{12} - 10x^{10} + 37x^{8} - 42x^{6} + 26x^{4} - 8x^{2} + 1} \, \mathrm{d}x = \frac{\pi}{2}. $$ This is Problem 11148 of American Mathematical Monthly, Vol.112, April 2005.

Proof. For each $f(z) \in \mathbb{C}[z]$, we define $f^*(z) = \overline{f(\bar{z})}$. This is the same as taking conjugate to the coefficients appearing in $f(z)$. Let \begin{align*} P(z) &= z^8-4 z^6+9 z^4-5 z^2+1, \\ Q(z) &= z^{12}-10 z^{10}+37 z^8-42 z^6+26 z^4-8 z^2+1. \end{align*} The key observation is that all the zeros of the polynomial $$ q(z) = z^3-(2+i) z^2-(1-i) z+1 $$ lies in the upper half-plane $\mathbb{H} = \{ z \in \mathbb{C} : \operatorname{Im}(z) \gt 0\}$, and $$ Q(z) = q(z)q^*(z)q(-z)q^*(-z) $$ is a factorization of $Q(z)$ into coprime factors. Now let $p(z)$ be the unique polynomial such that $\deg p \lt \deg q$ and $$ P(z) \equiv p(z) q^*(z)q(-z)q^*(-z) \pmod{q(z)}. $$ Such $p(z)$ exists because $q(z)$ and $q^*(z)q(-z)q^*(-z)$ are coprime. Also, such $p(z)$ can be computed using the extended Euclidean algorithm. After a tedious computation, it follows that $$ p(z) = \frac{-i z^2-(1-2 i) z+1}{4}. $$ Then by the symmetry and the uniqueness of partial fraction decomposition, it follows that $$ \frac{P(z)}{Q(z)} = \frac{p(z)}{q(z)} + \frac{p^*(z)}{q^*(z)} + \frac{p(-z)}{q(-z)} + \frac{p^*(-z)}{q^*(-z)}. $$ Moreover, using the fact that all the zeros of $q(z)$ lies in $\mathbb{H}$, we can invoke Cauchy's integral theorem to write \begin{align*} \operatorname{PV}\!\! \int_{-\infty}^{\infty} \frac{x^n}{q(x)} \, \mathrm{d}x &= \lim_{R\to\infty} \int_{-R}^{R} \frac{x^n}{q(x)} \, \mathrm{d}x \\ &= \lim_{R\to\infty} \int_{-\pi}^{0} \frac{i (Re^{i\theta})^{n+1}}{q(Re^{i\theta})} \, \mathrm{d}\theta \\ &= \begin{cases} 0, & n \lt \deg q - 1, \\ \pi i, & n = \deg q - 1. \end{cases} \end{align*} Therefore we conclude that $$ \int_{-\infty}^{\infty} \frac{P(x)}{Q(x)} \, \mathrm{d}x = 4 \operatorname{Re}\left[ \operatorname{PV}\!\! \int_{-\infty}^{\infty} \frac{p(x)}{q(x)} \, \mathrm{d}x \right] = 4 \pi i \left( [z^2] p(z) \right) = \pi. $$ The answer is half of the above integral, hence the claim follows. $\square$

Here is another example.

Example 2. $$ \int_{0}^{\infty} \frac{x^{14} - 15x^{12} + 82x^{10} - 190x^{8} + 184x^{6} - 60x^{4} + 16x^{2}}{x^{16} - 20x^{14} + 156x^{12} - 616x^{10} + 1388x^{8} - 1792x^{6} + 1152x^{4} - 224x^{2} + 16} \, \mathrm{d}x = \frac{\pi}{2}. $$

Proof. Apply the same argument as above with the choices $$ q(z) = z^4+(3-i) z^3-(1+3 i) z^2-(6+2 i) z-2 $$ and $$ p(z) = \frac{-i z^3-3 i z^2-2 i z}{4}. $$ We assure the reader that all the zeros of $q(z)$ lie in the upper half-plane, and the denominator of the integral admits the same form of factorization into coprime factors as before. $\square$

Sunday, July 10, 2022

Orthogonal decomposition using Gram determinants

Theorem. Let $\mathcal{H}$ be a Hilbert space equipped with the inner product $\langle \cdot, \cdot \rangle$, and let $w, v_1, \ldots, v_n \in \mathcal{H}$. If $$ G(w_1, \ldots, w_n) = \det [\langle w_i, w_j \rangle]_{i,j=1}^{n} $$ denotes the Gram determinant, then the followings hold true:

  1. The vector $w_{\perp}$ defined by the (formal) determinant $$ w_{\perp} = \frac{1}{G(v_1,\ldots,v_n)}\begin{vmatrix} w & v_1 & \cdots & v_n \\ \langle v_1, w \rangle & \langle v_1, v_1 \rangle & \cdots & \langle v_1, v_n \rangle \\ \vdots & \vdots & \ddots & \vdots \\ \langle v_n, w \rangle & \langle v_n, v_1 \rangle & \cdots & \langle v_n, v_n \rangle \end{vmatrix} \tag{1} $$ is orthogonal to $V = \operatorname{span}\{v_1, \ldots, v_n\}$, and in fact, $$ w = w_{\perp} + (w - w_{\perp}) $$ is the orthogonal decomposition of $w$.
  2. The square-distance between $w$ and $V$ is given by $$ \|w_{\perp}\|^2 = \operatorname{dist}(w, V)^2 = \frac{G(w, v_1, \ldots, v_n)}{G(v_1, \ldots, v_n)}. \tag{2} $$

Proof. Extend the notation by letting $$ G(\{v_i\}_{i=1}^{n}, \{w_i\}_{i=1}^{n}) = \det [\langle v_i, w_j \rangle]_{i,j=1}^{n}, $$ and then define the linear functional $\ell$ on $\mathcal{H}$ by $$ \ell(u) = G(\{u, v_1, \ldots, v_n\}, \{w, v_1, \ldots, v_n\}). $$ By the Riesz representation theorem, there exists $h \in \mathcal{H}$ such that $\ell(u) = \langle h, u \rangle$ for all $u \in \mathcal{H}$. Since $\ell(v_i) = 0$ for all $i = 1, \ldots, n$, it follows that $h$ is orthogonal to $V$. Moreover, expanding the determinant defining $\ell(u)$ along the first line, we see that \begin{align*} \ell(u) &= G(v_1, \ldots, v_n) \langle u, w \rangle \\ &\quad + \sum_{i=1}^{n} (-1)^i G(\{w, v_1, \ldots, \widehat{v_i}, \ldots, v_n\}, \{v_1, \ldots, v_n\}) \langle u, v_i \rangle, \end{align*} and so, \begin{align*} h &= G(v_1, \ldots, v_n) w \\ &\quad + \sum_{i=1}^{n} (-1)^i G(\{w, v_1, \ldots, \widehat{v_i}, \ldots, v_n\}, \{v_1, \ldots, v_n\}) v_1, \end{align*} which is precisely the formal determant in $\text{(1)}$. This also implies that $h$ is a linear combination of $w, v_1, \ldots, v_n$ with the coefficient of $w$ given by $G(v_1, \ldots, v_n)$, hence $$ w_{\perp} = \frac{h}{G(v_1, \ldots, v_n)} \in w + V. $$ This and $w_{\perp} \perp V$ together proves the first item of the theorem. For the second item, the equality $\|w_{\perp}\| = \operatorname{dist}(w, V)$ is obvious by the orthogonality. Moreover, $$ \|w_{\perp}\|^2 = \langle w_{\perp}, w_{\perp} \rangle = \langle w_{\perp}, w \rangle = \frac{\ell(w)}{G(v_1, \ldots, v_n)} = \frac{G(w, v_1, \ldots, v_n)}{G(v_1, \ldots, v_n)}. $$ This completes the proof. $\square$

Friday, June 10, 2022

A tricky convergence problem

This is a slight simplification of the Math.SE user @Mike's wonderful solution [1] that is rephrased in my own words.

Theorem. Suppose

  1. $(a_n)_{n\geq 1}$ is a non-negative, non-increasing sequence,
  2. $(f(n))_{n\geq 1}$ is a sequence of positive integers such that $f(n) \to \infty$, and
  3. $\sum_{n\geq 1} a_{f(n)} $ converges.
Then $\sum_{n\geq 1} \frac{a_n}{f(n)}$ also converges.

Proof. We partition $\mathbb{N}_1 = \{1, 2, \ldots\}$ into two subsets $A$ and $B$, where \begin{align*} A &= \{ n \in \mathbb{N}_1 : f(n) > n \}, \\ B &= \{ n \in \mathbb{N}_1 : f(n) \leq n \}. \end{align*} Then it suffices to show that both $ \sum_{n\in A} \frac{a_n}{f(n)} $ and $ \sum_{n\in B} \frac{a_n}{f(n)} $ are finite.

First sum. Since $(a_n)_{n\in\mathbb{N}_1}$ is non-increasing and $1 \leq f(n) \leq n$ for each $n \in B$, we get $$ \sum_{n\in B} \frac{a_n}{f(n)} \leq \sum_{n \in B} a_{f(n)} \lt \infty. $$

Second sum. Now enumerate $f(\mathbb{N}_1)$ as $\{k_1 \lt k_2 \lt \ldots \}$, and define $$A_i = A \cap [k_i, k_{i+1})$$ for each $i$. Then the following implication holds true: \begin{align*} n \in A_i \quad\implies\quad f(n) \gt n \geq k_i \quad\implies\quad f(n) \geq k_{i+1}. \end{align*} So it follows that $$ \sum_{n \in A_i} \frac{a_n}{f(n)} \leq \sum_{n \in A_i} \frac{a_{k_i}}{k_{i+1}} = \frac{k_{i+1} - k_i}{k_{i+1}} a_{k_i} \leq a_{k_i}. $$ Summing both sides over $i$, \begin{align*} \sum_{n \in A} \frac{a_n}{f(n)} &\leq \sum_{i=1}^{\infty} a_{k_i} \\ &\leq \sum_{i=1}^{\infty} \sum_{n \mathbin{:} f(n) = k_i} a_{f(n)} \\ &= \sum_{n=1}^{\infty} a_{f(n)} \lt \infty. \end{align*} Therefore the desired conclusion follows.


References.
  1. [1] Mike, If $\sum_{n=1}^{\infty}{a_{[f(n)]}}$ converges, then $\sum_{n=1}^{\infty}{\frac{a_n}{f(n)}}$ converges., URL (version: 2022-06-05): https://math.stackexchange.com/q/4464970

A property of an integrable function on $\mathbb{R}$

Theorem. Let $f \in L^1(\mathbb{R}, \mathrm{d}x)$. Then $$ \lim_{n\to\infty} f(nx) = 0 \quad \text{for a.e. } x. $$

The proof below is essentially what is shown in [1], written in my own words.

Proof. Fix $\varepsilon \gt 0$ and define $E = \{x \in \mathbb{R} : |f(x)| \geq \varepsilon\}$. Then for any $[a, b] \subseteq (0, \infty)$, \begin{align*} \int_{a}^{b} \sum_{n=1}^{\infty} \mathbf{1}_{E}(nx) \, \mathrm{d}x &= \sum_{n=1}^{\infty} \frac{1}{n} \int_{na}^{nb} \mathbf{1}_{E}(t) \, \mathrm{d}t \\ &= \int_{E} \sum_{n=1}^{\infty} \frac{1}{n} \mathbf{1}_{\{na \leq t \leq nb\}} \, \mathrm{d}t \\ &= \int_{E} \sum_{n=1}^{\infty} \frac{1}{n} \mathbf{1}_{\{ t/b \leq n \leq t/a \}} \, \mathrm{d}t \\ &\leq \int_{E} (2 + \log(b/a)) \, \mathrm{d}t \\ &= (2 + \log(b/a)) |E|, \end{align*} where $|E|$ denotes the Lebesgue measure of $E$. Since $f$ is integrable, $|E| \lt \infty$. So the sum $\sum_{n=1}^{\infty} \mathbf{1}_{E}(nx)$ is finite and hence $nx \in E$ for only finitely many $n$ for a.e. $x$ in $[a, b]$. Since $[a, b]$ is arbitrary, the same is true for a.e. $x$ in $\mathbb{R}$. From this, it is now routine to conclude the desired claim. $\square$


References
  • [1] Emmanuel Lesigne. On the behavior at infinity of an integrable function. American Mathematical Monthly, Mathematical Association of America, 2010, 117 (2), pp.175-181. ⟨hal-00276738v3⟩

Tuesday, June 7, 2022

A simple but useful estimate

Theorem. Let $f : \mathbb{R} \to \mathbb{R}$ be a continuous, integrable function of bounded variation. Then $\sum_{n\in\mathbb{Z}} f(n)$ converges absolutely, and we have $$ \left| \sum_{n\in \mathbb{Z}} f(n) - \int_{\mathbb{R}} f(x) \, \mathrm{d}x \right| \leq \frac{1}{2} V(f), $$ where $V(f) = \int_{\mathbb{R}} |\mathrm{d}f(x)|$ denotes the total variation of $f$ over $\mathbb{R}$.

Proof. Let $\tilde{B}(x) = x - \lfloor x \rfloor - \frac{1}{2}$. Then performing integration by parts, for $a \le b$, \begin{align*} \int_{a}^{b} f(x) \, \mathrm{d}x - \sum_{n \in [a, b]\cap\mathbb{Z}} f(n) &= \int_{[a, b]} f(x) \, \mathrm{d}\tilde{B}(x) \\ &= [f(x)\tilde{B}(x)]_{a^-}^{b} - \int_{[a,b]} \tilde{B}(x) \, \mathrm{d}f(x). \end{align*} Using the fact that $|\tilde{B}(x)| \leq \frac{1}{2}$, it therefore follows that \begin{align*} \left| \int_{a}^{b} f(x) \, \mathrm{d}x - \sum_{n \in [a, b]\cap\mathbb{Z}} f(n) \right| \leq \frac{|f(a)| + |f(b)|}{2} + \frac{1}{2} \int_{[a,b]} \, |\mathrm{d}f(x)| \end{align*} From the assumption, it is easy to check that $f(x) \to 0$ as $|x| \to \infty$. So, the above estimate shows that $\sum_{n\in\mathbb{Z}} f(n)$ satisfies the Cauchy criterion and hence converges as $a \to -\infty$ and $b \to \infty$. Moreover, noting that $|f|$ also satisfies the assumption in plcae of $f$, we find that this sum converges absolutely. Finally, passing to the limit as $[a,b] \uparrow \mathbb{R}$ proves the desired bound. $\square$

Cauchy–Binet formula

Write $[n]$ for the set $\{1,2,\ldots,n\}$ and $\binom{[n]}{k}$ for the family of all subets of $[n]$ and size $k$. Also, for an $m \times n$ matrix $X$, $I \subseteq [m]$, and $J \subseteq [n]$, let $X_{I,J}$ denote the submatrix obtained from $X$ by deleting row $i$ for each $i \notin I$ and column $j$ for each $j\notin [J]$.

Theorem. (Cauchy–Binet formula) Let $A$ be a $k\times n$ matrix and $B$ be an $n\times k$ matrix over the field $F$. Then $$\det(AB) = \sum_{S\subseteq\binom{[n]}{k}} \det(A_{[k],S}B_{S,[k]}).$$

1st Proof. Let $(e_1,\ldots, e_m)$ denote the standard basis of $F^m$. (For convenience, we will abuse the notation so $e_i$ stands for the $i$th standard basis vector in any of $F^m$, $m \geq i$.) Then \begin{align*} \det(AB)(e_1 \wedge \cdots \wedge e_k) &= \bigl( {\textstyle\bigwedge}^k AB \bigr)(e_1 \wedge \cdots \wedge e_k) \\ &= \bigl( {\textstyle\bigwedge}^k A \bigr)[(Be_1) \wedge \cdots \wedge (Be_k)]. \end{align*} Now by noting that $Be_j = \sum_{i=1}^{n} B_{ij} e_i$ is the $j$th column of $B$, we may expand the exterior product in the last line as \begin{align*} &[(Be_1) \wedge \cdots \wedge (Be_k)] \\ &= \sum_{\substack{\rho : [k] \to [n] \\ \sigma \text{ injective} }} (B_{\rho(1),1} e_{\rho(1)}) \wedge \cdots \wedge (B_{\rho(k),k} e_{\rho(k)} ) \\ &= \sum_{\substack{\sigma : [k] \to [n] \\ \sigma \text{ increasing} }} \sum_{\substack{\tau : [k] \to [k] \\ \tau \text{ bijective}}} \left( \prod_{i=1}^{k} B_{\sigma(\tau(i)),i} \right) (e_{\sigma(\tau(1))} \wedge \cdots \wedge e_{\sigma(\tau(k))} ) \\ &= \sum_{\substack{\sigma : [k] \to [n] \\ \sigma \text{ increasing} }} \sum_{\substack{\tau : [k] \to [k] \\ \tau \text{ bijective}}} \operatorname{sgn}(\tau) \left( \prod_{i=1}^{k} B_{\sigma(\tau(i)),i} \right) (e_{\sigma(1)} \wedge \cdots \wedge e_{\sigma(k)} ) \\ &= \sum_{\substack{\sigma : [k] \to [n] \\ \sigma \text{ increasing} }} \det(B_{\sigma([k]),[k]}) (e_{\sigma(1)} \wedge \cdots \wedge e_{\sigma(k)} ) \end{align*} Plugginb this back, we therefore get \begin{align*} &\det(AB)(e_1 \wedge \cdots \wedge e_k) \\ &= \sum_{\substack{\sigma : [k] \to [n] \\ \sigma \text{ increasing} }} \det(B_{\sigma([k]),[k]}) [(Ae_{\sigma(1)}) \wedge \cdots \wedge (Ae_{\sigma(k)}) ] \\ &= \sum_{\substack{\sigma : [k] \to [n] \\ \sigma \text{ increasing} }} \det(B_{\sigma([k]),[k]}) \det(A_{[k],\sigma([k])}) (e_1 \wedge \cdots \wedge e_k) \\ &= \sum_{S \in \binom{[n]}{k}} \det(A_{[k],S}) \det(B_{S,[k]}) (e_1 \wedge \cdots \wedge e_k). \end{align*} This completes the proof. $\square$

2nd Proof. We specialize in the case $F = \mathbb{C}$. Also, for each index set $I$, we abbreviate $\wedge_{i\in I} e_i = \wedge I$. Then using inner product between multivectors, we get \begin{align*} \det(AB) &= \left\langle (\wedge^k A^*)(\wedge [k]), (\wedge^k B)(\wedge [k]) \right\rangle \\ &= \sum_{S \in \binom{[n]}{k}} \left\langle (\wedge^k A^*)(\wedge [k]), \wedge S \right\rangle \left\langle \wedge S, (\wedge^k B)(\wedge [k]) \right\rangle \\ &= \sum_{S \in \binom{[n]}{k}} \det(A_{[k],S})\det(B_{S,[k]}) \end{align*}

A similar technique shows:

Proposition. (Coefficients of a characteristic Polynomial) Let $A$ be an $n\times n$ matrix. Then $$\det(zI_n + A) = \sum_{k=0}^{n} z^{n-k} \sum_{S\subseteq\binom{[n]}{k}} \det(A_{S,S}).$$

Proposition. Let $a_1, \ldots, a_p \in \mathbb{C}$ and $v_1, \ldots, v_p \in \mathbb{C}^n$. Then $$\det\left( \sum_{j=1}^{p} a_j v_j v_j^{*} \right) = \sum_{\{j_1 \lt \ldots \lt j_n \} \subseteq [p]} (a_{j_1} \cdots a_{j_n}) \left| \det( v_{j_1}, \ldots, v_{j_n} ) \right|^2. $$

Determinant of a Cauchy matrix

Throughout this posting, the expressions $$ \sum_{\mathit{vars} \mathop{:} \mathit{conds}} f(\mathit{vars}) \qquad\text{and}\qquad \prod_{\mathit{vars} \mathop{:} \mathit{conds}} f(\mathit{vars}) $$ will refer to the sum and product of $f(\mathit{vars})$ over all possible values of $\mathit{vars}$ subject to the constraints $\mathit{conds}$, respectively.

Theorem. (Determinant of a Cauchy matrix) Let $A$ be an $n\times n$ matrix with elements $a_{ij}$ in the form $$ a_{ij} = \frac{1}{x_i + y_j}. $$ (Think of $A$ as an matrix over the field of rational functions in variables $x_i$'s and $y_j$'s.) Then $$ \det A = \frac{\prod_{i, j \mathbin{:} i \lt j} (x_i - x_j)(y_i - y_j)}{\prod_{i, j} (x_i + y_j)}. $$

Proof. We prove the claim by induction on $n$. The base case is clearly true, so it suffices to establish the inductive step.

Suppose that the claim holds for all $(n-1)\times(n-1)$ matrices. Also, recall that if $p(z)$ is a polynomial of degree less than $n$ and if $\alpha_1, \ldots, \alpha_n$ are distinct, then we have the partial fraction decomposition $$ \frac{p(z)}{\prod_{j} (z - \alpha_j)} = \sum_{k} \frac{p(\alpha_k)}{(z - \alpha_k) \prod_{j \mathbin{:} j \neq k} (\alpha_k - \alpha_j)}. $$ So, by regarding $x_n$ as the variable and applying the partial fraction decomposition, \begin{align*} &\frac{\prod_{i \mathbin{:} i \lt n} (x_i - x_n)}{\prod_{j} (x_n + y_j)} \\ &= \sum_{k} \frac{\prod_{i \mathbin{:} i \lt n} (x_i + y_k)}{(x_n + y_k) \prod_{j \mathbin{:} j \neq k} (y_j - y_k)} \\ &= \sum_{k} (-1)^{n-k} \frac{\prod_{i \mathbin{:} i \lt n} (x_i + y_k)}{(x_n + y_k) \bigl[ \prod_{j \mathbin{:} j \lt k} (y_j - y_k) \bigr]\bigl[ \prod_{j \mathbin{:} k \lt j} (y_k - y_j) \bigr]} \end{align*} From this, it follows that \begin{align*} &\frac{\prod_{i, j \mathbin{:} i \lt j} (x_i - x_j)(y_i - y_j)}{\prod_{i, j} (x_i + y_j)} \\ &= \frac{\bigl[ \prod_{i, j \mathbin{:} i \lt j \lt n} (x_i - x_j) \bigr]\bigl[ \prod_{i, j \mathbin{:} i \lt j} (y_i - y_j) \bigr]}{\prod_{i, j \mathbin{:} i \lt n} (x_i + y_j)} \cdot \frac{\prod_{i \mathbin{:} i \lt n} (x_i - x_n)}{\prod_{j} (x_n + y_j)} \\ &= \sum_{k} \frac{(-1)^{n-k}}{x_n + y_k} \cdot \frac{\bigl[ \prod_{i, j \mathbin{:} i \lt j \lt n} (x_i - x_j) \bigr]\bigl[ \prod_{i, j \mathbin{:} i \lt j; i \neq k; j \neq k} (y_i - y_j) \bigr]}{\prod_{i, j \mathbin{:} i \lt n; j\neq k} (x_i + y_j)} \end{align*} However, the last line is precisely the cofactor expansion of $\det A$ along the $n$th row, where the determinants of the submatrices are computed using the inductive hypothesis. Therefore the inductive step is established and the proof is done. $\square$

Sunday, January 2, 2022

Dominated Convergence Theorem Revisited

Theorem. Let $(X, \mathcal{F}, \mu)$ be a measure space, $f_n : X \to [0, \infty]$ a sequence of measurable functions converging almost everywhere to a measurable function $f$ so that $f_n \leq f$ for all $n$. Then $$ \lim_{n\to\infty} \int_{X} f_n \, \mathrm{d}\mu = \int_{X} f \, \mathrm{d}\mu. $$

Note that $f$ need not be integrable and $(f_n)$ need not be monotone increasing.

Proof. By the Fatou's lemma, $$ \int_{X} f \, \mathrm{d}\mu = \int_{X} \varliminf_{n\to\infty} f_n \, \mathrm{d}\mu \leq \varliminf_{n\to\infty} \int_{X} f_n \, \mathrm{d}\mu \leq \varlimsup_{n\to\infty} \int_{X} f_n \, \mathrm{d}\mu \leq \int_{X} f \, \mathrm{d}\mu.$$

Sunday, May 10, 2020

A quick proof of Stirling's Formula

Proposition. We have $$ \lim_{n\to\infty} \frac{n!}{n^{n+\frac{1}{2}}e^{-n}} = \sqrt{2\pi}. $$

Proof. Using the integral representation of the factorial, $$ \frac{n!}{n^{n+\frac{1}{2}}e^{-n}} = \sqrt{n}e^n \int_{0}^{\infty} x^n e^{-nx} \, \mathrm{d}x. $$ Substituting $x=1+\frac{u}{\sqrt{n}}$ and writing $x_+:=\max\{0,x\}$ for the positive part of $x$, $$=\int_{-\infty}^{\infty} \left(1+\frac{u}{\sqrt{n}}\right)_{+}^n e^{-\sqrt{n}u} \, \mathrm{d}u.$$ Using basic calculus, it is easy to prove that $\log(1+x) \leq x - \frac{x^2}{2(1+x_+)}$ holds for all $x > -1$. From this, we get $$ \left(1+\frac{u}{\sqrt{n}}\right)_{+}^n e^{-\sqrt{n}u} \leq e^{-\frac{u^2}{2(1+u_+)}} $$ holds for all $n\geq 1$ and for all $u\in\mathbb{R}$. So by the dominated convergence theorem, $$ \lim_{n\to\infty} \frac{n!}{n^{n+\frac{1}{2}}e^{-n}} =\int_{-\infty}^{\infty} \lim_{n\to\infty} \left(1+\frac{u}{\sqrt{n}}\right)_{+}^n e^{-\sqrt{n}u} \, \mathrm{d}u =\int_{-\infty}^{\infty} e^{-\frac{u^2}{2}} \, \mathrm{d}u =\sqrt{2\pi}.$$

Friday, October 25, 2019

Some comments on convergence in distribution

This is a note for myself.

Proposition. Let $(X_n)_{n\geq 1}$ be a sequence of random variables. Suppose that, for each $\epsilon > 0$, there exist random variables $(Y^{\epsilon}_n)_{n\geq 1}$, $(Z^{\epsilon}_n)_{n\geq 1}$, and $Y^{\epsilon}$ such that $$ X_n = Y^{\epsilon}_n + Z^{\epsilon}_n, \qquad Y^{\epsilon}_n \xrightarrow[n\to\infty]{\text{d}} Y^{\epsilon}, \qquad \limsup_{n\to\infty} \mathbb{E}[|Z^{\epsilon}_n|] \leq \epsilon. $$ Then $(X_n)_{n\geq 1}$ converges in distribution as $n\to\infty$. Moreover, $(Y^{\epsilon})_{\epsilon > 0}$ also converges in distribution to the same limit as $\epsilon \to 0^{+}$.

Proof. By the assumption, it is clear that $(X_n)_{n\geq 1}$ is tight. So it suffices to prove that there is a unique subsequential limit. To this end, note that $$ \bigl| \varphi_{X_n}(\xi) - \varphi_{Y^{\epsilon}}(\xi) \bigr| \leq \bigl| \varphi_{Y^{\epsilon}_n}(\xi) - \varphi_{Y^{\epsilon}}(\xi) \bigr| + \mathbb{E}[|\xi Z^{\epsilon}_n|]. $$ If $X$ is a subsequential limit of $(X_n)_{n\geq 1}$, then taking limsup along the subsequence $(n_k)_{k\geq 1}$ for which $X_{n_k}$ converges in distribution to $X$, we get $$ \bigl| \varphi_{X}(\xi) - \varphi_{Y^{\epsilon}}(\xi) \bigr| \leq |\xi|\epsilon. $$ Since this is true for any $\epsilon > 0$, it follows that $Y^{\epsilon} \to X$ in distribution as $\epsilon \to 0^+$. This shows that $X$ is uniquely determined, and we are done. $\square$

Proposition. Let $\Omega$ be a Radon space equipped with the Borel probability measure $\mathbb{P}$. Let $(X_n)_{n\geq 1}$ and $Y$ be random variables on $\Omega$ and $\mu$ be the law of $Y$. Suppose that $(X_n)_{n\geq 1}$ converges in distribution under $\mathbb{P}(\cdot \mid Y = y)$ for $\mu$-almost every $y$. Then $(X_n)_{n\geq 1}$ converges in distribution.

Proof. The assumption tells that $$ \varphi_y(\xi) := \lim_{n\to\infty} \mathbb{E}[e^{i\xi X_n} \mid Y = y] $$ exists as characteristic function for $\mu$-almost every $y$. Then by the Bounded Convergence Theorem, $$ \varphi(\xi) := \lim_{n\to\infty} \mathbb{E}[e^{i\xi X_n}] = \int_{\mathbb{R}} \lim_{n\to\infty} \mathbb{E}[e^{i\xi X_n} \mid Y = y] \, \mu(\mathrm{d}y) = \int_{\mathbb{R}} \varphi_y(\xi) \, \mu(\mathrm{d}y) $$ exists. Now, by the Bounded Convergence Theorem again, for any $(\xi_k)_{k\geq 1}$ with $\xi_k \to 0$, $$ \lim_{k \to \infty} \varphi(\xi_k) = \int_{\mathbb{R}} \lim_{k \to \infty} \varphi_y(\xi_k) \, \mu(\mathrm{d}y) = 1. $$ Therefore the desired conclusion follows from Lévy's Continuity Theorem.

Tuesday, April 24, 2018

Some characterization of the Shannon entropy

Lemma. Let $f : \mathbb{Z}^+ \to \mathbb{R}$ satisfy the following two conditions

  • $f(mn) = f(m)+f(n)$ for all $m, n \in \mathbb{Z}^+$,
  • $\lim_{n\to\infty} (f(n+1) - f(n)) = 0$.
Then there exists $c \in \mathbb{R}$ such that $f(n) = c\log n$ for all $n \in \mathbb{Z}^+$.

Proof. Define $\delta_i = \max\{ |f(n+1) - f(n)| : 2^i \leq n < 2^{i+1} \}$. By the assumption, we know that $\delta_i \to 0$ as $i\to\infty$. Now let $n \geq 2$, and for each $k \geq 1$ we write $$ n^k = \sum_{j=0}^{L_k} a_j 2^j, \qquad a_j \in \{0, 1\} \quad \text{and} \quad a_{L_k} = 1. $$ Then by using the fact that $f(a_{L_k}2^{L_k}) = L_k f(2)$, we can write \begin{align*} \left| \frac{f(n^k)}{L_k} - f(2) \right| &\leq \frac{1}{L_k} \sum_{l=0}^{L_k-1} \left| f\left( \sum_{j=l}^{L_k} a_j 2^k \right) - f\left( \sum_{j=l+1}^{L_k} a_j 2^k \right) \right| \\ &= \frac{1}{L_k} \sum_{l=0}^{L_k-1} \left| f\left( \sum_{j=l}^{L_k} a_j 2^{k-l} \right) - f\left( \sum_{j=l+1}^{L_k} a_j 2^{k-l} \right) \right| \\ &\leq \frac{1}{L_k} \sum_{l=0}^{L_k-1} \delta_{L_k - l} = \frac{1}{L_k} \sum_{i=1}^{L_k} \delta_{i}. \end{align*} Since $L_k = \lfloor k \log_2 n \rfloor$ tends to $\infty$ as $k\to\infty$, by Stolz–Cesàro theorem, this bound converges to $0$. So $$ f(2) = \lim_{k\to\infty} \frac{f(n^k)}{L_k} = \lim_{k\to\infty} \frac{k f(n)}{\lfloor k \log_2 n \rfloor} = \frac{f(n)}{\log_2 n}, $$ and $f(n) = c \log n$ with $c = f(2)/\log 2$. When $n = 1$, we have $f(1) = f(1^2) = 2f(1)$ and hence $f(1) = 0 = c \log 1$, completing the proof. ////

This lemma is the key step for proving the theorem of Faddeev. To state this theorem, let $$\Delta^n = \{ (p_1, \cdots, p_n) \in [0, \infty)^n : p_1 + \cdots + p_n = 1 \}$$ and $\mathtt{Prob} = \bigcup_{n=1}^{\infty} \Delta^n$ the set of all probability vectors.

Theorem. (Faddeev)[1] Let $H : \mathtt{Prob} \to [0, \infty)$ satisfy the following properties

  1. $H$ is a symmetric function on each $\Delta^n$.
  2. $H$ is continuous on $\Delta^2$.
  3. $H(\frac{1}{2}, \frac{1}{2}) = 1$.
  4. $H(t p_1, (1-t)p_1, p_2, \cdots, p_n) = H(p_1, \cdots, p_n) + p_1 H(t, 1-t)$.
Then $H$ is the Shannon entropy: $$ H(p_1, \cdots, p_n) = - \sum_{i=1}^{n} p_i \log_2 p_i. $$

Proof. We extend $H$ onto the cone $\{ \lambda p : p \in \mathtt{Prob}, \lambda > 0 \}$ by setting $$H(\lambda p) = \lambda H(p), \qquad \forall p \in \mathtt{Prob}, \lambda > 0.$$ Then the condition 4 can be rephrased as $$H(p_0, p_1, p_2, \cdots, p_n) = H(p_0+p_1, p_2, \cdots, p_n) + H(p_0, p_1). \tag{1}$$ By applying $\text{(1)}$ repeatedly, we find that \begin{align*} H(p_1, \cdots, p_n) &= \sum_{k=2}^{n} H(p_1 + \cdots + p_{k-1}, p_k). \end{align*} This tells that $H$ is continuous on each $\Delta^n$ as well. By the same argument, we also find that \begin{align*} &H(p_1, \cdots, p_n, q_1, \cdots, q_m) \\ &= H(p_1+\cdots+p_n, q_1, \cdots, q_m) + \sum_{k=2}^{n} H(p_1 + \cdots + p_{k-1}, p_k) \\ &= H(p_1+\cdots+p_n, q_1, \cdots, q_m) + H(p_1, \cdots, p_n), \tag{2} \end{align*} which generalizes the property $\text{(1)}$. Now define $f(n) = H(\frac{1}{n}, \cdots, \frac{1}{n})$. By applying $\text{(2)}$, we obtain $$ f(mn) = f(m) + f(n). $$ Next we show that $f(n+1) - f(n) \to 0$ as $n\to\infty$. In view of Stolz–Cesàro theorem together with $f(2^n)/2^n = n/2^n \to 0$, we know that the only candidate for the limit is zero. Also, by $\text{(2)}$ we easily find that $$(n+1)f(n+1) = H(n,1) + nf(n).$$ So $nf(n)$ is increasing and $$ 0 \leq nf(n) \leq 2^{\lceil \log_2 n\rceil } f(2^{\lceil \log_2 n\rceil }) = 2^{\lceil \log_2 n\rceil } \lceil \log_2 n\rceil. $$ This tells that $ f(n) = \mathcal{O}(\log n)$ and hence $$ f(n+1) - f(n) = H\left(\frac{n}{n+1}, \frac{1}{n}\right) - \frac{1}{n+1}f(n) $$ converges as $n\to\infty$ by the continuity of $H$ on $\Delta^2$. So this limit must be zero, and by the lemma, $f(n) = \log_2 n$. Now if $(\frac{a_1}{N}, \cdots, \frac{a_n}{N}) \in \Delta^n$, then by $\text{(2)}$, \begin{align*} H\left( \frac{a_1}{N}, \cdots, \frac{a_n}{N} \right) &= f(N) - \sum_{k=1}^{N} \frac{a_k}{N} f(a_k) \\ &= - \sum_{k=1}^{N} \frac{a_k}{N} \log_2 \frac{a_k}{N} \end{align*} and hence $H$ equals the Shannon entropy for probability vectors with rational coordinates. Then the general case follows by the continuity and the proof is complete.

References.

  • [1] Rényi, Alfréd. On measures of entropy and information. HUNGARIAN ACADEMY OF SCIENCES Budapest Hungary, 1961.

Thursday, February 15, 2018

A proof of Burnside's lemma

Theorem. Let $G$ be a finite group acting on a set $X$. Write $\operatorname{Fix} g = \{ x \in X : g \cdot x = x\}$ for $g \in G$ and $\operatorname{Orb} x = \{ g \cdot x : g \in G\}$ for $x \in X$. (The latter is called an orbit of $x$.) If $X/G$ denotes the set of orbits on $X$, then \begin{align*} |X/G| = \frac{1}{|G|} \sum_{g \in G} \left| \operatorname{Fix} g \right|. \end{align*}

The proof is essentially counting the set $G\times X$ in two ways. Let $\gamma$ be a uniform distribution over $G$ under the law $\mathsf{P}$. The probabilistic analogue of the Lagrange's theorem is as follows:

Lemma. $\gamma.x$ has the uniform distribution over the orbit $\operatorname{Orb} x$ for each $x\in X$.

Proof of Lemma. $\gamma \cdot x$ takes values only in $\operatorname{Orb} x$, and for each $y \in \operatorname{Orb} x$ there exists $h \in G$ for which $x = h \cdot y$. Since each map $g \mapsto hg$ is a bijection on $G$, we know that $h\gamma$ is also uniform over $G$, thus has the same law as $\gamma$. Therefore $$ \mathsf{P}[\gamma \cdot x = y] = \mathsf{P}[h\gamma \cdot x = h \cdot y] = \mathsf{P}[\gamma \cdot x = x], $$ which proves that $\gamma \cdot x$ is uniform over $\operatorname{Orb} x$. ////

Returning to the original proof, notice that $X/G$ is a partition of $X$. So \begin{align*} \frac{1}{|G|} \sum_{g \in G} \left|\operatorname{Fix} g\right| &= \mathsf{E}[\left|\operatorname{Fix} \gamma\right|] = \mathsf{E}\left[ \sum_{x\in X} \mathbf{1}_{\{\gamma \cdot x = x\}} \right] = \sum_{x\in X} \mathsf{P}[\gamma \cdot x = x] \\ &= \sum_{O \in X/G} \sum_{x \in O} \mathsf{P}[\gamma \cdot x = x] = \sum_{O \in X/G} \underbrace{\sum_{x \in O} \frac{1}{|O|}}_{=1} = |X/G|. \end{align*}

Saturday, February 3, 2018

Weighted Right Convex Function (WRCF) Theorem

Theorem. Suppose that $f : I \to \mathbb{R}$ be a function on an interval $I$ and that there exists $s \in I$ such that $f$ is convex on $I \cap [s,\infty)$. Then for any $p_1,\cdots,p_n \in (0, 1]$ satisfying $\sum_{i=1}^{n} p_i = 1$ and $p = \min\{p_1,\cdots,p_n\}$, the followings are equivalent:

  1. For any $x_1, \cdots, x_n \in I$ such that $\sum_{i=1}^{n} x_i p_i \geq s$, we have $$f\left(\sum_{i=1}^{n} x_i p_i \right) \leq \sum_{i=1}^{n} f(x_i) p_i. $$
  2. For any $x, y \in I$ satisfying $x \leq s \leq y$ and $p x + (1-p)y = s$, we have $$p f(x) + (1-p)f(y) \geq f(s)$$

The following proof is an adaptation of the argument of [CVB11] in probabilistic language.

Proof. The direction $1 \Rightarrow 2$ is straightforward. So we prove the converse. We need the following easy lemma:

Lemma. Let $f : [a, b] \to \mathbb{R}$ be convex. Suppose that $\mu$ and $\nu$ are finite measures on $[a, b]$ such that $ \mu([a, b]) = \nu([a, b])$, $\int_{[a,b]} x \, \mu(dx) = \int_{[a,b]} x \, \nu(dx)$ and $\operatorname{supp}(\nu)\subseteq \{a, b\}$. Then $$ \int_{[a,b]} f(x) \, \mu(dx) \leq \int_{[a,b]} f(x) \, \nu(dx). $$

Indeed, the convexity of $f$ tells that the line $\ell$ joining $(a, f(a))$ and $(b, f(b))$ satisfies $f(x) \leq \ell(x)$ for all $x \in [a, b]$. Then $$ \int_{[a,b]} f(x) \, \mu(dx) \leq \int_{[a,b]} \ell(x) \, \mu(dx) = \int_{[a,b]} \ell(x) \, \nu(dx) = \int_{[a,b]} f(x) \, \nu(dx) $$ The second equality follows from the first two assumptions and the last equality follows since $\nu$ is supported on $\{a, b\}$ and $\ell \equiv f$ on $\{a,b\}$. This completes the proof of Lemma.

Let $\phi$ and $\tilde{f}$ be functions on $I$ defined by $$ \phi(x) = \frac{s-px}{1-p}, \qquad \tilde{f}(x) = \begin{cases} f(x), & x \geq s \\ \frac{f(s) - (1-p)f(\phi(x))}{p}, & x < s \end{cases} $$ Notice that item 2 of the theorem is equivalent to the inequality $f(x) \geq \tilde{f}(x)$ for all $x \in I$. Now consider a random variable $X$ taking values in $\{x_1,\cdots,x_n\} \subseteq I$ with $P[X = x_i] = p_i$ such that $E[X] \geq s$. We want to prove that $E[f(X)] \geq f(EX)$. Write $$ E[f(X)] \geq E[\tilde{f}(X)] = E\left[ \frac{f(s) - (1-p)f(\phi(X))}{p} ; X < s\right] + E[f(X); X \geq s] $$ and notice that $E[f(X) \mid X \geq s] \geq f(E[X \mid X \geq s])$ by the Jensen's inequality. Combining altogether, if we let $m_+ = E[X \mid X \geq s]$, then it suffices to prove that $$ \frac{P[X < s]}{p}f(s) + P[X \geq s] f(m_+) \geq \frac{1-p}{p} E[ f(\phi(X)) ; X < s] + f(E X) \tag{*} $$ The following claim is useful for our purpose:

Claim. If $j$ is any index such that $x_j < s$, then $\phi(x_j) \in (s, m_+]$.

Indeed $\phi(x_j) > s$ is easy to check. To prove the upper bound, let $\tilde{X}$ be a random variable such that $$ P[\tilde{X} = x_i] = \begin{cases} p_i/(1-p), & i \neq j \\ (p_i - p)/(1-p), & i = j \end{cases} $$ Then we easily check that $E[\tilde{X} \mid \tilde{X} \geq s] = m_+$ and hence $$ \phi(x_j) \leq \frac{(EX) - x_j p}{1-p} = E[\tilde{X}] \leq E[\tilde{X} \mid \tilde{X} \geq s] = m_+. $$ This completes the proof of Claim. Therefore, if we write $$ \mu = \frac{1-p}{p} P[\phi(X) \in \cdot \, ; X < s] + \delta_{E X}, \qquad \nu = \frac{P[X < s]}{p} \delta_s + P[X \geq s]\delta_{m_+} $$ then by the claim above both $\mu$ and $\nu$ are finite measures on $[s, m_+]$ and $\text{(*)}$ is equivalent to the inequality $$ \int_{[s,m_+]} f(x) \, \mu(dx) \leq \int_{[s,m_+]} f(x) \, \nu(dx). $$ Finally, this inequality follows from the lemma above since $$ \mu([s,m_+]) = \frac{p[X < s]}{p} + P[X \geq s] = \nu([s,m_+]) $$ and $$ \int_{[s,m_+]} x \, \mu(dx) = \frac{P[X < s]}{p}s + E[X ; X \geq s] = \int_{[s,m_+]} x \, \nu(dx) $$ and $\nu$ is supported on $\{s, m_+\}$. Therefore the desired claim $E [f(X)] \geq f(EX)$ follows. ////

References.

  • [CVB11] Cirtoaje, Vasile, and Alina Baiesu. "An extension of Jensen's discrete inequality to half convex functions." Journal of Inequalities and Applications 2011, no. 1 (2011): 101.

Tuesday, September 12, 2017

Euler's transformation - series acceleration

Theorem. Assume that $(a_n)_{n\geq 0}$ satisfies $\limsup_{n\to\infty} |a_n|^{1/n} \leq 1$. Then for $x\in[0,1)$ we have $$ \sum_{n=0}^{\infty} (-1)^n a_n x^n = \frac{1}{1+x} \sum_{n=0}^{\infty} (-1)^n \Delta^n a_0 \left( \frac{x}{1+x}\right)^n . \tag{*} $$ Here, both sides converges absolutely and $\Delta^n$ is the $n$-fold forward difference defined by $$ \Delta^n a_j = \sum_{k=0}^{n} \binom{n}{k} (-1)^{n-k} a_{j+k}. $$

Proof. There is nothing to prove if $x = 0$, so we assume throughout that $0 < x < 1$. First, absolute convergence of the LHS of $\text{(*)}$ is straightforward. To verify absolute convergence of the RHS, we first note that there exist $C$ and $\beta$ such that $1 < \beta < \frac{x+1}{2x}$ and $|a_n| \leq C \beta^n$. Then $$ \frac{1}{2^n} |\Delta^n a_j| \leq \max_{0\leq k \leq n} |a_{j+n}| \leq C\beta^{j+k}. \tag{1} $$ Then absolute convergence of the RHS of $\text{(*)}$ follows from comparison together with the following estimate $$ \left| (-1)^n \Delta^n a_0 \left( \frac{x}{1+x}\right)^n \right| \leq C \left( \frac{2\beta x}{1+x}\right)^n. $$ Next we show the equality $\text{(*)}$. We write \begin{align*} \sum_{n=0}^{\infty} (-1)^n a_n x^n &= \sum_{n=0}^{\infty} (-1)^n a_0 x^n + \sum_{n=0}^{\infty} (-1)^n (a_n - a_0) x^n \\ &= \frac{a_0}{1+x} - x \sum_{n=0}^{\infty} (-1)^n (a_{n+1} - a_0) x^n. \end{align*} The latter sum can be computed as \begin{align*} \sum_{n=0}^{\infty} (-1)^n (a_{n+1} - a_0) x^n &= \sum_{n=0}^{\infty} (-1)^n \left( \sum_{l=0}^{\infty} \Delta a_l \right) x^n \\ &= \sum_{l=0}^{\infty} \Delta a_l \left( \sum_{n=l}^{\infty} (-1)^n x^n \right) \\ &= \frac{1}{1+x} \sum_{l=0}^{\infty} (-1)^l \Delta a_l x^l. \end{align*} Here, interchanging the order of summations is justified by the absolute convergence. So we obtain $$ \sum_{n=0}^{\infty} (-1)^n a_n x^n = \frac{a_0}{1+x} - \frac{x}{1+x} \sum_{l=0}^{\infty} (-1)^l \Delta a_l x^l. \tag{2} $$ Since we have $\limsup_{n\to\infty} |\Delta a_n|^{1/n} \leq 1$, we can recursively apply $\text{(2)}$ to obtain $$ \begin{split} \sum_{n=0}^{\infty} (-1)^n a_n x^n &= \frac{1}{1+x} \sum_{n=0}^{N-1} (-1)^n \Delta^n a_0 \left( \frac{x}{1+x}\right)^n \\ &\qquad + \left( -\frac{x}{1+x} \right)^N \sum_{l=0}^{\infty} (-1)^l \Delta^N a_l x^l. \end{split} \tag{3} $$ But by the estimate $\text{(1)}$, we have $$ \left| \left( -\frac{x}{1+x} \right)^N \sum_{l=0}^{\infty} (-1)^l \Delta^N a_l x^l \right| \leq \left( \frac{2\beta x}{1+x} \right)^N \sum_{l=0}^{\infty} C(\beta x)^{l}. $$ Since $\beta x < \frac{2\beta x}{1+x} < 1$, this bound vanishes as $N \to \infty$. Therefore we obtain the desired identity. ////

Example. Let $f : [0,\infty) \to \mathbb{R}$ be a completely monotone function and set $a_n = f(n)$. We know that $f$ admits the representation $$ f(s) = \int_{[0,\infty)} e^{-st} \, \mu(dt) $$ for some finite Borel measure $\mu$ on $[0,\infty)$. Then a simple computation shows that $$ (-1)^n \Delta^n a_0 = \int_{[0,\infty)} (1 - e^{-t})^n \, \mu(dt). $$ This sequence is non-negative and decreases to $0$ as $n\to\infty$. So the limiting form of $\text{(*)}$ is available and we obtain $$ \sum_{n=0}^{\infty} (-1)^n a_n = \sum_{n=0}^{\infty} \frac{(-1)^n \Delta^n a_0}{2^{n+1}}. $$ Notice that the resulting transformation converges exponentially fast regardless of how slow the original series was. As a useful example, consider $\mu(dt) = t^{p-1}e^{-t}/\Gamma(p)$ for $p > 0$. Then we have the following series acceleration for the Dirichlet eta function: $$ \sum_{n=0}^{\infty} \frac{(-1)^n}{(n+1)^p} = \sum_{n=0}^{\infty} \frac{1}{2^{n+1}} \sum_{k=0}^{n} \binom{n}{k} \frac{(-1)^{k}}{(k+1)^p}. $$ Of course this can be used to compute the Riemann zeta function.

Monday, August 21, 2017

An easy exercise on continued fractions

1. Basic theory of continued fractions

Let $(a_n)_{n\geq0}$ and $(b_n)_{n\geq1}$ be such that $a_n, b_n > 0$. (By convention, we always set $b_{0} = 1$.) If we define $2\times 2$ matrices $(P_n)_{n\geq-1}$ by

$$ P_n = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix} \begin{pmatrix} 0 & 1 \\ 1 & a_0 \end{pmatrix} \begin{pmatrix} 0 & b_1 \\ 1 & a_1 \end{pmatrix} \cdots \begin{pmatrix} 0 & b_n \\ 1 & a_n \end{pmatrix} $$

then it can be written in the form

$$ P_n = \begin{pmatrix} p_{n-1} & p_n \\ q_{n-1} & q_n \end{pmatrix} $$

where $(p_n)$ and $(q_n)$ solves the following recurrence relation

$$ \begin{cases} p_n = a_n p_{n-1} + b_n p_{n-2}, & p_{-2} = 0, p_{-1} = 1 \\ q_n = a_n q_{n-1} + b_n q_{n-2}, & p_{-2} = 1, p_{-1} = 0 \end{cases} $$

Using the theory of fractional linear transformation, we find that

$$ \frac{p_n}{q_n} = a_0 + \mathop{\vcenter{\Large\mathrm{K}}}_{i=1}^{n} \frac{b_i}{a_i} = a_0 + \dfrac{b_1}{a_1 + \dfrac{b_2 }{a_2 + \dfrac{\ddots }{\ddots \dfrac{b_{n-1}}{a_{n-1} + \dfrac{b_n}{a_n} } }}} $$

where the right-hand side is the Gauss' Kettenbruch notation for continued fractions. Taking determinant to $P_n$ and simplifying a little bit, we also obtain

$$ \frac{p_n}{q_n} = a_0 + \sum_{i=1}^{n} (-1)^{i-1} \frac{b_1 \cdots b_i}{q_iq_{i-1}} $$

which is often useful for establishing the convergence of the infinite continued fraction.

2. Computing some continued fractions

Let $(p_n)$ and $(q_n)$ be as before. Assume that $p_n/q_n$ converges and that we can find a sequence $(r_n)$ of positive reals such that $\sum_{n=0}^{\infty} \frac{q_n}{r_n} x^n$ converges for $x \in [0, 1)$ and diverges at $x = 1$. Then we can compute the limit of $p_n/q_n$ through the following averaging argument:

$$ a_0 + \mathop{\vcenter{\Large\mathrm{K}}}_{i=1}^{\infty} \frac{b_i}{a_i} = \lim_{n\to\infty} \frac{p_n}{q_n} = \lim_{n\to\infty} \frac{p_n / r_n}{q_n / r_n} = \lim_{x \to 1^-} \frac{\sum_{n=0}^{\infty} \frac{p_n}{r_n} x^n}{\sum_{n=0}^{\infty} \frac{q_n}{r_n} x^n}. $$

We give some examples to which this technique applies.

Example 1. As the first example, we consider the following identity

$$ \dfrac{1}{1 + \dfrac{2}{2 + \dfrac{3}{3 + \ddots}}} = \mathop{\vcenter{\Large\mathrm{K}}}_{n=1}^{\infty} \frac{n}{n} = \frac{1}{e-1}. $$

In this case, it turns out that we can choose $r_n = n!$. Indeed, assume that $(c_n)$ solves the recurrence relation $c_n = n c_{n-1} + n c_{n-2}$. Then the exponential generating function

$$ y(x) = \sum_{n=0}^{\infty} \frac{c_n}{n!} x^n $$

solves the initial value problem

$$ y' + \frac{x^2+1}{x(x-1)} y = \frac{c_0}{x(x-1)}, \qquad y(0) = c_0. $$

The solution is easily found by the integrating factor method.

$$ y(x) = \frac{c_0 + (c_1 - 2c_0)x e^{-x}}{(x-1)^2}. $$

Plugging $c_n = p_n$ and $c_n = q_n$, we obtain

$$ \mathop{\vcenter{\Large\mathrm{K}}}_{n=1}^{\infty} \frac{n}{n} = \lim_{x \to 1^-} \frac{p_0 + (p_1 - 2p_0)x e^{-x}}{q_0 + (q_1 - 2q_0)x e^{-x}} = \frac{e^{-1}}{1 - e^{-1}} = \frac{1}{e-1} $$

as desired.

Example 2. The exponential generating function $y(x)$ of $c_n = nc_{n-1} + nc_{n-2}$ solves the equation

$$ (x-1)y'' + 2y' + y = 0. $$

Any solution of this equation is of the form

$$ y(x) = \frac{\alpha I_1(2\sqrt{1-x}) + \beta K_1(2\sqrt{1-x})}{\sqrt{1-x}}, $$

where $I_1$ and $K_1$ are the modified Bessel functions of order 1. From this we deduce that

$$ \dfrac{1}{1 + \dfrac{1}{2 + \dfrac{1}{3 + \ddots}}} = \mathop{\vcenter{\Large\mathrm{K}}}_{n=1}^{\infty} \frac{1}{n} = \lim_{x \to 1^-} \frac{I_1(2) K_1(2\sqrt{1-x}) - K_1(2) I_1(2\sqrt{1-x})}{I_0(2) K_1(2\sqrt{1-x}) + K_0(2) I_1(2\sqrt{1-x})} = \frac{I_1(2)}{I_0(2)}. $$

Example 3. Consider the Rogers-Ramanujan continued fraction

$$ \dfrac{1}{1 + \dfrac{q}{1 + \dfrac{q^2}{1 + \ddots}}} = \mathop{\vcenter{\Large\mathrm{K}}}_{n=1}^{\infty} \frac{q^{n-1}}{1}. $$

Adopting the same strategy, the generating function $y(x) = \sum_{n=0}^{\infty} c_n x^n$ for the recurrence relation $c_n = c_{n-1} + q^{n-1} c_{n-2}$ satisfies

$$ y(x) = c_0 + \frac{c_1 x}{1-x} + \frac{qx^2}{1-x} y(qx). $$

Let $y_0$ be the solution for $(c_0, c_1) = (0, 1)$ and $y_1$ the solution for $(c_0, c_1) = (1, 1)$. Then it follows that both $y_0$ and $y_1$ has simple pole at $x = 1$ and thus

$$ \mathop{\vcenter{\Large\mathrm{K}}}_{n=1}^{\infty} \frac{q^{n-1}}{1} = \frac{1 + q y_0(q)}{1 + q y_1(q)}. $$

Iterating the functional equation for $y_0$ and $y_1$, we find that

$$ 1 + qy_0(q) = \sum_{n=0}^{\infty} \frac{q^{n(n+1)}}{(q;q)_n}, \qquad 1 + qy_1(q) = \sum_{n=0}^{\infty} \frac{q^{n^2}}{(q;q)_n}. $$

Rogers-Ramanujan identities tell that these can be represented in terms of infinite $q$-Pochhammer symbol.

Sunday, February 12, 2017

A simple regulariation

(This is a slight modification of my old post.)

Proposition. Let $f : (0,\infty) \to \Bbb{C}$ be a locally integrable function that satisfies the following conditions:

  1. For each $\epsilon > 0$ the following limit converges: $$ I(\epsilon) = \lim_{R\to\infty} \int_{\epsilon}^{R} \frac{f(x)}{x} \, \mathrm{d}x $$
  2. There exist constants $m = m(f)$ and $c = c(f)$ such that $$I(\epsilon) = -m\log\epsilon + c + o(1) \qquad \text{as }\epsilon \to 0^+.$$
Then the Laplace transform $\mathcal{L}f(x)$ is a well-defined continuous function on $(0,\infty)$ and we have $$ c = \lim_{\substack{\epsilon & \to 0^+ \\ R&\to\infty}} \left( \int_{\epsilon}^{R} \mathcal{L}f(s) \, \mathrm{d}s - m \log R \right) - m\gamma, \tag{1} $$ where $\gamma$ is the Euler-Mascheroni constant.

Remark. Before the actual proof, we make some remarks.

  1. If in addition that $\lim_{x\to 0^+} f(x)$ converges, then this limit is exactly $m(f)$: $$m(f) = \lim_{x\to 0^+} f(x)$$ This renders $m(f)$ uninteresting in most applications.
  2. $c(f)$ can be represented by the integral \begin{align*} c(f) &= \int_{0}^{\infty} \frac{f(x) - m(f) \mathbf{1}_{(0,1)}(x)}{x} \, \mathrm{d}x \\ &= \int_{0}^{1} \frac{f(x) - m(f)}{x} \, \mathrm{d}x + \int_{1}^{\infty} \frac{f(x)}{x} \, \mathrm{d}x. \end{align*}
  3. If we impose a strong assumption on $f$, the proof greatly simplifies. The following lengthy proof is only meaningful when a full generality is needed.

Proof. Let $g : (0,\infty) \to \Bbb{C}$ and $J : (0,\infty) \to \Bbb{C}$ be defined by $$ g(x) = \frac{f(x) - m\mathbf{1}_{(0,1)}(x)}{x}, \qquad J(\epsilon) = \lim_{R\to\infty} \int_{\epsilon}^{R} g(x) \, \mathrm{d}x. $$ By the assumption, $J$ is well-defined and satisfies $$ c = \lim_{x \to 0^+} J(x), \qquad 0 = \lim_{x\to\infty} J(x). $$ In particular, $J$ extends to a continuous function on $[0,\infty]$ and hence bounded. Now using the identity $J'(x) = -g(x)$ on $(0,\infty)$, for $0 \lt \epsilon \lt 1 \lt R$ we have \begin{align*} &\int_{\epsilon}^{R} f(x) e^{-sx} \, \mathrm{d}x \\ &= m \int_{\epsilon}^{1} e^{-sx} \, \mathrm{d}x - \int_{\epsilon}^{R} x J'(x) e^{-sx} \, \mathrm{d}x \\ &= m \int_{\epsilon}^{1} e^{-sx} \, \mathrm{d}x - \left[ xJ(x)e^{-sx} \right]_{\epsilon}^{R} + \int_{\epsilon}^{R} J(x)(1 - sx)e^{-sx} \, \mathrm{d}x. \end{align*} For $s \gt 0$, taking $\epsilon \to 0^+$ and $R \to \infty$ shows that the expression above converges to \begin{align*} \mathcal{L}f(s) &:= \lim_{\substack{\epsilon & \to 0^+ \\ R&\to\infty}} \int_{\epsilon}^{R} f(x) e^{-sx} \, \mathrm{d}x \\ &= m\cdot\frac{1 - e^{-s}}{s} + \int_{0}^{\infty} J(x)(1 - sx)e^{-sx} \, \mathrm{d}x. \end{align*} An easy but important remark is that the last integral converges absolutely for $s \gt 0$. Now by the simple estimate $$ \int_{\epsilon}^{R} \int_{0}^{\infty} (sx)^\alpha e^{-sx} \, \mathrm{d}x \, \mathrm{d}s = \int_{\epsilon}^{R} \frac{\Gamma(\alpha+1)}{s} \, \mathrm{d}s \lt \infty $$ that holds true for $\alpha \gt -1$, we can apply Fubini's theorem to write \begin{align*} &\int_{\epsilon}^{R} \mathcal{L}f(s) \, \mathrm{d}s \\ &= m \int_{\epsilon}^{R} \frac{1 - e^{-s}}{s} \, \mathrm{d}s + \int_{0}^{\infty} J(x) \left( \int_{\epsilon}^{R} (1 - sx)e^{-sx} \, \mathrm{d}s \right) \, \mathrm{d}x \\ &= m \left[ (1-e^{-s})\log s \right]_{\epsilon}^{R} - m \int_{\epsilon}^{R} e^{-s}\log s \, \mathrm{d}s \\ &\qquad + \int_{0}^{\infty} J(x) \left( Re^{-Rx} - \epsilon e^{-\epsilon x} \right) \, \mathrm{d}x. \end{align*} From this computation, it follows that $$\lim_{\substack{\epsilon & \to 0^+ \\ R&\to\infty}} \left( \int_{\epsilon}^{R} \mathcal{L}f(s) \, \mathrm{d}s - m\log R \right) = m \gamma + c. $$ This proves $\text{(1)}$ as expected. ////

In many applications, the logarithmic term is cancelled out and thus the primary interest lies in the value of $c = c(f)$. An easy observation is that both $m$ and $c$ are linear. A less obvious properties are summarized in the following table.

Transformation Relation Conditions
$g(x) = f(x^p)$ $c(g) = \frac{1}{p}c(f)$ $p > 0$
$g(x) = f(px)$ $c(g) = c(f) - m(f)\log p$ $p > 0$
$g(x) = f(x)e^{-\alpha x}$ $c(g) = c(f) - \int_{0}^{\alpha} \mathcal{L}f(s) \, ds$ $\Re(\alpha) > 0$

It is worth it noting that $m(g) = m(f)$ in all of the transformations listed above. Next, the following table summaries some well-known values of $c$.

Function $f(x)$ Value of $m(f)$ Value of $c(f)$ Conditions
$e^{-x}$ $f(0) = 1$ $-\gamma$ —
$\cos x$ $f(0) = 1$ $-\gamma$ —
$\dfrac{1}{(1+x)^p}$ $f(0) = 1$ $-H_{p-1}$ $p > 0$
$\dfrac{x}{e^x - 1}$ $f(0) = 1$ $0$ —

Here are some easy examples.

Example 1. Let $p, q \gt 0$. Then \begin{align*} &\int_{0}^{\infty} \frac{\cos (x^p) - \exp(-x^q)}{x} \, \mathrm{d}x \\ &= c\{\cos(x^p) - \exp(-x^q)\} = \frac{1}{p} c\{\cos x\} - \frac{1}{q} c\{e^{-x}\} \\ & = \gamma \left( \frac{1}{q} - \frac{1}{p} \right). \end{align*}

Example 2. Let $\alpha, \beta \gt 0$. Then \begin{align*} &\int_{0}^{\infty} \frac{1}{x} \left( \frac{1}{1 + \alpha^2 x^2} - \cos (\beta x) \right) \, \mathrm{d}x \\ &= c\left\{ \frac{1}{1 + \alpha^2 x^2} - \cos (\beta x) \right\} \\ &= \frac{1}{2} c\left\{ \frac{1}{1 + x} \right\} - c \{\cos x\} - \log \left( \frac{\alpha}{\beta} \right) \\ &= \gamma - \log \left( \frac{\alpha}{\beta} \right). \end{align*}

Example 3. The Laplace transform of the Bessel function $J_0$ of the first kind and order $0$ is given by[1] $$ \mathcal{L} \{J_0\} (s) = \frac{1}{\sqrt{s^2 + 1}} $$ Using this and $m(J_0) = J_0(0) = 1$, we find that \begin{align*} c(J_0) &= \lim_{R \to \infty} \left( \int_{0}^{R} \mathcal{L} \{J_0\}(s) \, \mathrm{d}s - \log R \right) - \gamma \\ &= \lim_{R \to \infty} \left( \operatorname{arsinh}(R) - \log R \right) - \gamma \\ &= \log 2 - \gamma. \end{align*} This also shows $$ \int_{0}^{\infty} \frac{J_0(x) - \mathbf{1}_{(0,1)}(x)}{x} \, \mathrm{d}x = \log 2 - \gamma. $$