Definition
Big-O Notation
Let be functions. We say that is Big-O of , written
if there exist constants and such that for all ,
Notation
One often writes
This is standard shorthand, but it should not be read as ordinary equality. More precisely, Big O denotes a set of functions:
Thus is the more literal statement.
Example
Quadratic upper bound
Let
For all ,
Hence with and .