[math]f:R\rightarrow R,\:f\left(x\right)=x-ln\left(e^x+1\right)[/math]So I have this function and i need to find out the asymptotes. Vertical asymptotes don't exist.
For horizontal asymptotes I got:
[math]\lim _{x\to \infty }f\left(x\right)=\lim _{x\to \infty }\left(x-ln\left(e^x+1\right)\right)[/math]So i get the indetermination : [inf-inf]
[math]\lim _{x\to \infty \:}\left(ln\left(e^x\right)-ln\left(e^x+1\right)\right)=\lim _{x\to \infty }\left(\frac{e^x}{e^{x+1}}\right)=\lim _{x\to \infty }\left(\frac{e^x}{e^x\cdot e}\right)=\lim _{x\to \infty }\left(\frac{1}{e}\right)=-1[/math]But the answer is wrong. I don't know why. The correct answer it's actually 0, but I don't understand what I did wrong.
Also, for oblique asymptotes I get:
[math]\lim _{x\to \infty }\left(\frac{f\left(x\right)}{x}\right)=\lim _{x\to \infty }\left(\frac{x-ln\left(e^x+1\right)}{x}\right)=\lim _{x\to \infty }\left(1-\frac{ln\left(e^x+1\right)}{x}\right)=\lim _{x\to \infty }\left(1-\frac{1}{e^x+1}\cdot e^x\right)=\lim _{x\to \infty }\left(\frac{1}{e^x+1}\right)=0[/math]Which is wrong, because I need to get 1.
What am I doing wrong?
For horizontal asymptotes I got:
[math]\lim _{x\to \infty }f\left(x\right)=\lim _{x\to \infty }\left(x-ln\left(e^x+1\right)\right)[/math]So i get the indetermination : [inf-inf]
[math]\lim _{x\to \infty \:}\left(ln\left(e^x\right)-ln\left(e^x+1\right)\right)=\lim _{x\to \infty }\left(\frac{e^x}{e^{x+1}}\right)=\lim _{x\to \infty }\left(\frac{e^x}{e^x\cdot e}\right)=\lim _{x\to \infty }\left(\frac{1}{e}\right)=-1[/math]But the answer is wrong. I don't know why. The correct answer it's actually 0, but I don't understand what I did wrong.
Also, for oblique asymptotes I get:
[math]\lim _{x\to \infty }\left(\frac{f\left(x\right)}{x}\right)=\lim _{x\to \infty }\left(\frac{x-ln\left(e^x+1\right)}{x}\right)=\lim _{x\to \infty }\left(1-\frac{ln\left(e^x+1\right)}{x}\right)=\lim _{x\to \infty }\left(1-\frac{1}{e^x+1}\cdot e^x\right)=\lim _{x\to \infty }\left(\frac{1}{e^x+1}\right)=0[/math]Which is wrong, because I need to get 1.
What am I doing wrong?