Substituting one inequality in another inequality

201 Views Asked by At

Suppose I have two inequalities:

$$f(n) \leqslant a × g(n)$$ and

$$2^{f(n)} \leqslant b × 2^{g(n)}$$

How can I substitute the equation 1 in equation 2?

Thanks

1

There are 1 best solutions below

1
On

You cannot, if you want to make sure you obtain a true inequality. Your second inequality is equivalent to $$f(n)\leq \log_2 b+g(n)$$ and this could be stronger than your first inequality, meaning $$f(n)\leq \log_2b+g(n)\leq a\cdot g(n).$$