Skip to main content
Minor Math Jaxing (formula hyperlinking)
Source Link
Daniele Tampieri
  • 6.4k
  • 7
  • 30
  • 45

Kostya_I's complex analytic answer and Conrad's Fourier analytic proof in the comments complement each other nicely. The purpose of the present answer is to relate your question to the literature.

As pointed out already, the RHS is periodic in $\theta$ so we may restrict to $|\theta| \le \pi$.

For $\theta=\pi$, $\cos(k \theta)=(-1)^k$ and the identity in question is $$(\star)\, \pi \cot(\pi t) = \frac{1}{t}+\lim_{N\to \infty}\sum_{|n| \le N}\frac{1}{t+n}=\frac{1}{t}+2t\sum_{n =1}^{\infty}\frac{1}{t^2-n^2},$$$$\pi \cot(\pi t) = \frac{1}{t}+\lim_{N\to \infty}\sum_{|n| \le N}\frac{1}{t+n}=\frac{1}{t}+2t\sum_{n =1}^{\infty}\frac{1}{t^2-n^2},\label{1}\tag{$\star$}$$ $t$ non-integer. This identity also holds for complex $t$. It is due to Euler and can be obtained by carefully differentiating the product formula for $\sin(\pi z)$, $$(\star \star)\, \sin(\pi z)= \pi z\prod_{n \ge 1}(1-z^2/n^2).$$$$\sin(\pi z)= \pi z\prod_{n \ge 1}(1-z^2/n^2)..\label{2}\tag{$\star\star$}$$ One can also derive $(\star \star)$\eqref{2} from $(\star$)\eqref{1}.

For $\theta=0$, your identity is $$(\star\star \star)\,\frac{\pi}{\sin(\pi t)} = \frac{1}{z}+2t\sum_{n =1}^{\infty}\frac{(-1)^n}{z^2-n^2}.$$$$\frac{\pi}{\sin(\pi t)} = \frac{1}{z}+2t\sum_{n =1}^{\infty}\frac{(-1)^n}{z^2-n^2}.\label{3}\tag{$\star\star\star$}$$ It again holds for $t$ non-integer, and extends to complex $t$.

There are many proofs of $(\star)$\eqref{1}, $(\star \star)$\eqref{2} and $(\star \star \star)$\eqref{3} in the literature (as well as of variations of these identities) and some of them, possibly all of them, extend to prove your identity when $|\theta|\le \pi$. I am going to give a partial review of these proofs.

From "Fourier analysis. An Introduction" by Elias Stein and Rami Shakarchi (Princeton Lectures in Analysis. 1, Princeton University Press, 2003):

  1. Page 90, exercise 9: For fixed non-integer $\alpha$, the Fourier expansion of $\frac{\pi}{\sin(\pi \alpha)} e^{i(\pi-x)\alpha}$ for $x \in [0,2\pi]$ is worked out to be $$\sum_{n \in \mathbb{Z}} \frac{e^{inx}}{n+\alpha}.$$ This relates to Conrad's answer in the comments -- taking real parts gives your identity. Applying Parseval gives the identity $$(\star \star \star \star)\, \sum_{n\in \mathbb{Z}}\frac{1}{(n+\alpha)^2}=\frac{\pi^2}{\sin^2(\pi \alpha)}.$$$$\sum_{n\in \mathbb{Z}}\frac{1}{(n+\alpha)^2}=\frac{\pi^2}{\sin^2(\pi \alpha)}.\label{4}\tag{${\star\star\star\star}$}$$
  2. Page 97, exercise 97(c): A proof of $(\star \star \star)$\eqref{3}, the $\theta=0$ case of your identity, is given. It is proved as a consequence of Euler's identity $\sum_{n\ge 1}\frac{1}{n^2 - \alpha^2} = \frac{1}{2\alpha^2} - \frac{\pi}{2\alpha\tan(\alpha \pi)}$ (whose proof is given and follows from a suitable Fourier expansion). Indeed, applying Euler's identity with $\alpha$ and $\alpha/2$ and taking a linear combination gives $(\star \star \star)$\eqref{3}.
  3. Page 165, exercise 15: Poisson summation applied to a (shift of) $g(t)=(1-|t|)\mathbf{1}_{|t|\le 1}$ gives $(\star \star \star \star)$\eqref{4}. A consequence which follows by integration is also given: $$\lim_{N \to \infty}\sum_{|n| \le N}\frac{1}{n+\alpha} = \frac{\pi}{\tan(\pi \alpha)}.$$

From the book "Complex analysis" by the same authors:

  1. Page 105, exercise 12: A proof of $(\star \star \star \star)$\eqref{4} is given as a consequence of integrating $f(z)=\pi \cot(\pi \alpha)/(\alpha+z)^2$ over a circle of growing radius and using Cauchy's residue theorem.
  2. Page 129, exercise 7(b,c): A proof of $(\star \star \star \star)$\eqref{4} is given, by applying Poisson summation to $f(z) = (\tau+z)^{-2}$ ($\Im \tau>0$).
  3. Page 142: A proof of $(\star)$\eqref{1} is given by proving that both sides, as functions of complex variable, satisfy 3 properties which determine a function uniquely. Kostya_I's answer can be seen as an extension of it.

