retagged by
34,987 views
106 106 votes

Which one of the following statements is $\text{TRUE}$ for all positive functions $f(n)?$

  1. $f(n^{2}) = \theta (f(n)^{2}),$ when $f(n)$ is a polynomial
  2. $f(n^{2}) = o (f(n)^{2})$
  3. $f(n^{2}) = O (f(n)^{2}),$ when $f(n)$ is an exponential function
  4. $f(n^{2}) = \Omega (f(n)^{2})$

4 Answers

Best answer
201 201 votes

Answer: A

$$ f(n^2) \text{ versus } f(n)^2 \text{ asymptotically} $$

All of these — $$ \boxed{f(n^2) > f(n)^2}, \quad \boxed{f(n^2) < f(n)^2}, \quad \boxed{f(n^2) = f(n)^2} $$ are possible, depending on the function we take for \( f(n) \).

Consider the following three cases:


Case 1: \( f(n) = \log n \)

$$ f(n^2) = 2\log n $$ $$ f(n)^2 = (\log n)^2 $$

⇒ \( f(n^2) < f(n)^2 \)

Case 2: \( f(n) = e^n \)

$$ f(n^2) = e^{n^2} $$ $$ f(n)^2 = e^n \cdot e^n = e^{2n} $$

⇒ \( f(n^2) > f(n)^2 \)

You can verify this by taking \(\log\) on both sides of \( e^{n^2} \) and \( e^{2n} \).

Case 3: \( f(n) = n^3 \) (polynomial)

$$ f(n^2) = (n^2)^3 = n^6 $$ $$ f(n)^2 = (n^3)^2 = n^6 $$

⇒ \( f(n^2) = f(n)^2 \)

Note: The symbols \( <, >, = \) above denote asymptotic comparison, not strict mathematical inequality.
For example: \( a < b \) means \( a = O(b) \), \( a > b \) means \( a = \Omega(b) \), \( a = b \) means \( a = \Theta(b) \) 

 


Option A:
$$ \boxed{f(n^2) = \Theta(f(n)^2) \text{, When \( f(n) \) is a polynomial.}} $$
✅ TRUE because of Case 3.

Option B:
$$ \boxed{f(n^2) = o(f(n)^2) \Rightarrow f(n^2) < f(n)^2} $$ ❌ False because it depends on \( f(n) \).

Option C:
$$ \boxed{f(n^2) = O(f(n)^2)} $$ When \( f(n) \) is exponential.
❌ False because, from Case 2, \( f(n^2) > f(n)^2 \).

Option D:
$$ \boxed{f(n^2) = \Omega(f(n)^2) \Rightarrow f(n^2) \ge f(n)^2} $$ ❌ False because it again depends on the nature of \( f(n) \).


Correct Answer: Option A

edited by
6 6 votes

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

Answer:
Position:
Show:

Related questions

53 53 votes
7 answers 7 answers
23.7k
23.7k views
Arjun asked Feb 15, 2022
23,727 views
​​​Suppose we are given $n$ keys, $m$ hash table slots, and two simple uniform hash functions $h_{1}$ and $h_{2}.$ Further suppose our hashing scheme uses $h_{1}$ for the...
49 49 votes
4 answers 4 answers
27.5k
27.5k views
Arjun asked Feb 15, 2022
27,548 views
Consider a simple undirected weighted graph $\textit{G},$ all of whose edge weights are distinct. Which of the following statements about the minimum spanning trees of $\...
77 77 votes
13 answers 13 answers
23.5k
23.5k views
Arjun asked Feb 15, 2022
23,450 views
Let $\textit{G(V,E)}$ be a directed graph, where $\textit{V} = \{ 1, 2, 3, 4, 5 \}$ is the set of vertices and $\textit{E}$ is the set of directed edges, as defined by th...
32 32 votes
6 answers 6 answers
9.6k
9.6k views
Arjun asked Feb 15, 2022
9,591 views
The ____________ is too high for it to be considered _____________.fair / farefaer / fairfare / farefare / fair