Proving every bound from the definition would be slow. A few rules let you simplify any growth function in seconds. This page lists them, with the conditions under which they are true.
Intuition
In a bill of ₹10,00,250, nobody cares about the ₹250 when deciding if they can afford it. In the same way, for large n n n the biggest term of a growth function decides everything; the smaller terms and constant multipliers are “small change”.
Dropping lower-order terms and constants
Example 1.12 Simplify 3n³ + 2n² + 4n + 3
Goal. Find the simplest Big-O for f ( n ) = 3 n 3 + 2 n 2 + 4 n + 3 f(n) = 3n^3 + 2n^2 + 4n + 3 f ( n ) = 3 n 3 + 2 n 2 + 4 n + 3 .
Bound each smaller term. For n ≥ 1 n \ge 1 n ≥ 1 : 2 n 2 ≤ 2 n 3 2n^2 \le 2n^3 2 n 2 ≤ 2 n 3 , 4 n ≤ 4 n 3 4n \le 4n^3 4 n ≤ 4 n 3 and 3 ≤ 3 n 3 3 \le 3n^3 3 ≤ 3 n 3 .
Add. f ( n ) ≤ 3 n 3 + 2 n 3 + 4 n 3 + 3 n 3 = 12 n 3 f(n) \le 3n^3 + 2n^3 + 4n^3 + 3n^3 = 12n^3 f ( n ) ≤ 3 n 3 + 2 n 3 + 4 n 3 + 3 n 3 = 12 n 3 for all n ≥ 1 n \ge 1 n ≥ 1 .
Read off the bound. With c = 12 c = 12 c = 12 and n 0 = 1 n_0 = 1 n 0 = 1 , f ( n ) = O ( n 3 ) f(n) = O(n^3) f ( n ) = O ( n 3 ) . Also f ( n ) ≥ 3 n 3 f(n) \ge 3n^3 f ( n ) ≥ 3 n 3 , so in fact f ( n ) = Θ ( n 3 ) f(n) = \Theta(n^3) f ( n ) = Θ ( n 3 ) .
Result. 3 n 3 + 2 n 2 + 4 n + 3 = Θ ( n 3 ) 3n^3 + 2n^2 + 4n + 3 = \Theta(n^3) 3 n 3 + 2 n 2 + 4 n + 3 = Θ ( n 3 ) : keep the highest-order term and drop its coefficient.
The rules
Correction · Missing conditions on the bases
Study material says: §1.2, rules 3–5, state the log and exponential rules “for any bases a, b” and “for any b”, with no restriction, e.g. n k = O ( b n ) n^k = O(b^n) n k = O ( b n ) .
Correct version: The log bases must be greater than 1, and the exponential base must be greater than 1: n k = O ( b n ) n^k = O(b^n) n k = O ( b n ) only for b > 1 b > 1 b > 1 .
Why: For b = 1 b = 1 b = 1 , b n = 1 b^n = 1 b n = 1 , and n k n^k n k (with k > 0 k > 0 k > 0 ) is not O ( 1 ) O(1) O ( 1 ) ; for 0 < b < 1 0 < b < 1 0 < b < 1 , b n b^n b n shrinks towards 0. A logarithm with base ≤ 1 \le 1 ≤ 1 is either undefined (base 1) or negative for n > 1 n > 1 n > 1 , so it cannot be a running time.
The order of common functions
Rules 3–6 give a ladder of growth rates. Each function below grows strictly faster than the one before it:
1 constant
→
log n logarithmic
→
n linear
→
n log n linearithmic
→
n² quadratic
→
n³ cubic
→
2ⁿ exponential
→
n! factorial
Common growth rates, slowest to fastest
To simplify a sum, keep the term that is furthest right on this ladder.
Example 1.14 Check Your Progress 1, question 5
Goal. Give the simplified Big-O of 30 n 2 30n^2 30 n 2 , 10 n 3 + 6 n 2 10n^3 + 6n^2 10 n 3 + 6 n 2 , 5 n log n + 30 n 5n\log n + 30n 5 n log n + 30 n , log n + 3 n \log n + 3n log n + 3 n and log n + 32 \log n + 32 log n + 32 .
30 n 2 30n^2 30 n 2 . Drop the constant 30: O ( n 2 ) O(n^2) O ( n 2 ) .
10 n 3 + 6 n 2 10n^3 + 6n^2 10 n 3 + 6 n 2 . n 3 n^3 n 3 is the dominant term: O ( n 3 ) O(n^3) O ( n 3 ) .
5 n log n + 30 n 5n\log n + 30n 5 n log n + 30 n . n log n n \log n n log n grows faster than n n n : O ( n log n ) O(n \log n) O ( n log n ) .
log n + 3 n \log n + 3n log n + 3 n . n n n grows faster than log n \log n log n (rule 4 with c = 1 c = 1 c = 1 ): O ( n ) O(n) O ( n ) .
log n + 32 \log n + 32 log n + 32 . log n \log n log n grows, 32 is constant: O ( log n ) O(\log n) O ( log n ) .
Result. O ( n 2 ) O(n^2) O ( n 2 ) , O ( n 3 ) O(n^3) O ( n 3 ) , O ( n log n ) O(n\log n) O ( n log n ) , O ( n ) O(n) O ( n ) , O ( log n ) O(\log n) O ( log n ) .
Correction · Answer to Check Your Progress 1, question 5
Study material says: §1.7 gives the answers “O(n2), O(n3), O(n log n), O(log n), O(log n)”, so log n + 3 n \log n + 3n log n + 3 n is answered as O ( log n ) O(\log n) O ( log n ) .
Correct version: log n + 3 n = O ( n ) \log n + 3n = O(n) log n + 3 n = O ( n ) (in fact Θ ( n ) \Theta(n) Θ ( n ) ). The five answers are O ( n 2 ) O(n^2) O ( n 2 ) , O ( n 3 ) O(n^3) O ( n 3 ) , O ( n log n ) O(n\log n) O ( n log n ) , O ( n ) O(n) O ( n ) , O ( log n ) O(\log n) O ( log n ) .
Why: 3 n ≤ log n + 3 n 3n \le \log n + 3n 3 n ≤ log n + 3 n for all n ≥ 1 n \ge 1 n ≥ 1 , and 3 n 3n 3 n is not O ( log n ) O(\log n) O ( log n ) because n / log n n / \log n n / log n grows without limit. So log n + 3 n \log n + 3n log n + 3 n cannot be O ( log n ) O(\log n) O ( log n ) . By rule 4, the linear term dominates.
Check Your Progress 1, questions 1–4
Q1. 9 n + 12 9n + 12 9 n + 12 and 1000 n + 400000 1000n + 400000 1000 n + 400000 are both O ( n ) O(n) O ( n ) : True . Constants, however large, do not change the order.
Q2. If f = O ( g ) f = O(g) f = O ( g ) and h = O ( g ) h = O(g) h = O ( g ) , then f + h = O ( g ) f + h = O(g) f + h = O ( g ) : True . If f ≤ c 1 g f \le c_1 g f ≤ c 1 g and h ≤ c 2 g h \le c_2 g h ≤ c 2 g , then f + h ≤ ( c 1 + c 2 ) g f + h \le (c_1 + c_2) g f + h ≤ ( c 1 + c 2 ) g .
Q3. For f ( n ) = n 2 + 3 n f(n) = n^2 + 3n f ( n ) = n 2 + 3 n and g ( n ) = 6000 n + 34000 g(n) = 6000n + 34000 g ( n ) = 6000 n + 34000 , "O ( f ( n ) ) < O ( g ( n ) ) O(f(n)) < O(g(n)) O ( f ( n )) < O ( g ( n )) ": False . f f f is quadratic and g g g is linear, so g g g grows slower, whatever its large constants.
Q4. Asymptotic complexity depends on hardware: False . Hardware changes only the constant factor, which the notation ignores.
Key idea
To simplify a growth function, keep only its fastest-growing term and drop its constant multiplier; the ladder 1 < log n < n < n log n < n² < n³ < 2ⁿ < n! tells you which term is fastest.
TEE Exam note
“Give simplified Big-O for …” questions are quick marks: write each answer with a few words of reason (“dominant term n³”). For true/false questions about Big-O, always add a one-line justification; a bare “True” may get no marks. Learn the growth ladder in order, it appears in many questions.
Common mistake
Thinking the base does not matter for exponentials as it does for logs. 3 n 3^n 3 n is not O ( 2 n ) O(2^n) O ( 2 n ) : 3 n / 2 n = 1.5 n 3^n / 2^n = 1.5^n 3 n / 2 n = 1. 5 n grows without limit.
Common mistake
Keeping the “bigger-looking” constant instead of the bigger power: 1000 n 1000n 1000 n is still O ( n ) O(n) O ( n ) , and 0.001 n 2 0.001n^2 0.001 n 2 is still bigger than it for large n n n (n > 10 6 n > 10^6 n > 1 0 6 ).
Key takeaways
Drop lower-order terms and constant factors; keep the dominant term.
Log bases (> 1 > 1 > 1 ) do not matter; exponential bases do.
log n < n^c < bⁿ < n! for large n (with c > 0, b > 1).
Sum rule: O(f) + O(g) = O(max(f, g)); product rule: O(f) · O(g) = O(f · g).
Practice questions Answer on paper first, then check. The explanation matters more than the letter you chose.
Question 1 · multiple choice Is it true that 9 n + 12 9n + 12 9 n + 12 and 1000 n + 400000 1000n + 400000 1000 n + 400000 are both O ( n ) O(n) O ( n ) ?
Check answer
Show answer Answer: A. True, because constants do not change the order
1000 n + 400000 ≤ 1001 n 1000n + 400000 \le 1001n 1000 n + 400000 ≤ 1001 n for n ≥ 400000 n \ge 400000 n ≥ 400000 , so a valid c c c and n 0 n_0 n 0 exist. Needing a large n 0 n_0 n 0 is allowed; it does not make the claim false.
Question 2 · multiple choice What is the simplest Big-O of 5 n log n + 30 n 5n\log n + 30n 5 n log n + 30 n ?
Check answer
Show answer Answer: C. O ( n log n ) O(n \log n) O ( n log n )
n log n n \log n n log n grows faster than n n n because log n \log n log n grows. O ( n 2 ) O(n^2) O ( n 2 ) is a valid but not tight bound.
Question 3 · multiple choice Which statement is false?
Check answer
Show answer Answer: D. 3 n = O ( 2 n ) 3^n = O(2^n) 3 n = O ( 2 n )
3 n / 2 n = 1.5 n → ∞ 3^n / 2^n = 1.5^n \to \infty 3 n / 2 n = 1. 5 n → ∞ , so no constant c c c works. The log statement is true because log bases differ only by a constant factor.
Question 4 · multiple choice If f 1 ( n ) = O ( n 2 ) f_1(n) = O(n^2) f 1 ( n ) = O ( n 2 ) and f 2 ( n ) = O ( n log n ) f_2(n) = O(n \log n) f 2 ( n ) = O ( n log n ) , what is f 1 ( n ) + f 2 ( n ) f_1(n) + f_2(n) f 1 ( n ) + f 2 ( n ) ?
Check answer
Show answer Answer: B. O ( n 2 ) O(n^2) O ( n 2 )
Sum rule: take the larger of the two bounds, n 2 n^2 n 2 . Multiplying the bounds is the product rule, which is for f 1 ⋅ f 2 f_1 \cdot f_2 f 1 ⋅ f 2 .
Question 5 · multiple choice Which function grows fastest for large n n n ?
Check answer
Show answer Answer: D. 2 n 2^n 2 n
By rule 5, every power n k n^k n k is O ( 2 n ) O(2^n) O ( 2 n ) . Large powers like n 10 n^{10} n 10 are bigger for small n n n , but 2 n 2^n 2 n overtakes them (here after about n = 59 n = 59 n = 59 ).
Question 6 · short answer
Give the simplified Big-O of 30 n 2 30n^2 30 n 2 , 10 n 3 + 6 n 2 10n^3 + 6n^2 10 n 3 + 6 n 2 , 5 n log n + 30 n 5n\log n + 30n 5 n log n + 30 n , log n + 3 n \log n + 3n log n + 3 n and log n + 32 \log n + 32 log n + 32 , with a reason for each.
Show worked answer 30 n 2 = O ( n 2 ) 30n^2 = O(n^2) 30 n 2 = O ( n 2 ) (drop the constant); 10 n 3 + 6 n 2 = O ( n 3 ) 10n^3 + 6n^2 = O(n^3) 10 n 3 + 6 n 2 = O ( n 3 ) (dominant term n 3 n^3 n 3 ); 5 n log n + 30 n = O ( n log n ) 5n\log n + 30n = O(n\log n) 5 n log n + 30 n = O ( n log n ) (n log n n\log n n log n grows faster than n n n ); log n + 3 n = O ( n ) \log n + 3n = O(n) log n + 3 n = O ( n ) (n n n grows faster than log n \log n log n ); log n + 32 = O ( log n ) \log n + 32 = O(\log n) log n + 32 = O ( log n ) (32 is a constant).