I have following exercise: If $[C,D]$ is a c-number and $f(x)$ is a well-behaved function (i.e. all derivatives exist and are finite), show that: $$[C, f(D)]=[C,D]f'(D)$$ where $f'(D) = \frac{d}{dx}f(x)$
I used expansion: $$f(D) = \sum_{k} a_k D^k $$ that way: $$\sum_k a_k [C,D^k]=\sum_k a_k k [C,D]D^{k-1}$$ I don't know how to show that $$[C,D^k]=k[C,D]D^{k-1} $$
Do I need to expand function from operator in another way?