0

Suppose that $f(x)$ and $g(x)$ are two non negative functions and suppose that $$f(x)=O(g(x)).$$ Can we conclude that $$-g(x)=O(-f(x)) ?$$ I think is false but i'm not sure. Thank you and sorry for this dumb question.

2 Answers2

0

$$\begin{align*} |f(x)| & \le C |g(x)| \\ \Rightarrow -C |g(x)| & \le -|f(x)| \\ \not\Rightarrow |g(x)| & \le C^{-1} |f(x)| \end{align*}$$ So the answer is no, since $\mathcal O$ refers to the absolut value of a function.

AlexR
  • 24,905
0

Even with the right signs this is false. For example, for $x>1$, we have that $1=O(x)$, but $x\neq O(1)$.