How to prove a function is positive or negative in $x \in \mathbb{R}$ A homework question:
I know the solution but I don't know how to prove that the function is negative XOR positive for $x \in \mathbb{R}$
f is continuous in $\mathbb{R}$.
$$\text{ prove that if } |f(x)| \ge x \text{ for } x \in \mathbb{R} \text { then: }
 \lim_{x\to\infty} f(x) = \infty \text{  or  } \lim_{x\to\infty} f(x) = -\infty$$
Now once I prove that the function is negative XOR positive it's relatively simple to prove that the limits are at infinity.
How do I prove that there is no $f(x) = 0$?
Thanks!
 A: Given the condition on $f$ it is possible that $f(x)=0$ for $x=0$ (and only for $x=0$). So it is not true that $f(x)$ can never be zero. Furthermore, $f(x)=x$ fulfills the requirement and is neither positive nor negative for all $x\in R$. 
That the limit is $\pm\infty$ and nothing else you can nevertheless prove (even though the other statements in your post are wrong). For $x>0$, there are only two possibilities: either $f(x)>0$ or $f(x)<0$. Together with $|f(x)|\geq x$ you obtain the statement.
A: The following is a partial reply to the intended question.  It looks to me as if you unfortunately did not quote the question verbatim.  And the header is rather misleading.
But it is clear that the original question is something like this.  Suppose that $f$ is continuous.  Show that if $|f(x)|\ge x$ for all $x$, then
$$\lim_{x\to\infty} f(x)=\infty \quad \text{or} \quad \lim_{x\to\infty} f(x)=-\infty$$
You say that you can handle things if you can show that  $f(x)$ is either (i) positive for all positive $x$ or (ii) negative for all positive $x$.  It is indeed true that $f(x)$ is either positive for all positive $x$ or $f(x)$ is negative for all positive $x$.  But to save a tiny amount of time, we will show that either $f(x)$ is positive for all $x \ge 1$ or $f(x)$ is negative for all $x \ge 1$.  That is plenty enough to allow pushing the rest of the proof through.
There are two possibilities: (i) $f(1)$ is positive or (ii) $f(1)$ is negative. Note that we cannot have $f(1)=0$, for $|f(1)|\ge 1$ by the condition the problem put on $f$.
We deal with possibility (i).  Dealing with possibility (ii) is essentially identical (or cheat: if $f(1)$ is negative, let $g(x)=-f(x)$.)
We will show that if $f(1)$ is positive, then $f(x)$ is positive for all $x >1$.
Note that $f(x)$ cannot be $0$ at any $x >1$, for that would violate the condition $|f(x)|>$.  We next show that $f(x)$ cannot be negative at any $x>1$.
For suppose to the contrary that $f(b)<0$, where $b>1$.  Our function is positive at $1$, and supposedly negative at $b$.  Since $f$ is continuous, by the Intermediate Value Theorem we can conclude that $f(c)=0$ for some $c$ between $1$ and $b$.  This, as we observed already, is impossible because $|f(c)| \ge c$.
So in case (i), $f(x)>x$ for all $x \ge 1$, from which the statement about the limit as $x \to\infty$ follows easily.
I have written out case (i) in gruesome detail.  Of course the argument can be streamlined, but be careful to preserve meaning when you do! 
A: The function, as you stated it, is not exclusively negative nor exclusively positive.
There's a really simple counter example.  If f(x)=x for all x in R, then f is continuous everywhere, |f(x)|>=x everywhere, and even one of the limits is satisfied (limit as x goes-to infinity of f(x) is infinity).  But clearly, f(0)=0, f(-1)=-1, and f(1)=1.  So there is a point where f(x)=0, and f is not exclusively positive nor exclusively negative everywhere.
As to the most likely question you were probably asking, user6312 already answered it for you, but I'll type the same proof for completeness.  (Also, does anyone know where I can find a guide on how to get latex to work properly in here?  I can't get things like /mathbb{R} or /infinity or /in to work.  Maybe the rules have changed since I last used latex...)
If f(1)>=1, then f is positive for all x>1.  (Suppose there exists b>1 such that f(b)<1. Since |f(x)|>=x for all x, and b>1, f(b)<-b<0.  But if 10 and f(b)<0, there exists a point c, 1the coolest theorem ever.  Since c>0 and f(c)=0, =><=)
Since f(x) is positive for all x>1, then |f(x)|=f(x) for x>1.  Thus the limit x->infinity of f(x) is greater than limit x->infinity of x which is infinity.
If f(1)<=-1, then let g(x)=-f(x), and do the same proof, and you'll end with lim x->infinity f(x) = -infinity.
