# Thread: Integrating hyperbolic function to infinity

1. ## Integrating hyperbolic function to infinity

I need to find
$\int_0^{\infty}1-\tanh\left(\frac{x}{a}\right) dx$
which I get to be
$x-a \ln\left(\cosh \left(\frac{x}{a}\right)\right)$
But I'm not sure how to use the limit at infinity for this. I'm also pretty sure I'm not meant to be getting zero at the answer but something depending on a.
Any help would be greatly appreciated!

2. Originally Posted by james
I need to find
$\int_0^{\infty}1-\tanh\left(\frac{x}{a}\right) dx$
which I get to be
$x-a \ln\left(\cosh \left(\frac{x}{a}\right)\right)$
But I'm not sure how to use the limit at infinity for this. I'm also pretty sure I'm not meant to be getting zero at the answer but something depending on a.
Any help would be greatly appreciated!
Remember that when it's an improper integral you have to take the limit as lets say b---> infinity.

An easy way to do this is to use the fuction of cosh = $\frac{e^{x}+e^{-x}}{2}$

You may have to use l'hospitals for the limit since you might end up with a form infinity - infinity.

3. Thanks for the quick reply, think I've got somethingwhich looks alright. What do you think?

$
x-a \ln\left(\cosh \left(\frac{x}{a}\right)\right)
$

over b and zero gives
$
b-a \ln\left(\cosh \left(\frac{b}{a}\right)\right) - 0 + a \ln\left(\cosh \left(0\right)\right)$

$
= b - a \ln \left(\frac{e^{b/a}+e^{-b/a}}{2} \right)
$

$
= b - a \ln \left(e^{b/a}+e^{-b/a} \right) + a \ln 2
$

then as b -> infinity the negative exponential vanishes so
$
= b - a \ln \left(e^{b/a}\right) + a \ln 2
$

$
= b - a (b/a) + a \ln 2
$

$
= a \ln 2
$

4. Originally Posted by james
Thanks for the quick reply, think I've got somethingwhich looks alright. What do you think?

$
x-a \ln\left(\cosh \left(\frac{x}{a}\right)\right)
$

over b and zero gives
$
b-a \ln\left(\cosh \left(\frac{b}{a}\right)\right) - 0 + a \ln\left(\cosh \left(0\right)\right)$

$
= b - a \ln \left(\frac{e^{b/a}+e^{-b/a}}{2} \right)
$

$
= b - a \ln \left(e^{b/a}+e^{-b/a} \right) + a \ln 2
$

then as b -> infinity the negative exponential vanishes so
$
= b - a \ln \left(e^{b/a}\right) + a \ln 2
$

$
= b - a (b/a) + a \ln 2
$

$
= a \ln 2
$

That looks right and funny at the same time. :P

5. Well as long as it's right I don't mind people laughing at my work...

Thanks a lot

6. I said funny because it becomes b -b = 0 which is equilalent to
infinity - infinity which is supposed to be undefined.