How do I / can I actually prove the relationship
$[a,b]=0 \Rightarrow [f(a),g(b)]=0$ for all functions $f,g$.
I'm asking because the following sentence in the solution to my quantum mechanics homework irritates me:
For $i \neq j$ , the $\hat{n}_i$ commute with one another, and therefore functions of the $\hat{n}_i$ always commute with one another.
Where $\hat{n}_i = \hat{a}_i^\dagger \hat{a}_i $ with the Bose-Operators $\hat{a}_i^\dagger ,\hat{a}_i $. It is not my task to prove that relation, but the relation itself was required for being able to solve the exercise.