In typical usage, the formal definition of O notation is not used directly; rather, the O notation for a function f(x) is derived by the following simplification rules: I dont think it was homework at all, but rather a pun ..
If you can find a sexy math tutor you can figure out the problem and have sex with her afterwards-it worked for me once ;-)