Suppose we have a one-dimensional periodic system with lattice constant $a_0$. From Bloch's theorem, we can express the wavefunction for an electron in band $m$ with crystal momentum $k$ $\left\langle x \middle| \psi_{m,k} \right\rangle$ as follows:
$$ \left\langle x \middle| \psi_{m,k} \right\rangle = e^{i k x} u_{m,k}(x), $$
where $u_{m,k}(x + a_0) = u_{m,k}(x)$. I don't understand the following expression for the matrix elements of the position operator:
$$ \langle \psi_{m,k} | x | \psi_{m',k'}\rangle = i \delta_{m,m'} \delta_{k,k'} \frac{\partial}{\partial k} + i \delta_{k,k'} X_{m,m'}, $$
where
$$ X_{m,m'}= i N \int_0^{a_0} e^{i (k - k') x} u^*_{m,k}(x) \frac{\partial}{\partial k} u_{m',k'}(x) dx. $$
The second term is easy enough to understand. The first term, however... how can the expectation value between two eigenstates be a derivative? Am I missing something obvious here?