We are to determine which of the given statements is true for all positive functions $ f(n) $. Each option makes a claim involving asymptotic notation
Option A
Statement: $ f(n^2) = \Theta(f(n)^2) $, when $ f(n) $ is a polynomial.
Let $ f(n) = a_k n^k + a_{k-1} n^{k-1} + \cdots + a_0 $, where $ a_k > 0 $ and $ k \geq 0 $. Since $ f(n) $ is a positive polynomial, its growth is dominated by the leading term $ a_k n^k $.
Then:
- $ f(n^2) = a_k (n^2)^k + \text{lower-order terms} = a_k n^{2k} + o(n^{2k}) $,
- $ f(n)^2 = (a_k n^k + o(n^k))^2 = a_k^2 n^{2k} + o(n^{2k}) $.
Thus,
$$
\lim_{n \to \infty} \frac{f(n^2)}{f(n)^2} = \frac{a_k}{a_k^2} = \frac{1}{a_k},
$$
which is a positive constant. By definition, this implies $ f(n^2) = \Theta(f(n)^2) $.
Hence, the statement holds for every positive polynomial function. The condition “when $ f(n) $ is a polynomial” is part of the statement, and under that condition, the claim is universally true.
Option B
Statement: $ f(n^2) = o(f(n)^2) $.
This would require $ \lim_{n \to \infty} \frac{f(n^2)}{f(n)^2} = 0 $ for all positive $ f(n) $. Consider $ f(n) = n $. Then:
- $ f(n^2) = n^2 $,
- $ f(n)^2 = n^2 $,
- Ratio = 1, not 0.
Thus, the limit is not zero, and the statement fails. Therefore, Option B is false.
Option C
Statement: $ f(n^2) = O(f(n)^2) $, when $ f(n) $ is an exponential function.
Take $ f(n) = 2^n $. Then:
- $ f(n^2) = 2^{n^2} $,
- $ f(n)^2 = (2^n)^2 = 2^{2n} $.
Since $ n^2 \gg 2n $ as $ n \to \infty $, we have $ 2^{n^2} \gg 2^{2n} $, so $ f(n^2) $ grows much faster than $ f(n)^2 $. Hence, $ f(n^2) \notin O(f(n)^2) $.
Therefore, Option C is false, even under its stated condition.
Option D
Statement: $ f(n^2) = \Omega(f(n)^2) $.
This requires $ f(n^2) $ to be asymptotically at least as large as $ f(n)^2 $ for all positive $ f(n) $. Consider $ f(n) = \log n $ (positive for $ n > 1 $):
- $ f(n^2) = \log(n^2) = 2 \log n $,
- $ f(n)^2 = (\log n)^2 $.
As $ n \to \infty $, $ (\log n)^2 \gg \log n $, so $ f(n^2) = o(f(n)^2) $, and thus $ f(n^2) \notin \Omega(f(n)^2) $.
Hence, Option D is false.
Only Option A is correct: it is true for all positive polynomial functions