Calculus · real student question

If a function tends to a as x tends to infinity and to -a as x tends to minus infinity, how many horizontal asymptotes does it have?

Question

Suppose

limx+f(x)=aandlimxf(x)=a\lim_{x\to+\infty}f(x)=a\qquad\text{and}\qquad\lim_{x\to-\infty}f(x)=-a

How many horizontal asymptotes does the graph of ff have?

Step-by-step solution

  1. Recall the definition — each end of the graph is judged separately. The line y=Ly=L is a horizontal asymptote of ff if f(x)Lf(x)\to L as x+x\to+\infty or as xx\to-\infty. The two directions are independent conditions, which is why a single function is allowed more than one horizontal asymptote (unlike a vertical asymptote count, which is unlimited for a different reason).

  2. Apply it to each limit. The limit aa at ++\infty makes y=ay=a an asymptote, and the limit a-a at -\infty makes y=ay=-a an asymptote. Both are legitimate provided aa is a finite number — an infinite limit is no asymptote at all, and would instead suggest unbounded growth or a slant asymptote.

  3. Count them, treating a=0a=0 separately. If a0a\neq0 then aa and a-a are two different numbers, so there are two horizontal asymptotes:

    y=aandy=ay=a\qquad\text{and}\qquad y=-a

    If a=0a=0 then a=a=0a=-a=0, the two lines coincide, and there is only one asymptote, y=0y=0.

  4. Work a concrete example. Take

    f(x)=xx2+1f(x)=\frac{x}{\sqrt{x^{2}+1}}

    For large x|x|, x2+1x\sqrt{x^{2}+1}\approx|x|, so f(x)x/xf(x)\approx x/|x|, which is +1+1 for positive xx and 1-1 for negative xx. Numerically f(108)=1f(10^{8})=1 and f(108)=1f(-10^{8})=-1 to within 101210^{-12} ✓, so this function has the two asymptotes y=1y=1 and y=1y=-1 — the case a=1a=1.

  5. Note the maximum possible count. A function can have at most two horizontal asymptotes, one per direction, because each of x+x\to+\infty and xx\to-\infty admits only a single limit. Standard examples include arctanx\arctan x (with y=±π/2y=\pm\pi/2) and tanhx\tanh x (with y=±1y=\pm1) — both exactly of the aa, a-a shape.

Answer

Two: y=a and y=a (a0); only y=0 if a=0\text{Two: }y=a\text{ and }y=-a\ (a\neq0);\ \text{only }y=0\text{ if }a=0

Need to solve a different problem like this? Open the solver →