Bonus:

  1. There is a real-analytic variant of the last proof of $(\star)$\eqref{1}, attributed to Gustav Herglotz, which can be found in Chapter 26 of M. Aigner and G. Ziegler's "Proofs from THE BOOK", 6th edition. In the complex analytic proof, 3 properties are established for each side of the identity: i) Each side is a meromorphic function with simple poles at the integers, and no other singularities. ii) Each side is periodic with period $1$. iii) The residue of each side at $z=0$ is $1$. In the real-analytic proof, the following properties are established instead: i) Each side is defined for $t \in \mathbb{R}\setminus \mathbb{Z}$ and is continuous there. ii) Each side is periodic with period $1$. iii) Each side is an odd function. iv) Both sides satisfy the functional equation $f(x/2)+f((x+1)/2) = 2f(x)$.

Kostya_I's complex analytic answer and Conrad's Fourier analytic proof in the comments complement each other nicely. The purpose of the present answer is to relate your question to the literature.

As pointed out already, the RHS is periodic in $\theta$ so we may restrict to $|\theta| \le \pi$.

For $\theta=\pi$, $\cos(k \theta)=(-1)^k$ and the identity in question is $$(\star)\, \pi \cot(\pi t) = \frac{1}{t}+\lim_{N\to \infty}\sum_{|n| \le N}\frac{1}{t+n}=\frac{1}{t}+2t\sum_{n =1}^{\infty}\frac{1}{t^2-n^2},$$ $t$ non-integer. This identity also holds for complex $t$. It is due to Euler and can be obtained by carefully differentiating the product formula for $\sin(\pi z)$, $$(\star \star)\, \sin(\pi z)= \pi z\prod_{n \ge 1}(1-z^2/n^2).$$ One can also derive $(\star \star)$ from $(\star$).

For $\theta=0$, your identity is $$(\star\star \star)\,\frac{\pi}{\sin(\pi t)} = \frac{1}{z}+2t\sum_{n =1}^{\infty}\frac{(-1)^n}{z^2-n^2}.$$ It again holds for $t$ non-integer, and extends to complex $t$.

There are many proofs of $(\star)$, $(\star \star)$ and $(\star \star \star)$ in the literature (as well as of variations of these identities) and some of them, possibly all of them, extend to prove your identity when $|\theta|\le \pi$. I am going to give a partial review of these proofs.

From "Fourier analysis. An Introduction" by Elias Stein and Rami Shakarchi (Princeton Lectures in Analysis. 1, Princeton University Press, 2003):

  1. Page 90, exercise 9: For fixed non-integer $\alpha$, the Fourier expansion of $\frac{\pi}{\sin(\pi \alpha)} e^{i(\pi-x)\alpha}$ for $x \in [0,2\pi]$ is worked out to be $$\sum_{n \in \mathbb{Z}} \frac{e^{inx}}{n+\alpha}.$$ This relates to Conrad's answer in the comments -- taking real parts gives your identity. Applying Parseval gives the identity $$(\star \star \star \star)\, \sum_{n\in \mathbb{Z}}\frac{1}{(n+\alpha)^2}=\frac{\pi^2}{\sin^2(\pi \alpha)}.$$
  2. Page 97, exercise 97(c): A proof of $(\star \star \star)$, the $\theta=0$ case of your identity, is given. It is proved as a consequence of Euler's identity $\sum_{n\ge 1}\frac{1}{n^2 - \alpha^2} = \frac{1}{2\alpha^2} - \frac{\pi}{2\alpha\tan(\alpha \pi)}$ (whose proof is given and follows from a suitable Fourier expansion). Indeed, applying Euler's identity with $\alpha$ and $\alpha/2$ and taking a linear combination gives $(\star \star \star)$.
  3. Page 165, exercise 15: Poisson summation applied to a (shift of) $g(t)=(1-|t|)\mathbf{1}_{|t|\le 1}$ gives $(\star \star \star \star)$. A consequence which follows by integration is also given: $$\lim_{N \to \infty}\sum_{|n| \le N}\frac{1}{n+\alpha} = \frac{\pi}{\tan(\pi \alpha)}.$$

From the book "Complex analysis" by the same authors:

  1. Page 105, exercise 12: A proof of $(\star \star \star \star)$ is given as a consequence of integrating $f(z)=\pi \cot(\pi \alpha)/(\alpha+z)^2$ over a circle of growing radius and using Cauchy's residue theorem.
  2. Page 129, exercise 7(b,c): A proof of $(\star \star \star \star)$ is given, by applying Poisson summation to $f(z) = (\tau+z)^{-2}$ ($\Im \tau>0$).
  3. Page 142: A proof of $(\star)$ is given by proving that both sides, as functions of complex variable, satisfy 3 properties which determine a function uniquely. Kostya_I's answer can be seen as an extension of it.

Bonus:

  1. There is a real-analytic variant of the last proof of $(\star)$, attributed to Gustav Herglotz, which can be found in Chapter 26 of M. Aigner and G. Ziegler's "Proofs from THE BOOK", 6th edition. In the complex analytic proof, 3 properties are established for each side of the identity: i) Each side is a meromorphic function with simple poles at the integers, and no other singularities. ii) Each side is periodic with period $1$. iii) The residue of each side at $z=0$ is $1$. In the real-analytic proof, the following properties are established instead: i) Each side is defined for $t \in \mathbb{R}\setminus \mathbb{Z}$ and is continuous there. ii) Each side is periodic with period $1$. iii) Each side is an odd function. iv) Both sides satisfy the functional equation $f(x/2)+f((x+1)/2) = 2f(x)$.

