1

How do you prove that the folowing function is equal to $\theta(n^2)$?

$$f(n)=\frac{n^3+n+1}{2n+\ln(n)}.$$

Then $f(n)=\theta(n^2)$.

Thanks!

MattAllegro
  • 3,316
Jody
  • 89

2 Answers2

0

Hint: Consider $f(n)/n^2$ and take the limit where $n\to \infty$

Belgi
  • 23,150
0

Hints:

$\lim_{n\to \infty}f(n)/n^2=\lim_{n\to \infty}\frac{n+\frac1n+\frac{1}{n^2}}{2n+\ln n}=\frac12$

Paul
  • 20,553