I am currently stuck on trying to find the limit of the following function as it goes towards infinity:
$f(x)=x-\log(\cosh(x))$
I know from wolfram alpha that the limit is log(2), but i do not know how to find that answer.
My thoughts were that i could find the limit of cosh(x) (infinity) and log of something tending towards infinity and then subtracting with x. But that just gives 0 which makes no sense.
$\cosh x = \frac{e^{2x} + 1}{2e^x}$. So \begin{align} \lim_{x \to \infty} x - \log(\frac{e^{2x} + 1}{2e^x}) &= \lim_{x \to \infty} \log(e^x) - \log(\frac{e^{2x} + 1}{2e^x})\\ &= \log(\lim_{x \to \infty} \frac{2e^{2x}}{e^{2x} + 1}) \end{align} Let $a = e^x$ \begin{align} \log(\lim_{x \to \infty} \frac{2e^{2x}}{e^{2x} + 1}) &= \log(\lim_{a \to \infty }\frac{2a^2}{a^2 + 1}) \ \end{align} This is a rational function with both polynomials having the same degree, its limit as $a$ approaches infinity is the ratio of the terms with the highest degree \begin{align} \log(\lim_{a \to \infty }\frac{2a^2}{a^2 + 1}) = \log(2) \end{align}