comparison of two functions

PUBLISHED: MAY 2, 20261 MIN READ

Compare the growth of two functions0 implies has smaller order of growth than c implies has same order of growth as implies has larger order of growth than

Abhishek Singh Rajput
Abhishek SinghAuthor
azurill
#298
azurill

Compare the growth of two functions

limnt(n)g(n)\lim_{n\to\infty}\frac{t(n)}{g\left(n\right)}
  • 0 implies has smaller order of growth than
  • c implies has same order of growth as
  • implies has larger order of growth than

Compare the growth of the function and

let
t(n) =
g(n) =
limnt(n)g(n)=limnnlog2n4n\lim_{n\to\infty}\frac{t(n)}{g(n)}=\lim_{n\to\infty}\frac{nlog_2n}{4^{n}}
log24=\frac{\infty\log_2 \infty}{4^\infty}=\frac{\infty}{\infty}

This is an ​ form, so apply L'Hopital’s Rule (differentiate numerator and denominator):

Apply L hopital Rule

According to L Hopital can only be applied in the case where direct substitution yields an indeterminate form, meaning or .

limnddn(nlog2n)ddn4n\lim_{n\to\infty}\frac{\frac{d}{dn}(nlog_2n)}{\frac{d}{dn}4^{n}}
ddn(nlog2n)\frac{d}{dn}\left(nlog_2n\right)
nddn(log2n)+ddn(n)log2nddn(4n)\frac{n\frac{d}{dn}(log_2n)+\frac{d}{dn}(n)\cdot log_2n}{\frac{d}{dn}\left(4^{n}\right)}

Convert to natural log:

ddnlnnln2\frac{d}{dn}\frac{\ln{n}}{\ln2}
1ln2ddnlogn\frac{1}{\ln{2}}\cdot\frac{d}{dn}\log n
1ln21n=1nln2\frac{1}{\ln{2}} \cdot \frac{1}{n} = \frac{1}{n\ln{2}}
ddnlog2n=1nln2\boxed{\frac{d}{dn} \log_2{n} = \frac{1}{n\ln{2}}}
ddn4n=4nln4\boxed{\frac{d}{dn} 4^n = 4^nln4}

Put the value

n1nln2+1log2n4nln4\frac{n\cdot\frac{1}{n\ln{2}}+1\cdot log_2n}{4^{n}\ln4}
limn(1ln2+log2n)4nln4\lim_{n\to\infty}\frac{\left(\frac{1}{\ln{2}}+\log_2n\right)}{4^{n}\ln{4}}

Again, apply L hopital Rule

Differentiate numerator

ddn(1ln2+log2n)\frac{d}{dn}\left(\frac{1}{\ln2}+\log_2n\right)
0+1nln2=1nln20+\frac{1}{n\ln{2}}=\frac{1}{n\ln2}

Differentiate denominator

ln4ddn4n\ln4\cdot\frac{d}{dn}4^{n}
ln44nln4\ln{4}\cdot4^{n}\ln4
(ln4)24n(\ln{4})^2 \cdot 4^n

Put the values:

1/nln2(ln4)24n\frac{1\text{/}n\ln2}{(\ln{4})^2\cdot4^{n}}
limn1(nln2)(ln4)24n\lim_{n\to\infty}\quad\frac{1}{(n\ln2)\cdot(\ln{4})^2\cdot4^{n}}
=0=0= \frac{0}{\infty} = 0
0 implies t(n) has smaller order of growth than g(n)\boxed{\text{0 implies t(n) has smaller order of growth than g(n)}}
t(n)=nlog2nt(n)=n\log_2n
g(n)=4ng(n) = 4^n