I want to show that $$[\hat{x}^n,f(\hat{p})] = i\hbar\left(n\hat{x}^{n-1}\frac{\partial f(\hat{p})}{\partial \hat{p}}\right) + \mathcal{0}(\hbar^2)$$ where the last term means of order $\hbar^2$.
I have already shown that $[\hat{x},f(\hat{p})] = i\hbar \frac{\partial f(\hat{p})}{\partial \hat{p}}$
I think what I can do first is to expand the commutator like so: $[\hat{x}^n,f(\hat{p})] = \hat{x}^{n-1}[\hat{x},f(\hat{p})] + [\hat{x}^{n-1},f(\hat{p})]\hat{x} $
Then I expand the 2nd term. However, if do this some more times, I don't seem to get a closed form expression so I am stuck here.
I would be grateful for any advice