Kostya_I's complex analytic answer and Conrad's Fourier analytic proof in the comments complement each other nicely. The purpose of the present answer is to relate your question to the literature.

As pointed out already, the RHS is periodic in $\theta$ so we may restrict to $|\theta| \le \pi$.

For $\theta=\pi$, $\cos(k \theta)=(-1)^k$ and the identity in question is $$\pi \cot(\pi t) = \frac{1}{t}+\lim_{N\to \infty}\sum_{|n| \le N}\frac{1}{t+n}=\frac{1}{t}+2t\sum_{n =1}^{\infty}\frac{1}{t^2-n^2},\label{1}\tag{$\star$}$$ $t$ non-integer. This identity also holds for complex $t$. It is due to Euler and can be obtained by carefully differentiating the product formula for $\sin(\pi z)$, $$\sin(\pi z)= \pi z\prod_{n \ge 1}(1-z^2/n^2)..\label{2}\tag{$\star\star$}$$ One can also derive \eqref{2} from \eqref{1}.

For $\theta=0$, your identity is $$\frac{\pi}{\sin(\pi t)} = \frac{1}{z}+2t\sum_{n =1}^{\infty}\frac{(-1)^n}{z^2-n^2}.\label{3}\tag{$\star\star\star$}$$ It again holds for $t$ non-integer, and extends to complex $t$.

There are many proofs of \eqref{1}, \eqref{2} and \eqref{3} in the literature (as well as of variations of these identities) and some of them, possibly all of them, extend to prove your identity when $|\theta|\le \pi$. I am going to give a partial review of these proofs.

From "Fourier analysis. An Introduction" by Elias Stein and Rami Shakarchi (Princeton Lectures in Analysis. 1, Princeton University Press, 2003):

  1. Page 90, exercise 9: For fixed non-integer $\alpha$, the Fourier expansion of $\frac{\pi}{\sin(\pi \alpha)} e^{i(\pi-x)\alpha}$ for $x \in [0,2\pi]$ is worked out to be $$\sum_{n \in \mathbb{Z}} \frac{e^{inx}}{n+\alpha}.$$ This relates to Conrad's answer in the comments -- taking real parts gives your identity. Applying Parseval gives the identity $$\sum_{n\in \mathbb{Z}}\frac{1}{(n+\alpha)^2}=\frac{\pi^2}{\sin^2(\pi \alpha)}.\label{4}\tag{${\star\star\star\star}$}$$
  2. Page 97, exercise 97(c): A proof of \eqref{3}, the $\theta=0$ case of your identity, is given. It is proved as a consequence of Euler's identity $\sum_{n\ge 1}\frac{1}{n^2 - \alpha^2} = \frac{1}{2\alpha^2} - \frac{\pi}{2\alpha\tan(\alpha \pi)}$ (whose proof is given and follows from a suitable Fourier expansion). Indeed, applying Euler's identity with $\alpha$ and $\alpha/2$ and taking a linear combination gives \eqref{3}.
  3. Page 165, exercise 15: Poisson summation applied to a (shift of) $g(t)=(1-|t|)\mathbf{1}_{|t|\le 1}$ gives \eqref{4}. A consequence which follows by integration is also given: $$\lim_{N \to \infty}\sum_{|n| \le N}\frac{1}{n+\alpha} = \frac{\pi}{\tan(\pi \alpha)}.$$

From the book "Complex analysis" by the same authors:

  1. Page 105, exercise 12: A proof of \eqref{4} is given as a consequence of integrating $f(z)=\pi \cot(\pi \alpha)/(\alpha+z)^2$ over a circle of growing radius and using Cauchy's residue theorem.
  2. Page 129, exercise 7(b,c): A proof of \eqref{4} is given, by applying Poisson summation to $f(z) = (\tau+z)^{-2}$ ($\Im \tau>0$).
  3. Page 142: A proof of \eqref{1} is given by proving that both sides, as functions of complex variable, satisfy 3 properties which determine a function uniquely. Kostya_I's answer can be seen as an extension of it.

Bonus:

  1. There is a real-analytic variant of the last proof of \eqref{1}, attributed to Gustav Herglotz, which can be found in Chapter 26 of M. Aigner and G. Ziegler's "Proofs from THE BOOK", 6th edition. In the complex analytic proof, 3 properties are established for each side of the identity: i) Each side is a meromorphic function with simple poles at the integers, and no other singularities. ii) Each side is periodic with period $1$. iii) The residue of each side at $z=0$ is $1$. In the real-analytic proof, the following properties are established instead: i) Each side is defined for $t \in \mathbb{R}\setminus \mathbb{Z}$ and is continuous there. ii) Each side is periodic with period $1$. iii) Each side is an odd function. iv) Both sides satisfy the functional equation $f(x/2)+f((x+1)/2) = 2f(x)$.
added 3134 characters in body
Source Link
Ofir Gorodetsky
  • 14.7k
  • 1
  • 66
  • 79

Kostya_I's complex analytic answer and Conrad's Fourier analytic proof in the comments complement each other nicely. The purpose of the present answer is to relate your question to the literature.

