I have a silly question. I have a state $\hat{\rho}$ and I make the transformation $\hat{\rho}'=\hat{a}\hat{\rho}\hat{a}^\dagger$ (I want to subtract a photon).
I expand in the position basis the density operator: \begin{equation} \hat{\rho}=\iint dx dx'|x\rangle \rho(x, x') \langle x'| \end{equation} and the action of $\hat{a}$ is carried out by knowing that $\hat{a}=(\hat{x}+i\hat{p})/\sqrt{2}$. So \begin{equation} \hat{\rho}'=\iint dx dx'\hat{a}|x\rangle \rho(x, x') \langle x'|\hat{a}^\dagger=\iint dx dx'|x\rangle \frac{x-\partial_x}{\sqrt{2}}\rho(x, x')\frac{x'+\partial_{x'}}{\sqrt{2}} \langle x'|\hat{a}^\dagger \end{equation} where I used $\hat{p}|x\rangle=i\partial_x$ and $\langle x|\hat{p}=-i\partial_x$. So I conclude that \begin{equation} \rho'(x,x')=\frac{x-\partial_x}{\sqrt{2}}\rho(x, x')\frac{x'+\partial_{x'}}{\sqrt{2}} \end{equation}
My main problem is that I found a reference where it states that \begin{equation} \rho'(x,x')=\frac{x+\partial_x}{\sqrt{2}}\frac{x'+\partial_{x'}}{\sqrt{2}}\rho(x, x') \end{equation} A part from the signs which are different, I NEED the differential operators to be on the left to carry out the proof which states $W_{\hat{a}\hat{\rho}\hat{a}^\dagger}=\hat{D}W_{\hat{\rho}}$, where $\hat{D}$ is a differential operator and $W$ is the Wigner quasi-probability distribution. How can I just take a differential operator and put it to the left when the function $\rho(x,x')$ is dependent on the variable $x'$?
Edit: I think I've always been kind of confused for what concerns differential operator being on the right of a function in QM. Are they acting from the right on $\rho'(x,x')$ (being $\rho'(x,x')=\sum_i p_i \phi_i(x) \phi_i^*(x')$ it would act from the right on $\phi_i^*(x')$). On what these operators are supposed to act?