# Limit of a product of two continuous functions

I have two functions, $f(x)$ and $g(x)$ that are continuous on the real number line. I'm taking the limit of their product:

$$\lim_{x\rightarrow\infty}f(x)g(x)$$

Suppose that the limit $\lim_{x\rightarrow\infty}g(x)=c$.

Is there a continuous function $f(x)$ such that:

$$\lim_{x\rightarrow\infty}f(x)g(x)\neq\lim_{x\rightarrow\infty}cf(x)$$

-
How about $g(x)=1/x$ whan $x>1$ and $g(x)=1$ otherwise, and $f(x)=x$? –  kneidell Dec 21 '11 at 21:04
@kneidell You could post this as an answer, so that the OP could choose your answer and there will be one less question for math.SE –  user21436 Dec 21 '11 at 21:12

Same goes for the following:

If $$g=\begin{cases}1/x&\text{ if }x>1\\1&\text{ otherwise}\end{cases}\text{ and }f(x)=x$$ Then both functions are continuous on the real line, $\lim_{x\to\infty}g(x)=0$, and $f(x)g(x)$ is the constant one function on the ray $[1,\infty)$, suggesting that $$\lim_{x\to\infty}f(x)g(x)=1\neq 0\cdot\lim_{x\to\infty}f(x)$$

-
If $f(x)=x$ and $\lim\limits_{x\to\infty}g(x)=c$, and $c$ is a real number (thus not $\infty$ or $-\infty$), then $f$ is continuous and $\lim\limits_{x\to\infty}\Big(f(x)g(x)\Big)$ does not exist.
I think in this case neither $\lim_{x\rightarrow\infty}f(x)g(x)$ nor $\lim_{x\rightarrow\infty}cf(x)$ exists. Not sure if it's correct to say $\lim_{x\rightarrow\infty}f(x)g(x)=\lim_{x\rightarrow\infty}cf(x)$ though... –  M.B.M. Dec 22 '11 at 1:13