As pointed out already, the RHS is periodic in $\theta$ so we may restrict to $|\theta| \le \pi$.

For $\theta=\pi$, $\cos(k \theta)=(-1)^k$ and the identity in question is $$(\star)\, \pi \cot(\pi t) = \frac{1}{t}+\lim_{N\to \infty}\sum_{|n| \le N}\frac{1}{t+n}=\frac{1}{t}+2t\sum_{n =1}^{\infty}\frac{1}{t^2-n^2},$$ $t$ non-integer. This identity also holds for complex $t$. It is due to Euler and can be obtained by carefully differentiating the product formula for $\sin(\pi z)$, $$(\star \star)\, \sin(\pi z)= \pi z\prod_{n \ge 1}(1-z^2/n^2).$$ One can also derive this product formula$(\star \star)$ from it$(\star$).

For $\theta=0$, this gives theyour identity is $$(\star\star \star)\,\frac{\pi}{\sin(\pi t)} = \frac{1}{z}+2t\sum_{n =1}^{\infty}\frac{(-1)^n}{z^2-n^2}.$$ It again holds for $t$ non-integer, and extends to complex $t$.

There are many proofs of $(\star)$, $(\star \star)$ and $(\star \star)$$(\star \star \star)$ in the literature (as well as of variations of these identities) and some of them, possibly all of them, extend to prove your identity when $|\theta|\le \pi$. I am going to give a partial review of these proofs.

From "Fourier analysis. An Introduction" by Elias Stein and Rami Shakarchi (Princeton Lectures in Analysis. 1, Princeton University Press, 2003):

  1. Page 90, exercise 9: For fixed non-integer $\alpha$, the Fourier expansion of $\frac{\pi}{\sin(\pi \alpha)} e^{i(\pi-x)\alpha}$ for $x \in [0,2\pi]$ is worked out to be $$\sum_{n \in \mathbb{Z}} \frac{e^{inx}}{n+\alpha}.$$ This relatedrelates to Conrad's answer in the comments -- taking real parts gives your identity. Applying Parseval gives the identity $$(\star \star \star \star)\, \sum_{n\in \mathbb{Z}}\frac{1}{(n+\alpha)^2}=\frac{\pi^2}{\sin^2(\pi \alpha)}.$$
  2. Page 97, exercise 97(c): A proof of $(\star \star \star)$, the $\theta=0$ case of your identity, is given. It is proved as a consequence of Euler's identity $\sum_{n\ge 1}\frac{1}{n^2 - \alpha^2} = \frac{1}{2\alpha^2} - \frac{\pi}{2\alpha\tan(\alpha \pi)}$ (whose proof is given and follows from a suitable Fourier expansion). Indeed, applying Euler's identity with $\alpha$ and $\alpha/2$ and taking a linear combination gives $(\star \star \star)$.
  3. Page 165, exercise 15: Poisson summation applied to a (shift of) $g(t)=(1-|t|)\mathbf{1}_{|t|\le 1}$ gives $(\star \star \star \star)$. A consequence, which follows by integration is also given: $$(\star^5)\, \lim_{N \to \infty}\sum_{|n| \le N}\frac{1}{n+\alpha} = \frac{\pi}{\tan(\pi \alpha)}.$$$$\lim_{N \to \infty}\sum_{|n| \le N}\frac{1}{n+\alpha} = \frac{\pi}{\tan(\pi \alpha)}.$$

From the book "Complex analysis" by the same authors:

  1. Page 105, exercise 12: A proof of $(\star \star \star \star)$ is given as a consequence of integrating $f(z)=\pi \cot(\pi \alpha)/(\alpha+z)^2$ over a circle of growing radius and using Cauchy's residue theorem.
  2. Page 129, exercise 7(b,c): A proof of $(\star \star \star \star)$ is given, by applying Poisson summation to $f(z) = (\tau+z)^{-2}$ ($\Im \tau>0$).
  3. Page 142: A proof of $(\star)$ is given by proving that both sides, as functions of complex variable, satisfy 3 properties which determine a function uniquely. Kostya_I's answer can be seen as an extension of it.

Bonus:

  1. There is a real-analytic variant of the last proof of $(\star)$, attributed to Gustav Herglotz, and appearingwhich can be found in Chapter 26 of M. Aigner and G. Ziegler's "Proofs from THE BOOK", 6th edition. In the complex analytic proof, 3 properties are established for each side of the identity: i) Each side is a meromorphic function with simple poles at the integers, and no other singularities. ii) Each side is periodic with period $1$. iii) The residue of each side at $z=0$ is $1$. In the real-analytic proof, the following properties are established instead: i) Each side is defined for $t \in \mathbb{R}\setminus \mathbb{Z}$ and is continuous there. ii) Each side is periodic with period $1$. iii) Each side is an odd function. iv) Both sides satisfy the functional equation $f(x/2)+f((x+1)/2) = 2f(x)$.

Kostya_I's complex analytic answer and Conrad's Fourier analytic proof in the comments complement each other nicely. The purpose of the present answer is to relate your question to the literature.

As pointed out already, the RHS is periodic in $\theta$ so we may restrict to $|\theta| \le \pi$.

