There's no reason you couldn't take the expectation value of a derivative. Linearity of expectation means this will be equal the derivative of the expectation value.
I may be missing the point though; I'm only versed in the mathematics.
I may be missing the point though; I'm only versed in the mathematics.
I also wonder if differentiation doesn't have some nicer properties anyway, being a linear operation as well. Typically you can get quite far by showing things work for a sufficiently broad class of functions and just extending things from there. In particular you could use the Fourier transform, which trivially commutes with taking expectation values.
You can always try something abhorrent like sin(e^(-1/x^2)) or something to make things go wrong though.