# Thread:

1. ## serious trouble finding big O

Original statement:

$f(n)=(n^3+4log_2 n)/(n+4)$

I'm sure the n+4 in both the denominator and numerator have something to do with it, but if i make $n$in the denominator a $n^3$, wouldn't that then make it smaller the the LHS?

I'm suppose to prove

$f(n)=0(n^2)$

which means i need the inequality to make the RHS bigger than the LHS

2. Originally Posted by Roclemir
Original statement:

$f(n)=(n^3+4log_2 n)/(n+4)$

I'm sure the n+4 in both the denominator and numerator have something to do with it, but if i make $n$in the denominator a $n^3$, wouldn't that then make it smaller the the LHS?

I'm suppose to prove

$f(n)=0(n^2)$

which means i need the inequality to make the RHS bigger than the LHS
For $n>1$ (which makes everything of interest here positive):

$f(n)=\frac{n^3+4\log_2 n}{n+4}<\frac{n^3+4\log_2 n}{n}$ $=n^2+\frac{4 \log_2 (n)}{n}$

Then as $\frac{4 \log_2 (n)}{n} \to 0$ as $n \to \infty$ for large enough $n$ we have:

$\frac{4 \log_2 (n)}{n}<n^2$

So for large enough $n$ :

$f(n)<2n^2$

CB

3. ## thanks mate, just on one line...

Thanks. All makes sense except that one line starting with "Then as... we have:", hate to be a noob, but can you please explain what you mean with the arrows and stuff thanks.

4. ## Beautiful CB, just filling in some details for him

That notation means as n approaches infinity, $\frac{4log_2(n)}{n}$ becomes arbitrarily close to 0. It is read the limit of $\frac{4log_2(n)}{n}$ as n approaches infinity is 0.

So given any $\epsilon >0$, there exists an integer N for which, $|\frac{4log_2(n)}{n}|<\epsilon$ for all n>N.

In particular, if $\epsilon=1$, there exists an N, such that for all n>N, $\frac{4log_2(n)}{n}<1$, this means we clearly have the identity $\frac{4log_2(n)}{n}<1<n^2\Rightarrow n^2+\frac{4log_2(n)}{n}<n^2+n^2=2n^2$.

Thus $|\frac{x^2+\frac{4log_2(n)}{n}}{n^2}|\leq 2$ for all n>N. Which is the definition of $f(n)=O(n^2)$
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 26, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "github"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "english_confidence": 0.9447283148765564, "perplexity_flag": "middle"}