Refer to the big-O definition.
Keeping simple things [*], we define that a function g is O (f) if there exist constants C and M such that for n> M, 0 <= g (n) Cf (n).
f , C . T O (n ^ 2), C 5, M , +2n . , > 2 , 5n ^ 2 + 2n < 6n ^ 2 ( n ^ 2 > 2n), C = 6 M = 2 , T (n) O (n ^ 2).
, , T (n) - O (n ^ 2), , O (5n ^ 2) O (5n ^ 2 + 2n). , O (n ^ 2), , . , .
-Theta , , f g - . "g Theta (f)" , T? .
[*] , , limsup, . , .