Discrete Mathematics: Prove that f(x) is in O(x)

54 Views Asked by At
  • Prove that $$\frac{2x^{2}+x}{x+1}$$ is in $O(x)$
2

There are 2 best solutions below

1
On BEST ANSWER

By definition, we have that

$$\frac{2x^2+x}{x+1}=\mathcal O(x)\iff \exists\,\text{a constant}\;M\;\;s.t.\;\;\left|\frac{\frac{2x^2+x}{x+1}}x\right|=\left|\frac{2x+1}{x+1}\right|\le M$$

But we know that

$$\lim_{x\to\pm\infty}\frac{2x+1}{x+1}=2\;,\;\;\;\text{ so}\ldots$$

5
On

$\frac{2 x^2 +x}{x+1} <\frac{2x^2 +x^2}{x}=3x=O(x)$.