1
$\begingroup$

$x=O(x+5)$ True or False?

I think

$lim_{x \to \infty} \frac{x+5}{x}=1$, both the functions are growing at the same rate, so is $x=O(x+5)$ false.

But the solution is

true; $x < x + 5 \Rightarrow \frac{x}{x+5}< 1 $ if $x > 1$ (or sufficiently large)

  • 1
    If two functions are growing at the same rate, they indeed should be O() of each other.2017-02-10
  • 1
    I would like to know how you came to the conclusion that the statement is false. Actually you are showing a sufficient condition for it to be true and then just say that it is false without any explanation. I would like to understand that.2017-02-10
  • 0
    @LeBtz, my laziness....,didn't read big oh carefully :(, thank you2017-02-11

1 Answers 1

2

The big-O notation used for example to indicate

$$f(z) = \mathcal{O}g(z) ~~~~~~~~~~~~~ z\to z_0$$

means that $f(z)$ is asymptotically bounded by $g(z)$ in magnitude, as $z\to z_0$.

$$|f(z)| \leq C|g(z)|$$

So, is their ratio bounded in magnitude?

$$\left| \frac{x}{x+5} \right|$$

Hint: they are both linear functions.