If we let $f(n)), g(n)$ be two non-negative and monotonically decreasing functions such that $f(n) = O(g(n))$, how can I prove that $\log_2(f(n)) = O(\log_2(g(n)))$? Is this even true in all cases? I am not sure if I am allowed to just apply the logarithm to both sides as a monotonic transformation and conclude from that that this is true.
I have a similar issue determining whether $2^{f(n)} = O(2^{g(n)})$ and whether $f(n)^2 = O(g(n)^2)$ etc. as I am unsure about the rules for transformations such as these. Could anyone provide some insight on how to go about proving or disproving these relationships?