- Prove that $$\frac{2x^{2}+x}{x+1}$$ is in $O(x)$
Asked
Active
Viewed 53 times
0
-
Those tags have nothing to do with the question. – IAmNoOne Apr 17 '14 at 08:19
-
My naive way is just to say that $f(x) = O(x^2)/O(x) = O(x)$ but that is probably too fast – Mathias711 Apr 17 '14 at 08:19
-
@Nameless sorry it was my mistake. I fixed it. – M.E. Apr 17 '14 at 08:20
-
@A̷n̷d̷y̷: please next time show what you have tried – Alex Apr 17 '14 at 08:21
-
Well I am confused that's why I asked the question. – M.E. Apr 17 '14 at 08:22
2 Answers
1
$\frac{2 x^2 +x}{x+1} <\frac{2x^2 +x^2}{x}=3x=O(x)$.
Alex
- 19,262
-
-
-
In the sense of large $x$, the inequality follows. Now $M = 3$ is your constant. – IAmNoOne Apr 17 '14 at 08:24
-
-
Take the limit of your function and $3x$ as $x \to \infty$. What do you get? – Alex Apr 17 '14 at 09:09
0
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$$
DonAntonio
- 211,718
- 17
- 136
- 287