For $\theta=\pi$, $\cos(k \theta)=(-1)^k$ and the identity in question is $$(\star)\, \pi \cot(\pi t) = \frac{1}{t}+\lim_{N\to \infty}\sum_{|n| \le N}\frac{1}{t+n}=\frac{1}{t}+2t\sum_{n =1}^{\infty}\frac{1}{t^2-n^2},$$ $t$ non-integer. This identity also holds for complex $t$. It is due to Euler and can be obtained by carefully differentiating the product formula for $\sin(\pi z)$, $$(\star \star)\, \sin(\pi z)= \pi z\prod_{n \ge 1}(1-z^2/n^2).$$ One can also derive this product formula from it.

For $\theta=0$, this gives the identity $$(\star\star \star)\,\frac{\pi}{\sin(\pi t)} = \frac{1}{z}+2t\sum_{n =1}^{\infty}\frac{(-1)^n}{z^2-n^2}.$$ It again holds for $t$ non-integer, and extends to complex $t$.

There are many proofs of $(\star)$, $(\star \star)$ and $(\star \star)$ in the literature (as well as of variations of these identities) and some of them, possibly all of them, extend to prove your identity when $|\theta|\le \pi$. I am going to give a partial review of these proofs.

From "Fourier analysis. An Introduction" by Elias Stein and Rami Shakarchi (Princeton Lectures in Analysis. 1, Princeton University Press, 2003):

  1. Page 90, exercise 9: For fixed non-integer $\alpha$, the Fourier expansion of $\frac{\pi}{\sin(\pi \alpha)} e^{i(\pi-x)\alpha}$ for $x \in [0,2\pi]$ is worked out to be $$\sum_{n \in \mathbb{Z}} \frac{e^{inx}}{n+\alpha}.$$ This related to Conrad's answer in the comments -- taking real parts gives your identity. Applying Parseval gives the identity $$(\star \star \star \star)\, \sum_{n\in \mathbb{Z}}\frac{1}{(n+\alpha)^2}=\frac{\pi^2}{\sin^2(\pi \alpha)}.$$
  2. Page 97, exercise 97(c): A proof of $(\star \star \star)$, the $\theta=0$ case of your identity, is given. It is proved as a consequence of Euler's identity $\sum_{n\ge 1}\frac{1}{n^2 - \alpha^2} = \frac{1}{2\alpha^2} - \frac{\pi}{2\alpha\tan(\alpha \pi)}$ (whose proof is given and follows from a suitable Fourier expansion). Indeed, applying Euler's identity with $\alpha$ and $\alpha/2$ and taking a linear combination gives $(\star \star \star)$.
  3. Page 165, exercise 15: Poisson summation applied to a (shift of) $g(t)=(1-|t|)\mathbf{1}_{|t|\le 1}$ gives $(\star \star \star \star)$. A consequence, follows by integration is also given: $$(\star^5)\, \lim_{N \to \infty}\sum_{|n| \le N}\frac{1}{n+\alpha} = \frac{\pi}{\tan(\pi \alpha)}.$$

From the book "Complex analysis" by the same authors:

  1. Page 105, exercise 12: A proof of $(\star \star \star \star)$ is given as a consequence of integrating $f(z)=\pi \cot(\pi \alpha)/(\alpha+z)^2$ over a circle of growing radius and using Cauchy's residue theorem.
  2. Page 129, exercise 7(b,c): A proof of $(\star \star \star \star)$ is given, by applying Poisson summation to $f(z) = (\tau+z)^{-2}$ ($\Im \tau>0$).
  3. Page 142: A proof of $(\star)$ is given by proving that both sides, as functions of complex variable, satisfy 3 properties which determine a function uniquely. Kostya_I's answer can be seen as an extension of it.

Bonus:

  1. There is a real-analytic variant of the last proof of $(\star)$, attributed to Gustav Herglotz, and appearing in Chapter 26 of M. Aigner and G. Ziegler's "Proofs from THE BOOK", 6th edition. In the complex analytic proof, 3 properties are established for each side of the identity: i) Each side is a meromorphic function with simple poles at the integers, and no other singularities. ii) Each side is periodic with period $1$. iii) The residue of each side at $z=0$ is $1$. In the real-analytic proof, the following properties are established instead: i) Each is defined for $t \in \mathbb{R}\setminus \mathbb{Z}$ and is continuous there. ii) Each side is periodic with period $1$. iii) Each side is an odd function. iv) Both sides satisfy the functional equation $f(x/2)+f((x+1)/2) = 2f(x)$.

Kostya_I's complex analytic answer and Conrad's Fourier analytic proof in the comments complement each other nicely. The purpose of the present answer is to relate your question to the literature.

As pointed out already, the RHS is periodic in $\theta$ so we may restrict to $|\theta| \le \pi$.

For $\theta=\pi$, $\cos(k \theta)=(-1)^k$ and the identity in question is $$(\star)\, \pi \cot(\pi t) = \frac{1}{t}+\lim_{N\to \infty}\sum_{|n| \le N}\frac{1}{t+n}=\frac{1}{t}+2t\sum_{n =1}^{\infty}\frac{1}{t^2-n^2},$$ $t$ non-integer. This identity also holds for complex $t$. It is due to Euler and can be obtained by carefully differentiating the product formula for $\sin(\pi z)$, $$(\star \star)\, \sin(\pi z)= \pi z\prod_{n \ge 1}(1-z^2/n^2).$$ One can also derive $(\star \star)$ from $(\star$).

