Can I take log on both sides of the following inequality f(n) ≤ cnᵏ and get log(f(n)) ≤ kc log n? I know that by rules the result inequality should be like this log(f(n)) ≤ log(cnᵏ), but I read in book where inequality (1) to in inequality (2) and want to know which way it was done.