When we have $f = O(g)$, does this work? $f^2 = O(g^2)$? If I have $n^2 = O(n^3)$, I think that $n^4= O(n^6)$ so I think this is valid. What about $2^f vs 2^g$? Does $f = O(g)$ imply $2^f = O(2^g)$?
And also can I do this? if $f = θ(g)$, is $f^2 = θ(g^2)$? and if $f = Ω(g)$, is $f^2 = Ω(g^2)$? Is there some general rule that I can follow?