For $\theta=0$, your identity is $$(\star\star \star)\,\frac{\pi}{\sin(\pi t)} = \frac{1}{z}+2t\sum_{n =1}^{\infty}\frac{(-1)^n}{z^2-n^2}.$$ It again holds for $t$ non-integer, and extends to complex $t$.

There are many proofs of $(\star)$, $(\star \star)$ and $(\star \star \star)$ in the literature (as well as of variations of these identities) and some of them, possibly all of them, extend to prove your identity when $|\theta|\le \pi$. I am going to give a partial review of these proofs.

From "Fourier analysis. An Introduction" by Elias Stein and Rami Shakarchi (Princeton Lectures in Analysis. 1, Princeton University Press, 2003):

  1. Page 90, exercise 9: For fixed non-integer $\alpha$, the Fourier expansion of $\frac{\pi}{\sin(\pi \alpha)} e^{i(\pi-x)\alpha}$ for $x \in [0,2\pi]$ is worked out to be $$\sum_{n \in \mathbb{Z}} \frac{e^{inx}}{n+\alpha}.$$ This relates to Conrad's answer in the comments -- taking real parts gives your identity. Applying Parseval gives the identity $$(\star \star \star \star)\, \sum_{n\in \mathbb{Z}}\frac{1}{(n+\alpha)^2}=\frac{\pi^2}{\sin^2(\pi \alpha)}.$$
  2. Page 97, exercise 97(c): A proof of $(\star \star \star)$, the $\theta=0$ case of your identity, is given. It is proved as a consequence of Euler's identity $\sum_{n\ge 1}\frac{1}{n^2 - \alpha^2} = \frac{1}{2\alpha^2} - \frac{\pi}{2\alpha\tan(\alpha \pi)}$ (whose proof is given and follows from a suitable Fourier expansion). Indeed, applying Euler's identity with $\alpha$ and $\alpha/2$ and taking a linear combination gives $(\star \star \star)$.
  3. Page 165, exercise 15: Poisson summation applied to a (shift of) $g(t)=(1-|t|)\mathbf{1}_{|t|\le 1}$ gives $(\star \star \star \star)$. A consequence which follows by integration is also given: $$\lim_{N \to \infty}\sum_{|n| \le N}\frac{1}{n+\alpha} = \frac{\pi}{\tan(\pi \alpha)}.$$

From the book "Complex analysis" by the same authors:

  1. Page 105, exercise 12: A proof of $(\star \star \star \star)$ is given as a consequence of integrating $f(z)=\pi \cot(\pi \alpha)/(\alpha+z)^2$ over a circle of growing radius and using Cauchy's residue theorem.
  2. Page 129, exercise 7(b,c): A proof of $(\star \star \star \star)$ is given, by applying Poisson summation to $f(z) = (\tau+z)^{-2}$ ($\Im \tau>0$).
  3. Page 142: A proof of $(\star)$ is given by proving that both sides, as functions of complex variable, satisfy 3 properties which determine a function uniquely. Kostya_I's answer can be seen as an extension of it.

Bonus:

  1. There is a real-analytic variant of the last proof of $(\star)$, attributed to Gustav Herglotz, which can be found in Chapter 26 of M. Aigner and G. Ziegler's "Proofs from THE BOOK", 6th edition. In the complex analytic proof, 3 properties are established for each side of the identity: i) Each side is a meromorphic function with simple poles at the integers, and no other singularities. ii) Each side is periodic with period $1$. iii) The residue of each side at $z=0$ is $1$. In the real-analytic proof, the following properties are established instead: i) Each side is defined for $t \in \mathbb{R}\setminus \mathbb{Z}$ and is continuous there. ii) Each side is periodic with period $1$. iii) Each side is an odd function. iv) Both sides satisfy the functional equation $f(x/2)+f((x+1)/2) = 2f(x)$.
Post Undeleted by Ofir Gorodetsky
added 3134 characters in body
Source Link
Ofir Gorodetsky
  • 14.7k
  • 1
  • 66
  • 79

The identity $$\pi \cot(\pi z) = \frac{1}{z}+\lim_{N\to \infty}\sum_{|n| \le N}\frac{1}{z+n}=\frac{1}{z}+\sum_{n =1}^{\infty}\frac{2z}{z^2-n^2},$$ a version of which you state for real $t$, is old, and in some sense was known to Euler. It holds for allKostya_I's complex numbers $z$ which are not integers.

A full proof is given in in pages 142-144 of Steinanalytic answer and Shakarchi's "Complex analysis" (Princeton LecturesConrad's Fourier analytic proof in Analysis, 2003), with references to 4the comments complement each other proofsnicely. The proof follows from establishing 3 properties for both sidespurpose of the identity: each sidepresent answer is a meromorphic function with simple poles atto relate your question to the integers, and no other singularitiesliterature. Moreover

As pointed out already, each sidethe RHS is periodic with periodin $1$$\theta$ so we may restrict to $|\theta| \le \pi$. Finally

For $\theta=\pi$, $\cos(k \theta)=(-1)^k$ and the residue of each side atidentity in question is $$(\star)\, \pi \cot(\pi t) = \frac{1}{t}+\lim_{N\to \infty}\sum_{|n| \le N}\frac{1}{t+n}=\frac{1}{t}+2t\sum_{n =1}^{\infty}\frac{1}{t^2-n^2},$$ $t$ non-integer. This identity also holds for complex $z=0$$t$. It is due to Euler and can be obtained by carefully differentiating the product formula for $1$$\sin(\pi z)$, $$(\star \star)\, \sin(\pi z)= \pi z\prod_{n \ge 1}(1-z^2/n^2).$$ One can also derive this product formula from it.

