Since f {\displaystyle f} satisfies lim x → 0 + f ( x ) = + ∞ {\textstyle \lim _{x\to 0^{+}}f(x)=+\infty } , it has a vertical asymptote at x = 0 {\displaystyle x=0} . On the other hand, the condition lim x → + ∞ f ( x ) = 2 {\textstyle \lim _{x\to +\infty }f(x)=2} gives a horizontal asymptote.
One example of such a function is y = 2 + 1 / x {\textstyle y=2+1/x} , which is sketched in the following picture.