Here is an example using the following definition of f(n) in Big O g(n): f(n) in Big-O g(n) if there exists positive constants c, n_0 such that 0 < f(n) < cg(n). Ok consider the functions f(n) = 5n^2 -20n + 12 and g(n) = n^2.
f(n) = 5n^2 -20n +12
< 5n^2 -20n + 12n, n > 1
< 5n^2 - 8n
< 5n^2
So, this is valid for n_0 = 1. So 5n^2 -20n + 12 is in Big-O n^2 because 0 < 5n^2 -20n +12 < 5n^2 for n_0 = 1.
Now I'll use the definition that you use to verify the same thing:
absoluteValue(f(n)) = absoluteValue(5n^2 -20n +12)
< absoluteValue(5n^2) + absoluteValue(-20n) +absoluteValue(12)
< 5absoluteValue(n^2) + 20absoluteValue(n) + 12
< 5absoluteValue(n^2) + 20absoluteValue(n^2) + 12absoluteValue(n^2) , n > 1
< 37absoluteValue(n^2)
So, this is valid for n_0 = 1. So 5n^2 -20n + 12 in Big O n^2 because 0 < absoluteValue(5n^2 -20n +12) < 37absoluteValue(n^2) for n_0 = 1.
A specific constant c and n_0 aren't really important, but the existence is what matters.