Apologies if this question was posed already.
I need to prove that $(AB)^{k} = A^{k}B^{k}$ holds if $AB=BA$. After trying it myself, I looked at the solution and found it quite strange.
"Use induction: $(AB)^{k} = A^{k}B^{k}$ is true for $k=1$ since since $AB=BA$. Assume $(AB)^{k-1}=(BA)^{k-1}$ and prove it true for k: $$ (AB)^{k} = (AB)^{k-1} AB $$ $$ = A^{k-1}B^{k-1} AB $$ $$ = A^{k-1}A B^{k-1} B $$ $$ = A^{k} B^{k} $$"
I don't understand how this really proves anything. We had to assume $(AB)^{k-1}=(BA)^{k-1}$, how does if follow then that $(AB)^{k} = A^{k}B^{k}$ holds?
@Exodd has already noted a typo in the statement of the inductive step's inductive hypothesis. Another approach to the inductive step, one that minimizes the rearrangements, is$$(AB)^k=A^kB^k\implies(AB)^{k+1}=A(BA)^kB=A(AB)^kB=AA^kB^kB=A^{k+1}B^{k+1}.$$