They useFor $\theta=0$, this gives the identity to give a rigorous proof for Euler's product formula $$(\star\star \star)\,\frac{\pi}{\sin(\pi t)} = \frac{1}{z}+2t\sum_{n =1}^{\infty}\frac{(-1)^n}{z^2-n^2}.$$ It again holds for $\sin(\pi z)$$t$ non-integer, namelyand extends to complex $\sin(\pi z)= \pi z\prod_{n \ge 1}(1-z^2/n^2)$$t$.

I am not completely sure about the appearanceThere are many proofs of $(\star)$, $(\star \star)$ and $(\star \star)$ in the factorliterature $(-1)^k\cos(k\theta)$ instead(as well as of variations of these identities) and some of them, possibly all of them, extend to prove your identity when $0$$|\theta|\le \pi$. I am going to give a partial review of these proofs.

From "Fourier analysis. An Introduction" by Elias Stein and Rami Shakarchi (Princeton Lectures in your formula, thoughAnalysis. 1, Princeton University Press, 2003):

  1. Page 90, exercise 9: For fixed non-integer $\alpha$, the Fourier expansion of $\frac{\pi}{\sin(\pi \alpha)} e^{i(\pi-x)\alpha}$ for $x \in [0,2\pi]$ is worked out to be $$\sum_{n \in \mathbb{Z}} \frac{e^{inx}}{n+\alpha}.$$ This related to Conrad's answer in the comments -- taking real parts gives your identity. Applying Parseval gives the identity $$(\star \star \star \star)\, \sum_{n\in \mathbb{Z}}\frac{1}{(n+\alpha)^2}=\frac{\pi^2}{\sin^2(\pi \alpha)}.$$
  2. Page 97, exercise 97(c): A proof of $(\star \star \star)$, the $\theta=0$ case of your identity, is given. It is proved as a consequence of Euler's identity $\sum_{n\ge 1}\frac{1}{n^2 - \alpha^2} = \frac{1}{2\alpha^2} - \frac{\pi}{2\alpha\tan(\alpha \pi)}$ (whose proof is given and follows from a suitable Fourier expansion). Indeed, applying Euler's identity with $\alpha$ and $\alpha/2$ and taking a linear combination gives $(\star \star \star)$.
  3. Page 165, exercise 15: Poisson summation applied to a (shift of) $g(t)=(1-|t|)\mathbf{1}_{|t|\le 1}$ gives $(\star \star \star \star)$. A consequence, follows by integration is also given: $$(\star^5)\, \lim_{N \to \infty}\sum_{|n| \le N}\frac{1}{n+\alpha} = \frac{\pi}{\tan(\pi \alpha)}.$$

From the book "Complex analysis" by the same authors:

  1. Page 105, exercise 12: A proof of $(\star \star \star \star)$ is given as a consequence of integrating $f(z)=\pi \cot(\pi \alpha)/(\alpha+z)^2$ over a circle of growing radius and using Cauchy's residue theorem.
  2. Page 129, exercise 7(b,c): A proof of $(\star \star \star \star)$ is given, by applying Poisson summation to $f(z) = (\tau+z)^{-2}$ ($\Im \tau>0$).
  3. Page 142: A proof of $(\star)$ is given by proving that both sides, as functions of complex variable, satisfy 3 properties which determine a function uniquely. Kostya_I's answer can be seen as an extension of it.

Bonus:

  1. There is a real-analytic variant of the last proof of $(\star)$, attributed to Gustav Herglotz, and appearing in Chapter 26 of M. Aigner and G. Ziegler's "Proofs from THE BOOK", 6th edition. In the complex analytic proof, 3 properties are established for each side of the identity: i) Each side is a meromorphic function with simple poles at the integers, and no other singularities. ii) Each side is periodic with period $1$. iii) The residue of each side at $z=0$ is $1$. In the real-analytic proof, the following properties are established instead: i) Each is defined for $t \in \mathbb{R}\setminus \mathbb{Z}$ and is continuous there. ii) Each side is periodic with period $1$. iii) Each side is an odd function. iv) Both sides satisfy the functional equation $f(x/2)+f((x+1)/2) = 2f(x)$.

The identity $$\pi \cot(\pi z) = \frac{1}{z}+\lim_{N\to \infty}\sum_{|n| \le N}\frac{1}{z+n}=\frac{1}{z}+\sum_{n =1}^{\infty}\frac{2z}{z^2-n^2},$$ a version of which you state for real $t$, is old, and in some sense was known to Euler. It holds for all complex numbers $z$ which are not integers.

A full proof is given in in pages 142-144 of Stein and Shakarchi's "Complex analysis" (Princeton Lectures in Analysis, 2003), with references to 4 other proofs. The proof follows from establishing 3 properties for both sides of the identity: each side is a meromorphic function with simple poles at the integers, and no other singularities. Moreover, each side is periodic with period $1$. Finally, the residue of each side at $z=0$ is $1$.

