To show that ( 3^n ) is in ( \omega(n^k) ) using limits, we essentially need to demonstrate that ( 3^n ) grows faster than ( n^k ) for any constant ( k ), as ( n ) approaches infinity. In formal terms, we must show that:
[ \lim_{n \to \infty} \frac{3^n}{n^k} = \infty ]
This limit compares ( 3^n ) with ( n^k ) as ( n ) gets larger and larger. If the limit is infinity, it means that ( 3^n ) grows at a rate that cannot be bounded by any polynomial ( n^k ).
Let's calculate this limit. Since we're dealing with an indeterminate form ( (\infty / \infty) ), we can attempt to apply L'Hôpital's Rule. However, L'Hôpital's Rule only applies to functions that can be differentiated, and ( 3^n ) is not differentiable in the standard sense since it is not a function of a continuous variable. But we can express ( 3^n ) as an exponential function that is differentiable by using the natural exponent and logarithms:
[ 3^n = e^{n \ln(3)} ]
Now, let's consider the limit of the ratio of derivatives (although we will not be formally applying L'Hôpital's Rule here, the intuition of comparing the growth rates of derivatives is similar):
[ \lim_{n \to \infty} \frac{d}{dn}e^{n \ln(3)} \Big/ \frac{d}{dn}n^k ]
Taking the derivatives with respect to ( n ):
[ \frac{d}{dn}e^{n \ln(3)} = e^{n \ln(3)} \ln(3) = 3^n \ln(3) ]
[ \frac{d}{dn}n^k = k n^{k-1} ]
Let's look at the limit of the ratio of these derivatives now:
[ \lim_{n \to \infty} \frac{3^n \ln(3)}{k n^{k-1}} ]
We can simplify this by taking ( \ln(3)/k ) out, which is a constant:
[ \lim_{n \to \infty} \frac{\ln(3)}{k} \frac{3^n}{n^{k-1}} ]
If we can show that ( \lim_{n \to \infty} \frac{3^n}{n^{k-1}} = \infty ), then multiplying by the positive constant ( \ln(3)/k ) will not change the fact that the limit is still infinity.
Conjecture:
[ \lim_{n \to \infty} \frac{3^n}{n^{k-1}} = \infty ]
Recall that the exponential function ( 3^n ) grows faster than any polynomial, hence this conjecture is true. The ratio ( \frac{3^n}{n^{k-1}} ) represents the exponential growth of ( 3^n ) outpacing the polynomial growth of ( n^{k-1} ), and as ( n ) approaches infinity, the exponential term will dominate, making the limit go to infinity.
Therefore, we can conclude that ( 3^n ) is in ( \omega(n^k) ), as:
[ \lim_{n \to \infty} \frac{3^n}{n^k} = \infty ]
Thus, the function ( g(n) ) that we define as ( g(n) = 3^n ) grows faster than any polynomial ( f(n) = n^k ), and there exists some constant ( c ) and ( N ) such that for all ( n \ge N ), ( g(n) \ge cf(n) ). This is the formal way of saying that ( 3^n ) is in ( \omega(n^k) ).