First of all give the definition of $O(n)$ and use it to demonstrate that:
$O(n) * O(n) = O(n^2)$
I know that this is true because:
$O(f(x))*O(g(x)) = O(f(x)g(x))$
but I don't know how to demonstrate it, even with the definition:
$$f(x) = O(g(x))$$ if $$lim_{x\to0}\frac{f(x)}{g(x)}= l \in R$$