They use this identity to give a rigorous proof for Euler's product formula for $\sin(\pi z)$, namely $\sin(\pi z)= \pi z\prod_{n \ge 1}(1-z^2/n^2)$.

I am not completely sure about the appearance of the factor $(-1)^k\cos(k\theta)$ instead of $0$ in your formula, though.

Kostya_I's complex analytic answer and Conrad's Fourier analytic proof in the comments complement each other nicely. The purpose of the present answer is to relate your question to the literature.

As pointed out already, the RHS is periodic in $\theta$ so we may restrict to $|\theta| \le \pi$.

For $\theta=\pi$, $\cos(k \theta)=(-1)^k$ and the identity in question is $$(\star)\, \pi \cot(\pi t) = \frac{1}{t}+\lim_{N\to \infty}\sum_{|n| \le N}\frac{1}{t+n}=\frac{1}{t}+2t\sum_{n =1}^{\infty}\frac{1}{t^2-n^2},$$ $t$ non-integer. This identity also holds for complex $t$. It is due to Euler and can be obtained by carefully differentiating the product formula for $\sin(\pi z)$, $$(\star \star)\, \sin(\pi z)= \pi z\prod_{n \ge 1}(1-z^2/n^2).$$ One can also derive this product formula from it.

For $\theta=0$, this gives the identity $$(\star\star \star)\,\frac{\pi}{\sin(\pi t)} = \frac{1}{z}+2t\sum_{n =1}^{\infty}\frac{(-1)^n}{z^2-n^2}.$$ It again holds for $t$ non-integer, and extends to complex $t$.

There are many proofs of $(\star)$, $(\star \star)$ and $(\star \star)$ in the literature (as well as of variations of these identities) and some of them, possibly all of them, extend to prove your identity when $|\theta|\le \pi$. I am going to give a partial review of these proofs.

From "Fourier analysis. An Introduction" by Elias Stein and Rami Shakarchi (Princeton Lectures in Analysis. 1, Princeton University Press, 2003):

  1. Page 90, exercise 9: For fixed non-integer $\alpha$, the Fourier expansion of $\frac{\pi}{\sin(\pi \alpha)} e^{i(\pi-x)\alpha}$ for $x \in [0,2\pi]$ is worked out to be $$\sum_{n \in \mathbb{Z}} \frac{e^{inx}}{n+\alpha}.$$ This related to Conrad's answer in the comments -- taking real parts gives your identity. Applying Parseval gives the identity $$(\star \star \star \star)\, \sum_{n\in \mathbb{Z}}\frac{1}{(n+\alpha)^2}=\frac{\pi^2}{\sin^2(\pi \alpha)}.$$
  2. Page 97, exercise 97(c): A proof of $(\star \star \star)$, the $\theta=0$ case of your identity, is given. It is proved as a consequence of Euler's identity $\sum_{n\ge 1}\frac{1}{n^2 - \alpha^2} = \frac{1}{2\alpha^2} - \frac{\pi}{2\alpha\tan(\alpha \pi)}$ (whose proof is given and follows from a suitable Fourier expansion). Indeed, applying Euler's identity with $\alpha$ and $\alpha/2$ and taking a linear combination gives $(\star \star \star)$.
  3. Page 165, exercise 15: Poisson summation applied to a (shift of) $g(t)=(1-|t|)\mathbf{1}_{|t|\le 1}$ gives $(\star \star \star \star)$. A consequence, follows by integration is also given: $$(\star^5)\, \lim_{N \to \infty}\sum_{|n| \le N}\frac{1}{n+\alpha} = \frac{\pi}{\tan(\pi \alpha)}.$$

From the book "Complex analysis" by the same authors:

  1. Page 105, exercise 12: A proof of $(\star \star \star \star)$ is given as a consequence of integrating $f(z)=\pi \cot(\pi \alpha)/(\alpha+z)^2$ over a circle of growing radius and using Cauchy's residue theorem.
  2. Page 129, exercise 7(b,c): A proof of $(\star \star \star \star)$ is given, by applying Poisson summation to $f(z) = (\tau+z)^{-2}$ ($\Im \tau>0$).
  3. Page 142: A proof of $(\star)$ is given by proving that both sides, as functions of complex variable, satisfy 3 properties which determine a function uniquely. Kostya_I's answer can be seen as an extension of it.

Bonus:

  1. There is a real-analytic variant of the last proof of $(\star)$, attributed to Gustav Herglotz, and appearing in Chapter 26 of M. Aigner and G. Ziegler's "Proofs from THE BOOK", 6th edition. In the complex analytic proof, 3 properties are established for each side of the identity: i) Each side is a meromorphic function with simple poles at the integers, and no other singularities. ii) Each side is periodic with period $1$. iii) The residue of each side at $z=0$ is $1$. In the real-analytic proof, the following properties are established instead: i) Each is defined for $t \in \mathbb{R}\setminus \mathbb{Z}$ and is continuous there. ii) Each side is periodic with period $1$. iii) Each side is an odd function. iv) Both sides satisfy the functional equation $f(x/2)+f((x+1)/2) = 2f(x)$.
Post Deleted by Ofir Gorodetsky
added 423 characters in body
Source Link
Ofir Gorodetsky
  • 14.7k
  • 1
  • 66
  • 79
Loading
Source Link
Ofir Gorodetsky
  • 14.7k
  • 1
  • 66
  • 79
Loading