I am trying to prove that the angular momentum component operator ${L}_i$ commutes with any function of ${r}\equiv \sqrt{{\textbf{x}}\cdot{\textbf{x}}}$, i.e.
$$[L_i, f( r)]=0.$$
I first worked out that $L_i$ commutes with $\textbf{x}\cdot\textbf{x}$, i.e. $$[L_i,\textbf{x}^2]=0.$$ I then expanded $f(r)$ in terms of a power series: $$f(r)=\sum_n a_nr^n=\sum_na_n(\textbf{x}\cdot\textbf{x})^{n\over 2}.$$
Next, I want to show that $L_i$ commutes with $(\textbf{x}\cdot\textbf{x})^{n\over 2}$, where $n$ is a positive integer, i.e. $$[L_i,(\textbf{x}\cdot\textbf{x})^{n\over 2}]=0.$$
What commutator rule can I use to evaluate this?