I have a question, about Bachman-Landau. How do you know when a function fits into some notation?

For example does $\displaystyle x^2-6x+25$ fit into $\displaystyle O(x^2)$.

Or you just look and see, we had some equations in school but I cant' remember them all.

Thank you for your help.