\begin{align} A\log_2a+B\log_2b & = A(\log_2a+\frac{B}{A}\log_2b) \\ & = A(\log_2a+\log_2b^{\frac{B}{A}})\\ & =A(\log_2 ab^{\frac{B}{A}}) \\ & = (\log_2 ab^{\frac{B}{A}})^A \\ & = (\log_2 ab^B) \end{align}
I feel there is something strange,because the sum of the left hand side of formula has a relation with A, I mean if A become smaller or bigger, the sum of left hand side will become smaller or bigger too.
However, it seems that the sum of right hand side, $\log_2ab^B$, doesn't have any relation with A. So I think I make a mistake in somewhere, can anyone tell me where am I wrong?
Last two lines are both wrong. $A(\log_2(a b^{\frac B A}))=\log_2 ((a b^{\frac B A})^{A})=\log_2(a^{A}b^{B})$