Explicitly summing a series involving hyperbolic tangent

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
3 replies · 4K views
Messages
5,000
Reaction score
7
I recently came across a problem where I was able to show that [tex]\sum_{n=1}^{\infty} \frac{(-1)^n}{n} \tanh \left( \frac{n \pi}{2} \right)=\frac{\ln 2- \pi}{4}[/tex] through numerical approximation...However, I don't have much practice evaluating such summations analytically, and I was wondering if anyone had any ideas on how to evaluate this one analytically?
 
Physics news on Phys.org
Express tanh as a sum of complex exponentials.
 
rochfor1 said:
Express tanh as a sum of complex exponentials.

Ermm...was the 'complex' a typo, or does expressing [itex]\tanh\left(\frac{n\pi}{2}\right)[/itex] as [tex]\frac{e^{i\left(\frac{-in\pi}{2}\right)}-e^{i\left(\frac{in\pi}{2}\right)}}{e^{i\left(\frac{-in\pi}{2}\right)}+e^{i\left(\frac{in\pi}{2}\right)}}[/tex] actually help in evaluating this sum? If so, I don't see how.
 
Okay, so I've made some headway by expressing tanh in terms of 'real' exponentials:

Using [itex]\tanh(x)=\frac{e^x-e^{-x}}{e^x+e^{-x}}=\frac{e^{2x}-1}{e^{2x}+1}=1-\frac{2}{e^{2x}+1}}[/itex] , the sum becomes:

[tex]\sum_{n=1}^{\infty} \frac{(-1)^n}{n} \tanh \left( \frac{n \pi}{2} \right)=\sum_{n=1}^{\infty} \frac{(-1)^n}{n} -2\sum_{n=1}^{\infty} \frac{(-1)^n}{n} \left( \frac{1}{e^{n\pi}+1} \right)[/tex]

The first term is just the alternating harmonic series and sums to [itex]-\ln(2)[/itex], and the second one converges very quickly, but now I need to review my old calc text and see if there is something in there that will help me analytically compute the second summation.