Asymptotic behavior of polynomials
Let
p(n)=d∑i=0aini,
where ad>0, be a degree-d polynomial in n, and let k be a constant. Use the definitions of the asymptotic notations to prove the following properties.
a. If k≥d, then p(n)=O(nk).
In order to show p(n)=O(nk) we must show that there exist positive constants c and n0 such that:
0≤p(n)≤cnk ∀ n≥n00≤d∑i=0aini≤cnk ∀ n≥n00≤a0+a1n1+⋯adnd≤cnk ∀ n≥n00≤a0+a1n1+⋯adnd≤(d∑i=0ai)nk ∀ n≥1Thus by setting c=d∑i=0ai and n0=1 we conclude that k≥d⟹p(n)=O(nk).
b. If k≤d, then p(n)=Ω(nk).
In order to show p(n)=Ω(nk) we must show that there exist positive constants c and n0 such that:
0≤cnk≤p(n) ∀ n≥n00≤cnk≤d∑i=0aini ∀ n≥n00≤cnk≤a0+a1n1+⋯adnd ∀ n≥n00≤aknk≤a0+a1n1+⋯adnd ∀ n≥n0We do not need the entire summation, and can get away with setting c=ak to satisfy this inequality for all n0≥1. Therefore k≤d⟹p(n)=Ω(nk).
c. If k=d, then p(n)=Θ(nk).
In a and b we showed that p(n)=Ω(nk) and p(n)=O(nk) which is sufficient evidence that p(n)=Θ(nk).
d. If k>d, then p(n)=o(nk).
This is intuitive based on the proof in part a. Otherwise, we can use limits to formally prove this:
limn→∞p(n)nk=limn→∞d∑i=0ainink=limn→∞ndnk=0e. If k<d, then p(n)=ω(nk).
This is intuitive based on the proof in part b. Otherwise, we can use limits to formally prove this:
limn→∞p(n)nk=limn→∞d∑i=0ainink=limn→∞ndnk=∞